Hunt prep
Before you test Notional x Index Coop
What 11 disclosed reports say about Notional x Index Coop: 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 | 5 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Access control 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.
-
The logic of _isUnderlying() in NotionalTradeModule is wrong which will cause mintFCashPosition() and redeemFCashPosition() revert on fcash tokens which asset token is underlying token (asset.tokenType == TokenType.NonMintable)
The wrapped fCash contract was updated to override the useUnderlying flag internally when the token is non-mintable, so no changes are needed in NotionalTradeModule.
Disclosed
-
transferfCash does not work as expected
The contract should throw an error if opts.transferfCash is true and maturity has been reached, stating that fCash can no longer be transferred.
Disclosed
-
Users Might Not Be Able To Purchase Or Redeem SetToken
The report recommends making the redemption of matured fCash positions optional or removing it from the hooks, so that a failure does not block issuance and redemption.
Disclosed
-
Rounding Issues In Certain Functions
The rounding behaviour of the vault's functions should be corrected to match ERC-4626, or at minimum the limitation should be documented.
Disclosed
-
fCash of the wrong maturity and asset can be sent to wrapper address before wrapper is deployed
When the contract is created, it should check how many fCash assets it holds and send away any that are not of the correct asset and maturity.
Disclosed
-
deposit() and mint() and _redeemInternal() in wfCashERC4626() will revert for all fcash that asset token is underlying token because they always call _mintInternal() with useUnderlying==True
The wrapper should check whether the fCash token's asset token is the underlying token and set useUnderlying accordingly.
Disclosed
-
IsWrappedFcash check is a gas bomb
The issue was fixed by adding a fixed gas limit to the `getDecodedID` call, as confirmed by the developer.
Disclosed
-
Residual Allowance Might Allow Tokens In SetToken To Be Stolen
The allowance should be approved on-demand and reset to zero after each minting to eliminate any residual allowance.
Disclosed
-
Silent overflow of _fCashAmount
The project should use a safe downcast function that checks the value is within the target type's range before converting.
Disclosed