For developers
Turnpike plugs into the economy your server already runs. One resource goes on the game server. The coin, its market and its vault run on Solana.
What runs where
On your game server
- Your economy
- Pays players in-game cash the way it does today: jobs, businesses, property.
- The Turnpike resource
- One resource for the framework your server already runs. It reports the server in with your API key, links a player’s wallet to their character with a one-time code typed in game, and moves the in-game cash on every swap: out of a player’s balance on a cash out, into it on a buy in.
- The game server key
- The resource makes its own key on your game server and signs every cash out with it. A cash out needs Turnpike’s signature as well, so neither side can pay one out alone. A buy in is checked on Solana before any cash is credited.
On Solana
- The coin
- One per server, created by Turnpike when the server is listed. Players hold it, trade it, or swap it back into cash.
- The market
- One per server. Players trade the coin for SOL on it. A coin starts on a curve at a market cap of 50 SOL and graduates to its own pool at 400 SOL.
- The vault
- One per server, run by Turnpike’s program. It swaps in-game cash for the coin, and back, at the rate the owner sets: a cash out is paid from the reserve the owner stocks, and a buy in goes back into it. The program takes the fees on the way: Turnpike’s 5% and whatever the owner adds, up to 20%. Where Turnpike’s fee goes
A swap in figures
TurnpikeCash-out ticket
You receive
470.00 HRBR
- In-game cash
- $250,000
- Rate
- $500 per HRBR
- Before fees
- 500.00 HRBR
- Turnpike fee, 5%
- −25.00 HRBR
- Server fee, 1%
- −5.00 HRBR
TurnpikeBuy-in ticket
You receive
$188,000 in-game cash
- You swap
- 400.00 HRBR
- Turnpike fee, 5%
- −20.00 HRBR
- Server fee, 1%
- −4.00 HRBR
- After fees
- 376.00 HRBR
- Rate
- $500 per HRBR