Skip to main content

FutureWallet

Main abstraction for the FutureWallet contract. Implementation can also depend on custom platform behaviour, with presets made available by the team.

pragma solidity 0.7.6;
interface IFutureWallet {    /* Events */
    event YieldRedeemed(address _user, uint256 _periodIndex);    event WithdrawalsPaused();    event WithdrawalsResumed();
    /**     * @notice redeem the yield of the underlying yield of the FYT held by the sender     * @param _periodIndex the index of the period to redeem the yield from     */    function redeemYield(uint256 _periodIndex) external;
    /**     * @notice return the yield that could be redeemed by an address for a particular period     * @param _periodIndex the index of the corresponding period     * @param _user the FYT holder     * @return the yield that could be redeemed by the token holder for this period     */    function getRedeemableYield(uint256 _periodIndex, address _user) external view returns (uint256);
    /**     * @notice getter for the address of the future corresponding to this future wallet     * @return the address of the future     */    function getFutureVaultAddress() external view returns (address);
    /**     * @notice getter for the address of the IBT corresponding to this future wallet     * @return the address of the IBT     */    function getIBTAddress() external view returns (address);}