BOB
Search
⌃K
Comment on page
🔁

BOB Swap

BOB collateralization module
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 1inch exchange 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) https://dune.com/zkbob/zkbob​
BobSwap on Polygon
BobSwap on Ethereum

BobSwap parameters

Each collateral in BobSwap includes the following dynamic parameters. See GP3 and GP5 for specifics related to the deployments on Polygon and Ethereum mainnet.
  1. 1.
    price - amount of collateral with value equal to 1 BOB (18 decimals)
  2. 2.
    inFee - proportional fee for buying BOB with given collateral (18 decimals, 1e18 = 100%)
  3. 3.
    outFee - proportional fee for selling BOB for given collateral (18 decimals, 1e18 = 100%)
  4. 4.
    yield - optional implementation contract for earning yield through lending markets (AAVE)
  5. 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. 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.