Skip to content

Hunt prep

Before you test Rubicon v2

What 89 disclosed reports say about Rubicon v2: what was found and paid, what was fixed, and where it may be worth looking next.

with a public bounty
0
median public bounty
–
highest public bounty
–

Gaps worth testing 15

Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.

  1. 1

    Fee and rounding handling in market buy and sell paths

    Business logic Read the lesson

    Several reports show fee maths in the market and position buy and sell functions going wrong, including fee-inclusive fill comparisons and division by 10000. Test the same fee and rounding paths on the sibling functions and on tokens with different decimal precision to see whether the fee is applied consistently. This builds on the cluster of fee and rounding findings in the market and position contracts.

    From the lessons: Check whether every swap, deposit or mint path enforces a user-supplie...; Compare the protocol's computed slippage bound against the true expect...; Test the protocol with several ERC20 variants (different decimals, no...

  2. 2

    Leverage position curve and collateral accounting

    Business logic Read the lesson

    Reports describe the short leverage curve being non-smooth, openPosition using previous collateral for borrowing, and the last borrowed asset not being collateralised. Test opening and closing positions at boundary sizes and with reused collateral to see whether the resulting leverage and liquidation threshold match expectations. This follows the leverage and collateral accounting findings.

    From the lessons: Liquidation and force repay paths.; Mint or redeem shares and check whether the function enforces a minimu...; Open a position and close at the same price and check whether it latch...

  3. 3

    Liquidation and close paths for leveraged positions

    Business logic Read the lesson

    Several reports show liquidated positions that cannot be closed, positions that can still be interacted with after liquidation, and leveraged positions that cannot be closed at all. Test the close, liquidate and repay flows on positions in each state to see whether state transitions and collateral release behave correctly. This builds on the liquidation and close findings.

    From the lessons: Liquidation and force repay paths.; Liquidation, repayment and debt takeover flows where front-running can...; Front-run a liquidation with a minimal repayment of the outstanding de...

  4. 4

    Reward accounting in BathBuddy and staking

    Business logic Read the lesson

    Reports show reward accounting errors, lost initial-period rewards, incorrect reward duration extension and a rewards DoS in BathBuddy. Test notifyRewardAmount, vesting and claim flows around period boundaries and with low-decimal reward tokens to see whether accounting stays consistent. This follows the reward accounting findings.

    From the lessons: Yield distribution and reward treasury contracts.; Reward accumulation updates in staking and vault contracts.

  5. 5

    First depositor and share minting on the Compound fork

    Business logic Read the lesson

    A high finding covers the first depositor bug on the unmodified Compound fork, and older reports show first depositor share minting and previewWithdraw share errors. Test deposit, mint and withdraw share maths on a fresh market and after large share burns to see whether rounding favours the depositor. This builds on the share accounting findings.

    From the lessons: Mint or redeem shares and check whether the function enforces a minimu...; Withdraw or redeem from a vault and check whether a slippage bound is...; Trigger an internal outflow and check whether deposited share counters...

  6. 6

    Rounding exploitation across swap and position maths

    Business logic Read the lesson

    Rounding is a recurring technique here, with reports on rounding-error profit and precision loss raising leverage. Test the swap, position and fee calculations with amounts near rounding boundaries and low-decimal tokens to see whether repeated small operations yield risk-free value. This follows the rounding findings.

    From the lessons: Compare the protocol's computed slippage bound against the true expect...; Test the protocol with several ERC20 variants (different decimals, no...

  7. 7

    Slippage and minimum fill enforcement in market and router

    Business logic Read the lesson

    Reports show slippage checked incorrectly in the market, missing minimum sell amounts at make, and router slippage checks that do not hold. Test the buy, sell, make and router swap paths with a user-supplied minimum to see whether the bound is actually enforced. This builds on the slippage findings.

    From the lessons: Check whether every swap, deposit or mint path enforces a user-supplie...; Compare the protocol's computed slippage bound against the true expect...; Set the slippage parameter to a value that passes the check but still...

  8. 8

    Offer cancellation and batch offer edge cases

    Business logic Read the lesson

    Reports show some offers cannot be cancelled, batchOffer and batchRequote create offers as self, and V1 offers break buys due to cancel reverting. Test cancel, requote and batch paths for offers created through different entry points to see whether ownership and cancellation behave correctly. This follows the offer lifecycle findings.

    From the lessons: Open admission and same-price close in a trading protocol.; NFT rental orders, partial offers and payment token handling.

  9. 9

    FeeWrapper ETH refunds and fee recipient handling

    Reports show FeeWrapper failing to refund ETH, low-level calls to codeless accounts succeeding, and reentrancy when the fee recipient is malicious. Test the fee charging and refund paths with ETH and with a contract fee recipient to see whether refunds and state updates are handled safely. This builds on the FeeWrapper findings.

    From the lessons: Functions that make external calls to tokens, native currency or NFTs...; Re-enter through a token callback or a read-only call rather than the...; Re-enter a redemption or swap function through a callback and check wh...

  10. 10

    Market pause and stop controls

    Access control Read the lesson

    Reports show stop and isClosed not pausing functionality, buys not disabled when matching is disabled, and changing matchingEnabled breaking the protocol. Test the pause, stop and matching toggle paths to see whether each control actually blocks the operations it should. This follows the market control findings.

    From the lessons: Two-step admin and ownership transfer functions.; Initialise and setup functions on newly deployed contracts.

  11. 11

    Borrow limit and interest calculation edge cases

    DoS Read the lesson

    Reports show an infinite loop in _borrowLimit, borrow limit ignoring existing collateral, and block.number causing incorrect interest. Test the borrow limit and interest accrual with positions that have no bathToken, with existing collateral, and across block progression to see whether limits and interest stay correct. This builds on the borrow and interest findings.

    From the lessons: Liquidation and force repay paths.; Reward accumulation updates in staking and vault contracts.

  12. 12

    Migration value and price manipulation

    Business logic Read the lesson

    Reports show users receiving less value on migration and migration being exposed to price manipulation. Test the migrator with different bathTokenV1 balances and around price movements to see whether the conversion preserves value. This follows the migration findings.

    From the lessons: Migration permit revocation and reactivation.; Price feeds, pool share weights and Curve or Balancer pool oracles use...

  13. 13

    Token variant handling across deposits and transfers

    Business logic Read the lesson

    Older reports show USDT approval issues, deflationary token deposits failing, and transfer-on-fee accounting inconsistencies. Test deposits, withdrawals and transfers with tokens that reject non-zero approvals, charge fees on transfer, or return no boolean to see which paths break accounting. This builds on the token compatibility findings.

    From the lessons: Deposit a USDT-like token that rejects non-zero-to-non-zero approvals...; Test the protocol with several ERC20 variants (different decimals, no...; Use a fee-on-transfer token as the asset or collateral and check wheth...; Call every transfer and transferFrom path with a token that returns fa...; Use a token whose approve and transfer do not return a boolean and che...

  14. 14

    Router ETH handling and fund custody

    Business logic Read the lesson

    Reports show excess ether not returned, withdrawForETH draining WETH, and router funds being stealable. Test the router ETH and WETH paths, including refunds and swaps with leftover value, to see whether user funds and excess ETH are handled correctly. This follows the router findings.

    From the lessons: Functions that make external calls to tokens, native currency or NFTs...; Swap, deposit, mint, withdrawal and settlement functions in AMMs, vaul...

  15. 15

    Access control on offer and insert entry points

    Access control Read the lesson

    An older report shows missing access control on the offer and insert functions. Test the offer creation and insertion entry points from unprivileged callers to see whether authorisation is enforced and whether offers can be created on behalf of others. This builds on the access control finding.

    From the lessons: Open admission and same-price close in a trading protocol.; Two-step admin and ownership transfer functions.

Public bounties only; many reports disclose without the amount.

ClassReportsPaidMedianHighestIn all
Business logic lesson 55 0 – – $0
Smart contracts lesson 11 0 – – $0
Access control lesson 9 0 – – $0
DoS lesson 7 0 – – $0
Race condition lesson 3 0 – – $0
Crypto lesson 1 0 – – $0

What was fixed

All reports

The newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.