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
  • Proposal objective
  • Proposal breakdown
  • Additional verification
  1. BOB DAO
  2. Governance
  3. Protocol Governance

GP 5: Enable Bob Swap on Ethereum Mainnet

PreviousGP 4: Increase Multisig & Upgrade BOB contract on all networksNextGP 6: Upgrade zkBob to support direct deposits

Last updated 1 year ago

The proposal has been confirmed and executed by

See GP#3 for a description of BobVault.

Proposal objective

In order to pursue further expansion, increase brand awareness and explore more integration options, we propose to enable BobVault on Ethereum Mainnet.

BobVault deployed on Ethereum Mainnet differs from the original audited version in that it includes more stricter limits for max collateral balance. The diff of changes can be found .

The contract was pre-deployed at on 20.02.23 from commit . The collaterals were configured as described, owner of the BobVault was set to the governance multisig () after configuration. See for verification.

For the purpose of Mainnet deployment, the internal Bob protocol risk-assessment team approved the BOB issuance limit through BobVault to 2,000,000 BOB, alongside with the following collateral configuration:

USDC:

  1. price - 1 (6 decimals)

  2. inFee - 0.001% (18 decimals)

  3. outFee - 0.01% (18 decimals)

  4. yield - address(0) - yield earning disabled

  5. buffer - 0 USDC (6 decimals)

  6. dust - ****0 USDC (6 decimals)

  7. maxBalance - type(uint128).max - unrestricted

  8. maxInvested - 0 USDC (6 decimals)

USDT:

  1. price - 1 (6 decimals)

  2. inFee - 0.001% (18 decimals)

  3. outFee - 0.01% (18 decimals)

  4. yield - address(0) - yield earning disabled

  5. buffer - 0 USDT (6 decimals)

  6. dust - ****0 USDT (6 decimals)

  7. maxBalance - 1,000,000 USDT (6 decimals)

  8. maxInvested - 0 USDT (6 decimals)

DAI:

  1. price - 1 (18 decimals)

  2. inFee - 0.001% (18 decimals)

  3. outFee - 0.01% (18 decimals)

  4. yield - address(0) - yield earning disabled

  5. buffer - 0 DAI (18 decimals)

  6. dust - ****0 DAI (18 decimals)

  7. maxBalance - 1,000,000 DAI (18 decimals)

  8. maxInvested - 0 DAI (18 decimals)

The main goal behind choosing such parameters - allow BobVault to compete with existing BOB pools on Uniswap. e.g. current slippage for swapping USDC β†’ BOB on Uniswap V3 pool USDC/BOB is 0.001%, for swapping BOB β†’ USDC is 0.019%

Proposal breakdown

Action 1

Additional verification

Existing configuration parameters for collaterals can be checked by calling the collateral(address) function in the BobVault contract:

$ cast call --rpc-url https://rpc.ankr.com/eth 0x15729Ac1795Fa02448a55D206005dC1914144a9F 'owner() (address)'
0xd4a3D9Ca00fa1fD8833D560F9217458E61c446d8

$ cast call --rpc-url https://rpc.ankr.com/eth 0x15729Ac1795Fa02448a55D206005dC1914144a9F 'admin() (address)'
0xd4a3D9Ca00fa1fD8833D560F9217458E61c446d8

$ cast call --rpc-url https://rpc.ankr.com/eth 0x15729Ac1795Fa02448a55D206005dC1914144a9F 'collateral(address) (uint128 balance,uint128 buffer,uint96 dust,address yield,uint128 price,uint64 inFee,uint64 outFee,uint256 maxBalance,uint256 maxInvested)' 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
0
0
0
0x0000000000000000000000000000000000000000
1000000
10000000000000
100000000000000
340282366920938463463374607431768211455
0

$ cast call --rpc-url https://rpc.ankr.com/eth 0x15729Ac1795Fa02448a55D206005dC1914144a9F 'collateral(address) (uint128 balance,uint128 buffer,uint96 dust,address yield,uint128 price,uint64 inFee,uint64 outFee,uint256 maxBalance,uint256 maxInvested)' 0xdAC17F958D2ee523a2206206994597C13D831ec7
0
0
0
0x0000000000000000000000000000000000000000
1000000
10000000000000
100000000000000
1000000000000
0

$ cast call --rpc-url https://rpc.ankr.com/eth 0x15729Ac1795Fa02448a55D206005dC1914144a9F 'collateral(address) (uint128 balance,uint128 buffer,uint96 dust,address yield,uint128 price,uint64 inFee,uint64 outFee,uint256 maxBalance,uint256 maxInvested)' 0x6B175474E89094C44Da98b954EedeAC495271d0F
0
0
0
0x0000000000000000000000000000000000000000
1000000000000000000
10000000000000
100000000000000
1000000000000000000000000
0

The corresponding transaction in the governance safe is. The transaction contains 1 action:

Allocate 2,000,000 BOB (18 decimals) to the BobVault contract () by generating BOB token inventory. The action is executed by calling mint on the BOB token contract

πŸ§‘β€πŸ€β€πŸ§‘
https://etherscan.io/tx/0x1e33247389a04b8ffea082267821a9ccf2d79826812035d1256cb60b477bc270
HERE
0x15729Ac1795Fa02448a55D206005dC1914144a9F
ada425fbb6f29a50d26e89956204fb8b2b32b8d6
0xd4a3D9Ca00fa1fD8833D560F9217458E61c446d8
Additional verification
transaction #10
0x15729Ac1795Fa02448a55D206005dC1914144a9F
0xB0B195aEFA3650A6908f15CdaC7D92F8a5791B0B