The rulebook.

How the Ethereum mainnet contracts work, from a swap to an NFT reward claim.

LIVE ON ETHEREUM MAINNET / CODE NOT AUDITED

01 / GETTING STARTED

Use the protocol

  1. Use an Ethereum mainnet wallet on the Trade page to buy or sell UNIK. Enter an amount and review the quote and minimum received before confirming.
  2. Each qualifying buy of at least 100 million UNIK in one pool-manager withdrawal mints one NFT per full 100 million. See all current tokens on the NFTs page.
  3. Connect the wallet that owns an NFT on the Rewards page. All of its NFTs appear with their Rainbow and claimable ETH. Only the owner can claim ETH.
  4. If an administrator-listed market exists, the owner or delegate can use the Perps page with the same NFT to open or reduce a simulated position.

Reading the site needs no wallet. Transactions need an injected Ethereum wallet and gas on mainnet.

02 / TRADING

The UNIK pool

UNIK has a fixed initial supply of 100 billion. The official ETH / UNIK pool is initialized by the liquidity locker. The Hook permits swaps, but only the locker can add liquidity. The Hook permits zero-liquidity fee collection by the locker and rejects principal removal. The locker has no withdrawal path.

  • The site uses the bundled router for exact-input buys and sells. A buy pays a specified ETH amount; a sell pays a specified UNIK amount. The form shows an estimated output and applies your selected slippage limit as an on-chain minimum received.
  • The quote can change before inclusion in a block. A transaction can revert if its minimum output is missed. A sell may first require a separate UNIK approval for the entered amount.
  • Other routers may use the official pool, including exact-output swaps. The fixed LP fee accrues to the locked position. On a sell, the Hook converts accrued UNIK fees into ETH in the same pool and transaction; this conversion adds price impact. The bundled buy router also calls distributeEthFees() to distribute collected ETH.
  • A bundled buy must fill fully. Very large buys may run out of gas because each qualifying 100 million UNIK creates another NFT.

03 / FEES & REWARDS

How ETH fees flow

The official pool charges a fixed 1.5% LP fee on the input currency. The locked position accrues ETH on buys and UNIK on sells. The Hook collects the fees, converts accrued UNIK into ETH on a sell, and distributes collected ETH: 90% goes to NFT account rewards, 5% becomes claimable by the treasury, and the remainder goes to the buyback reserve. For example, a realized 1 ETH fee allocates 0.9 ETH to NFT rewards, 0.05 ETH to treasury and 0.05 ETH to buyback.

Reward shares depend on each live NFT's weight. An NFT without positions gains one Rainbow per Ethereum block; its Rainbow is its reward weight. An NFT with positions uses its last processed equity, including unrealized profit or loss, as its cached weight. A swap checks at most 20 active accounts in rotation, so the displayed weight of every active account is not refreshed on every swap.

Unclaimed ETH stays assigned to the NFT account. The current NFT owner can press Claim ETH in Rewards; ETH is sent to that owner. A delegate can manage positions but cannot claim. The treasury claims its allocation separately. Buyback ETH is spent and purchased UNIK burned only when the buyback owner executes a separate transaction.

04 / NFT ACCOUNTS

Backing, ownership and art

Each NFT account requires 100 million UNIK of backing in its owner's token balance. An eligible buy mints one NFT per full 100 million UNIK delivered in a single pool-manager token withdrawal. Splitting a buy or forwarding tokens in smaller transfers can leave the final wallet without an NFT.

When a holder sends UNIK and no longer has enough tokens to back every NFT, a single ordinary transfer of at least 100 million UNIK can move supported NFTs to the recipient, subject to the recipient's backing capacity. Transfers below that threshold do not move an NFT. Any remaining unsupported NFTs are burned. The contract may move or burn NFTs when UNIK is transferred, so check both balances before sending tokens. A direct ERC-721 transfer also transfers its 100 million UNIK backing.

Each NFT's SVG image and 12 visual traits are generated on-chain from its token ID and remain fixed. Rainbow and claimable ETH in on-chain metadata change over time. The NFT collection indexes ERC-721 Transfer events to show current owners; its index can briefly lag the chain. NFT detail pages read the current reward values from Ethereum when opened.

05 / POSITIONS

Simulated leverage

The administrator registers each market in the shared price contract with a Uniswap v3 or v4 pool path ending in USDC, and a maximum leverage from 1× to 100×. The NFT owner may set a delegate. Owner or delegate can open and reduce positions, with at most one position per NFT and market. A close-only market allows reductions but no new opens.

  • Opening sets direction, USD notional, and leverage. The contract converts notional to a signed base quantity at the current on-chain USD price.
  • The account's equity is its Rainbow plus unrealized position profit or loss, floored at zero for margin checks. Opening requires equity to cover the total initial margin across its positions: current notional divided by leverage for each market.
  • Reducing realizes profit or loss into Rainbow; reducing the full quantity closes that market's position. Positions are accounting entries. Opening or closing them does not exchange ETH or UNIK.
  • Maintenance margin is 0.5% of current notional. If equity falls below maintenance, anyone may liquidate. The contract first halves the largest position; if still below maintenance, it closes all remaining positions.

The Perps page shows the shared price source and current account state and simulates a write before asking for wallet confirmation. Price and account state can still change before the transaction is mined.

06 / DEPLOYMENT

Ethereum mainnet contracts

These addresses are pinned to the deployment in this repository, initialized at block 26,110,366. Check the address shown by your wallet before signing.

View pool initialization transaction ↗

07 / RISKS & LIMITS

Review before use

The contracts have not been audited. The shared price contract uses pool spot prices, which can be manipulated. Fee conversion has no minimum-output limit and adds price impact on sells. Simulated profit can increase a claim on real ETH fee rewards. An account with too many markets can exceed the per-account gas allowance during swap checks: its future reward weight is set to zero until a later successful check, although already accrued ETH remains claimable. There is no pause function.

Ethereum gas, slippage, transaction failures, token-backing transfers, and liquidation can change outcomes. Review the contracts and obtain an independent security and economic assessment before using substantial funds.