Is it possible to change oracle price to make test on Aave liquidation?

  • Aave Protocol
  • Aave liquidation
  • Aave
Expert

Is it possible to change oracle price to make test on Aave liquidation. If yes how?

I'm trying with hardhat to impersonateAccount without success someone has a sample code or something?

Answers 1

You can change the oracle in a fork environment by using the aave-sandbox and impersonating the PoolAdmin to call setAssetSources on the AaveOracle contract