aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Converts raw pool objects and events into the SDK's public pool shapes.

    Index
    • Converts a Sui object view for Pool<L> into a PoolObject.

      The caster derives the LP coin type from the object's generic type, decodes optional coin-decimal bytes, converts on-chain numeric strings to bigint, and pairs every parallel vector by coin type. Balances remain in smallest units while normalizedBalance retains the AMM math scale.

      Parameters

      • suiObject: SuiObjectView

        The object view returned by a Sui object API.

      Returns PoolObject

      The normalized pool object used by Pool and CmmmCalculations.

      When required object fields or parallel vector entries are invalid.