Search Apps Documentation Source Content File Folder Download Copy Actions Download

README.md

1.49 Kb ยท 73 lines

GNS

GnoSwap governance and utility token.

Overview

GNS is the native governance token of GnoSwap, featuring a deflationary emission schedule with halvings every 2 years over 12 years total.

Token Economics

  • Symbol: GNS
  • Decimals: 6
  • Max Supply: 1,000,000,000 GNS
  • Initial Mint: 100,000,000 GNS
  • Total Emission: 900,000,000 GNS over 12 years

Emission Schedule

Years Annual Emission Rate
1-2 225,000,000 100%
3-4 112,500,000 50%
5-6 56,250,000 25%
7-8 28,125,000 12.5%
9-12 14,062,500 6.25%

Core Functions

Transfer

Transfers tokens between addresses.

TransferFrom

Transfers with allowance.

Approve

Approves spending allowance.

InitEmissionState

Initializes the emission schedule with start height and timestamp. Sets up the 12-year emission schedule with halving periods. Only callable by emission contract.

MintGns

Mints new tokens per emission schedule. Only callable by emission contract. Calculates tokens to mint based on elapsed time and updates halving year state.

Burn

Burns tokens from supply.

Usage

1// Transfer tokens
2Transfer(to, amount)
3
4// Approve and transfer
5Approve(spender, amount)
6TransferFrom(from, to, amount)
7
8// Mint per emission schedule (called by emission contract)
9MintGns(recipientAddress)

Distribution

See emission contract for distribution details.