Skip to content

Hunt prep

Before you test LoopFi

What 61 disclosed reports say about LoopFi: 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

    Check other position actions for the address(this) withdraw mistake

    Access control Read the lesson

    Report 57820 and 57595 show the ERC4626 position action withdrawing from the proxy rather than the supplied position. Test the same withdraw hook in the other position action variants and any new collateral wrappers to see whether they pass the caller's position address through consistently.

    From the lessons: Vault deposit, withdraw and redeem functions across yield and staking...; Liquidation and force repay paths.

  2. 2

    Look for missing slippage bounds in remaining vault entry points

    Business logic Read the lesson

    Several reports flag deposit, mint, redeem and pool exits running without a minimum output. Enumerate every vault and position action path that converts shares or exits a pool and check whether a user-supplied bound is actually read and enforced, not just present in the signature.

    From the lessons: Check whether every swap, deposit or mint path enforces a user-supplie...; 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...; Deposit into a staking or vault function and check whether a slippage...

  3. 3

    Test decimal scaling on every collateral transfer path

    Business logic Read the lesson

    Reports 57823 and 57796 show wad versus native scale mismatches in withdraw and liquidation. Try collateral tokens with decimals other than 18 across deposit, withdraw, liquidation and leverage flows to see whether each path converts with tokenScale before moving tokens.

    From the lessons: Test the protocol with several ERC20 variants (different decimals, no...; Contracts that accept arbitrary ERC20 tokens as assets, collateral or...

  4. 4

    Probe reward accounting for timestamp drift between pools

    Business logic Read the lesson

    Reports 57816, 57807 and 57812 describe per-pool and global timestamps diverging and rewards being spread over the wrong window. Exercise registerRewardDeposit, pool updates and claims in different orders and with pools at different lastRewardTime values to see whether accounting stays consistent.

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

  5. 5

    Check eligibility refresh ordering in claim paths

    Business logic Read the lesson

    Report 57814 shows a stale eligibility status being read before refresh, and 57815 shows a shortcut skipping vault balances. Test claim and eligibility transitions after price moves and after manualStopEmissionsFor to see whether status is refreshed before any payout decision.

    From the lessons: Reward accumulation updates in staking and vault contracts.

  6. 6

    Test pause coverage on all state-changing vault entry points

    Access control Read the lesson

    Report 57800 shows the public modifyCollateralAndDebt bypassing the pause modifier. Enumerate every externally reachable function that changes collateral or debt and check whether the pause guard applies to the shared internal path rather than only the wrappers.

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

  7. 7

    Look for permit front-running across transfer helpers

    DoS Read the lesson

    Report 57799 describes a permit being consumed ahead of the user's transaction, and 57810 shows the wrong spender in permit verification. Test other helpers that combine permit with transfer for nonce handling and correct spender, including when the recipient differs from the contract.

    From the lessons: Token transfer and approval helpers in vaults and strategies.

  8. 8

    Check flash loan fee handling in leverage decrease paths

    Business logic Read the lesson

    Reports 57802, 57593 and 57594 show the decrease leverage flow reverting or mishandling fees and residual amounts. Test decreaseLever with non-zero flash fees, full debt repayment and auxiliary swaps to see whether the loan amount and repayment reserve the fee correctly.

    From the lessons: Flash loan entry points and their interaction with frozen pools and ut...; Re-enter borrower operations or a flash loan path and check whether fu...

  9. 9

    Probe liquidation maths for penalty and bad debt handling

    Business logic Read the lesson

    Reports 57772, 57781, 57776 and 57803 show penalty, exact repayment and loss calculations going wrong. Test partial and full liquidations, self-liquidation and bad debt paths with interest accrued to see whether collateral given and loss recorded match the intended formulas.

    From the lessons: Liquidation and force repay paths.; Front-run a liquidation with a minimal repayment of the outstanding de...

  10. 10

    Test interest index consistency between debt and pool

    Business logic Read the lesson

    Reports 57780, 57801 and 57777 describe compounding versus simple interest and index updates diverging. Exercise borrow, repay and zero-amount updates over long periods and compare position interest with pool expected liquidity to see whether the two stay aligned.

    From the lessons: Reward accumulation updates in staking and vault contracts.; Price feeds, pool share weights and Curve or Balancer pool oracles use...

  11. 11

    Check oracle staleness and deprecated feed fields

    Business logic Read the lesson

    Reports 57813 and 57794 show stale safe prices and use of a deprecated Chainlink field. Test the oracle update path after the update window lapses and check how each price consumer validates round data, including Balancer and Pendle pool oracles.

    From the lessons: Check whether the oracle can return a stale price or a deprecated pool...; Price feeds, pool share weights and Curve or Balancer pool oracles use...

  12. 12

    Look for share conversion errors in pool repay and redeem

    Business logic Read the lesson

    Reports 57811 and 57775 show the wrong conversion function or share amount being used. Test repayCreditAccount and redeem paths where the vault ratio is not 1:1 to see whether shares are converted with the correct internal rate before profit, loss or payout is computed.

    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...

  13. 13

    Probe reward notification for balance-difference abuse

    Business logic Read the lesson

    Reports 57785 and 57778 show direct token transfers and vestTokens resetting or stretching emissions. Test whether any unprivileged claim or notify path treats an unexpected balance increase as a fresh reward, and whether rewardPerTokenStored is updated before new incentives are added.

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

  14. 14

    Check array growth and loop bounds in reward contracts

    DoS Read the lesson

    Reports 57805 and 57784 show unbounded earnings arrays and a loop that fails to advance. Test claim and withdraw with many small entries and zero-amount entries to see whether iteration is bounded and whether anyone can grow another user's array.

    From the lessons: Reward accumulation updates in staking and vault contracts.

  15. 15

    Test minimum share and donation manipulation in staking vaults

    Business logic Read the lesson

    Report 57795 shows the minimum shares check being abused to block the last withdrawal. Test deposit and withdraw sequences with tiny mints and direct token donations to see whether the supply floor can be forced and whether the first depositor is protected.

    From the lessons: Mint or redeem shares and check whether the function enforces a minimu...; Deposit into a staking or vault function and check whether a slippage...; Trigger an internal outflow and check whether deposited share counters...

Public bounties only; many reports disclose without the amount.

ClassReportsPaidMedianHighestIn all
Business logic lesson 47 0 – – $0
DoS lesson 8 0 – – $0
Access control lesson 2 0 – – $0
Smart contracts lesson 2 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.