The _isUnderlying() function in NotionalTradeModule incorrectly returns true for fCash tokens whose asset token is the underlying token, causing mintFCashPosition() and redeemFCashPosition() to call NotionalV2 with useUnderlying=true, which reverts. This makes the module incompatible with such fCash tokens, preventing managers from adding them to sets.
When a user redeems with the option to transfer fCash after maturity, the contract cashes out the fCash into the underlying token and sends that to the receiver instead of transferring fCash. The sender receives no error and believes the fCash transfer succeeded.
The SetToken's issue and redeem hooks call a function that redeems all matured fCash positions, and if any single redemption fails, the whole function reverts. This would block all issuance and redemption of the SetToken, leaving user funds stuck.
The redeem function calculates the amount of assets to return by comparing the receiver's balance before and after burning shares. Because the underlying token is an ERC777, burning shares transfers control to the receiver, who can move tokens out during that callback, making the balance difference smaller and reducing the assets returned.
The vault's previewWithdraw and previewMint functions round down instead of up, contrary to the ERC-4626 standard. This could cause integration problems and potential loss of funds for other protocols that rely on the expected rounding behaviour.
A wrapper contract's address can be precomputed because it is deployed with create2. An attacker can send fCash of the wrong maturity or asset to that address before deployment, so the ERC1155 receiver hook is not called. After deployment, the contract's balance check sees more than one asset and always reverts, making minting impossible.
The wfCashERC4626 contract always calls NotionalV2 with useUnderlying set to true, but for fCash tokens whose asset token is the underlying token, NotionalV2 rejects such calls. As a result, deposit, mint, withdraw and redeem revert for those tokens, making the wrapper unusable for them.
The `_isWrappedFCash` check in the notionalTradeModule uses a try-catch pattern that can consume all remaining gas when the target contract's fallback function does not revert but instead uses up gas. An attacker could cause transactions to fail or waste excessive gas by including a contract like cETH in a set token.
The NotionalTradeModule contract approves the fCash wrapper to spend the SetToken's payment tokens using the maximum send amount, leaving a residual allowance after minting. If the upgradeable fCash wrapper contract is compromised, an attacker could exploit this allowance to withdraw funds from the SetToken contract.
The contract downcasts a user-supplied amount to a smaller integer type without checking, so a value larger than the type's maximum silently overflows. An attacker could pass such a value to cause unexpected behaviour, though the text does not specify the exact consequence.
NX
Notional x Index Coop
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.