SIR
  • Protocol Overview
    • ๐Ÿ‘‹Introducing SIR
      • ๐Ÿ“ˆTake on Leverage and Forget
      • โœ๏ธWhiteboard Video
    • ๐Ÿซ—Liquidity and Leverage
      • ๐ŸŒฑProtocol Owned Liquidity
    • ๐Ÿ”ฎPrice Oracle
    • ๐ŸŽฉSIR: A Dividend-Paying Token
      • ๐ŸฐToken Distribution
    • ๐Ÿท๏ธToken Auctions
    • ๐ŸงชBeta Period
    • โš ๏ธUser Risks
    • ๐Ÿ“œContract Addresses
    • ๐Ÿช‚Alternative Frontend (IPFS)
    • ๐Ÿ’ฅExploit & Relaunch
  • Links
    • Discord
    • GitHub
    • X / Twitter
    • Protocol Audit
Powered by GitBook
On this page
  • Fees from Apes
  • Fees from LPers
  • The Limits of Constant Leverage
  • The Saturation Zone

Was this helpful?

  1. Protocol Overview

Liquidity and Leverage

The Mechanics of Constant Leverage

PreviousWhiteboard VideoNextProtocol Owned Liquidity

Last updated 4 days ago

Was this helpful?

Vault creation in SIR is open to anyone and is defined by three key parameters: the collateral token (COL), the debt token (DBT), and the leverage ratio (lll). There are two types of users: gentlemen (liquidity providers or LPers) and the apes (traders). Gentlemen mint TEA tokens by depositing collateral, earning substantial fees generated from the trading activities of the apes. Similarly, apes mint APE tokens, a leveraged COL/DBT token, by also depositing collateral. TEA tokens are ERC-1155, and APE tokens are ERC-20. The reserve of collateral in the vault, RRR, is always split between the gentlemen and the apes

R=G+A.R=G+A.R=G+A.

At any time a gentlemen can claim their part of GGG proportionally to their TEA balance, and similarly the apes can claim their part of AAA.

Fees from Apes

Vaults feature a fee system that rewards the gentlemen with significant fees from the minting and burning of APE tokens. These fees vary by vault, increasing with the vault's leverage ratio. Although these fees are substantial, they allow apes to hold APE tokens without incurring any maintenance fees, regardless of the holding period. The fees for minting or burning APE tokens are on par with the costs of holding a margin position for approximately one year, striking a balance between potential returns and upfront costs. This structure aims to benefit liquidity providers and encourage long-term traders, while short-term traders may not see their speculative positions fully materialize, essentially contributing more to the ecosystem's finances through these initial fees.

Fees from LPers

To prevent certain economic exploits, LPers are charged a fee when minting TEA. Without this fee, an actor could mint TEA, collect a share of protocol fees, and then immediately burn the TEA, extracting value without taking on meaningful risk. The minting fee introduces a cost to this behavior, aligning LP incentives with the long-term health and stability of the protocol.

This fee is allocated to , which participates in the vault as a permanent LPer. POL continues to accumulate rewards and deepens liquidity over time, contributing to the overall resilience of the system.

The Limits of Constant Leverage

Let's define ppp as the current price of the collateral (COL) in terms of the debt token (DBT). For instance, if COL = ETH and DBT = USDC, then on April 4, 2024, ppp equals 3,355 USDC/ETH. Ideally, the apes' claim on the reserve, AAA, adapts based on the power-law function of constant-leverage:

Aโ€ฒ=(pโ€ฒp)lโˆ’1A,A'=\left(\frac{p'}{p}\right)^{lโˆ’1}A,Aโ€ฒ=(ppโ€ฒโ€‹)lโˆ’1A,

where Aโ€ฒA'Aโ€ฒ is the new value of the apes' reserve, pโ€ฒp'pโ€ฒ is the new price, ppp is the original price, and lll is the leverage. This constant leverage regime is the preferred regime but it cannot, logically, be sustained for any price pโ€ฒp'pโ€ฒ sinceAโ€ฒA'Aโ€ฒ can escalate indefinitely.

To maintain the leverage ratio lll, an additional lโˆ’1l-1lโˆ’1 units of liquidity are required for every 111 unit held by the apes. The saturation price, psatp_\textrm{sat}psatโ€‹, signifies the threshold at which liquidity is fully utilized, i.e., when G=(lโˆ’1)AG=(l-1)AG=(lโˆ’1)A. Therefore, the vault can accommodate any price movement within the [0,psat][0,p_\textrm{sat}][0,psatโ€‹]range without disrupting the constant leverage. Importantly, psatp_\textrm{sat}psatโ€‹ is not static; it adjusts based on the G/AG/AG/A ratio, reflecting changes in the gentlemen's liquidity versus the apes' positions. Specifically, psatp_\textrm{sat}psatโ€‹ increases when gentlemen add liquidity or apes reduce their leveraged positions, and it decreases otherwise.

The Saturation Zone

The saturation zone is initiated when the market price surpasses psatโ€‹p_\textrm{sat}โ€‹psatโ€‹โ€‹, shifting away from the ideal constant leverage scenario to a liquidity-constrained state, where G<(lโˆ’1)AG<(l-1)AG<(lโˆ’1)A. Beyond psatโ€‹p_\textrm{sat}โ€‹psatโ€‹โ€‹, the amount owed to the gentlemen denominated in debt token (DBT) becomes fixed:: D=GsatpsatD=G_\textrm{sat}p_\textrm{sat}D=Gsatโ€‹psatโ€‹, thereby fixing their reserve portion to

Gโ€ฒ=Dpโ€ฒ=ppโ€ฒG.G'=\frac{D}{p'}=\frac{p}{p'}G.Gโ€ฒ=pโ€ฒDโ€‹=pโ€ฒpโ€‹G.

In practical terms, if COL = ETH and DBT = USDC, in this regime the gentlemen's reserve value is calculated in USDC, while the apes benefit from the appreciation of ETH versus USDC. This mirrors a conventional margin long position with the initial leverage lll. Similar to traditional margin trading, as the price continues to climb, the effective leverage ratio experienced by the apes diminishes.

๐Ÿซ—
Protocol-Owned Liquidity (POL)