Bumper Docs
bumper.fiDiscordForum
  • Learn
    • What is Bumper?
    • Documentation Structure
    • Why Use Bumper?
      • Comparison with stop-loss
      • Comparison with options
    • BUMP Token
      • Overview
      • BUMP Token Ecosystem
        • Design Background
        • Token Utility
        • Token Network
          • Network Bond (Primary Utility)
          • Network Incentive (Primary Utility)
          • Representative Governance (Primary Utility)
          • Network Boost (Secondary Utility)
          • Staking (Secondary Utility)
        • Roadmap
        • Token Metrics
          • Token Details
          • Token Emission
        • DAO Governance
          • Current Status
          • Future Status
    • Staking
    • Guides
      • Connect a wallet
      • Hedge - Open a position
      • Hedge - Exit a position
      • Hedge - Renew a position
      • Earn - Open a position
      • Earn - Close a position
      • Earn - Renew a position
      • dApp Interface
        • Dashboard
        • Hedge Positions
        • Earn Positions
      • Risk Rating
      • How do I add my BUMP to Metamask?
      • How do I add my bUSDC token to MetaMask?
      • How to buy BUMP on Uniswap
      • Liquidity Mining
        • How to Participate In Bumper’s Liquidity Mining Program - A step-by-step guide
      • Troubleshooting
      • Use cases & strategies
      • Legacy Guides
        • How to unstake & claim rewards from legacy staking
        • Claiming vested BUMP tokens
        • Withdrawing liquidity from Bumper's legacy LP program
        • Claiming BUMP tokens for Public Sale Participants
    • Protocol Risks
      • General risks
      • Taker liquidations
      • Maker liquidations
    • Premiums and Yields
    • FAQs
    • Troubleshooting
  • Protocol
    • Overview
      • Preliminaries
      • User Positions
    • Premium
      • Price Risk Factor (PRF)
      • Liability Risk Factor (VRF)
      • Probability of Claim
      • Liquidity Risk Factor (LRF)
      • Computing the Premium and Updating State
      • Visual Representation of Premium
    • Rebalancing
      • Cross-Side Rebalance and Swap Deadband
      • Asset and Capital Ledger
      • Rebalancing Trade Grid
      • Computing Swap Amounts
      • Same-Side Rebalancing
    • Taker Lifecycle
      • Taker Optionality
      • Taker Share
      • Taker Fungibility
      • Taker Position Token
      • Taker Risk Rates
      • Taker Renewal
      • Taker Close and Claim
      • Taker Position Expiry
      • Taker Ejection
      • Taker Cancellation
    • Maker Lifecycle
      • Maker Optionality
      • Maker Share
      • Maker Fungibility
      • Maker Position Token
      • Maker Risk Rates
      • Maker Withdrawal
      • Maker Renewal
      • Negative Yields
    • Simulation
    • Glossary
  • Governance
    • Overview
    • DAO Overview & Structure
      • Purpose of the DAO
      • Committees
      • Forum
      • Quorums
    • Economic Settings
      • Parameter tuning
      • Community involvement
    • Voting Power
      • vBUMP
      • Staking & Locking
    • Bumper Improvement Proposals (BIPs)
      • Before a proposal is created
      • Raising a proposal
      • Committee review
      • Warmup Period
      • Voting period
      • Grace & Queue periods
      • Abrogation
    • DAO user guides
      • How to Stake tokens in the Bumper DAO
      • How to Unstake tokens in the Bumper DAO
      • How to Claim Staking Rewards in the Bumper DAO
      • How to Lock tokens in the Bumper DAO
      • Delegating vBUMP
      • How to Undelegate vBUMP in the Bumper DAO
      • Voting on a governance proposal
      • Cancelling a vote
      • Voting on an Abrogation Proposal
      • Creating a Proposal in the DAO
      • Execute a proposal in the Bumper DAO
    • DAO Legal
  • Developers
    • Architecture
    • Modules
    • Contract Address List
  • Community
    • Community Code of Conduct
    • Alpha
      • Feedback and Support
      • Reporting Bugs
      • Connecting to Bumper network
  • Security
    • Audits
  • Legal
    • Terms and Conditions
    • Disclaimer
    • Privacy Policy
Powered by GitBook
On this page
  • CALLING REBALANCING
  • CROSS-SIDE REBALANCING
  • SWAP DEADBAND
  1. Protocol
  2. Rebalancing

Cross-Side Rebalance and Swap Deadband

PreviousRebalancingNextAsset and Capital Ledger

Last updated 1 year ago

CALLING REBALANCING

Rebalancing must be executed after any update to the protocol state. Specifically, when:

(i) a new price is encountered in the price feed, triggering a premium update, and,

(ii) when a user action function is called.

All protocol state updates mutate the current liabilities (B, L, D and E).

CROSS-SIDE REBALANCING

When the protocol executes a swap, it is debiting one side of the market and crediting the other. We must therefore consider the total value of the asset and capital pools at the same time in order to minimise the differences between the final value of all assets and capital against their respective adequacy targets and determine how much to trade.

  • In the case of inadequate Capital, the Capital side wants the protocol to sell an increasing amount of Asset, with proceeds deposited to the Capital side.

  • In the case of inadequate Assets, the Asset side wants the protocol to buy an increasing amount of Asset, with the proceeds deposited in the Asset side.

Liquidity adequacy then is determined as follows.

We define a set of measures, called the Asset Ledger (AL) and Capital Ledger (CL) to establish a minimum nominal value of Asset or Capital that each side of the protocol requires. We define displacement (in general) as the difference between a measured value and its reference.

Building upon the section dealing with the premium computation, the liquidity ratios that cover total Assets and total Capital are:

LR3=AP+ARBLR13=LR11+LR12=CPβ⋅L+D+E+CRL\begin{align*} LR_3 &= \frac{AP + AR}{B} \\[18pt] LR_{13} &= LR_{11} + LR_{12} \\[2pt] &= \frac{CP}{\text{β} \cdot L + D + E} + \frac{CR}{L} \end{align*}LR3​LR13​​=BAP+AR​=LR11​+LR12​=β⋅L+D+ECP​+LCR​​

SWAP DEADBAND

In order to minimise spurious swaps, we define a deadband around the reference ratio, wherein a liquidity ratio’s displacement from the reference ratio does not contribute to the amount of a cross-side rebalance trade (i.e. rebalancing trades only activate when one or more liquidity ratios are measured to be out-of-band).

The liquidity reference ratios (with their accompanying deadbands) are:

How the deadbands are configured influences how frequently cross-side swaps occur, and by extension, the degree to which parasitic spread and slippage costs (together “Price Impact”) are incurred by the protocol and borne by its participants.

For cross-side rebalancing, our deadbands imply that the displacement is calculated from the midpoint of this band, whereas a ledger is defined by the displacement that exceeds the deadband.

rw, 3( β )=−  pbL, 3( β )+pbU, 3        (  ±db∗, 3 )i.e.LR3  ∈  [ rw, 3( β )−dbL, 3    ,    rw, 3( β )+dbU, 3 ]rw, 13( β )=pbL, 13+pbU, 13( β )        (  ±db∗, 13 )i.e.LR13  ∈  [  rw, 13( β )−dbL, 13    ,    rw, 13( β )+dbU, 13  ]\begin{align*} r_{w,\,3}(\,\text{β}\,) &= -\;pb_{L,\,3} (\,\text{β}\,) + pb_{U,\,3} \;\;\;\; (\;\pm db_{*,\,3}\,) \\[5pt] \text{i.e.} \\[5pt] LR_3 \; &\in \; [\, r_{w,\,3}(\,\text{β}\,) - db_{L,\,3} \;\;,\;\; r_{w,\,3}(\,\text{β}\,) + db_{U,\,3} \,] \\[18pt] r_{w,\,13}(\,\text{β}\,) &= pb_{L,\,13} + pb_{U,\,13} (\,\text{β}\,) \;\;\;\; (\;\pm db_{*,\,13}\,) \\[5pt] \text{i.e.} \\[5pt] LR_{13} \; &\in \; [\; r_{w,\,13}(\,\text{β}\,) - db_{L,\,13} \;\;,\;\; r_{w,\,13}(\,\text{β}\,) + db_{U,\,13} \;] \end{align*}rw,3​(β)i.e.LR3​rw,13​(β)i.e.LR13​​=−pbL,3​(β)+pbU,3​(±db∗,3​)∈[rw,3​(β)−dbL,3​,rw,3​(β)+dbU,3​]=pbL,13​+pbU,13​(β)(±db∗,13​)∈[rw,13​(β)−dbL,13​,rw,13​(β)+dbU,13​]​