Pricing

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()arrow-up-right

Inputs

  • shares Number of DTF shares to quote

  • rounding Rounding 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

  • _assets Array of addresses for each asset in the quote

  • _amounts Array of amounts of each asset in the quote

Last updated