convert_mellow_price_d18_to_share_price
Documentation for eth_defi.mellow.vault.convert_mellow_price_d18_to_share_price function.
- convert_mellow_price_d18_to_share_price(price_d18, share_token_decimals, asset_decimals)
Convert Mellow
priceD18to denomination-token assets per share.Mellow Core Vault reports use raw-token accounting:
raw_shares = raw_assets * priceD18 / 1e18. Our historical vault price convention is human-readable denomination-token assets per one human-readable share token.- Parameters
- Returns
Human-readable asset amount per one human-readable share, or
Nonefor a zero oracle price.- Return type