jamesbachini / DEX-Arbitrage

Example arbitrage trading bot
GNU General Public License v3.0
615 stars 350 forks source link

Recover funds (ETH) from arbContract #34

Closed Devilla closed 1 year ago

Devilla commented 1 year ago

Hi, I'm writing regarding an issue that I have regarding funds(ETH) deposited on arbContract accidentally. Is there any way to recover the funds using hardhat scripts?

jamesbachini commented 1 year ago

You can use the recoverEth() function from the same wallet address you deployed from: https://github.com/jamesbachini/DEX-Arbitrage/blob/e74b085b07e2231a631124b9e7eb33cade250c01/contracts/Arb.sol#L80