Instadapp / flashloan-aggregator

Flashloan Aggregator on all major chains.

Home Page:https://docs.instadapp.io/flashloan/flashloanAggregator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update resolver

Vaibhav20201 opened this issue · comments

Need to implement this

import {
InstaFlashResolver,
InstaFlashResolver__factory,
} from '../../typechain'

changed from-
import {
InstaFlashloanResolver,
InstaFlashloanResolver__factory,
} from '../../typechain'

as was failing in test!

also getting error here 👍 can you help fix?

$ npm run test:runner

flashloan-aggregator@1.0.0 test:runner
hardhat run scripts/run-tests.ts

No need to generate any newer typings.
? What chain do you want to run tests on? mainnet
? Which file's tests do you want to run? all
No need to generate any newer typings.

FlashLoan
Single token
1) "before each" hook for "Should be able to take flashLoan of a single token from AAVE"

Resolver
1,2,3,4,5,6,7,9,5,5,5,5,5,5
✓ Should be able to return routes info (15391ms)
3,4,5,6,7,5
2,3,4,5,6,7,5
✓ Should be able to return the best route for flashloan (31816ms)
1,2,3,4,5,6,7,9,5,5,5,5,5,5,3,4,5,6,7,5
✓ Should be able to return all the data for flashloan (800ms)

3 passing (56s)
1 failing


  1. FlashLoan
    "before each" hook for "Should be able to take flashLoan of a single token from AAVE":
    Error: VM Exception while processing transaction: reverted with reason string 'Address: low-level delegate call failed'

Thanks for any help: