OpenEndFundClass
Last updated
Was this helpful?
Last updated
Was this helpful?
Inherits: ,
Author: CapSign Inc.
Inherits from IssuedAsset to represent investment fund interests. Uses a global NAV ratio to adjust the "real" quantity of each lot without updating each lot individually.
Updates the global NAV ratio. Example: If NAV doubles, set (num, den) = (2, 1). If it increases by 10%, set (num, den) = (110, 100).
Returns the "real" quantity for a given lot, factoring in the global NAV ratio. E.g., if raw=100, navNumerator=110, navDenominator=100 => real=110.
Example redemption function, letting an owner reduce the quantity of a lot by a certain "real" amount. We convert real -> raw and call a partial transfer to a "null" address or do an "adjustLot" approach. This is a demonstration of how you might handle redemptions.