I just kept sending DAI to the contract address until it quit complaining!
Upon compiling the FlashloanReceiver contract, I run into this error:
/.deps/github/mrdavey/ez-flashloan/contracts/aave/FlashLoanReceiverBase.sol:33:13: Warning: Return value of low-level calls not used. _destination.call.value(_amount)(""); ^----------------------------------^
Itās occurring for line 33, or destination.call.value(_amount)("");
What do should I change?
Hi
When i go to
https://testnet.aave.com/faucet
I get the following:
Faucet DAI
These are your transaction details. Make sure to check if this is correct before submitting
Change network to MUMBAI
Youāre currently connected to KOVAN.
I cant get this to workā¦
Any suggestions please
I think you should click into the faucet button, then it will trigger an transaction request on your MetaMask to get DAI from the faucet.
Then i got 10K DAI on my account to start playing with.
https://kovan.etherscan.io/tx/0x36761566c7755292b56383d76b67cc550b37f6d405d08eea3c29962123ec5122
Carlos Z
thank youā¦i tried what you said.
Step 1
I click on
https://testnet.aave.com/faucet
then I get
Step 2
then I click on DAI
and get thisā¦
and the meta mask seem to be in the right network
so where am i please going wrongā¦
You have to select on āMarketsā and the click on market v2 with the K icon on the corner.
Then if you click on āMoreā you can go to the Faucet and claim properly in the faucet.
Carlos Z
Thank you for the help
Basic Flash Loan: - myFirstFlashLoan.sol
After Deploying I get this:
ātransact to MyfirstFlashLoan.flashLoan errored: VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more informationā
I tried with the first function adding payable as the second cannot be changed, in line
25 : bytes calldata _params
turned yellow, then wrote: Unused function parameterā¦
I also tried to reduce the amount.
On MM Kovan balance is 1.9964 Eth & 9900 Dai
Never mind, I retried again & it worked today.
same issue here. love this feedback. on the same boat. also would like to connect with u . I am a trader too
[quote=āCaioVicentino, post:7, topic:16639, full:trueā]
Thanks for the amazing content.
where do we can find some strategies to use on flashloans?
have anyone being able to make an arbitrage?
Any real example of you deploying this strategy on the mainet?
WOuld like to learn from real life example how this can be utilized.
I cloned Thaddeus19ās project FlashLoan3swap into remix and it worked the other day and returned a 1000 DAI profit. I tested it initially and it failed a few times with the āGas Estimation Failedā error and the default gas price was 20 GWEI. I increased the default Gas amount to 25 GWEI and it worked like a charm every time. I cleaned the browser cache recently and lost the original code so I went back to github and installed it again in remix and cannot get past the āGas estimation failedā issueā¦ Not sure what I am doing wrong. I have added 1, 10, 100, 1000 DAI to the input box to the right of the orange āMAKE ARBITRAGEā BUTTON and i get the Gas Estimation error every time. I also tried increasing the default Gas price like I did before and it still doesnāt work. Running it on Kovan with 1.9 Eth and 80,000 DAI in my metamask wallet. Any suggestions? Thanks in advance!
How did you get it to work? I am getting the Gas Estimation Failed error every time i run itā¦
OK, i got Thaddeus19ās Flash Loan Arbitrage to work. I changed KNC to MKR in the sol file and I checked the Eth Gas GWEI price and it is between 32 and 45 GWEI. I added 45 GWEI for gas to the contract via my metamask wallet and it succeeded and returned 10,000 DAI.
I added //1000 DAI = 1000000000000000000000 (21 decimals) to the input box to the right of the orange āMakeArbitrageā button.
I am using remix and Kovan testnet. Good job Thaddeus19! I am going to try to add some conditional liquidity-checking statementsā¦
https://github.com/Thaddeus19/flashloans/blob/master/flashloan3swap
Whatās the next step, mainnet?
Hi, I think i just did not select Injected Web3 at first.
Did you send DAI to your contract?
I performed all three assignments:
- For the first assignment basic flash loan I made 1.05 DAI.
- For the second assignment arbitrage flash loan buying BAT with DAI and selling back BAT to DAI I made 2.55 DAI.
- For the third assignment arbitrage opportunity buying MKR with DAI and selling back MKR to DAI I made 6.27 DAI.
I have to admit I would probably never have learned any Solidity if I havenāt started with the DeFi courses. I did the 101 course and continue now with the 201 Solidity course.
Only now that I know about the state and storage I can understand better Layer2 solutions.
For the project that I am following and I invested https://www.adventuretoken.com/, with my understanding now, I went to Github and try to read the smart contracts of $TWA Adventure token and itās ETF funds, The Luna Fund and Universe Fund - that give exposure to the DeFi ecosystem.
So definetely I am looking to become my own bank. And I understand my investment better now + the DeFi ecosystem.
I started to follow another project right now https://strudel.finance/ - the first trustless bridging protocol bringing BTC liquidity to DeFi. All the possibilities of DeFi are really mind blowing.
I cannot think of other use cases for flash loans, but just to have learned about the usecases they have right now is very interesting to me, besides arbitrage, especially refinancing of CDPs.
I am grateful for all I have learned.
Hi there,
Does anyone keep getting the āGas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
The execution failed due to an exception. Revertedā error when trying to call the makeArbitrage() on Remix? This happens every single time and I cannot seem to get passed this. Deploying the contract works fine, however when interacting with the contract this causes errorsā¦
Im having a weird error
I have sent about 2000 DAI to the contract but still i get gas estimation error
This is the error on Etherscan
Any help for me to move on DeFi 201 would nice, otherwise im stuck with this error and i canāt move on