How can a DEX protect itself against flash loan attacks?
I've seen this code inside a function:
require(msg.sender == tx.origin, "probably a flash loan tx")
Is it effective?
Are there other ways?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityHow can a DEX protect itself against flash loan attacks?
I've seen this code inside a function:
require(msg.sender == tx.origin, "probably a flash loan tx")
Is it effective?
Are there other ways?