🫗Liquidity and Leverage
The Mechanics of Constant Leverage
Last updated
The Mechanics of Constant Leverage
Last updated
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 (). 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, , is always split between the gentlemen and the apes
At any time a gentlemen can claim their part of proportionally to their TEA balance, and similarly the apes can claim their part of .
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.
Let's define 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, equals 3,355 USDC/ETH. Ideally, the apes' claim on the reserve, , adapts based on the power-law function of constant-leverage:
where is the new value of the apes' reserve, is the new price, is the original price, and is the leverage. This constant leverage regime is the preferred regime but it cannot, logically, be sustained for any price since can escalate indefinitely.
To maintain the leverage ratio , an additional units of liquidity are required for every unit held by the apes. The saturation price, , signifies the threshold at which liquidity is fully utilized, i.e., when . Therefore, the vault can accommodate any price movement within the range without disrupting the constant leverage. Importantly, is not static; it adjusts based on the ratio, reflecting changes in the gentlemen's liquidity versus the apes' positions. Specifically, increases when gentlemen add liquidity or apes reduce their leveraged positions, and it decreases otherwise.
The saturation zone is initiated when the market price surpasses , shifting away from the ideal constant leverage scenario to a liquidity-constrained state, where . Beyond , the amount owed to the gentlemen denominated in debt token (DBT) becomes fixed:: , thereby fixing their reserve portion to
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 . Similar to traditional margin trading, as the price continues to climb, the effective leverage ratio experienced by the apes diminishes.