IRioLRTAssetRegistry
Functions
initialize
Initializes the asset registry contract.
Parameters
getTVL
Returns the total value of all 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
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
getAssetDepositCap
Returns the asset's current deposit cap.
Parameters
getSupportedAssets
Returns an array of all supported assets.
getAssetStrategies
Returns the EigenLayer strategies for all supported assets.
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
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
Events
AssetAdded
Emitted when a new asset is added.
Parameters
AssetRemoved
Emitted when an asset is removed.
Parameters
AssetDepositCapSet
Emitted when an asset's EigenLayer strategy is set.
Parameters
AssetPriceFeedSet
Emitted when an asset's price feed is set.
Parameters
AssetSharesIncreased
Emitted when the number of EigenLayer shares held for an asset is increased.
Parameters
AssetSharesDecreased
Emitted when the number of EigenLayer shares held for an asset is decreased.
Parameters
UnverifiedValidatorETHBalanceIncreased
Emitted when the unverified validator ETH balance is increased.
Parameters
UnverifiedValidatorETHBalanceDecreased
Emitted when the unverified validator ETH balance is decreased.
Parameters
Errors
ONLY_WITHDRAWAL_QUEUE_OR_DEPOSIT_POOL
Thrown when the caller is not the LRT withdrawal queue or deposit pool.
ASSET_NOT_SUPPORTED
Thrown when attempting an action on an unsupported asset.
Parameters
ASSET_ALREADY_SUPPORTED
Thrown when attempting to add an asset that is already supported.
Parameters
ASSET_HAS_BALANCE
Thrown when attempting to remove an asset with a non-zero balance.
INVALID_ASSET_ADDRESS
Thrown when attempting to add an asset with an invalid address.
INVALID_ASSET_DECIMALS
Thrown when an asset has greater than 18 decimals.
INVALID_STRATEGY
Thrown when a srategy's underlying token does not match the asset.
INVALID_PRICE_FEED_DECIMALS
Thrown when a provided price feed has an unexpected amount of decimals.
INVALID_PRICE_FEED
Thrown when a price feed is provided when not needed, or not provided when required.
Structs
AssetConfig
The configuration used to add a new asset.
AssetInfo
Information about a supported asset.
Last updated