Skip to main content
Install the Hadron package

Initializing a pool

Initialising a hadron pool gives you your own propAMM instance.
With default parameters the CurvePrefabs account is ~15 KB, so two allocate instructions are returned (Solana’s single-instruction realloc limit is 10 KB). Send the allocates first, then the initialize.

setPoolState

Pools are initialised by default as Reject Swaps. This is done to deposit funds to prevent indexing from aggregators

Depositing Funds

Withdraw

Build a withdraw instruction.