Quantcast
Channel: Contract got hacked, what's wrong with it? - Ethereum Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by shadow for Contract got hacked, what's wrong with it?

function arbswap(IAtlas.SwapData calldata swapdata) external returns (uint) { //require (whitelist[msg.sender] == true, "uauth"); require (swapdata.tokensIn[0] ==...

View Article


Contract got hacked, what's wrong with it?

My Contract got hacked, and I cannot figure out why.Happened on Base. Hacker deployed a contract, then called their contract, which called my contract, and extracted tokens from my contract. But...

View Article

Answer by EthanOK for Contract got hacked, what's wrong with it?

Can you show the code for the IAtlas.SwapData struct? I'm trying to hack the Atlas contract using foundry.

View Article
Browsing latest articles
Browse All 3 View Live