• Stars
    star
    154
  • Rank 242,026 (Top 5 %)
  • Language
    Solidity
  • Created about 2 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Create an Aave Flash Loan arbitrage smart contract from scratch in this comprehensive flash loan tutorial from Block Explorer.

Aave Flash Loan Tutorial

Create an Aave Flash Loan arbitrage smart contract from scratch in this comprehensive flash loan tutorial by Block Explorer.

Project repo:

https://github.com/jspruance/aave-flash-loan-tutorial

Aave v3 Flash Loan documentation:

https://docs.aave.com/developers/guides/flash-loans https://docs.aave.com/developers/deployed-contracts/v3-testnet-addresses

DAI-TestnetMintableERC20-Aave token (Goerli):

0xDF1742fE5b0bFc12331D8EAec6b478DfDbD31464

USDC-TestnetMintableERC20-Aave token(Goerli):

0xA2025B15a1757311bfD68cb14eaeFCc237AF5b43

AAVE PoolAddressProvider (Goerli):

0x5E52dEc931FFb32f609681B8438A51c675cc232d

Remix imports:

import {FlashLoanReceiverBase} from "https://github.com/aave/protocol-v2/blob/master/contracts/flashloan/base/FlashLoanReceiverBase.sol"; import {ILendingPool} from "https://github.com/aave/protocol-v2/blob/master/contracts/interfaces/ILendingPool.sol"; import {ILendingPoolAddressesProvider} from "https://github.com/aave/protocol-v2/blob/master/contracts/interfaces/ILendingPoolAddressesProvider.sol"; import {IERC20} from "https://github.com/aave/protocol-v2/blob/master/contracts/dependencies/openzeppelin/contracts/IERC20.sol";

Dex.sol deployed (Goerli):

0xD6e8c479B6B62d8Ce985C0f686D39e96af9424df

Add liquidity to Dex.sol:

USDC 1500 DAI 1500

Approve:

USDC 1000000000 DAI 1200000000000000000000

Request Loan - USDC (6 decimal):

0xA2025B15a1757311bfD68cb14eaeFCc237AF5b43,1000000000 // 1,000 USDC 0xA2025B15a1757311bfD68cb14eaeFCc237AF5b43,1000000 // 1 USDC

More Repositories

1

block-explorer-tutorials

Smart contract source code for my Block Explorer YouTube channel
Solidity
95
star
2

musician-app

NodeJS / React sample app for AWS CI/CD pipeline tutorial
JavaScript
78
star
3

erc20-tutorial-block-explorer

Source code for Ocean Token from the ERC20 Block Explorer tutorial
JavaScript
55
star
4

aws-cognito-tutorial-starter

Starter project for AWS Cognito tutorial (Hexal Energy).
JavaScript
49
star
5

aws-cognito-tutorial-complete

JavaScript
47
star
6

faucet-dapp-starter-code-connect-wallet

Faucet dApp starter code with completed Connect Wallet
JavaScript
22
star
7

uniswap-tutorials

Repo for Block Explorer Uniswap smart contract tutorials.
Solidity
22
star
8

cloudpath-tutorials

Source code for Cloud Path tutorials
JavaScript
20
star
9

smart-contract-security

Smart contract security sample code from for my Block Explorer YouTube channel tutorial series.
Solidity
17
star
10

hexal-serverless-starter

Hexal Energy starter app for 'Create a serverless app' tutorial.
JavaScript
12
star
11

aave-liquidity-pool-tutorial

Learn how to supply tokens to the Aave liquidity pool and earn interest in the form of passive income on your investment.
Solidity
11
star
12

hexal-lambda-functions

Lambda functions for the AWS Serverless tutorial
JavaScript
9
star
13

erc-721-nft-contract-tutorial

Source code for the NFT tutorial on my Block Explorer YouTube channel
JavaScript
7
star
14

hexal-serverless-starter-complete

Finished version of 'Create a Serverless App' tutoriial code (Hexal Energy).
JavaScript
6
star
15

erc4626-vault-tutorial

Source code for the ERC4626 Tokenized Vault smart contract tutorial.
Solidity
6
star
16

qna-bot-complete

JavaScript
4
star
17

pizzabot

A conversation bot for ordering pizza using the Microsoft Bot Framework and LUIS.
JavaScript
4
star
18

javascript-algorithms

A library of common Javascript algorithms
JavaScript
2
star
19

aws-cognito-tutorial

Example code for AWS Cognito client-side integration.
JavaScript
2
star
20

ichctoken

Solidity smart contract for an ERC-20 based cryptocurrency running on the Ethereum blockchain
JavaScript
2
star
21

hello-world-go

Sample Go app for Dome.
Go
1
star
22

jsonobjectformatter

JSON Flattener & Unflattener with ReactJS & Material UI
JavaScript
1
star
23

weatherapp-lambda-functions

AWS Lambda functions for weatherapp
JavaScript
1
star
24

dividendcalculator

Simple tool for calculating stock dividends (Javascript / HTML / CSS)
HTML
1
star
25

jsTestPublishWF

Test github publish workflow
TypeScript
1
star
26

elevator

An elevator programmed in Javascript
JavaScript
1
star
27

python-crash-course-block-explorer

Source code for Python Crash Course - Block Explorer YouTube tutorial
Python
1
star
28

hello-world-python

Hello world app with Python and Flask
HTML
1
star
29

cryptobeetles

An ERC-721 NFT smart contract
JavaScript
1
star
30

ichctokenwebsite

web3 app & Faucet for ICHC Token (ERC-20)
HTML
1
star
31

weatherapp

A mean stack weather application built with MongoDB, Express, Angular 4 and NodeJS and Open Weather Map REST services.
JavaScript
1
star
32

hello-world-python-flask

Sample Python app
Python
1
star