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

GP 18: Remove excess inventory on Polygon

PreviousGP 17: Remove excess inventory on Optimism and EthereumNextGP 19: Accrued Revenue Allocation

Last updated 1 year ago

The proposal has been confirmed and executed:

Proposal objective

Continue reduction of BOB inventory following the successful implementation of and for reduction on various chains. This proposal will decrease BOB inventory on Polygon.

  • Proposal on forum ->

Proposal Details

Following the actions in this proposal, overall total supply of BOB will be ~5M. This proposal decreases the total supply by -10.5.m BOB, resulting in a reduction from 15.5m β†’ 5m.

Polygon (11.5m β†’ 1m)

  1. Deallocate 5,000,000 BOB (5,000,000 BOB β†’ 0 BOB) from BobSwap

  2. Deallocate 5,500,000 BOB (6,500,000 BOB β†’ 1,000,000 BOB) from BOB/USDC 0.01% inventory position on Uniswap V3

Proposal breakdown

Polygon

Below transactions use delegatecall to the to efficiently faciliate complex inventory management process.

The first transaction in the Safe on Polygon contains the following sequence of actions:

  1. Remove and burn all excess BOB from BobSwap

  2. Withdraw ~84.6% (11/13) (~5,500,000 BOB/USDC) of BOB/USDC 0.01% Uniswap V3 inventory LP with its fees

  3. Burn BOB obtained from inventory position principal

  4. Transfer USDC obtained from inventory position principal to BobSwap

  5. Disable BobSwap USDT→BOB and USDC→BOB BobSwap directions by setting swap fees to 100%

  6. Set zero fees for BOB→USDC and BOB→USDT BobSwap directions

  7. Claim BobSwap fees accumulated in USDC and USDT

  1. Remove and burn all excess BOB from BobSwap

Second transaction shall be executed only once all USDC and USDT collateral from BobSwap has beed redeemed, some time after the first transaction execution.

Additional verification

  1. Check token transfers in Tenderly simulation:

    1. forge test --match-path ./script/scripts/VerifySafeTx_Gov42.t.sol --ffi -vvvv

    2. Make sure jq CLI is installed

Transaction in the Safe on Polygon contains the following sequence of actions:

Check the code of

Check the following script with safe contract execution -

πŸ§‘β€πŸ€β€πŸ§‘
Transaction #1 on Polygon
Transaction #2 on Polygon
GP #16
GP #17
https://forum.zkbob.com/t/proposal-to-remove-excess-bob-inventory-on-polygon/43
0xbfF0020638011357315302727eD55C5193a95F7b
#35
#36
https://polygonscan.com/address/0xbfF0020638011357315302727eD55C5193a95F7b#code
Polygon #35
Polygon #36
https://gist.github.com/k1rill-fedoseev/2114131418142793c70bbb1a119b40f7