Testnet · mainnet after external review
Trading infrastructure
for NEAR.
routr is a trading venue and platform registry that launchpads, wallets and bots build on. Registration is open to anyone. A platform can create and seed a pool inside its own launch flow and share every pool fee with the coin's creator and with approved apps that route orders. The contract has no pause method and no owner method that moves pool reserves.
Seed and swap paths avoid a pool-wide scan
No scan of every pool on every deposit.
On NEAR, the deposit path of Rhea's DCL iterates over every pool the venue holds, so its gas grows with the number of pools; NEAR's per-receipt limit is 1,000 Tgas. routr's seed and swap paths never iterate over the pool registry: they read and write one pool and a few account records.
Measured 2026-09-30. routr: NEAR sandbox and testnet. Rhea DCL: its mainnet bytecode replayed in the sandbox with 2,499 pools, and its live testnet deployment at about 11,000 pools. Figures are for these runs, not guarantees for every call.
How it works
Four steps to a trading market.
Once your token exists and your accounts are registered on it.
01
Register a platform
One call, open to anyone. Name your fee recipient, the share creators get and the share approved apps earn for routing orders. A 0.5 NEAR bond becomes your storage credit.
02
Open a pool per coin
One pool per token, quote and platform. Its lookup key is known before it exists, so a token can carry its own route. Its fee rate and split are fixed when it is created.
03
Seed it once
The seeder deposits the token once. There are no LP shares and no method to withdraw or migrate liquidity; tokens leave the pool only through buys. The seed and a virtual quote reserve set the opening price.
04
Trade, and get paid
Submit a swap with one ft_transfer_call. The contract sends the output and books every fee leg in the swap receipt; anyone can push the payouts.
Fees
Every swap pays the people who made it happen.
The pool fee is charged on the quote side of each trade. The protocol takes a share, capped in the code; the rest belongs to the platform, which passes part of it to the pool's creator and part to the app that routed the order, if the platform approved that app.
A 100 NEAR buy on a platform with a 1% pool fee
Example parameters (fastr's). The pool creator picks the pool fee (up to 10%); each platform sets its creator and builder shares and can restrict who creates its pools. The protocol share is 20% today and the code caps it at 30%. Rate and split are fixed per pool at creation.
Who builds on routr
One venue, many front doors.
Launchpads
Create and seed a pool inside your own launch flow. routr handles the pool, the curve, the fee accounting and the payouts; you keep your product and your brand. Once registered, your platform id has an owner, and you choose who may open pools under it.
Wallets, bots and solvers
Quote any pool with the full fee waterfall, price impact and the contract's current answer on whether it would execute; set min_out and submit. Name yourself as the builder on the swap and a platform that approved you pays you a share of its fees.
Creators
Your share is written into the pool when it is created. A later change to the platform's or the protocol's terms applies only to new pools. You can hand your creator share to another account yourself.
Indexers and data sites
Pool creation, seeding, swaps and payouts are NEP-297 events; swap events carry every fee leg and the reserves after the trade. Pools page by id, and one view returns a launch's pool, terms and state.
Rules the contract enforces
Neutral by construction.
Testnet code is still upgradeable. The mainnet plan is a contract account with no keys.
No owner method over pool money
In the current code, reserves move only through swaps, and amounts owed move only to the account they are owed to.
No pause method
There is no pause switch, no allowlist of traders and no admin override on a swap. Swaps can still be refused for the reasons quote_swap reports, such as storage credit, reserves or pool state; anyone can top up storage credit.
Fee terms fixed per pool
A pool's fee rate and percentage terms are fixed when it is created; only the platform's approved-builder list applies to existing pools. The protocol's share is capped at 30% of the pool fee in the code.
Money owed is booked first
Output and fee shares are recorded as liabilities before a transfer leaves; if a transfer fails, the amount is recorded as owed and anyone can push it later.
Status
Shipping in public, one release a week.
| Stage | What | State |
|---|---|---|
| Phase 0 | Venue on testnet; the first launchpad launches on it in one transaction; end-to-end tests in the browser | done |
| Phase 1 | External security review, then routr.near from a reproducible build whose hash is published here | next |
| Phase 2 | Resting orders, a TypeScript SDK, an intents solver, a second platform, public stats | weekly |
Building a launchpad, wallet or bot on NEAR?
The integration is a handful of calls and one message format. Start with the quickstart; the whole contract interface is on one page.