Skip to main content
Solana venue integration moonit, exported from @eco-incorp/sauce/svm. Generated from the type declarations of @eco-incorp/sauce.

MOONIT_PROGRAM_ID

Variable · @eco-incorp/sauce/svm

moonit

Variable · @eco-incorp/sauce/svm

_referenceBuyForTest

Function · @eco-incorp/sauce/svm BUY: exact gross collateral y in (fee taken off the input) -> tokens out, capped at the curve’s live inventory.

_referenceSellForTest

Function · @eco-incorp/sauce/svm SELL: exact tokens x in (fee taken off the output) -> collateral out. Saturates at the live sold position (never over-sells).

_bakeCoefficientsForTest

Function · @eco-incorp/sauce/svm Derive coefA/coefB’s fixed-point bakes from the CurveAccount’s static fields (exact bigint, no rounding until the single final step).

_isqrtForTest

Function · @eco-incorp/sauce/svm Floor integer square root (mirrors the engine’s SQRT op - same algorithm as obric-v2’s isqrt).

MoonitPoolConfig

Interface · @eco-incorp/sauce/svm