code-423n4 / 2024-04-revert-mitigation-findings

1 stars 1 forks source link

M-14 MitigationConfirmed #100

Open c4-bot-8 opened 2 months ago

c4-bot-8 commented 2 months ago

Lines of code

Vulnerability details

C4 issue

M-14: V3Vault is not ERC-4626 compliant

Comments

Revert's V3Vault complies with EIP-4626. Unfortunately, for the maxDeposit(), maxMint(), maxWithdraw(), and maxRedeem() functions, Revert does not correctly apply the standards set forth in the EIP documentation. These requirements that are missing include:

These requirements were not applied to any of these functions. These missing requirements are due to not accounting for lend/debt increase limits, available balances in the vault, and lend limits.

Other Mitigations Complete

PR #15

Revert mitigates this issue by updating the 4626-compliant functions maxDeposit(), maxMint(), maxWithdraw(), and maxRedeem(). These updates include:

In addition, the following misc change was made:

Anything Else I Should Know

This mitigation introduced a new issue that I posted in a separate ticket. I intentionally left this out and wanted to make note that all other mitigations for this issue are fixed.

c4-judge commented 2 months ago

jhsagd76 marked the issue as nullified

c4-judge commented 2 months ago

jhsagd76 marked the issue as satisfactory

c4-judge commented 2 months ago

jhsagd76 marked the issue as confirmed for report