Docs

Pairs

A pair is any ERC-20 that moves exactly the amount it says. That is the whole rule.

What is accepted

  • Stablecoins: USDG.
  • Tokenized stocks and ETFs on Robinhood Chain: NVDA, SPY and the others.
  • Wrapped assets: WETH (with native ETH support), cbBTC.
  • Memecoins and any other ERC-20, including coins launched on Yoke itself.

All of these are tested on a fork of the real chain: USDG, WETH, an NVDA stock token, the ORBIO memecoin, and a Yoke coin used as the pair of another Yoke coin.

What the contract checks

  1. The pair address is not zero and has code.
  2. decimals() answers and is at most 36.
  3. The opening cap is in range: the virtual reserve is at least 1,000,000 raw units and below 2100.
  4. On every transfer in, the contract compares its balance before and after. If it received anything other than the exact amount, the call reverts with PairTransferMismatch. This refuses tokens that take a fee on transfer.

Decimals

All amounts on the contract are raw units. A pair with 6 decimals (USDG) and a pair with 18 decimals behave identically, but you must give the opening cap in the right unit.

PairDecimals5,000 dollars worth, raw
USDG65,000,000,000
cbBTC (at 82,700 $)86,045,949
WETH (at 2,500 $)182,000,000,000,000,000,000

For very small raw numbers the minimum applies: a pair with 8 decimals needs an opening cap of at least about 0.0094 of a unit, which is rarely a limit.

Native ETH

A coin whose pair is the chain's WETH can be bought with buyETH and sold with sellETH: the contract wraps and unwraps for you, and refunds any excess ETH on the buy that fills the curve.

Risks that come with the pair you pick

Read thisThe curve is only as sound as its pair. Yoke refuses tokens that visibly misbehave on transfer, but it cannot protect you from what a token can do later.
  • Pausable or blacklistable pairs (many stablecoins): if the issuer freezes the contract or an address, selling on the curve or graduating can revert until it is unfrozen.
  • Upgradeable pairs: an upgrade can change behaviour after the coin is created.
  • Depegging pairs: the curve is priced in the pair, so if the pair collapses, so does the dollar value of the coin.
  • Low-liquidity pairs: nothing stops a coin from being paired with a token that nobody can sell. The dollar numbers on the launch page come from DexScreener only to help you choose.
  • Fake tokens with real names: there are clones of USDG on the chain at other addresses. Always check the address.