LogoLogo
  • Bancor Basics
    • What is Bancor?
  • Bancor DAO
    • What is the Bancor DAO?
    • How do I join the Bancor DAO?
    • Creating a Bancor Improvement Proposal (BIP)
    • Bancor Governance Voting Guide
    • Quorum and supermajority requirements
    • What is the governance contract address?
  • Vortex
    • How do I trigger the BNT Vortex?
  • Bancor AMM
    • AMM: Automated Market Maker
    • Trade
      • What fees do I have to pay when I trade?
      • Price Impact
      • Do I need to own BNT tokens in order to make a trade?
      • Price slippage
      • Token approval: Approve vs Approve Limited Permission
    • Transactions & Metamask
      • Connect your Web3 Wallet to Bancor
      • MetaMask Setup Guide
      • Where can I view my transaction history for tax purposes?
      • Interacting with Bancor: associated gas fees breakdown
      • I'm getting a MetaMask "ALERT" error. Should I proceed?
      • My transaction is pending/ stuck for a long time. Is there anything I can do?
      • Why did my transaction complete but the trade or deposit did not finalize?
      • How do I import my existing wallet to MetaMask using my private key/JSON file?
    • Bancor 3 Mechanics
      • Bancor 3 Mechanics - #1 Swap
      • Bancor 3 Mechanics - #2 Withdrawal
      • Bancor 3 Mechanics - #3 Overview of Deficit and Surplus on Bancor 3
      • Pause of BNT Distribution
    • Portfolio
      • Withdrawal Guide
    • Can I sell my vBNT or transfer it to a different wallet?
  • Resources
    • DeFi 101
      • Ethereum/ Web3 wallets
      • Hardware wallets
    • Security
      • Access to the bancor.network Website
      • Bancor Bug Bounty
      • Security tips
    • Community
      • Communication channels
      • I have more questions, where can I go?
    • Research & Academic papers
  • Disclaimer
Powered by GitBook
On this page

Was this helpful?

  1. Bancor AMM
  2. Bancor 3 Mechanics

Bancor 3 Mechanics - #1 Swap

PreviousBancor 3 MechanicsNextBancor 3 Mechanics - #2 Withdrawal

Last updated 1 month ago

Was this helpful?

What happens during “Swap”? - an overview of the protocol and a comparison with the traditional AMM model.

Swap

Let’s start with an example of a swap and measure its impact on withdrawals from the system. In Bancor 3, all tokens are paired with the BNT Omnipool. If you are swapping TKN A to TKN B, the following set of swaps will occur:

  1. TKN A → BNT

  2. BNT → TKN B

Take the diagram below which shows a BNT to TKN swap

Here, we have a pool that consists of Token A and BNT, with each Token A having value of $1.33 and each BNT having a value of $1. in Bancor 3 all pools are weighted 50–50, meaning the total liquidity in the pool is therefore $8, with each side contributing $4.

An outside trader performs a swap on this liquidity pool by swapping 2 BNT for 1 Token A. The final state of the pool after the swap is 2 Token A and 6 BNT. On the Token A side, there is a deficit of 33% (1 out of the original 3 tokens was removed) and on the BNT side there is now a surplus of 50% (relative to the initial quantity 4 vs 6). When looking at the picture as a whole, the liquidity in the pool is now $12 with the cumulative value of each respective token in the pool being $6 (i.e. each side has an even dollar value).

In Bancor 3, all deposits are single sided, meaning users only have to contribute one side of a pool. In our example above, assume that the entirety of the Token A pool was contributed by a single liquidity provider and the Bancor Protocol matched his Token A side deposit with BNT (it contributed the BNT side of the pool). The LP in the Token A pool is currently in a state of deficit, while the BNT pool is currently in a state of surplus. What happens if the Token A LP decides to withdraw?

Read the .

Withdrawal article here