Swapping Assets

Hinkal Swaps are allowing users to swap supported ERC-20 tokens confidentially. To achieve confidentiality, Hinkal uses relayers and APIs from Odos, 1inch and Uniswap.

  • First, the user selects ‘Swap From’ and ‘Swap to’ tokens, just like they would in any DEX.

  • Hinkal then fetches rates from Odos, 1inch and Uniswap, and calculates the best rate offered between them. Users can see how much they save.

  • Users still have the option to change the provider manually to their preferred one.

Costs Breakdown

After the swap rate has been calculated and the best one is selected, Hinkal calculates fees.

  • Hinkal uses gas stations to accurately predict the gas needed to compensate the relayer for gas spent before the transaction is submitted. Press 'ESTIMATE' to get an accurate estimate of the gas costs at the exact point in time.

  • You can also change slippage tolerance manually (by pressing the gear icon).

  • Last is the Hinkal commission, currently set to 3bps, making Hinkal the lowest-cost privacy solution in the market.

When a user swaps assets, they generate zk-proof that they are eligible to swap a given amount of the first asset in return for the incoming amount of the second asset.

Since the protocol implements UTXO based model of commitments and nullifiers, the swapped amount should be known at the time of zk-proof generation. At the time of the swap transaction submission, it is unknown how many other swap transactions will be submitted in the current block.

Last updated