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
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.
Backed byPositionAction4626.sol#_onWithdraw should withdraw from position... (2025) PositionAction4626.sol#_onWithdraw should withdraw from position... (2025) decreaseLever uses incorrect position address when withdrawing (2025)From the lessons: Vault deposit, withdraw and redeem functions across yield and staking...; Liquidation and force repay paths.
-
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.
Backed byLack of slippage check while interacting with ERC4626 Vault in P... (2025) Lack of Slippage Control in AuraVault::deposit and AuraVault::mi... (2025) PositionActionPendle.sol#_onWithdraw does not have slippage para... (2025)+1 more report
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
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.
Backed byPositionAction20._onWithdraw and PositionPendle20._onWithdraw al... (2025) CDPVault.liquidatePosition() does not scale takeCollateral with... (2025)From the lessons: Test the protocol with several ERC20 variants (different decimals, no...; Contracts that accept arbitrary ERC20 tokens as assets, collateral or...
-
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.
Backed byDiscrepancy between the lastRewadTime and the lastAllPoolUpdate... (2025) Users of a vault can steal other user’s rewards when one vault’s... (2025) Rewards may be spread out among the wrong time period due to the... (2025)From the lessons: Reward accumulation updates in staking and vault contracts.; Yield distribution and reward treasury contracts.
-
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.
Backed byBug in claim allows users who are disqualified to claim their pr... (2025) Usage of lastEligibleStatus can cause user to miss out on reward... (2025) The debt in EligibilityDataProvider::requiredUsdValue() needs to... (2025)From the lessons: Reward accumulation updates in staking and vault contracts.
-
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
Look for permit front-running across transfer helpers
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.
Backed byDOS attack to SwapAction.transferAndSwap() when using an ERC20 p... (2025) Incorrect address is used as spender for ERC20 permit signature... (2025)From the lessons: Token transfer and approval helpers in vaults and strategies.
-
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.
Backed byPositionAction.decreaseLever() fails to consider the loan fee in... (2025) Invalid handling of flash loan fees in PositionAction::onCreditF... (2025) Invalid handling of risdual amount in PositionAction::onCreditFl... (2025)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
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.
Backed byLiquidation doesn’t account for penalty when calculating collate... (2025) It is nearly impossble for Liquidators to use liquidatePosition(... (2025) Malicious borrower can evade full liquidation in CDPVault::liqui... (2025)From the lessons: Liquidation and force repay paths.; Front-run a liquidation with a minimal repayment of the outstanding de...
-
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.
Backed byDebt position interest is compounded while pool interest is simp... (2025) Incorrect calculation of newCumulativeIndex in function calcDecr... (2025) Malicious borrower cycle exploits to inflate interest rates (2025)From the lessons: Reward accumulation updates in staking and vault contracts.; Price feeds, pool share weights and Curve or Balancer pool oracles use...
-
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.
Backed byBalancerOracle::update() can return a stale price (2025) PendleLPOracle::_fetchAndValidate uses Chainlink’s deprecated an... (2025)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
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.
Backed byPoolV3#repayCreditAccount() use incorrect share converting funct... (2025) There is a calculation error in AuraVault::redeem() (2025) Because of the asset: Share 1:1 Conversion , if vault incurs a l... (2025)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
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.
Backed byDirectly sending dust token amount will slow down distribution i... (2025) vestTokens bug in MultiFeeDistribution.sol causes new incentives... (2025) lastRPS could be set to 0 accidentally (2025)From the lessons: Reward accumulation updates in staking and vault contracts.; Yield distribution and reward treasury contracts.
-
14
Check array growth and loop bounds in reward contracts
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.
Backed byHonest users could be permanently DOS’d from withdrawing their v... (2025) An infinite loop in MultiFeeDistribution.sol withdraw (2025)From the lessons: Reward accumulation updates in staking and vault contracts.
-
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.
Backed byMalicious actor can abuse the minimum shares check in StakingLPE... (2025) Because of the asset: Share 1:1 Conversion , if vault incurs a l... (2025)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...
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In 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 reportsThe 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.
-
There is a calculation error in AuraVault::redeem()
The redeem function should first convert the vault shares to assets with previewRedeem and then pass that asset amount to the reward pool.
Disclosed
-
Flashlender.sol#flashLoan() should use mintProfit() to mint fees, as the current implementation may lead to locked up WETH in PoolV3
The flashLoan function should use pool.mintProfit() to mint the fees instead of repayCreditAccount.
Disclosed
-
decreaseLever uses incorrect position address when withdrawing
The withdrawal inside _onDecreaseLever should use the position address from the parameters rather than the contract's own address.
Disclosed
-
An infinite loop in MultiFeeDistribution.sol withdraw
The code should be changed so that the loop index is incremented before continuing when a zero-amount entry is found.
Disclosed
-
CDPVault.liquidatePosition() does not scale takeCollateral with tokenScale ; therefore, it might send the wrong amount of collateral to the liquidator when tokenScale ! = 1 ether
The collateral amount should be scaled from the internal representation to the real token amount using tokenScale before transfer.
Disclosed
-
SwapAction::getSwapToken will return wrong swap token for balancer EXACT_OUT swaps
The helper should return the first asset for EXACT_OUT swaps and the last asset otherwise; the report was confirmed by the project.
Disclosed
-
Lack of Slippage Control in AuraVault::deposit and AuraVault::mint Functions Can Lead to Unexpected Financial Losses for Users
The deposit and mint functions should be modified to accept a minimum shares parameter and a maximum assets parameter, respectively, and revert if the conditions are not met.
Disclosed
-
The debt in EligibilityDataProvider::requiredUsdValue() needs to be converted into USD; otherwise, it is not a correct value comparison
The required USD value should be calculated by first converting the total debt to USD and then applying the required deposit ratio.
Disclosed
-
Rewards may be spread out among the wrong time period due to the way the protocol calculates it
The reward calculation should be changed to use a queue of rewards with individual period finishes, so each reward is distributed only over its intended timeframe.
Disclosed
-
Emission schedule is not followed and can cause unexpected allocation of rewards
The reward calculation should be corrected to use the old rate up to the new schedule's start time and the new rate afterwards.
Disclosed
-
Usage of lastEligibleStatus can cause user to miss out on rewards on manualStopEmissionsFor invocation
The lastEligibleStatus check should be removed, or manualStopEmissionsFor should be handled so the shortcut stays valid.
Disclosed
-
BalancerOracle::update() can return a stale price
The logic should be revisited to fetch a fresh price whenever a new price needs to be fetched.
Disclosed
-
PoolAction::updateLeverJoin wrongly updates assetsIn array, leading to PositionAction4626::_onIncreaseLever to always revert
The pool token should be obtained from the Balancer vault using the pool ID, not assumed to be the collateral's underlying token.
Disclosed
-
INFLATION_PROTECTION_TIME can not be up to a year as intended because it is hardcoded to 1749120350
The deadline should be set in the constructor as the deployment time plus 365 days rather than hardcoded; the project acknowledged the issue but said it would remove and not use the AuraVault.
Disclosed
-
Rewards might be lost due to the error that _updateRewardIndex() might advance lastBalance without advancing index for a token
The fix should calculate the index delta first and then advance lastBalance by that delta multiplied by total shares, so both values move together and rounding loss is eliminated.
Disclosed