🫗Liquidity and Leverage

The Mechanics of Constant Leverage

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 (ll). 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, RR, is always split between the gentlemen and the apes

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

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

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 Protocol-Owned Liquidity (POL), 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 pp 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, pp equals 3,355 USDC/ETH. Ideally, the apes' claim on the reserve, AA, adapts based on the power-law function of constant-leverage:

A=(pp)l1A,A'=\left(\frac{p'}{p}\right)^{l−1}A,

where AA' is the new value of the apes' reserve, pp' is the new price, pp is the original price, and ll is the leverage. This constant leverage regime is the preferred regime but it cannot, logically, be sustained for any price pp' sinceAA' can escalate indefinitely.

To maintain the leverage ratio ll, an additional l1l-1 units of liquidity are required for every 11 unit held by the apes. The saturation price, psatp_\textrm{sat}, signifies the threshold at which liquidity is fully utilized, i.e., when G=(l1)AG=(l-1)A. Therefore, the vault can accommodate any price movement within the [0,psat][0,p_\textrm{sat}]range without disrupting the constant leverage. Importantly, psatp_\textrm{sat} is not static; it adjusts based on the G/AG/A ratio, reflecting changes in the gentlemen's liquidity versus the apes' positions. Specifically, psatp_\textrm{sat} 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 psatp_\textrm{sat}​, shifting away from the ideal constant leverage scenario to a liquidity-constrained state, where G<(l1)AG<(l-1)A. Beyond psatp_\textrm{sat}​, the amount owed to the gentlemen denominated in debt token (DBT) becomes fixed:: D=GsatpsatD=G_\textrm{sat}p_\textrm{sat}, thereby fixing their reserve portion to

G=Dp=ppG.G'=\frac{D}{p'}=\frac{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 ll. Similar to traditional margin trading, as the price continues to climb, the effective leverage ratio experienced by the apes diminishes.

Last updated

Was this helpful?