setAssetConfig(address) :
This function allows the governor to set the asset configuration for a given underlying asset. It takes in the address of the underlying asset and a new AssetConfig calldata object containing the new configuration. It then checks that the eToken address in the new configuration matches the eToken address associated with the underlying asset in the underlyingLookup mapping. If the check passes, the new configuration is set and an event is emitted. (autogenerated documentation)
setIRM(address) :
This function sets the interest rate model for a given underlying asset. It first looks up the eToken address associated with the underlying asset, then loads the asset storage and cache. It then calls the internal module associated with the interest rate model, passing in the underlying asset and reset parameters. It then updates the asset storage and cache with the new interest rate model, and logs the asset status. Finally, it emits an event to signal that the interest rate model has been set. (autogenerated documentation)
setPricingConfig(address,uint16,uint32) :
This function allows the governor to set the pricing configuration for a given underlying asset. It takes in the address of the underlying asset, a new pricing type, and a new pricing parameter. It then checks that the underlying asset has been activated and that the new pricing type is valid. It then loads the asset storage and cache for the underlying asset and sets the pricing type and parameter accordingly. If the new pricing type is Chainlink, it also checks that the Chainlink price feed has been initialized. Finally, it emits an event to signal that the pricing configuration has been set. (autogenerated documentation)
setReserveFee(address,uint32) :
This function allows the governor to set the reserve fee for a given underlying asset. It takes in the address of the underlying asset and the new reserve fee as parameters. It first checks that the underlying asset has been activated and that the new reserve fee is within the allowed range. It then loads the asset storage and cache for the underlying asset and sets the reserve fee in both. Finally, it emits an event to signal that the reserve fee has been set. (autogenerated documentation)
convertReserves(address,address) :
This function converts reserves from the underlying asset into the eToken associated with the underlying asset. It is called by the governor and requires that the underlying asset has been activated. It checks that there are sufficient reserves to convert and updates the reserve balance, total balance, and user balance of the eToken. It also checks the liquidity of the recipient and emits an event to log the conversion. (autogenerated documentation)
setChainlinkPriceFeed(address,address) :
This function allows the governor to set a Chainlink Price Feed for a given underlying asset. It takes two parameters: the address of the underlying asset and the address of the Chainlink Aggregator. It first checks that the underlying asset has been activated and that the Chainlink Aggregator address is valid. If these checks pass, it stores the Chainlink Aggregator address in the chainlinkPriceFeedLookup mapping and emits an event to signal that the Chainlink Price Feed has been set. (autogenerated documentation)
getGovernorAdmin() :
This function is a view function that returns the address of the governor admin. The governor admin is the address that is responsible for managing the contract and has the ability to perform certain administrative functions. The function simply returns the address stored in the governorAdmin variable. (autogenerated documentation)