Address Registry
The Address Registry contract is used to manage the mapping of strategies to supported coins. The contract is upgradeable.
Functions
getCoinToStrategy
getCoinToStrategyThis function takes an address u and returns the strategies associated with that coin.
getStrategyWhitelisted
getStrategyWhitelistedThis function takes a strategy s and returns a boolean indicating whether the strategy is whitelisted.
init
initThis function is an initializer function that sets up the contract. It takes three parameters:
_oracleSigner: The address of the oracle signer._vault: The address of the vault._feeOracle: The address of the fee oracle.
addStrategy
addStrategyThis function adds a strategy to the whitelist and associates it with one or more supported coins. The function takes two parameters:
strategy: The strategy to be added.components: An array of addresses of supported coins.
Last updated