THORChain 백서

THORChain

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 19쪽 중 19쪽

m their share of the vault, which would be their principle, plus all the yield they were entitled to. The asset being claimed was a synth quantity, which was then swapped out to the L1 asset. ## Historical Questions ### Where did the yield come from? Swap fees and liquidity rewards. ### Was Saver holding an L1 asset, or a claim on an L1 asset? The Saver held **Saver Units**, which was a claim on a **Vault Balance**, which held **Synthetic Assets**, which was a claim on **L1 Liquidity**, which could be swapped at 1:1 purchasing power to the **L1 Asset**. So, they were holding a claim on an L1 asset. ### What were the risks? There could be an economic bug in Synths, leading to breakdown in the accounting of the claims. There could be a technical bug leading to a loss of L1 assets in the vaults. #### Why were there fees to enter or exit? Savers paid a liquidity fee to enter and exit, as well as network fees to pay for gas. Liquidity fees were demand-responsive and prevented economic attacks. Network fees to pay for gas ensured the system was sustainable. ### Resources * [Savers Vaults Live on THORChain](https://medium.com/thorchain/thorchain-savers-vaults-fc3f086b4057) - THORChain Medium * [Under the Hood: Single Sided Yield & Protocol Owned Liquidity](https://crypto-university.medium.com/under-the-hood-single-sided-yield-protocol-owned-liquidity-a5ef725a5d7a) - LP University * [Yield Bearing Synths and POL](https://www.youtube.com/watch?v=Up2-arSzH5k) - GrassRoots Crypto # Lending (Deprecated) \[DEPRECATED] THORFi Lending within THORChain {% hint style="danger" %} **DEPRECATED FEATURE**: Lending has been permanently deprecated as of January 4, 2025. This feature is no longer available on THORChain. This documentation is preserved for historical reference only. See the [THORFi Unwind announcement](https://medium.com/thorchain/thorfi-unwind-96b46dff72c0) for more information. {% endhint %} ## Overview Lending allowed users to deposit native collateral, and then create a debt at a collateralization ratio (CR). The debt was always denominated in USD (aka `TOR`), regardless of what L1 asset the user received. All loans had 0% interest, no liquidations, and no expiration. Since ADR 012 was implemented in Feb-2024, a flat 200% CR (or 50% Loan-to-Value, LTV) was implemented. Risk was mitigated by: * Limits on collateral for the network and each pool * Slip-based fees when opening and closing loans * A circuit breaker on RUNE total supply Lending allowed users to: * Create a loan using native assets as collateral * Hold a loan without the risk of liquidation * Be short on USD and long on crypto assets such as Bitcoin Lending benefited the protocol by: * Increased capital efficiency of the pools which increased system income and real yield * Increased trading volume * Increased total bonded, allowing THORChain to scale * Providing an attractive sink for capital {% hint style="success" %} [ADR 011: THORFi Lending Feature](https://dev.thorchain.org/architecture/adr-011-lending.html) with full Lending details was released and approved by Node Operators. {% endhint %} {% hint style="success" %} [ADR 012: THORFi Lending Scaling](https://dev.thorchain.org/architecture/adr-012-scale-lending.html) - setting CR to flat 200%, and burning Standby Reserve to increase collateral cap. {% endhint %} ## Lending Fundamentals ### Derived Assets and Pools Derived assets, such as `thor.btc` and`thor.tor`, were algorithmic coins that were backed by the liquidity of RUNE, and the liquidity of that was based on the RUNE-ASSET pair. Derived assets were swapped from or swapped to L1 assets, via RUNE, using derived asset pools that were based on the equivalent L1 pools. Unlike Synthetic Assets, derived assets were independent of Liquidity Pools and all swap fees were burnt. Derived assets were for accounting and there were no plans for them to be exportable or held by users. ### TOR Explained TOR (`thor.tor`) was a non-transferable unit of account within THORChain designed to match the value of $1 USD and had been in use since [ADR 003](https://dev.thorchain.org/architecture/adr-003-flooredoutboundfee.html). It could not be exported anywhere and always had a market cap of $0. TOR was valued by taking the median price of the active USD pools. All collateral, debt and repayments within Lending were converted to and accounted for in TOR. To understand TOR in depth, go to the dedicated [TOR section](/technical-documentation/thorchain-finance/tor). ### Open Loan Flow The user provided Bitcoin collateral and could receive the debt in any asset however it was all accounted for in TOR. 1. The user sent in collateral (BTC.BTC -> RUNE, RUNE -> THOR.BTC) 2. THOR.BTC was held as collateral in the Lending module 3. Convert THOR.BTC value to TOR terms 4. Calculate debt in TOR based on CR and collateral TOR value 5. Mint TOR 6. TOR -> RUNE, RUNE -> L1 out (e.g. - ETH) ### Loan Repayment / Close Flow Users could repay loans at any time, with any amount in any asset. Repayment was converted into TOR. 1. L1 -> RUNE (optional, user could also pay back with RUNE) 2. RUNE -> Mint TOR 3. Burn TOR (amount deducted from loan debt) 4. Burn Derived Asset (THOR.BTC) (amount was the same percentage of collateral as a percentage of loan debt paid) -> Mint RUNE 5. RUNE -> BTC.BTC (loan originator) {% hint style="success" %} Collateral was not returned until the loan was fully repaid. The user always had the right to have their returned collateral if they repaid the loan. {% endhint %} ## Historical Resources ### FAQs * [General Lending FAQs](/thornodes/archived/lending-faq) ### Explainer Articles * [Lending 101 by LP University](https://crypto-university.medium.com/under-the-hood-lending-101-f934e1c22792) ### Explainer Videos * [How Lending Works by GrassRoots Crypto](https://youtu.be/AaqHG00RJks) * [Lending with Numbers by GrassRoots Crypto](https://youtu.be/PVpYU5kCOHI) * [Lending Risks & Concerns by GrassRoots Crypto](https://www.youtube.com/watch?v=glY_RVYdsfM) ### Dashboard * [Lending Health Dashboard](https://dashboards.thorchain.org/#lending) * [Lending Dashboard by banbannard](https://flipsidecrypto.xyz/banbannard/thorchain-lending-fOAKej) ### Design Documents * [ADR 011: THORFi Lending Feature](https://dev.thorchain.org/architecture/adr-011-lending.html) * [ADR 012: THORFi Lending Scaling](https://dev.thorchain.org/architecture/adr-012-scale-lending.html) * [Original Design](https://gitlab.com/thorchain/thornode/-/issues/1412) # Savers FAQ (Deprecated) {% hint style="danger" %} **DEPRECATED FEATURE**: Savers have been permanently deprecated as of January 4, 2025. This feature is no longer available on THORChain. This documentation is preserved for historical reference only. See the [THORFi Unwind announcement](https://medium.com/thorchain/thorfi-unwind-96b46dff72c0) for more information. {% endhint %} ### What was a Savers Vault? Savers Vaults were a way to supply single-asset liquidity on THORChain. Users could deposit native Bitcoin, earn in-kind yield, and withdraw their principal any time since they maintained full control of their keys. * [Original Launch Article](https://medium.com/thorchain/thorchain-savers-vaults-fc3f086b4057) ### Was Savers Vault yield fixed rate or variable rate? Yield was variable and driven by swap fees, block rewards, pool depth, and the incentive pendulum. Annual percentage rates (APRs) were calculated using an extrapolation of past performance data from the last 30 days. ### Were there fees to enter and exit a Savers Vault? Yes. There were slippage fees paid on entering and exiting a Savers Vault. There was a 5 bps for entry and exit fee for all savers position due to streaming swaps regardless of the size of the transaction. ### Which assets were eligible to deposit in a Savers Vault? All L1 Assets and Selected Stables were supported. ### Where could users access Savers Vaults? Users could manage a THORChain Savers Vault positions through many interfaces. ### Where could users track their Savers Vault yield? Users could track their Savers Vault positions on supported interfaces including: * RUNEScan.io * THOR Infobot ### Should users have used THORChain Savers Vaults? Users should have used THORChain Savings if they were planning on keeping their funds in the vault long enough for the fees accrued to offset the entry/exit costs, as well as the outbound fee(s) assessed when withdrawing. Example: a user deposits 1 BTC in a pool 1000 BTC deep; thus pays a 0.1% slippage fee (1/1001) and is credited 0.999 BTC in the vault. If the pool is paying 3.65% APR, this is 0.1% earned every 10 days. Thus the user should plan to stay at least 20 days to pay for the entry and exit fee as a minimum. ### What were the risks associated with Savers Vaults? Savers Vaults were not risk-free. Although Savers was designed to mitigate risk, the possibility of loss could not be eliminated completely. It was the user's responsibility to be aware of the risks before entering a Savers Vault. ### Could wallets/DEXs/DeFi products offer Savers Vaults to customers? Yes, any person, service, or dApp could create a frontend interface to offer THORChain Savers Vaults to its users. Interested parties were directed to review the THORChain Developer Documentation. ### How did one integrate with Savers? See the developer quick start guide [here](https://dev.thorchain.org/saving-guide/quickstart-guide.html) # Lending FAQ (Deprecated) {% hint style="danger" %} **DEPRECATED FEATURE**: Lending has been permanently deprecated as of January 4, 2025. This feature is no longer available on THORChain. This documentation is preserved for historical reference only. See the [THORFi Unwind announcement](https://medium.com/thorchain/thorfi-unwind-96b46dff72c0) for more information. {% endhint %} ## General Questions ### What was Lending? Lending allowed users to deposit native collateral, and then create a debt at a collateralization ratio with 0% interest, no liquidations, and no expiration. * [More information](/thornodes/archived/lending) * [Launch Article](https://medium.com/thorchain/lending-on-thorchain-646bbf2e6e1b) * [Explanation Video](https://youtu.be/AaqHG00RJks) * [Health Dashboard](https://dashboards.thorchain.org/#lending) ### What was TOR? TOR (`thor.tor`) was a non-transferable unit of account that debt was always denominated in within THORChain. TOR maintained its stability by anchoring to a median value of a basket of USD-pegged stablecoins (USDC, USDT, BUSD), ensuring it stayed closely pegged to $1 USD. The RUNE<>TOR mechanism worked through a two-way burn process: minting TOR burned an equivalent value of RUNE, and burning TOR minted the same value of RUNE. See more under [TOR](/technical-documentation/thorchain-finance/tor). ### Could users partially repay their loan? Debt could be partially repaid, but a borrower would only receive their collateral back when the debt was repaid in full. ### What happened if a user overpaid their debt? Overpayments were credited towards the next loan the borrower opened. ### Was there a best time to open or close a loan? Yes, it was best to open and close loans during times of low volatility. To protect the network from price manipulation, virtual pool depths for lending would shrink during times of increased volatility, meaning liquidity fees could greatly increase. Managing loans during times of low price volatility on THORChain would yield the most desirable results. Patient borrowers paid the least fees. ### Would users always receive their full collateral back? Users would receive their full collateral back upon repayment minus slip-based liquidity fees incurred from the loan opening and closing process. During low volatility periods, fees would be lower. During times of high volatility, fees would be higher due to the constricting virtual pool depth. ### Which assets could users use to pay down their debt? Debt could be repaid with any THORChain-supported asset. Assets used to repay loans would be sold for TOR to repay the debt, since debt was denominated in TOR. ### Was streaming swaps used for lending? Yes. There was a 5 bps default fee. ### Why were there no liquidations? In this design, if collateral fell below the debt value, it wasn't problematic since the collateral, stored as equity (RUNE), was the liability. Liability grew only when the RUNE-ASSET price dropped and the loan was repaid. Liquidating collateral posed individual loan risks, worsened user experience, and made users monitor RUNE's price, conflicting with design objectives. Rather than liquidations, the protocol could bear a slight rise in RUNE supply (around 15m or 3%) before activating a circuit breaker, pausing the lending feature. ### Why was there no interest? Interest rates generate income on collateral but make users more likely to repay loans. THORChain's design thrived when users opted for long-term loans or never repaid. A 0% interest rate, being highly attractive, meant users seldom repaid as their principal remained intact. Users incurred slip-based fees upon entering or exiting positions, which boosted yield for network participants and permanently burned RUNE. ### Why was there no expiry? The protocol wanted to attract as much exogenous capital as possible (L1 assets like BTC and ETH) since it converted them to equity (RUNE IOUs). This design created net buy pressure on RUNE while storing equity as liability, which THORChain did not want to be called on, thus there was no expiry. ### How did lending help THORChain scale? THORChain had strict rules on economic security. Value at stake by the validators must always be greater than the value of the assets in the vaults, measured in RUNE. Due to Protocol-Owned-Liquidity and Savers, the network was likely to max out pooled RUNE and send all yield to nodes. The lending design bought and burned RUNE from the pools, directly affecting the relationship between liquidity and security. ### Who was the counterparty to the loans? The THORChain protocol and all RUNE holders were the counterparty to each loan. The RUNE burn/mint mechanism meant RUNE concentration/dilution effects (among all RUNE holders) as loans were opened and closed. Liquidity providers and Savers were not directly lending their assets to borrowers. The pools were just the conduit to swap between collateral and debt. ### How did one integrate with Lending? See the developer quick start guide [here](https://dev.thorchain.org/lending/quick-start-guide.html) ## In Depth Questions [See this Twitter Thread](https://twitter.com/CBarraford/status/1775618463341408587)
프로젝트로 돌아가기