The library
- 01OverviewUnison is a Solana exchange that trades in sealed batches. Every order is sealed until its batch opens, and everyone in the batch trades at one price.
- 02SealingAn order is sealed in the browser to a round of the drand beacon that hasn't been published yet. Until that round exists, nobody can read it.
- 03The batchA batch is every order sealed in one window, named by the round it opens on.
- 04ClearingOpposite orders cross at one price; solvers compete for the rest; the program checks the result before a token moves.
- 05Your accountThe program holds every trader's balances per token. Funding, sealing and withdrawing are separate steps.
- 06Fees and the tokenEvery fill pays a fill fee in the token it receives. Every fee and every forfeited seal deposit accrues to the fee PDA, which no key signs for.
- 07SolversA solver opens batches, bids for the net, clears and settles. Anyone with a bond can.
- 08ProgramOne Anchor program, unison.
- 09APIThe read API the site uses. Every route is GET; responses are validated by the same schemas on both sides.