Open hats-bug-reporter[bot] opened 4 months ago
The issue suggests that the exit fee is not deducted from the total assets when updating vault totals in the _redeem
function.
Label: invalid
Comment:
The exitFee
is designed to stay as part of the totalAssets
of the specific vault to reward the remaining shareholders with a higher share price. This is an intentional design choice and does not pose a security risk.
Comment on the issue: The exitFee
is intentionally kept as part of the totalAssets
to reward remaining shareholders with a higher share price. This is by design and not a security vulnerability.
Github username: -- Twitter username: -- Submission hash (on-chain): 0xfe48c86ee5fde1eaae0770dab56021baee6c579c2aa94c61a309134d82982c86 Severity: high
Description: Description\ In the
_redeem
function of the EthMultiVault contract, there's a critical issue where the exit fee is not deducted from the total assets when updating the vault totals. This discrepancy can lead to an accounting mismatch between the actual assets in the vault and the recorded total assets, potentially causing fund imbalances and incorrect share price calculations.Attack Scenario\
redeemAtom
orredeemTriple
function to withdraw their shares._redeem
function calculates the assets to be returned to the user, including the exit fee and protocol fee.assetsForReceiver
andprotocolFee
from the total assets, but fails to deduct theexitFee
.Attachments
Revised Code File (Optional)