get_reserves
This on-chain view returns reserves (token A and token B) in a specific liquidity pool (pair). Also can return a list of responses for a list of requests.
Call parameters
Field
Type
Description
reserves_req_t
token_id_t (nat)
Pair ID for which you need to get reserves
Return type
reserves_t
Field
Type
Description
token_a_pool
nat
Amount of token A in the liquidity pool (pair)
token_b_pool
nat
Amount of token B in the liquidity pool (pair)
reserves_res_t
Field
Type
Description
request
reserves_req_t (nat)
Pair ID for which you need to get a reserves
Usage
Errors
108
- pair (pool) with the specifiedtoken_id
not listed.
Last updated