The Token Facet handles the transfers of assets outside the Silo.
Transfers an asset from a Farmer's Internal and/or External Balance to a Farmer's Internal or External Balance.
WIP
Wraps Ether into WETH.
Wraps Ether into WETH.
Wraps Ether into WETH.
Wraps Ether into WETH.
Wraps Ether into WETH.
Wraps Ether into WETH.
Wraps Ether into WETH.
Wraps Ether into WETH.
Wraps Ether into WETH.
Wraps Ether into WETH.
Unwraps WETH into Ether.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
token
IERC20
The token to be transferred.
recipient
address
The recipient of the transferred tokens (can be msg.sender
).
amount
uint256
The amount of tokens to be transferred.
fromMode
From
Specifies what balance to receive the tokens from (see Internal Balances).
toMode
To
Specifies what balance to send the tokens to (see Internal Balances).
token
IERC20
WIP
sender
address
WIP
recipient
address
WIP
amount
uint256
WIP
toMode
To
WIP
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Specifies what balance to send the WETH to (see Internal Balances).
amount
uint256
The amount of WETH to unwrap into Ether.
fromMode
From
Specifies what balance to receive the WETH from (see Internal Balances).
account
address
WIP
token
IERC20
WIP
balance
uint256
WIP
account
address
WIP
tokens
IERC20[]
WIP
balances
uint256[]
WIP
account
address
WIP
token
IERC20
WIP
balance
uint256
WIP
account
address
WIP
tokens
IERC20[]
WIP
balances
uint256[]
WIP
account
address
WIP
token
IERC20
WIP
balance
uint256
WIP
account
address
WIP
tokens
IERC20[]
WIP
balances
uint256[]
WIP
account
address
WIP
token
IERC20
WIP
b
Balance
WIP
account
address
WIP
tokens
IERC20[]
WIP
balances
Balance[]
WIP
account
address
WIP
token
IERC20
WIP
delta
int256
WIP
owner
address
WIP
spender
address
WIP
token
IERC20
WIP
amount
uint256
WIP