Closed code423n4 closed 3 years ago
deposit by function is only possible from the vault adapter, user might technically transfer tokens to the vault/vaultAdapter, which will be counted as part of the vault total Assets, but to no direct benefits to the user that transferred the assets
Directly transferring assets to the vault acts like a donation and doesn't have any side effects. Invalid.
Handle
cmichel
Vulnerability details
Vulnerability Details
The
BaseVaultAdaptor
'stotalEstimatedAssets
counts all assets in the vault as part of the assets. This suggests that all vaults must be private vaults that only the Gro protocol is allowed to invest in.Impact
If anyone can invest in the vaults, the total assets estimation might be inflated by unrelated deposits.
Recommended Mitigation Steps
Clarify if the assumption is correct or how it's supposed to work.