RioLRTAssetRegistry
Inherits: IRioLRTAssetRegistry, OwnableUpgradeable, UUPSUpgradeable, RioLRTCore
State Variables
priceFeedDecimals
The number of decimals that all asset price feeds must use.
priceScale
The price scale used for all assets (max of 18 decimals).
supportedAssets
All supported assets.
assetInfo
Information about a supported asset.
ethBalanceInUnverifiedValidators
The amount of ETH held in unverified validators.
Functions
onlyWithdrawalQueueOrDepositPool
Require that the caller is the withdrawal queue or deposit pool.
constructor
Parameters
initialize
Initializes the asset registry contract.
Parameters
getTVL
Returns the total value of all underlying assets in the unit of account.
getTVLForAsset
Returns the total value of the underlying asset in the unit of account.
Parameters
getTotalBalanceForAsset
Returns the total balance of the asset, including the deposit pool and EigenLayer.
Parameters
getETHBalanceInEigenLayer
Returns the ETH balance held in EigenLayer. This includes the ETH held in unverified validators, EigenPod shares, and ETH that's queued for withdrawal.
isSupportedAsset
Checks if a given asset is supported.
Parameters
getAssetInfoByAddress
Returns information about an asset.
Parameters
getAssetStrategy
Returns the asset's EigenLayer strategy.
Parameters
getAssetSharesHeld
Returns the amount of EigenLayer shares held for an asset.
Parameters
getAssetPriceFeed
Returns the asset's current price feed.
Parameters
getAssetDepositCap
Returns the asset's current deposit cap.
Parameters
getAssetDecimals
Returns the asset's decimal precision.
Parameters
getAssetPrice
Returns the asset's current price.
Parameters
getSupportedAssets
Returns an array of all supported assets.
getAssetStrategies
Returns the EigenLayer strategies for all supported assets.
convertToUnitOfAccountFromAsset
Converts an asset amount to its equivalent value in the unit of account. The unit of account is the price feed's quote asset.
Parameters
convertFromUnitOfAccountToAsset
Converts the unit of account value to its equivalent in the asset. The unit of account is the price feed's quote asset.
Parameters
convertToSharesFromAsset
Converts an amount of an asset to the equivalent amount of EigenLayer shares.
Parameters
convertFromSharesToAsset
Converts an amount of EigenLayer shares to the equivalent amount of an asset.
Parameters
getPrice
Get the current price from the provided price feed. This function performs no checks on the price feed. Its output should not be trusted unless the price feed parameter is known and trusted.
Parameters
addAsset
Adds a new underlying asset to the liquid restaking token.
Parameters
removeAsset
Removes an underlying asset from the liquid restaking token.
Parameters
forceRemoveAsset
Force removes an underlying asset from the liquid restaking token regardless of its balance.
Parameters
setAssetDepositCap
Sets the asset's deposit cap.
Parameters
setAssetPriceFeed
Sets the asset's price feed.
Parameters
increaseSharesHeldForAsset
Increases the number of EigenLayer shares held for an asset.
Parameters
decreaseSharesHeldForAsset
Decreases the number of EigenLayer shares held for an asset.
Parameters
increaseUnverifiedValidatorETHBalance
Increases the unverified validator ETH balance.
Parameters
decreaseUnverifiedValidatorETHBalance
Decreases the unverified validator ETH balance.
Parameters
_addAsset
Adds a new underlying asset to the liquid restaking token.
Parameters
_removeAsset
Removes an underlying asset from the liquid restaking token.
Parameters
_findAssetIndex
Returns the index of the asset in the supported assets array.
Parameters
_normalizeDecimals
Normalizes an amount from one decimal precision to another.
Parameters
_authorizeUpgrade
Allows the owner to upgrade the asset registry implementation.
Parameters
Last updated