diff --git a/core/src/exchanges/suibets/fetcher.ts b/core/src/exchanges/suibets/fetcher.ts index d3bcad39..b4e2c868 100644 --- a/core/src/exchanges/suibets/fetcher.ts +++ b/core/src/exchanges/suibets/fetcher.ts @@ -23,6 +23,12 @@ export interface SuibetsRawOffer { isOnchain?: boolean; onchainOfferId?: string; leagueName?: string; + onchainState?: { + makerRemaining?: string; + totalLiquidity?: string; + filledAmount?: string; + status?: string; + }; } export interface SuibetsRawEvent { diff --git a/core/src/exchanges/suibets/normalizer.ts b/core/src/exchanges/suibets/normalizer.ts index 3885091e..6a9c7e7e 100644 --- a/core/src/exchanges/suibets/normalizer.ts +++ b/core/src/exchanges/suibets/normalizer.ts @@ -12,7 +12,8 @@ import { } from './utils'; function liquidity(offer: SuibetsRawOffer): number { - const remaining = offer.remainingStake ?? offer.creatorStake; + // Prioritize live onchainState.makerRemaining data before falling back to legacy fields + const remaining = offer.onchainState?.makerRemaining ?? offer.remainingStake ?? offer.creatorStake; return mistToSui(remaining); }