BOB
  • πŸ‘‹BOB Stablecoin
  • BOB Info
    • πŸ—ΊοΈBOB Ecosystem
      • Mellow Protocol Vaults
    • 🦊MetaMask
      • Swap BOB with Metamask Swap
    • πŸ”BOB Swap
    • πŸ¦„Uniswap v3
    • πŸ™‹β€β™€οΈBOB FAQ
  • BOB CDP
    • ℹ️About
    • πŸ’‘Use Cases
    • πŸ‘¨β€πŸŽ€System actors
    • πŸ“šSystem configurations
    • 🏦Vault health
    • 🏘️User flow examples
    • πŸ‘¨β€πŸ’»Technical docs
      • Position valuation (technical)
      • Liquidations
      • Deployment addresses
      • Smart Contracts
        • NFTVaultRegistry
        • NFTVault
        • UniV3Oracle
        • ChainlinkOracle
        • DebtMinter
        • SurplusMinter
    • πŸ™‹β€β™‚οΈCDP FAQ
  • BOB DAO
    • πŸ§‘β€πŸ€β€πŸ§‘Governance
      • BOB DAO
      • Protocol Governance
        • GP 0: Increase SAFE membership
        • GP 1: Bob Swap beta testing infrastructure
        • GP 2: Upgrade Contracts to v1.0.0
        • GP 3: Enable Bob Swap for Public Use
        • GP 4: Increase Multisig & Upgrade BOB contract on all networks
        • GP 5: Enable Bob Swap on Ethereum Mainnet
        • GP 6: Upgrade zkBob to support direct deposits
        • GP 7: Increase Multi-chain Inventory and Update Bob Swap
        • GP 8: Extend pool limits for KYC'd users
        • GP 9: Deactivate Kyberswap inventory pairs [Emergency Measure]
        • GP 10: Reallocate previous Kyberswap inventory
        • GP 11: Add 24 hour timelock to BOB contract on Optimism
        • GP 12: Raise Polygon limits
        • GP 13: Launch BOB CDP
        • GP 14: Migrate BOB pool to USDC on Polygon
        • GP 15: KYB tiers on Optimism
        • GP 16: Remove excess inventory on Arbitrum and BNB Smart Chain
        • GP 17: Remove excess inventory on Optimism and Ethereum
        • GP 18: Remove excess inventory on Polygon
        • GP 19: Accrued Revenue Allocation
        • GP 20: Migrate BOB pool to USDC on Optimism
        • GP 21: BOB inventory reduction
    • πŸ“‹Inventory
      • Inventory Actions
  • BOB Resources
    • 🧩Visual Assets
    • ⛓️Links
Powered by GitBook
On this page
  • BobSwap parameters
  • Optional Yield Implementation
  1. BOB Info

BOB Swap

BOB collateralization module

PreviousSwap BOB with Metamask SwapNextUniswap v3

Last updated 1 year ago

BobSwap (also called BobVault) is a unique AMM designed to issue BOB from inventory into the circulating supply via stable-only swaps.BobSwap does not have it's own UI, but is integrated into on Ethereum and Polygon. Those interested in swapping USD-pegged assets (USDC, USDT or DAI) to BOB can simply visit 1inch and enter their desired swap. BobSwap is optimized to provide lower fees than many other available trading routes, offers 1-to-1 stable swaps (USDC/USDT/DAI to BOB), and is used when it provides the best swap rate.Current volume and other statistics related to BobSwap are available in Dune analytics (scroll to the bottom of the page to BobVault) ​

BobSwap on Polygon

  • Contract: ​

  • Deployed on: 20.02.23 as per ​

BobSwap on Ethereum

  • Contract: ​

  • Deployed on: 20.02.23 as per ​

BobSwap parameters

Each collateral in BobSwap includes the following dynamic parameters. See and for specifics related to the deployments on Polygon and Ethereum mainnet.

  1. price - amount of collateral with value equal to 1 BOB (18 decimals)

  2. inFee - proportional fee for buying BOB with given collateral (18 decimals, 1e18 = 100%)

  3. outFee - proportional fee for selling BOB for given collateral (18 decimals, 1e18 = 100%)

  4. yield - optional implementation contract for earning yield through lending markets (AAVE)

  5. buffer - Collateral buffer for tokens to be kept outside of the yield-earning market. This reduces the frequency of deposit/withdraw operations and lowers expected value of the swap transaction gas fee.

  6. dust - amount of collateral tokens that cannot be withdrawn as a farmed revenue, designed to account for unexpected rounding errors within the yield protocol and accrued permanent losses (if any).

Optional Yield Implementation

This feature is currently enabled on Polygon and disabled on Ethereum mainnnet. When activated, a portion of the stable assets locked in the BobSwap contract are loaned to AAVE to generate additional revenue for the protocol.There is a buffer of each stable coin kept within the contract to support small stable swaps. If a single swap request is greater than the buffer, a call is made to the AAVE protocol to remove the necessary collateral and return it to the requester in one transaction.Yield implementation may be activated on mainnet and/or undergo parameter updates in the future via a governance process.

πŸ”
1inch exchange
https://dune.com/zkbob/zkbob
0x25E6505297b44f4817538fB2d91b88e1cF841B54
GP 3
0x15729Ac1795Fa02448a55D206005dC1914144a9F
GP5
GP3
GP5