lib-base.fees.redemptionrate
Home > @mosaic/lib-base > Fees > redemptionRate
Fees.redemptionRate() method
Calculate the current redemption rate.
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
redeemedFractionOfSupply | The amount of MoUSD being redeemed divided by the total supply. | |
when | Date | Optional timestamp that can be used to calculate what the redemption rate would decay to at a point of time in the future. |
Returns:
Remarks
By default, the fee is calculated at the time of the latest block. This can be overridden using the when
parameter.
Unlike the borrowing rate, the redemption rate depends on the amount being redeemed. To be more precise, it depends on the fraction of the redeemed amount compared to the total MoUSD supply, which must be passed as a parameter.
To calculate the redemption fee in MoUSD, multiply the redeemed MoUSD amount with the redemption rate.
Example
Last updated