LiquidityPoolContract Entity
Description
Represents the main contract that manages liquidity pools in Azuro. It handles the funds for bets, calculates TVL (Total Value Locked), and is responsible for storing information about the liquidity state.
Usage
This entity is helpful if you want to manage or display information about the total funds in a liquidity pool, track the number of bets placed, or calculate the current TVL. It's ideal for building dashboards that display liquidity metrics and pool performance over time.
Attributes
Attribute | Type | Description |
---|---|---|
id | ID! | Unique identifier for the liquidity pool. |
chainId | Int! | Blockchain identifier where the pool resides. |
address | String! | On-chain address of the liquidity pool contract. |
cores | [CoreContract!]! | References to associated core contracts. |
coreAddresses | [String!] | List of core contract addresses. |
type | LiquidityPoolContractType! | Type of the liquidity pool, either V1 or V2. |
token | String! | Token used in the pool, such as USDT. |
tokenDecimals | Int! | Decimal precision of the token. |
asset | String! | Asset type, indicating the type of liquidity. |
betsAmount | BigInt! | Total value of bets placed. |
betsCount | BigInt! | Total number of bets. |
wonBetsAmount | BigInt! | Value of bets that won. |
wonBetsCount | BigInt! | Number of bets that won. |
firstCalculatedBlockNumber | BigInt! | Blockchain block number when calculations started. |
lastCalculatedBlockNumber | BigInt! | Block number for the latest calculations. |
daysSinceDeployment | BigInt! | Total days since the pool was deployed. |
depositedAmount | BigInt! | Total value deposited in the pool. |
withdrawnAmount | BigInt! | Total value withdrawn from the pool. |
rawTvl | BigInt! | Raw calculation of the TVL (Total Value Locked). |
tvl | BigDecimal! | Formatted TVL value for display. |
nfts | [LiquidityPoolNft!]! | References to NFTs that represent user positions in the pool. |
liquidityManager | String | Address of the pool's liquidity manager. |
depositedWithStakingAmount | BigInt! | Amount deposited with staking incentives. |
withdrawnWithStakingAmount | BigInt! | Amount withdrawn from staked positions. |