hard20 pts · first answer countsdefismart-contract-security
Flash-loaned voting power
A DAO counts votes using token.balanceOf(voter) at the moment of voting. An attacker borrows millions of tokens in a flash loan, votes, and repays in one transaction. What is the standard fix?
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