The contracts are used to change configuration of the HyperLend markets
Used to list new assets on HyperLend core markets.
ListingsConfigEngine can either be deployed on its own or using the ConfigEngineFactory contract.
- Create & encode the proposal
- Deploy ConfigEngine instance (or use ConfigEngineFactory)
- Make ConfigEngine contract riskAdmin on the pool using PoolConfigurator
- Make ConfigEngine contract listingsAdmin on the pool using PoolConfigurator
- run simulations...
- call executeProposal()
- Remove ConfigEngine from riskAdmin
- Remove ConfigEngine from listingsAdmin
Used to update ACL manager roles.
Used to update supply and borrow caps.
ConfigEngine contract must be riskAdmin
Run simulations: npx hardhat run scripts/simulation.js --network hardhat
(uncomment forking
variable in networks: hardhat
in hardhat.config.js
first to simulate against forked network)
Tests:
npx hardhat test