Interface
version
Gets the current version.
token
Gets the address of the yield token that this adapter supports.
underlyingToken
Gets the address of the underlying token that the yield token wraps.
price
Gets the number of underlying tokens that a single whole yield token is redeemable for.
wrap
Wraps amount
underlying tokens into the yield token.
Parameters:
Name | Type | Description |
---|---|---|
| uint256 | The amount of the underlying token to wrap. |
| address | The address which will receive the yield tokens. |
Return Values:
Name | Type | Description |
---|---|---|
| uint256 | The amount of yield tokens minted to |
unwrap
Unwraps amount
yield tokens into the underlying token.
Parameters:
Name | Type | Description |
---|---|---|
| uint256 | The amount of yield-tokens to redeem. |
| address | The recipient of the resulting underlying-tokens. |
Return Values:
Name | Type | Description |
---|---|---|
| uint256 | The amount of underlying tokens unwrapped to |
Last updated