assetRegistry sub-class
The following readme describes all the functions and their parameters exposed by the assetRegistry
class of the KETH SDK.
assetValue function
This function returns the ETH value for a given asset from the following: ETH, dETH, GiantLP, wstETH, rETH, savETH.
Input Parameters
asset: The asset contract address
balance: The asset balance
Using assetValue function
await sdk.assetRegistry.assetValue(asset, balance);
Return Parameter
Returns the asset ETH value