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
In convertToShares and convertToAssets in AggregateToken.sol, attackers can try depositing / withdrawing a very small amount and potentially drain the vault. We should implement some rounding similar to OpenZeppelin's ERC-4626 functions (like in pUSD.sol) to stop this from happening.
The text was updated successfully, but these errors were encountered:
In
convertToShares
andconvertToAssets
inAggregateToken.sol
, attackers can try depositing / withdrawing a very small amount and potentially drain the vault. We should implement some rounding similar to OpenZeppelin's ERC-4626 functions (like inpUSD.sol
) to stop this from happening.The text was updated successfully, but these errors were encountered: