Hunt prep
Before you test stNXM by EaseDeFi
What 12 disclosed reports say about stNXM by EaseDeFi: 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 | 6 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
| Race condition 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.
-
Missing Tranche Tracking After `extendDeposit()` Causes Temporary Asset Underreporting
The protocol team fixed this issue by adding the new tranche to tokenIdToTranches immediately after extending the deposit.
Disclosed
-
Missing Uniswap V3 cardinality initialization in `StNxmOracle` leads to permanent Denial of Service
The protocol team fixed this issue by increasing the pool's observation cardinality in the constructor.
Disclosed
-
Admin fees are applied to NMX tokens during migration
The update modifier should be changed to only apply admin fees when the staked amount is not zero, preventing fees on pure balance increases like migrations.
Disclosed
-
Uniswap Pool price can be manipulated so stNXM adds liquidity to a super imbalanced pool and loses funds
The protocol team fixed this issue by swapping to place the correct price in the pool before adding liquidity.
Disclosed
-
Wrong price validation in oracle causes early DoS and allows late-stage price manipulation
The protocol team fixed this issue in a pull request.
Disclosed
-
Expired tranche cannot be extended due to lack of token allowance
The StNXM contract should approve the TokenController for the full deposit amount (withdrawn stake plus top-up) when extending an expired tranche.
Disclosed
-
The vault can be drained
The vault should check that it owns the requested token ID before calling depositTo; the protocol team fixed this issue.
Disclosed
-
Owner can steal funds on withdraw by burning wrong Uniswap V3 position liquidity
The protocol team fixed this issue by adding a check that the tokenId belongs to the wNxm/stNxm pool.
Disclosed
-
Owner can steal funds from contract by calling stakeNxm() with fake pool address
The protocol team fixed this issue by ensuring that the pool address is validated in stakeNxm().
Disclosed
-
owner can hide a staked nft via removeTokenIdAtIndex and inflate shares using this to make profit
The protocol team fixed this issue in a commit.
Disclosed
-
pushing same tranchId to the tokenIdToTranches will inflate stakedNxm accounting
The staking function should only add the tranche ID to the list if it is not already present.
Disclosed