Documentation
Latest fair-20 documentation
Concept
Fair-20 is a novel standard, designed to integrate the equitable distribution principles of inscriptions with the Ethereum Virtual Machine (EVM) ecosystem. This integration aims to introduce liquidity through Wrapped ERC20 tokens, making them compatible with existing DeFi platforms.
Fair Distribution: Contrasting with the instant decision-making of bots in meme token launches, Fair-20 offers a genuinely fair and economical way of token distribution.
Accessibility for All: VC-backed tokens often come with high entry barriers in secondary markets. Fair-20, through inscriptions, democratizes the distribution process.
Integration with EVM: By wrapping inscriptions into ERC20, Fair-20 leverages the security and transparency of the EVM ecosystem, augmenting liquidity.
Key Functions
Deploy: Initialize Fair-20 tokens with specific parameters.
Mint: Generate Fair-20 tokens to be distributed to users.
Transfer: Facilitate the movement of Fair-20 tokens between wallets.
State Management
Deployments: Serve as the initialization step for Fair-20 tokens but do not alter the state.
Mints: Assign tokens to the initial owner of the mint function, marking the beginning of its state.
Transfers: Adjust balances by deducting from the sender and crediting the receiver.
Notes
Ticker Uniqueness: Initial deployment of a ticker secures its exclusivity within the Fair-20 ecosystem, preventing any duplications.
Event Prioritization: For concurrent events, the order of processing is determined by their confirmation sequence in a block, ensuring a systematic and fair transaction sequence.
Fair Distribution Approach: The 'first come, first served' policy, particularly in public minting, upholds equitable access and distribution.
State Changes: Balances are adjusted solely through the mint and transfer functions, ensuring controlled and transparent token movements.
Minting Oversubscription Protocol: If a mint request exceeds the maximum supply, only a proportionate amount is minted. Example: A request to mint 1,000 tokens with a total supply nearing the 21,000,000 cap will result in only 758 tokens being minted.
Decimal Consistency: All Fair-20 tokens adhere to a uniform decimal precision of 18 for standardization.
Data Type Restrictions: Transactions and balances within Fair-20 conform to a
uint128
limitation for efficiency and range balance.Maximum Supply Limit: The upper limit for any token’s supply is governed by the
uint64_max
, preventing overgeneration of tokens.Lower-case Formatting: All elements, including tickers and operational codes, are to be in lower-case to avoid inconsistencies.
Self-Transferred Deployments and Minting: Deployment and mint transactions require the sender and receiver addresses to be identical, empowering the initiator with initial control over new tokens.
Exclusion of Internal Contract Calls: The standard disallows batch minting and other internal contract call-based mintings, favoring direct transaction methods.
Transfer Function Mechanics: During a transfer, the sender's balance is decreased, and the receiver's balance is correspondingly increased. This ensures a clear transfer of token ownership and balance adjustment, maintaining the integrity of the transaction process.
Operations
Deploy fair-20
p
Yes
Protocol: Helps other systems identify and process fair-20 events
op
Yes
Operation: Type of event
tick
Yes
Ticker: 4 letter identifier of the fair-20
max
Yes
Max supply: set max supply of the fair-20
lim
Yes
Mint limit: If letting users mint to themselves, limit per transaction
Mint fair-20
p
Yes
Protocol: Helps other systems identify and process fair-20 events
op
Yes
Operation: Type of event
tick
Yes
Ticker: 4 letter identifier of the fair-20
amt
Yes
Amount to mint: States the amount of the fair-20 to mint. mint Has to be less than "lim" above if stated
Transfer fair-20
p
Yes
Protocol: Helps other systems identify and process fair-20 events
op
Yes
Operation: Type of event
tick
Yes
Ticker: 4 letter identifier of the fair-20
amt
Yes
Amount to transfer: States the amount of the fair-20 to transfer.
Last updated