How can I manipulate asset prices in a test/forked environment to test out a liquidation contract?
- Aave liquidation Aave
Expert
How can I manipulate asset prices in a test/forked environment to test out an Aave liquidation contract?
Answers 1
These are the steps to update an asset oracle:
- Deploy a mock oracle with the new price passed by constructor
- Call to AaveOracle contract to the method
setAssetSources
with the underlying asset address and the new MockAggregator contract address;
*1. Mock aggregator code;
*2. Method setAssetSouces
at Aave Oracle;