π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
Contract:
0x25E6505297b44f4817538fB2d91b88e1cF841B54
βDeployed on: 20.02.23 as per GP 3β
BobSwap on Ethereum
Contract: 0x15729Ac1795Fa02448a55D206005dC1914144a9Fβ
Deployed on: 20.02.23 as per GP5β
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.
price - amount of collateral with value equal to 1 BOB (18 decimals)
inFee - proportional fee for buying BOB with given collateral (18 decimals, 1e18 = 100%)
outFee - proportional fee for selling BOB for given collateral (18 decimals, 1e18 = 100%)
yield - optional implementation contract for earning yield through lending markets (AAVE)
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.
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.
Last updated