The Stock Token exchange that can't fill off the real price.
Swaps and limit orders on Robinhood Chain's Uniswap pools, with a floor written into the contract from Chainlink. Thin pools, stale pools and sandwiches get a revert, not your money.
NVDAChainlink–Pool–Gap–Your band around the real price.
A usual swap only checks the pool against itself: if the pool is already off, you fill off. Pegswap reads Chainlink on chain and sets the minimum out from it, at the band you pick: 0.3%, 0.5%, 1% or 1.5%.
Pool inside the band: the trade fills. Pool outside: the whole transaction reverts and nothing moves.
Limits that fill at your price or better.
Place a buy under the market or a sell above it. The funds wait in the contract, not with a bot. When Chainlink reaches your price, a keeper fills it on the pool, and the contract checks the fill is no worse than your limit.
If the pool can't meet the limit yet, the order simply waits. Cancel any time, everything comes back.
TSLA to NVDA in one go.
On a usual swap page, rotating from one stock to another is two swaps through USDG, two approvals and twice the waiting. Pegswap sells and buys in the same transaction, both legs checked against Chainlink, the fee taken once.
Usual swap page
Pegswap
One signature instead of an approval.
USDG and the Stock Tokens support permit. Pegswap takes the allowance as a signature inside the trade, for exactly the amount you trade, so the first trade of any token is one transaction and nothing is left approved forever.
Pool vs Chainlink, right now.
How far each Stock Token's deepest pool sits from its Chainlink price. Anything outside your band, Pegswap won't fill.
| Stock | Chainlink | Pool | Gap | |
|---|---|---|---|---|
| Loading… | ||||
What the usual swap leaves out.
| Usual swap page | Pegswap | |
|---|---|---|
| Price protection | slippage vs the pool itself | floor vs Chainlink, on chain |
| Thin or stale pool | fills at whatever it gives | reverts |
| Limit orders | none | on chain, never worse than the limit |
| Stock to stock | two swaps through USDG | one transaction |
| First trade of a token | approve, then swap | one signature, one swap |
| Chart | elsewhere | candles with Chainlink and your orders on it |
Questions.
Where does the liquidity come from?
The Stock Tokens' own Uniswap v3 pools on Robinhood Chain. Pegswap routes through them and checks every fill against Chainlink.
What if markets are closed?
Stock feeds pause between sessions. The floor uses the last Chainlink price, so a pool that runs away over the weekend is refused.
What does it cost?
0.1% of the USDG side, plus the pool fee and gas. Limit orders add $0.05 for the keeper that fills them.
Is it audited?
No. The router is small and public, but unaudited. Size accordingly.
