Plankton5165
Regular Member
- Jul 23, 2019
- 211
- 16
I am sick to death of seeking help on how to combine arbitrage with flash loans (I have done so for THREE MONTHS) and still NOT even figuring out how to do it!
I’ve already found these two videos:
The second one even involving this code:
const usdtUsdc500 = await deployPool(TETHER_ADDRESS, USDC_ADDRESS, 500, encodePriceSqrt(1, 1))
const usdtUsdc3000 = await deployPool(TETHER_ADDRESS, USDC_ADDRESS, 3000, encodePriceSqrt(1, 2))
const usdtUsdc10000 = await deployPool(TETHER_ADDRESS, USDC_ADDRESS, 10000, encodePriceSqrt(2, 1))
But the first one doesn’t showcase how to do arbitrage with a flash loan, and every time I’ve tried to initiate a transaction, it says the transaction fails from MetaMask. (I definitely have enough funds to pay for the gas, and the endpoint is right)
And the second one, I don’t think I can get Hardhat on a Chromebook, so I tried running it on Remix IDE, and got seven errors, and I already told the video uploader that, but he has not been responsive.
Also, Equalizer claims to make DeFi flash loans easy. However, they tell me to add the business logic myself. What business logic??? What code do I add as business logic? No one’s answered that either!
I don’t want to have to quit flash loans altogether because of everyone being unresponsive!
I’ve already found these two videos:
The second one even involving this code:
const usdtUsdc500 = await deployPool(TETHER_ADDRESS, USDC_ADDRESS, 500, encodePriceSqrt(1, 1))
const usdtUsdc3000 = await deployPool(TETHER_ADDRESS, USDC_ADDRESS, 3000, encodePriceSqrt(1, 2))
const usdtUsdc10000 = await deployPool(TETHER_ADDRESS, USDC_ADDRESS, 10000, encodePriceSqrt(2, 1))
But the first one doesn’t showcase how to do arbitrage with a flash loan, and every time I’ve tried to initiate a transaction, it says the transaction fails from MetaMask. (I definitely have enough funds to pay for the gas, and the endpoint is right)
And the second one, I don’t think I can get Hardhat on a Chromebook, so I tried running it on Remix IDE, and got seven errors, and I already told the video uploader that, but he has not been responsive.
Also, Equalizer claims to make DeFi flash loans easy. However, they tell me to add the business logic myself. What business logic??? What code do I add as business logic? No one’s answered that either!
I don’t want to have to quit flash loans altogether because of everyone being unresponsive!
