Pricing
NAV
The Price of a DTF is based on a NAV (Net Asset Value) calculation.
Given a DTF with a basket of n tokens, each with a spot price p , we can calculate the DTF's price as:

Onchain Pricing
The toAssets() function is used to convert a DTF share to its underlying assets. It will return the one-to-many exchange rate of the DTF.
Solidity Code: Folio.toAssets()
Inputs
sharesNumber of DTF shares to quoteroundingRounding method for output values (enum). One of:[0] Floor (Toward negative infinity)
[1] Ceil (Toward positive infinity)
[2] Trunc (Toward zero)
[3] Expand (Away from zero)
Outputs
_assetsArray of addresses for each asset in the quote_amountsArray of amounts of each asset in the quote
Last updated