Skip to content

hyperlendx/core-config-engine

Repository files navigation

Config Engine

The contracts are used to change configuration of the HyperLend markets


ListingsConfigEngine

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

ACLConfigEngine

Used to update ACL manager roles.


CapsConfigEngine

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published