Trading and Graduation
Trading a Pipoke coin is one transaction. Pre-graduation, you call buy or sell on the coin's BondingCurveToken. Post-graduation, you call swap_oct_for_token or swap_token_for_oct on the same contract. The price model differs in each phase, but the contract address is the same.
Pipoke runs on Octra Devnet today. Any fee, price, or limit referred to here is a contract setting chosen for testing. Every one is owner-settable, and mainnet values will be different. These docs describe how the mechanics work, not what the numbers are.
#Pre-graduation: the curve
buy(min_tokens_out) payable, value = OCT in
sell(tokens_raw, min_oct_out) payable = 0, returns OCT out
Both calls quote against the live curve and revert if the realised output is below your slippage floor (min_tokens_out / min_oct_out). The Pipoke trade panel exposes a 0.25 / 0.5 / 1 / 2.5 % slippage tolerance drawer that fills these floor values for you.
The 1% trade fee is taken from the OCT side of the trade.
#Graduation
Graduation triggers automatically when the curve's OCT reserves cross a threshold (a contract setting). At graduation, the contract:
- Closes the curve to new
buycalls. - Seeds a constant-product AMM pool with the locked
OCTreserves and a matching token amount. - Unlocks the creator's 2.5% allocation. The creator can claim with
claim_creator_alloc().
#Post-graduation: the AMM
swap_oct_for_token(min_tokens_out) payable, value = OCT in
swap_token_for_oct(tokens_raw, min_oct_out) returns OCT out
The AMM is constant product on its sealed reserves. There is no separate LP token to add or remove liquidity. The 1% trade fee continues.
The creator can sweep accumulated fees with withdraw_oct_fees(to) and withdraw_poke_fees(to).
#Discovery on Pipoke
The markets list is at the markets tab in the app. Every launched coin appears there, sorted by recency by default with filters for volume, market cap, holders, and graduation status. Per-coin pages show the price chart, the holder bubble, the trade feed, and the chat channel.