GetReserves
Uniswap Action Plugin - GetReserves
Description
Given an output asset amount and an array of token addresses, calculates all preceding minimum input token amounts
Method
getReserves()
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Uniswap V2 Pair |
Method Parameters
No method parameters required
Returned Values
Name | Plugin Type | Description |
---|---|---|
reserve0 |
| First reserve in the pool |
reserve1 |
| Second reserve in the pool |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap get reserves function here
Last updated