You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Description
In the getRedeemAssetsAndFees function of the EthMultiVault contract, there's an inconsistency in the order of fee calculations. The exit fee is calculated based on the asset amount after the protocol fee has been deducted, rather than on the full asset amount before any fees. This approach may lead to lower exit fees than expected and could potentially be exploited.
Attack Scenario
While not a direct attack vector, this inconsistency can lead to the following issues:
Users redeeming large amounts of shares could pay disproportionately lower exit fees.
The protocol may collect less in exit fees than intended over time.
This could be exploited in combination with other mechanisms to maximize returns at the expense of the protocol or other users.
For example:
A user identifies this discrepancy.
They wait for a situation where the protocol fee is high.
They perform a large redemption, benefiting from a lower exit fee calculated on the post-protocol fee amount.
This could be repeated to consistently pay lower exit fees on large redemptions.
The report suggests that the getRedeemAssetsAndFees function incorrectly calculates fees, leading to lower exit fees than expected.
Label:invalid
Comment:
The sequential fee charging is by design. Exit fees are not collected by the protocol but are intended to increase the share prices for remaining shareholders, benefiting them. The current implementation ensures this design.
Comment on the issue:
The sequential fee charging is by design, with exit fees intended to benefit remaining shareholders by increasing share prices. Therefore, the current implementation is valid.
Github username: --
Twitter username: --
Submission hash (on-chain): 0x45af594e37907786efc19eea5046d4b897518936ba6dc1ee0e011e4b1bfa26dd
Severity: high
Description:
Description
In the
getRedeemAssetsAndFees
function of the EthMultiVault contract, there's an inconsistency in the order of fee calculations. The exit fee is calculated based on the asset amount after the protocol fee has been deducted, rather than on the full asset amount before any fees. This approach may lead to lower exit fees than expected and could potentially be exploited.Attack Scenario
While not a direct attack vector, this inconsistency can lead to the following issues:
For example:
Attachments
Intuition-0x538dbadc50cc87b281cd655f1edbc6ebda02a66a/src/EthMultiVault.sol
Line 1153 in b2e422f
The text was updated successfully, but these errors were encountered: