Token Facet
Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Token Facet handles the transfers of assets outside the Silo.
Call Functions
Transfers
Transfers an asset from a Farmer's Internal and/or External Balance to a Farmer's Internal or External Balance.
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
toMode
To
WIP
token
IERC20
WIP
sender
address
WIP
recipient
address
WIP
amount
uint256
WIP
toMode
To
WIP
Approvals
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Permits
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
ERC-1155
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
WETH
Wraps Ether into WETH.
amount
uint256
The amount of Ether to wrap into WETH. Must be <= msg.value
.
toMode
To
Unwraps WETH into Ether.
amount
uint256
The amount of WETH to unwrap into Ether.
fromMode
From
View Functions
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
Events
account
address
WIP
token
IERC20
WIP
delta
int256
WIP
owner
address
WIP
spender
address
WIP
token
IERC20
WIP
amount
uint256
WIP
Last updated