Pricing Assets
Pricing assets is a key component to maintaing the security of the protocol
Last updated
Pricing assets is a key component to maintaing the security of the protocol
Last updated
Below is a list of all collateral assets for which we have oracle provider(s) for, as well as NECT (our stablecoin).
UNIBTC
Chronicle
ylstETH
Chronicle
WBERA
Redstone
PUMPBTC
Redstone + Chronicle
SOLVBTC
Redstone
SOLVBTC.bbn
Redstone
BeraETH
Redstone
Stakestone ETH
Redstone
WETH
Redstone
RSETH
Redstone
NECT
Redstone + Chronicle + eOracle
We currently support 3 Kodiak Islands as collateral. These are WBTC-HONEY, WETH-HONEY and WETH-WBTC. Below is a high level overview of how we price these assets, using our custom for each LP pair:
Combine Token Prices: We adjust each token’s price so they’re measured on the same scale, accounting for differences in decimals for various tokens.
Smooth the Price Difference: We then take the square-root of the price ratio. In everyday terms, this step “smooths out” the raw difference between token values, making it more reflective of how liquidity is actually balanced in the pool.
Value the LP Token: Finally, we determine the LP token’s value by adding up the adjusted values of the tokens in the pool and dividing by the total number of LP tokens. This gives us a per-token price that reflects the combined market value of the underlying assets.
The relevant code snippet for the process above is here:
Coming thooon...