Hunt prep
Before you test Revert Lend
What 33 disclosed reports say about Revert Lend: 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
Not written yet for this program. The numbers below are up to date.
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 | 20 | 0 | – | – | $0 |
| DoS lesson | 6 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Race condition lesson | 1 | 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.
-
Risk of reentrancy onERC721Received function to manipulate collateral token configs shares
The mitigation removed the sending of the NFT to avoid reentrancy, and the report also recommends reordering so _cleanupLoan runs after _updateAndCheckCollateral.
Disclosed
-
V3Utils.execute() does not have caller validation, leading to stolen NFT positions from users
The fix adds a check that the caller is the owner of the position NFT (or the V3Utils contract itself), and the project mitigated by refactoring to check caller permission.
Disclosed
-
_getReferencePoolPriceX96() will show incorrect price for negative tick deltas in current implementation cause it doesn’t round up for them
The calculation was fixed by rounding the tick down when the cumulative delta is negative and not evenly divisible by the TWAP period.
Disclosed
-
Owner of a position can prevent liquidation due to the onERC721Received callback
The protocol should not push the NFT to the borrower during liquidation; instead it should approve the borrower to pull it later, so liquidation cannot be blocked.
Disclosed
-
Protocol can be repeatedly gas griefed in AutoRange external call
The report recommends a pull mechanism where the NFT is first sent to a protocol-owned contract and the user later pulls it to themselves.
Disclosed
-
Due to interest rates update method, Interest-Free Loans are possible and the costs of DoS are reduced
Add a small borrow fee (e.g., 0.1% of the borrowed amount) to compensate liquidity providers and deter abuse.
Disclosed
-
Large decimal of referenceToken causes overflow at oracle price calculation
The calculation should be restructured to scale by the decimal difference before multiplying, as recommended by Chainlink, and the text states it was fixed.
Disclosed
-
Lack of safety buffer in _checkLoanIsHealthy could subject users who take out the max loan into a forced liquidation
A safety buffer was added for borrow and decreaseLiquidity so the requested debt must stay below the liquidation threshold.
Disclosed
-
Wrong global lending limit check in _deposit function
The check should convert totalSupply() to assets using _convertToAssets before comparing with globalLendLimit, as in maxDeposit.
Disclosed
-
Some ERC20 can revert on a zero value transfer
The issue was fixed by adding checks to avoid zero-value transfers, as indicated by the mitigation link.
Disclosed
-
Tokens can’t be removed as a collateral without breaking liquidations and other core functions
The protocol was fixed by no longer using the collateral factor as the sole indicator of whether a token is accepted as collateral, instead using a whitelist or similar mechanism.
Disclosed
-
Asymmetric calculation of price difference
The calculation was fixed by using a single symmetric formula that divides the absolute difference by the verified price.
Disclosed
-
Incorrect liquidation fee calculation during underwater liquidation, disincentivizing liquidators to participate
The calculation was fixed so that the liquidation fee is 10% of the debt, as confirmed by the mitigation.
Disclosed
-
AutoRange execution can be front-ran to avoid protocol fee, causing loss for protocol
The operator should pass two different reward values, one for each onlyFees setting, so the reward always matches the executed logic.
Disclosed
-
dailyDebtIncreaseLimitLeft is not updated in liquidate()
The daily debt increase limit should be incremented inside liquidate() by the liquidator cost, and the project says it was fixed.
Disclosed