setPoolState
Pools are initialised by default asRejectSwaps. This lets you deposit funds before the pool is indexed by aggregators.
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 toRejectSwaps), and Pauser Authority (can pause and unpause the pool). Each can be delegated to a different wallet usingnominate_authorityfor the relevant role.
closePool
Closes the pool and reclaims rent. Both vaults must be fully empty before calling this.Drain vaults first Callwithdrawwith the full vault balance for both token X and token Y before closing. The transaction will fail with errorVaultsNotEmpty(code 52) if any balance remains.
Properties
These are available on anyHadron instance after creation:
.png?fit=max&auto=format&n=pH37fL0GL14scVCH&q=85&s=5749b485c8c5b2386a4cca404e97d6be)