Skip to content
Open App

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:

LineExample: 250 USDG to ETH
You pay250.00 USDG
Nymra fee, 0.20%0.50 USDG
RouteThe pools the trade runs through
Slippage limitAutomatic
Lands inYour private wallet

One transaction, four steps

  1. 01

    Spend

    Your proof spends the notes that cover the amount in and marks their nullifiers as used.

  2. 02

    Swap

    The pool hands that amount to a swap contract, which trades it on the quoted route.

  3. 03

    Check

    The trade must return at least the minimum out, or the whole transaction reverts.

  4. 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

VisibleNot visible
The wallet that sent the transaction, and whenWhich private wallet the trade belongs to
The route and the amounts at the swap contractYour other notes and your balance
That new notes were added to the poolWhere the result goes next
Technical details
TransactionNymra Fee
Private Swaps0.20%
Swap BufferTarget 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.