Quipuswap
Searchโ€ฆ
get_total_supply
This on-chain view returns total amount of LP tokens in a specific liquidity pool (pair). Also can return a list of responses for a list of requests.

Call parameters

type token_id_t is nat
โ€‹
type total_supply_req_t is token_id_t
โ€‹
list(total_supply_req_t)
Field
Type
Description
total_supply_req_t
token_id_t (nat)
Pair ID for which you need to get LP tokens total supply

Return type

type token_id_t is nat
โ€‹
type total_supply_req_t is token_id_t
โ€‹
type total_supply_res_t is [@layout:comb] record [
request : total_supply_req_t;
total_supply : nat;
]
โ€‹
list(total_supply_res_t)

total_supply_res_t

Field
Type
Description
request
total_supply_req_t (nat)
Pair ID for which you need to get LP tokens total supply
total_supply
nat
Amount of LP tokens in a liquidity pool (pair)

Usage

๐ŸŒฎ Taquito
const dexCoreAddress = "KT1...";
const params = [0, 1, 15];
const viewCaller = "tz1...";
const dexCore = await tezos.contract.at(dexCoreAddress);
const totalSupply = await dexCore.contract.contractViews.get_total_supply(params).executeView({ viewCaller: viewCaller });

Errors

  • 108 - pair (pool) with the specified token_id not listed.
Copy link
On this page
Call parameters
Return type
Usage
Errors