For the complete documentation index, see llms.txt. This page is also available as Markdown.

Unripe Facet

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

Call Functions

Chop

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

WIP

Parameter
Type
Description

unripeToken

address

WIP

amount

uint256

WIP

fromMode

From

WIP

toMode

To

WIP

Return Value
Type
Description

underlyingAmount

uint256

WIP

Pick

WIP

Parameter
Type
Description

token

address

WIP

amount

uint256

WIP

proof

bytes32[]

WIP

mode

To

WIP

Add Unripe Token

WIP

Parameter
Type
Description

unripeToken

address

WIP

underlyingToken

address

WIP

root

bytes32

WIP

View Functions

Picked

WIP

Parameter
Type
Description

account

address

WIP

token

address

WIP

Return Type
Description

bool

WIP

Get Underlying

WIP

Parameter
Type
Description

unripeToken

address

WIP

amount

uint256

WIP

Return Value
Type
Description

redeem

uint256

WIP

Get Penalty

WIP

Parameter
Type
Description

unripeToken

address

WIP

Return Value
Type
Description

penalty

uint256

WIP

Get Penalized Underlying

WIP

Parameter
Type
Description

unripeToken

address

WIP

amount

uint256

WIP

Return Value
Type
Description

redeem

uint256

WIP

_Get Penalized Underlying

WIP

Parameter
Type
Description

unripeToken

address

WIP

amount

uint256

WIP

supply

uint256

WIP

Return Value
Type
Description

redeem

uint256

WIP

Is Unripe

WIP

Parameter
Type
Description

unripeToken

address

WIP

Return Value
Type
Description

unripe

bool

WIP

Balance Of Underlying

WIP

Parameter
Type
Description

unripeToken

address

WIP

account

address

WIP

Return Value
Type
Description

underlying

uint256

WIP

Balance Of Penalized Underlying

WIP

Parameter
Type
Description

unripeToken

address

WIP

account

address

WIP

Return Value
Type
Description

underlying

uint256

WIP

Get Recap Funded Percent

WIP

Parameter
Type
Description

unripeToken

address

WIP

Return Value
Type
Description

percent

uint256

WIP

Get Percent Penalty

WIP

Parameter
Type
Description

unripeToken

address

WIP

Return Value
Type
Description

penalty

uint256

WIP

Get Recap Paid Percent

WIP

Return Value
Type
Description

penalty

uint256

WIP

Get Recap Paid Percent Amount

WIP

Parameter
Type
Description

amount

uint256

WIP

Return Value
Type
Description

penalty

uint256

WIP

Get Underlying Per Unripe Token

WIP

Parameter
Type
Description

unripeToken

address

WIP

Return Value
Type
Description

underlyingPerToken

uint256

WIP

Get Total Underlying

WIP

Parameter
Type
Description

unripeToken

address

WIP

Return Value
Type
Description

underlying

uint256

WIP

Get Underlying Token

WIP

Parameter
Type
Description

unripeToken

address

WIP

Return Value
Type
Description

underlyingToken

address

WIP

Events

Add Unripe Token

WIP

Parameter
Type
Description

unripeToken

address

WIP

underlyingToken

address

WIP

merkleRoot

bytes32

WIP

Change Underlying

WIP

Parameter
Type
Description

token

address

WIP

underlying

int256

WIP

Chop

WIP

Parameter
Type
Description

account

address

WIP

token

address

WIP

amount

uint256

WIP

underlying

uint256

WIP

Pick

WIP

Parameter
Type
Description

account

address

WIP

token

address

WIP

amount

uint256

WIP

Last updated