calculate_settlement_share_price
Documentation for eth_defi.tokenised_fund.securitize.settlement.calculate_settlement_share_price function.
- calculate_settlement_share_price(nav_price_wad, feed)
Convert a deposit settlement price to fund NAV/share.
The settler back-computes
navPricefrom each generation’s USDC total and its share amount rounded to 0.001 shares, so the raw value carries rounding noise. Rounding half-up to the fund’s published precision removes the noise and reproduces the published NAV.Example:
61.7224302451 * 0.98 = 60.48798...becomes60.49.- Parameters
nav_price_wad (int) –
navPricefromDepositGenerationFulfilled, with 18 decimals.feed (eth_defi.tokenised_fund.securitize.settlement.SecuritizeSettlementFeed) – Reviewed settlement feed with the fee and NAV precision.
- Returns
Fund NAV/share in USD.
- Return type