Skip to main content

Total Fees Collected

Queries the total amount of fees collected by the specifeid VLP.

query Vlp($contract: String, $pair: PairInput) {
vlp(contract: $contract, pair: $pair) {
total_fees_collected {
lp_fees {
totals {
denom
amount
}
}
euclid_fees {
totals {
denom
amount
}
}
}
}
}

Example​

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Vlp($contract: String!) {\n  vlp(contract: $contract) {\n    total_fees_collected {\n      lp_fees {\n        totals {\n          denom\n          amount\n        }\n      }\n      euclid_fees {\n        totals {\n          denom\n          amount\n        }\n      }\n    }\n  }\n}","variables":{"contract":"euclid1y2t7uplrund64g3qc034j7pvfnq7udfqck6k5hxnq7gxtdm30zzsxuk8v9"}}'

Open in Playground

Arguments​

ArgumentTypeDescription
contractStringThe contract address of the VLP. Required if pair is not provided.
pairPairInputThe pair of tokens belonging to the VLP. Required if contract is not provided.

Return Fields​

FieldTypeDescription
lp_feesLpFeesThe total fees collected by liquidity providers.
euclid_feesEuclidFeesThe total fees collected by Euclid protocol.

LpFees​

FieldTypeDescription
denomStringThe denomination of the fee.
amountStringThe total amount of fees in that denomination.

EuclidFees​

FieldTypeDescription
denomStringThe denomination of the fee.
amountStringThe total amount of fees in that denomination.