Hunt prep
Before you test Napier
What 17 disclosed reports say about Napier: 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 | 9 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
YT holder are unable to claim their interest
The sponsor suggested minting some shares in advance to prevent the inflation attack, but the report recommends ensuring YT holders can claim accrued interest regardless of max scale.
Disclosed
-
LP Tokens always valued at 3 PTs
The AMM should value the LP tokens based on their current value, using the virtual price and other information to derive the current value for math operations.
Disclosed
-
Users are unable to collect their yield if tranche is paused
The recommendation is to allow users to collect yield even when the system is paused.
Disclosed
-
`withdraw` function does not comply with ERC5095
The withdraw function was updated to send exactly the requested amount of underlying tokens, and the protocol team fixed this issue.
Disclosed
-
SFrxETHAdapter redemptionQueue waiting period can DOS adapter functions
The recommendation is to add a function allowing the rebalancer to call earlyBurnRedemptionTicketNft() in FraxEtherRedemptionQueue.sol for an immediate withdrawal with a 0.5% fee.
Disclosed
-
Benign esfrxETH holders incur more loss than expected
The report recommends imposing a fee on deposits and withdrawals to discourage this behaviour; the sponsor also says withdrawal requests will be submitted via a private RPC.
Disclosed
-
Users unable to withdraw their funds due to FRAX admin action
The protocol team and users should be made aware of this risk and a contingency plan should be developed.
Disclosed
-
Victim's fund can be stolen due to rounding error and exchange rate manipulation
The protocol should mint a small amount of shares to a dead address during deployment and avoid using balanceOf by tracking total assets internally.
Disclosed
-
Lack of slippage control for `issue` function
The protocol team fixed this issue by implementing slippage control that allows users to revert if the amount of PT/YT received is less than expected.
Disclosed
-
Napier pool owner can unfairly increase protocol fees on swaps to earn more revenue
The recommendation is to introduce a delay in fee updates so users receive the fees they expect.
Disclosed
-
Anyone can convert someone's unclaimed yield to PT + YT
The protocol team fixed this issue by preventing anyone from issuing PT and YT on behalf of someone else's account.
Disclosed
-
Permissioned rebalancing functions leading to loss of assets
The minimum targetBufferPercentage should be set to a higher value such as 5% or 10%, and the requestWithdrawal function should be made permissionless so anyone can replenish the buffer.
Disclosed
-
`swapUnderlyingForYt` revert due to rounding issues
The issue was fixed by performing round-up division when computing uDepositNoFee and uDeposit, as per the recommendation.
Disclosed
-
Unable to deposit to Tranche/Adaptor under certain conditions
The issue was fixed by short-circuiting the _stake function to return zero immediately if stakeAmount is zero.
Disclosed
-
FRAX admin can adjust fee rate to harm Napier and its users
The protocol team and users should be made aware of the risk and a contingency plan should be developed.
Disclosed