Is it possible to change oracle price to make test on Aave liquidation?
- undefined
- undefined 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](https://github.com/aave/aave-sandbox/blob/4fa937a2e8b606347cc7620da27de8c73527a75c/helpers/utils.ts#L241) and impersonating the `PoolAdmin` to call `setAssetSources `on the AaveOracle contract