Anti flash loan methods?

Has someone written a huge file I can import to my smart contract to defend against flash loans?
Or is just setting a hard limit of 0.5% of total supply bought per transaction enough to keep flash loaners at bay?

1 Like

Hi @catmoot,

Rather than just flash loans you should consider what any address holding a large amount of tokens could do in your smart contract and ecosystem. This will protect you from the actions of both whales and flash loans.

There isn’t anything specific in OpenZeppelin Contracts for dealing with holders of a large amount of tokens.