Template smart contracts for accessing flash liquidity from Aave V3 testnet markets. Two variants: simple (borrowing a single token) and batch (multiple tokens).
These templates utilize faucet of Aave testnet markets to mint flashloan premium, allowing an address to call executeFlashloan
and execute a simple borrow and return transaction.
Notes:
PoolAddressesProvider
, Faucet
, and underlying reserve token addressesPoolAddressesProvider
and Faucet
for Aave market to the constructor, addresses here
executeFlashloan
with underlyingToken
and amount
parameters, token addresses here,* To get the underlying token address and available amount, go to the overview page for the reserve you want to borrow:
A
B
/ C
* (10^D
)If an underlying token has a debtCeiling, the max amount available to borrow is min(totalBorrowed
- debtCeiling
, availableLiquidity
).
Aave V3 testnet faucets which are used in templates have a per-tx mint limit of 10000 (in underlying token decimals).