Nymra Swaps
Swaps from your private wallet, with slippage protection and every cost shown before you confirm.
A swap on a public exchange shows anyone your wallet, what you traded and the route. Nymra Swaps trade inside your private wallet instead, in one transaction.
What you see before you sign
Before anything is signed you see every line of the trade:
| Line | Example: 250 USDG to ETH |
|---|---|
| You pay | 250.00 USDG |
| Nymra fee, 0.20% | 0.50 USDG |
| Route | The pools the trade runs through |
| Slippage limit | Automatic |
| Lands in | Your private wallet |
One transaction, four steps
01
Spend
Your proof spends the notes that cover the amount in and marks their nullifiers as used.
02
Swap
The pool hands that amount to a swap contract, which trades it on the quoted route.
03
Check
The trade must return at least the minimum out, or the whole transaction reverts.
04
Return
What comes out is sealed as a new note to your private wallet, and your change as a note too.
Because the four steps are one transaction, there is no moment when the money sits in a public wallet.
What the chain sees
| Visible | Not visible |
|---|---|
| The wallet that sent the transaction, and when | Which private wallet the trade belongs to |
| The route and the amounts at the swap contract | Your other notes and your balance |
| That new notes were added to the pool | Where the result goes next |
Technical details
| Transaction | Nymra Fee |
|---|---|
| Private Swaps | 0.20% |
| Swap Buffer | Target 0.25%, dynamically adjusted |
The fees are enforced by the contracts. Each note is a Poseidon commitment in a Merkle tree of 24 levels, spent with a Groth16 proof your browser builds, two notes in and two out. Shielded pools such as RAILGUN run private DeFi on the same pattern.