- Updated
- v3.1.0
- 47 revisions
Cite
Caper. "Trading." November 2, 2026. https://caper.network/wiki/markets/trading
Trading a caper's token means buying it from, or selling it back to, that caper's own bonding curve, from the buy/sell panel on the caper's profile page. The curve is the whole market: there is no order book, no outside liquidity pool and no market maker, and the curve always buys tokens back. The Max button fills in your whole balance.
Where does the money go when I buy or sell?
A buy deposits your $XRD into the caper's curve reserve and gives you tokens from its inventory. A sell puts the tokens back into the inventory, where the next buyer can take them, and pays you $XRD out of the reserve. One curve prices both directions, so there is no gap between a buying and a selling price: you sell at the price the next buyer would pay to reach the same point, and a large trade moves the price further than a small one.
A trade pays the skim and no other fee. The skim comes off buys and sells alike; it is highest while a caper is young and falls as more of its supply is sold. It is shared by three recipients: the treasury of the caper being traded, whoever holds that caper's founder badge, and the Commons, the treasury of the $CAPER caper. Raising funds covers how the skim funds a caper.
Can a trade leave the curve unable to pay sellers?
No. After every buy and every sell, the caper checks that its reserve has not fallen further below what the curve owes than it was before the trade, and refuses the trade otherwise. On an ordinary caper the reserve covers the curve in full, so every holder can sell back along it. A caper launched by migrating an existing token can start with a shortfall, which no trade is allowed to widen. The check lives in the part of Caper that holds each caper's state, beneath the pricing code, so it holds whatever version of that code is running.
Read assert_reserve, buy_apply and sell_apply in contracts/core/src/caper_dao.rs.
Can a buy mint more tokens than the payment covers?
Not beyond a rounding tolerance. A sell has an exact price. A buy has to be worked out numerically, and the contract checks its answer before minting: an answer that would hand out more tokens than the payment covers is replaced with one that hands out slightly fewer, so rounding falls to the curve rather than the buyer.
A test in the contract buys and immediately sells the same tokens back across a range of caper sizes and payments, and checks that the round trip never pays out more than it took in. With the skim taken on both legs, a real round trip always ends down. Read compute_tokens_bought_inner and roundtrip_buy_then_sell_does_not_overshoot in contracts/logic/src/lib.rs.
Does trading earn vote weight?
No. Buying, selling or swapping mints no vote tokens. A member earns them by casting ballots, one per account per proposal, and they decide how far a ballot moves a result and let a member exit with a share of the treasury. Trading used to mint them until the redeploy of 11 September 2026, which removed it so that a single purchase could not buy a stake and a claim on the treasury at once. Read VOTE_MINT and the vote path in contracts/logic/src/lib.rs.
How do I get out of a position?
Two ways. The curve buys your tokens back at any time, and needs nothing but the tokens. A member who has voted can also exit: hand in their tokens and their vote tokens and leave with their fair share of the caper's treasury, which is separate from the curve reserve, plus the curve's price for the tokens less the skim.
The exit refuses a holder with no vote tokens of their own, so a position that arrived without a ballot, by a buy, a transfer or a migration, cannot exit until its holder has voted. The curve still buys those tokens back. Leaving a caper covers the exit in full.
What does a swap cost?
A swap sells one caper's token and buys another's in one transaction, so you never hold $XRD in between. It is priced as two trades: the sell leg pays the origin caper's skim to that caper's treasury, its founder and the Commons, and the buy leg pays the destination caper's skim to its own. Neither leg pays a trade fee. A swap saves holding $XRD in between and a second signature, and costs what the two trades would. Swapping a caper for itself is refused with "Cannot swap a caper for itself".
Why does a sale appear that no holder placed?
A caper's treasury can hold other capers' tokens, bought by an INVEST proposal, and a DIVEST proposal sells them. Execution withdraws the amount the winning option named from the treasury, sells it into the target caper's curve and deposits the $XRD back into the treasury, all inside the contract, so nobody executing it can intercept the tokens.
On the target caper's trade feed it is an ordinary sale: the same curve, the same skim and the same SellToken event, with nothing marking it as a divest. The record is the ProposalExecutedDivest event on the selling caper. Execution sells exactly the amount that passed and aborts if the treasury now holds less, rather than filling a smaller trade than the vote approved. Read execute_proposal_divest in contracts/logic/src/lib.rs.
How does a trade find its caper?
Since the redeploy of 11 October 2026, a buy, sell or swap names the caper by its component address rather than its cashtag. Before pricing anything, the logic checks that the address is a caper of its own package registered with its own registry, and refuses anything else with "not a caper" or "caper of another registry". It then reads the curve from the caper's own metadata, which only the caper can write. For a trader, the wallet's view of the transaction lists the caper being traded rather than only the platform. Read trade_dao, buy_token, sell_token and swap in contracts/logic/src/lib.rs.
How does this compare with an AMM?
A caper's price depends only on how many of its tokens are in circulation, so the cost of a trade is known before you sign it rather than discovered on execution. A constant-product AMM such as Uniswap prices from the ratio of two reserves (x·y=k) that outside liquidity providers deposit. Three things follow for a trader:
- No liquidity to pull. The curve reserve belongs to the caper, not to third-party depositors who can withdraw it, so depth never vanishes and no outside provider carries impermanent loss.
- No bid–ask spread. One curve serves both directions; the wedge between buying and selling is the skim on both legs, not a market maker's spread.
- Predictable price impact. A large order still walks the curve, but its impact is a property of the curve's shape rather than of whoever is providing liquidity at the time.
A constant-product pool quotes from a closed formula; a Curve or Balancer pool and a caper's buy side cannot, so each reaches for a numerical method to produce a number a trader can sign. Numerical pricing in AMMs and bonding curves reads those methods out of each one's deployed source.