Skip to main content
Flash loan aggregator that routes across Aave, Maker, Balancer and other sources.

What it offers

  • getRoutes: Query available flash loan routes and their IDs
  • flashLoan: Execute a flash loan through a route

Notes

  • Aggregates flash loans from: Aave V2/V3, Maker, Balancer, Compound, and others
  • Each route has a different fee structure - use getRoutes to find available options
  • route parameter selects which underlying protocol to borrow from
  • Callback pattern: your contract must implement the receiver interface to repay
  • Flash loans must be repaid within the same transaction (atomic)

Its names in a program

On Ethereum, Instadapp is a namespace: its contracts need no import.

Deployments

ABI

FlashAggregatorABI

import FlashAggregatorABI from "./protocols/instadapp/FlashAggregatorABI.json"; Speaks for: flashloanAggregator.
  • flashLoan(address[] tokens, uint256[] amounts, uint256 route, bytes data, bytes extraData)
  • getRoutes() pure returns (uint16[] routes)

Next steps