hard20 pts · first answer countssmart-contract-securitydefirounding
The first depositor attack
In a new ERC-4626 vault, an attacker deposits 1 wei, then transfers 10,000 USDC directly to the vault. A victim then deposits 9,000 USDC. With round-down share math and no protection, what does the victim get?
Discussion 0
Join free to post in the discussion.
Related questions
- Private variables are public dataBlockchain Developer
- Verifying a contract on EtherscanBlockchain Developer
- Sharing a seed phraseBlockchain Developer
- Why use OpenZeppelinBlockchain Developer
- What makes a flash loan possibleBlockchain Developer
- How an AMM sets pricesBlockchain Developer
- What TVL measuresBlockchain Developer
- A stablecoin pool paying 40%Blockchain Developer