Account structure
Config Account
The config account holds various protocol parameters, including:
Quote token - Immutable
Market parameters - Mutable
Fee parameters (protocol fee share, recipient) - Mutable
Config accounts can be created by anyone using the create_config
instruction, but only markets created using the official Token Mill config will be indexed and shown on the website.
Market account
The market account holds all the informations required to perform swaps.
The token created with the market is called base token, or token 0. It will be traded against the quote token, or token 1, set on the config.
Each market is tied to a config account.
Last updated