The RedemptionPool is an auxiliary contract to the FyToken. It can mint 1 fyToken in exchange for 1 underlying before maturation and burn 1 fyToken in exchange for 1 underlying after maturation. The RedemptionPool provides access to fyTokens to the market participants who want to obtain fyTokens without taking on debt.
Gas usage is not deterministic due to requisite calls to third-party Erc20 tokens. We provide the table below for guidance only:
Typical Gas Cost
The unique Fintroller associated with this contract.
FintrollerInterface public fintroller;
The unique fyToken associated with this "RedemptionPool".
FyTokenInterface public fyToken;
Total Underlying Supply
The amount of the underlying asset available to be redeemed after maturation.
uint256 public totalUnderlyingSupply;
Pays the token holder the face value at maturation time. Emits a "RedeemFyTokens" event.