PoolAddressesProvider
PoolAddressesProvider
Addresses register of the protocol for a particular market. This contract is immutable and the address will never change.
Whenever the `Pool` contract is needed, we recommended you fetch the correct address from the `PoolAddressesProvider` smart contract.
The source code can be found on Github
View Methods
getMarketId
Fetch the market id of the associated Themis 2.0 market.
Return Values
getAddress
Fetch the address of the protocol contract stored at the given id.
Call Params
Return Values
getPool
Fetch the contract of latest pool
Return Values
getPoolConfigurator
Fetch the PoolConfigurator is used for configuration methods, like init reserves or update token implementation etc, of the market.
Return Value
getPriceOracle
function getPriceOracle() external view override returns (address)
Fetch Price Oracle used by the market.
Return Value
getACLManager
Fetch ACLManger that manages the system role of the market
Return Value
getACLAdmin
Fetch ACLAdmin of the market which holds the DEFAULT_ADMIN_ROLE in ACLManager.
Return Value
getPriceOracleSentinel
Return Value
getPoolDataProvider
Fetch address of latest pool data provider.
Return Value
getM1Pool
Fetch the contract of latest M1 pool
Return Values
getM1PoolConfigurator
Fetch the M1 PoolConfigurator is used for configuration methods, like init reserves or update token implementation etc, of the market.
Return Value
getM1CollateralValueCalculator
M1 pool collateral calculation contract for M1 collateral value calculation
Return Value
Write Methods
setMarketId
Call Params
setAddress
Sets the address of protocol contract stored at given id.
Eg. utils.keccak256(utils.toUtf8Bytes("INCENTIVES_CONTROLLER"))
is set to address of INCENTIVES_CONTROLLER
Call Params
setAddressAsProxy
Sets/updates the implementation address of a specific proxied protocol contract.
If there is no proxy registered with the given identifier, it creates the proxy setting newAddress as implementation and calls the initialize() function on the proxy
Call Params
setPoolImpl
Sets/update the implementation of the POOL proxy contract.
Call Params
setPoolConfiguratorImp
Sets/updates the implementation of the POOL_CONFIGURATOR proxy contract.
Call Params
setPriceOracle
Sets/updates address of the PriceOracle contract.
Call Params
setACLAdmin
Sets/updates address of the AclAdmin.
Call Params
setPriceOracleSentinel
Sets/updates address of the Price oracle sentinel.
Call Params
setPoolDataProvider
Sets/updates address of PoolDataProvider.
Call Params
setM1PoolImpl
Sets/update the implementation of the POOL proxy contract.
Call Params
setM1PoolConfiguratorImpl
Sets/updates the implementation of the M1_POOL_CONFIGURATOR proxy contract.
Call Params
Last updated