The vault inherits ERC4626 but does not correctly implement or override the totalAssets() function. This can cause the vault to misreport its total underlying assets, leading to incorrect share-to-asset conversions or integration issues with other DeFi protocols expecting accurate ERC4626 behavior.// Root cause in the codebase with @> marks to highlight the relevant section
Likelihood:
Occurs whenever front-end tools or other contracts query totalAssets() expecting the vault to report the real underlying balance.
Occurs whenever deposits/withdrawals are performed, causing totalSupply()/totalAssets() calculations to be inconsistent.
Impact:
Impact 1: Users may receive incorrect share conversions when depositing or withdrawing.
Impact 2: Integrations with other ERC4626‑aware protocols may fail or misbehave, potentially causing financial losses.
The inherited ERC4626 totalAssets() may not correctly return the total underlying assets if the vault has custom deposit/withdraw logic or internal accounting. This breaks share conversions.
Override totalAssets() to return the vault’s actual underlying token balance, ensuring correct ERC4626 share calculations and safe integrations with other DeFi protocols.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.