Convert Getters Facet
Last updated
Last updated
Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Convert Getters Facet contains view functions for Convert data.
None.
Estimate the maximum number of tokens that can currently be Converted from tokenIn
to tokenOut
.
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Estimate the amount of tokens received from Converting tokenIn
to tokenOut
given an amount of tokenIn
.
None.
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
tokenIn
address
The whitelisted token to estimate Converting from.
tokenOut
address
The whitelisted token to estimate Converting to.
amountIn
uint256
The maximum number of tokens that can currently be Converted from tokenIn
to tokenOut
.
tokenIn
address
The whitelisted token to estimate Converting from.
tokenOut
address
The whitelisted token to estimate Converting to.
amountOut
uint256
The amount of tokenOut
received from a Conversion from tokenIn
to tokenOut
.