Closed 0xKitsune closed 1 year ago
I contest this a critical due to its implications around dust levels amounts and could not result in a serious of large insolvency, or less of users funds (discrepancy is at most 1 wei), but as yearn-v3 follows a similar conduct we should as well
Status
Reported
Type
Vulnerability
Severity
Highest
Code Snippet:
Remediation
We recommend rounding up the result of previewMint and previewWithdraw as this example from the solmate library: https://github.com/transmissions11/solmate/blob/main/src/mixins/ERC4626.sol
Description