Hunt prep
Before you test Napier Finance - LST/LRT Integrations
What 11 disclosed reports say about Napier Finance - LST/LRT Integrations: 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 | 7 | 0 | – | – | $0 |
| DoS lesson | 3 | 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.
-
Depositing `stETH` to puffer finance will revert due to wrong implementation of `PufETHAdapter._stake` call
The protocol team fixed this issue by changing the _stake function to deposit WETH instead of stETH.
Disclosed
-
Less rsETH minted than intended in volatile conditions. due to zero slippage when staking ETH to mint rsETH
The adapter should accept a minimum expected rsETH amount and pass it to the deposit function instead of zero.
Disclosed
-
Incorrect checking in `receiveFlashLoan` can cause `swapETHForYt` to fail unexpectedly
The check should compare `repayAmount` against the total ETH sent (`TSLOT_CB_DATA_VALUE`) instead of `remaining`; the protocol team fixed this issue.
Disclosed
-
Adapters revert when 0 shares are minted, making it impossible to deposit under certain conditions
The `_stake()` functions should ensure that at least one share is minted before depositing, or return zero if the stake amount is below a small threshold; the issue was fixed in subsequent pull requests.
Disclosed
-
Slippage on `MetapoolRouter.addLiquidityOneETHKeepYt`
The protocol team fixed this issue by adding a minYT parameter and checking the issued YT amount against it.
Disclosed
-
Missing stake limit validation on `RenzoAdapter._stake`
The issue was fixed by adding a check to cap the stake amount to the remaining TVL limit before depositing.
Disclosed
-
Users can frontrun LSTs/LRTs tokens prices decrease in order to avoid losses
Introduce a withdraw queue to prevent this kind of frontrunning attack.
Disclosed
-
DOS in the claimWithdraw function due to an incorrect check of the lastFinalizedRequestId in the EEtherAdapter.sol
The check should be changed to use `>` instead of `<`, or removed entirely, as was done in the referenced fix.
Disclosed
-
Checking `RSETH_DEPOSIT_POOL.minAmountToDeposit()` in `RsETHAdapter::_stake()` causes Dos
The check should return 0 instead of reverting when the stake amount is below the minimum, allowing the deposit to proceed without staking.
Disclosed
-
Kelp adapter won't allow users to deposit if `getAssetCurrentLimit` returns `0`
The zero-check should be moved after the stake limit is applied, so that a zero stakeAmount returns zero instead of reverting.
Disclosed