jamesbachini / DEX-Arbitrage

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

ProviderError: Out Of Fund #11

Closed AscThilanka closed 2 years ago

AscThilanka commented 2 years ago

Hi, i've my private key and tried to deploy contract to mainnet, and it gives following error. i already have around 140 USD worth ETH in my wallet for gas,

any help would be appreciate !

image

banlieu451 commented 2 years ago

For Aurora you need have >> AURORA TOKEN to pay "gas" to send transaction :)

ETH token is not the base currency of the AURORA BLOCKCHAIN

You can get Aurora when SWAP eth to aurora

AscThilanka commented 2 years ago

@banlieu451 appreciate for your reply, now i've managed to deploy contract but when I try to transfer some funds to contract, metamask giving an "Contract Interaction - fail"

any thoughts on that?

image

image

jamesbachini commented 2 years ago

Yes the contract doesn't have a payable function so you cant send the native asset. You can only send and withdraw erc20 tokens. Most dexes actually use a wrapped version of the native asset so eth-uni pool is actually weth. The native asset eth is wrapped in a erc20 contract known as weth.

Gas fees are still paid from the account in .env in the native asset when interacting with the contract

banlieu451 commented 2 years ago

@banlieu451 appreciate for your reply, now i've managed to deploy contract but when I try to transfer some funds to contract, metamask giving an "Contract Interaction - fail"

any thoughts on that?

image

image

you need run on console the scripts "fund.js" (to send base asset to "(contract deployed)" and script trade.js to run it

Big thanks for the help James ! :)