Skip to main content

setPoolState

Pools are initialised by default as RejectSwaps. This lets you deposit funds before the pool is indexed by aggregators.
What each state blocks: Which authority can make which transition:

nominateAuthority / acceptAuthority

Hadron pools have multiple authorities that can each be delegated to different wallets to split the surface area of control. Authority transfer is a two-step process to prevent accidental lockout.
Authority types The pool has three distinct authority roles: Pool Authority (full admin — can do everything), Quoting Authority (can push oracle updates and switch pool to RejectSwaps), and Pauser Authority (can pause and unpause the pool). Each can be delegated to a different wallet using nominate_authority for the relevant role.

closePool

Closes the pool and reclaims rent. Both vaults must be fully empty before calling this.
Drain vaults first Call withdraw with the full vault balance for both token X and token Y before closing. The transaction will fail with error VaultsNotEmpty (code 52) if any balance remains.

Properties

These are available on any Hadron instance after creation: