Module abstract_os::objects::proxy_asset
source · Expand description
Proxy Asset
Proxy assets are objects that describe an asset and a way to calculate that asset’s value against a base asset.
Details
A proxy asset is composed of two components.
- The
asset
, which is anAssetEntry
and maps to anAssetInfo
. - The
ValueRef
which is an enum that indicates how to calculate the value for that asset.
The base asset is the asset for which value_reference
in None
.
There should only be ONE base asset when configuring your proxy
Structs
- Every ProxyAsset provides a way to determine its value recursively relative to a base asset.
- A proxy asset with unchecked ans_host entry fields.
Enums
- Provides information on how to calculate the value of an asset
- Provides information on how to calculate the value of an asset
Functions
- Composite of form asset1_asset2
- Get the other asset’s name from a composite name ex: asset= “btc” composite = “btc_eth” returns “eth”