Unripe Facet

The Unripe Facet handles logic for the vesting of Unripe assets.

Call Functions

function chop(
    address unripeToken,
    uint256 amount,
    LibTransfer.From fromMode,
    LibTransfer.To toMode
) external payable nonReentrant returns (uint256 underlyingAmount);

WIP

function pick(
    address token,
    uint256 amount,
    bytes32[] memory proof,
    LibTransfer.To mode
) external payable nonReentrant;

WIP

function addUnripeToken(
    address unripeToken,
    address underlyingToken,
    bytes32 root
) external payable nonReentrant;

WIP

View Functions

function picked(address account, address token)
    public
    view
    returns (bool);

WIP

function getUnderlying(address unripeToken, uint256 amount)
    public
    view
    returns (uint256 redeem);

WIP

function getPenalty(address unripeToken)
    external
    view
    returns (uint256 penalty);

WIP

function getPenalizedUnderlying(address unripeToken, uint256 amount)
    public
    view
    returns (uint256 redeem);

WIP

function _getPenalizedUnderlying(address unripeToken, uint256 amount, uint256 supply)
    public
    view
    returns (uint256 redeem);

WIP

function isUnripe(address unripeToken) public view returns (bool unripe);

WIP

function balanceOfUnderlying(address unripeToken, address account)
    external
    view
    returns (uint256 underlying);

WIP

function balanceOfPenalizedUnderlying(address unripeToken, address account)
    external
    view
    returns (uint256 underlying);

WIP

function getRecapFundedPercent(address unripeToken)
    public
    view
    returns (uint256 percent);

WIP

function getPercentPenalty(address unripeToken)
    external
    view
    returns (uint256 penalty);

WIP

function getRecapPaidPercent() external view returns (uint256 penalty);

WIP

function getRecapPaidPercentAmount(uint256 amount)
    private
    view
    returns (uint256 penalty);

WIP

function getUnderlyingPerUnripeToken(address unripeToken)
    external
    view
    returns (uint256 underlyingPerToken);

WIP

function getTotalUnderlying(address unripeToken)
    external
    view
    returns (uint256 underlying);

WIP

function getUnderlyingToken(address unripeToken)
    external
    view
    returns (address underlyingToken)

WIP

Events

event AddUnripeToken(
    address indexed unripeToken,
    address indexed underlyingToken,
    bytes32 merkleRoot
);

WIP

event ChangeUnderlying(address indexed token, int256 underlying);

WIP

event Chop(
    address indexed account,
    address indexed token,
    uint256 amount,
    uint256 underlying
);

WIP

event Pick(
    address indexed account,
    address indexed token,
    uint256 amount
);

WIP

Last updated