poolState.quoteReserve
state in a DBC pool.nextSqrtPrice
in the swap CPI logs.get_quote_token_from_sqrt_price
functiongetQuoteReserveFromNextSqrtPrice
function in the DBC TypeScript SDKBaseFeeMode
can only be enums 0, 1, or 2.poolState.activationType
.
poolState.activationType == 0
, then numberOfPeriod
and periodFrequency
is calculated in SLOT == 400ms
poolState.activationType == 1
, then numberOfPeriod
and periodFrequency
is calculated in SECONDS == 1000ms
TokenAmountIn
OR TokenAmountOut
.
The correct way is to fetch the Swap CPI logs from the Swap transaction.
collectFeeMode
, you can base it all on the CPI logs:
getPoolCurveProgress == 100%
, then check migrationProgress
and isMigrated
status form the DBC pool state.