bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 19쪽 중 6쪽
ngle pool.
## How to track RUNEPool performance?
There are multiple dashboards to track the performance of RUNE added to the RUNEPool:
* [thorchain.network/runepool](https://thorchain.network/runepool)
* [thorchain.net/thorfi/runepool](https://thorchain.net/thorfi/runepool)
* [runescan.io/txs?type=runepool](https://runescan.io/txs?type=runepool)
Dashboards continuously evolve as THORChain expands, but taking the example of [THORChain.network](https://thorchain.network/runepool) you will find the following in the dashboard:
* Provider: The wallet that provided the RUNE
* Deposit: How much RUNE was provided by the provider
* Value: How much RUNE is currently possible to withdraw from the RUNEPool by a particular wallet.
* PnL: The difference between the Value and Deposit is the profit that a provider has made by adding RUNE to the RUNEPool
* Latest Deposit: Block # when the last deposit was made by the provider
* Lastet Withdrawal: Block # when the last withdrawal was made by the provider
* Withdrawn: How much RUNE was withdrawn by the provider
<figure><img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-794c4953e18dd1d3edd00dba5270e201896f0cac%2FScreenshot%202024-07-29%20at%2014.09.17.png?alt=media" alt=""><figcaption></figcaption></figure>
## How to use RUNEPool?
This section provides a simple guide on how to use RUNEPool, including adding and withdrawing from the pool, and viewing your position. You can find full technical docs under [dev.thorchain.org](https://dev.thorchain.org/concepts/rune-pool.html)
**Adding to RUNEPool**
1. **Create a Transaction**: Use a `MsgDeposit` transaction with the memo `pool+`.
2. **RUNE Only**: RUNEPool only works with RUNE.
3. **Instructions**: For detailed steps, refer to the "Add to the RUNEPool" section in the documentation.
**Withdrawing from RUNEPool**
1. **Create a Transaction**: Use a `MsgDeposit` transaction with the memo `pool-:<basis-points>:<affiliate>:<affiliate-basis-points>`.
2. **Minimum Term**: You can only withdraw after the minimum term, defined by the `RUNEPoolDepositMaturityBlocks` configuration.
3. **Instructions**: For detailed steps, refer to the "Withdraw from the RUNEPool" section in the documentation.
**Viewing RUNEPool Holders**
1. **All Holders**: Use the `rune_providers` endpoint to see a list of all RUNEPool holders.
2. **Specific Holder**: Use the `rune_providers/{thor owner address}` endpoint to view the position of a specific RUNEPool holder.
### How It Works
**PoL-Enabled Pools**
* **Enabled Assets**: POL is enabled for all eight native assets and five USD stable coins. The exact list can be found in the `mimir` endpoint.
**RUNEPool Units (RPU)**
* **Ownership Tracking**: RUNEPool Units (RPU) represent your share in the pool.
* **Redemption**: When you redeem your units, you receive a share of the total POL size in RUNE.
**Deposit Process**
1. **Deposit**: When you deposit, the balance moves to the `runepool` module.
2. **Pending Units**: Units are added to `PendingPoolUnits`.
3. **Reserve Exit**: The `reserveExitRUNEPool` function moves units from `PendingPoolUnits` to `PoolUnits`, reducing `ReserveUnits`.
**Withdraw Process**
1. **Pending Units Check**: If `PendingPoolUnits` is insufficient, the `reserveEnterRUNEPool` function moves RUNE from the reserve to make up the difference.
2. **Reserve Increase**: `ReserveUnits` are increased, and units move from `PoolUnits` to `PendingPoolUnits`.
3. **Withdraw Limit**: Withdrawals that would exceed `POLMaxNetworkDeposit + RUNEPoolMaxReserveBackstop` are not allowed.
**Impermanent Loss Management**
* **Aggregate IL**: Users experience aggregate impermanent loss across all PoL-enabled pools, reducing individual pool risks.
* **Idle RUNE**: Undeployed RUNE reduces yield but also limits exposure to impermanent loss.
#### Showing Profit and Loss (PnL)
**Global PnL:** The `/thorchain/runepool` endpoint returns the global PnL of RUNEPool, including details for the reserve and independent providers.
```json
jsonCopy code{
"pol": {
"rune_deposited": "408589258319",
"rune_withdrawn": "208496086616",
"value": "206166561256",
"pnl": "6073389553",
"current_deposit": "200093171703"
},
"providers": {
"units": "232440861",
"pending_units": "0",
"pending_rune": "0",
"value": "319161454",
"pnl": "56394430",
"current_deposit": "262767024"
},
"reserve": {
"units": "149915806863",
"value": "205847399802",
"pnl": "6016995123",
"current_deposit": "199830404679"
}
}
```
**Individual Provider PnL:** The `/thorchain/rune_provider/{thor_addr}` endpoint provides position information for a single provider.
```json
jsonCopy code{
"rune_address": "thor19phfqh3ce3nnjhh0cssn433nydq9shx76s8qgg",
"units": "232440861",
"value": "319161517",
"pnl": "56394493",
"deposit_amount": "3500000000",
"withdraw_amount": "3237232976",
"last_deposit_height": 14357483,
"last_withdraw_height": 14358846
}
```
This guide should help you understand and utilize RUNEPool effectively. For more detailed instructions, refer to the respective sections in the documentation.
### Sources
* [dev.thorchain.org/concepts/rune-pool.html](https://dev.thorchain.org/concepts/rune-pool.html)
* [RUNEPool Community Call](https://www.youtube.com/watch?v=vq6t9kPEBpw\&t=2s\&themeRefresh=1)
* [Original Issue](https://gitlab.com/thorchain/thornode/-/issues/1841)
* [\[ADD\] RUNEPool MR](https://gitlab.com/thorchain/thornode/-/merge_requests/3612/)
* [RUNEPool Implementation MR](https://gitlab.com/thorchain/thornode/-/merge_requests/3631)
# Synthetics
How THORChain enables synthetic assets with single asset exposure.
{% hint style="warning" %}
Synthetic assets are no longer actively used within THORChain.\
Since 04 Jan 2025, the withdrawal of Synthetics has been disabled. See [this article](https://medium.com/thorchain/thorfi-unwind-96b46dff72c0) for more information.
{% endhint %}
## Synthetic Assets
THORChain synthetics are unique in that they are 100% collateralised when they exist but switch to being 1:1 pegged at the time of redemption. Other synthetic or wrapped asset designs are either over-collateralised or pegged, never both. This means they are either capital-inefficient (requiring over-collateralisation) or capital-sensitive (can depeg if <100% collateralisation). The advantage of THORChain's design is that the collateralisation is managed by the system on a best-effort basis to be aspirationally 100%. However, when the asset is redeemed, it switches to being pegged 1:1, which means they can tolerate going below 100% collateralisation without losing the peg. The deficit is regained by liquidity-sensitive fees on the redemption so that the last holders of the asset can achieve re-collateralisation.
The collateral for synthetic assets is constant-product liquidity, always 50% in the asset, with the other 50% in RUNE. As the price changes, the pool rebalances on the curve, having much stronger inertia than if it were 100% collateralised by the endogenous asset (RUNE). The price-shift is subsidised by the other liquidity in the pool.
{% hint style="info" %}
Synthetic Assets are aspirationally 100% collateralised by pool liquidity when they exist, but redeemed on a 1:1 pegged basis, no matter the health of the collateral.
{% endhint %}
### Minting - 1:1 pegged
Synthetic Assets are created by swapping RUNE (or the Asset), into its synthetic counterpart, using the pool liquidity depth. This process is identical if the asset was swapped into the L1 instead. Thus when minting, the pool treats both the synthetic and its L1 as identical in purchasing power:
$$
\text{synthAmount} = \frac{r \cdot R \cdot A}{(r + R)^2}
$$
* r = rune deposited
* R = Rune Depth (before)
* A = Asset Depth (before)
This is the [identical equation to L1 swaps](/technical-documentation/thorchain-finance/continuous-liquidity-pools#slip-based-fee-model-clp).
The total Synth Supply is then updated:
$$
\text{synthSupply} += \text{synthAmount}
$$
### Synth Units - 100% collateralisation
In the above swap - an asset was added to the pool (the RUNE or ASSET), but none taken out since the swap output is minted from nothing. Thus the pool has extra liquidity that needs to be isolated from other LPs. This is the purpose of Synth Units.
Synth Units represent the liquidity collateral value that is required to "back" the synths 100%, and stops other dual-LPs from claiming ownership of it. They are computationally derived at any point which ensures there is exactly enough at any time to represent the outstanding supply.
The ratio of Synth Units to Liquidity Units should be the same as the ratio of synth supply to the total value of the pool without the synths (since LP units are all pool units without the synth units).
* U = Synth Units (what needs to be isolated to back the synthS)
* L = Liquidity Units (dual-LPs)
* S = Synth Supply (the synths to be backed)
* A = Asset Depth (the assets in the pool)
$$
\frac{U}{L} = \frac{S}{(2A-S)}
$$
$$
U = L \cdot \frac{S}{(2A-S)}
$$
Synth Units are issued to cover the new liquidity minted, but held by the pool (not owned by anyone). Pool Units are therefore the sum of [liquidityUnits](/technical-documentation/thorchain-finance/continuous-liquidity-pools#calculating-pool-ownership)+ synthUnits.
{% hint style="warning" %}
Synth Collateralisation is done aspirationally. If the total value of the liquidity in the pool drops below the total value of the synths, then Synth Units minted will go to infinity, diluting the dual-LPs to 0%.
{% endhint %}
### Redeeming: 1:1 pegged
Synthetic Assets are redeemed by swapping the Synth across the pool. The synth is swapped using the same formula as though it was an L1 asset, thus the synth has the same purchasing power to the L1. It is therefore pegged.
$$
\text{runeAmount} = \frac{s \cdot A \cdot R}{(s + A)^2}
$$
* s = Synths to Redeem
* R = Rune Depth (before)
* A = Asset Depth (before)
The Synth Supply is thus decremented, and this in turn updates the oustanding Synth Units since it is computationally derived.
### Swapping
Synth Swaps can be done as follows:
* Layer 1 to Synth: L1 in, Synth Minted
* Synth to Layer 1: Synth REDEEMED, L1 swapped out
* Synth to Synth: Synth REDEEMED, RUNE moved between pools, synth MINTED
To specify the destination asset is synth, simply provide a THOR address. If it is Layer 1, then provide a layer 1 address, e.g. a BTC address.
## Economics
### Fees
All swaps pay fees, and a synth Mint or Redeem to an L1 is two swaps. Thus 10.0 btc/btc swapped across a pool of 1000 BTC.BTC will receive `10 - ((10/1000)*10)*2 = 9.8` minus any outboundFees. Is the synth pegged 1:0.98? No, because the same holder could swap 10 BTC in 1.0 BTC increments and receive `10*(1 - ((1/1000)*1)*2) = 9.98` minus 10 outboundFees. Both outboundFees and liquidityFees as a function of the swap size can be controlled by the user.
### Effect on Dual-LPs
The dynamic synth unit accounting is to ensure that gain or loss caused by price divergence in the synths is quickly realised to LPs. If Synths as a function of Pool Liquidity goes to 100%, then dual-LPs are diluted to 0%.
### Synth Minting Cap
Due to synths, Liquidity Providers are taking a leveraged position on the RUNE asset today. This can help them earn more rewards if RUNE outperforms the asset, but can also go the other way. The higher the percentage of synths that exist on the network relative to pool depth, the higher the leveraged position Liquidity Providers are taking.
Due to this, the minting of synths is capped to an upper limit of the total pool depth to protect Liquidity Providers and the network. The [Mimir](/technical-documentation/technical-deep-dive/governance#mimir) setting `MaxSynthPerAssetDepth` setting controls the cap which is the asset depth percentage.
### Protocol Owned Liquidity (POL)
With the addition of [yield-bearing synths (Deprecated),](/thornodes/archived/savers) there can be a high demand for minting synths that exceed the cap with normal liquidity. See the original [PR](https://gitlab.com/thorchain/thornode/-/issues/1342). POL has been introduced to deal with a high demand for minting synths while maintaining a safe synth minting limit by using the RUNE within the [Reserve](/technical-documentation/technical-deep-dive/economic-model).
The network can monitor the synth utilisation on a per pool basis, and add liquidity (asymmetrically addition of RUNE) if utilisation is greater than `cap - 5%` (if economic security allows). If synth utilisation is under this figure, then the reserve would remove liquidity (if the PoL has an LP position in this pool).
* cap = e.g. 1500 (in basis points)
* range = 500 (in basis points)
* PA = pool asset depth
* S = synth supply
$$
\text{utilisation} = \frac{S}{PA} \cdot 10000
$$
By having the reserve add rune into the pool, it de-risks LPs from over RUNE leverage, as the reserve takes on some of that risk. The Reserve is long on its own (and only) asset. This, in turn, creates synth space in the pool, more synth minting and more single-sided asset deposits in the form of synths to enter.
### Staged Pools
If an active pool that minted synths becomes staged, then swaps are disabled. However, synth holders can always redeem for RUNE, or the underlying asset, by specifying that on the way out.
### Alternate Synth Derivation
%20\(3\).png?alt=media)
# Understanding THORChain
Introduction of concepts that help make sense of how THORChain is uniquely able to provide the services it does.
## Automated Market Makers (AMMs) & Liquidity Pools
Automated market makers (AMMs) are decentralised exchanges (DEXs) that rely on users to voluntarily deposit network-supported assets into what are called liquidity pools—this is called *liquidity* *pooling*. Each supported asset has its own dedicated liquidity pool; these algorithmically price its respective asset, also providing the liquidity for the exchange's transactions.
By depositing their capital into the asset-specific pools, these Liquidity Providers (LPs) become owners of a proportional share of that pool for as long as their assets remain deposited. In exchange for contributing liquidity to the network, LPs earn rewards, which are distributed regularly. These rewards come directly from swap fees paid by swappers.
While each AMM carries distinct design mechanics with regard to its liquidity pool functionality, all generally aim to offer their users deep liquidity, low transaction fees, and 100% uptime for as many users as possible. THORChain is no different in this regard.
## THORChain: A Novel AMM Protocol
Unlike other AMMs, THORChain is unique in that it offers swappers the ability to seamlessly swap native assets on their native blockchains. It offers this in perhaps the most decentralized, trustless, permissionless way available. It is precisely for these reasons (and more) that THORChain is the functional backend for many user interfaces.
Key features of THORChain are:
* Native Asset Swaps: Swap Layer 1 assets across multiple chains—e.g., native BTC to ETH swap
* Permissionless: No user registration is required; send a transaction & THORChain will execute it
* Decentralized Pricing: Gives transparent, fair prices without reliance on centralised third-parties
* AMM Design: [Continuous Liquidity Pools](/technical-documentation/thorchain-finance/continuous-liquidity-pools#benefits-of-the-clp-model) maximise network efficiency
* Supports App Layer development via Cosmwasm Smart Contracts
## Using THORChain's Services
THORChain offers two decentralized and permissionless services:
1. [Swaps](https://docs.thorchain.org/understanding-thorchain/roles/swapping): Cross-chain swaps between native assets—e.g., from native BTC (on the Bitcoin blockchain) to native ETH (on the Ethereum blockchain)
2. [Liquidity Pools (LPs)](https://docs.thorchain.org/understanding-thorchain/roles/liquidity-providers): Depositing and withdrawing native assets to provide liquidity
Neither service requires participants to hold the RUNE token. All that is needed to use THORChain is to choose from the several [Exchanges and/or Wallets](https://docs.thorchain.org/ecosystem#exchanges-only) that have integrated with THORChain.
### Interacting with the RUNE token
That said, users may very well wish to interact with the [RUNE](https://docs.thorchain.org/understanding-thorchain/rune) token. Whether a user wants to hold RUNE, deposit into LPs symmetrically, and/or [bond](https://docs.thorchain.org/understanding-thorchain/roles/node-operators) into a THORNode, they will need a wallet that supports RUNE ([List of wallets that support RUNE](https://docs.thorchain.org/ecosystem#integrated-wallets-and-exchanges)). Once the user has successfully obtained a RUNE-supporting wallet, they can acquire RUNE. To do so, users can swap for RUNE from THORChain directly using any of these [Frontend User Interfaces](https://docs.thorchain.org/ecosystem#exchanges-only). They may also choose to acquire RUNE from supported centralized exchanges.
For platform-specific instructions or support with an interface, it is best to get in touch with them via their [support channels](/ecosystem#integrated-wallets-and-exchanges)—this also goes for troubleshooting and user support.
➜ For further reading, see: [An Introduction to THORChain for Bitcoiners](https://erikvoorhees.medium.com/an-introduction-to-thorchain-for-bitcoiners-3f621bf0028e)
# Roles
Roles within THORChain
In the THORChain ecosystem, there are four key roles that network participants may play:
1. **Liquidity providers**: these add liquidity to pools, earning fees for their temporary deposit
2. **Swappers**: those users who use THORChain's liquidity to swap assets ad-hoc, paying fees for the service
3. **Arbitrageurs**: expert traders who continually monitor and rebalance pools; still paying fees but with the intent to earn a profit
4. **Node Operators** who provide a bond and are paid to secure the system.
A single user may take on multiple roles simultaneously.
# Liquidity Providers (LPs)
A deeper dive into the Liquidity Provider role
Liquidity providers contribute native, network-supported assets to the THORChain liquidity pools. They may deposit any number of assets they choose of any value, doing so for their chosen amount of time; in short, there are no restrictions to LPing other than the need to pay deposit and withdrawal fees. “As stated, these LPs are compensated for their temporary contributions with swap fees, which are dynamically affected by several factors.
{% hint style="warning" %}
Liquidity providers commit capital to pools which have exposure to underlying assets. Liquidity providers THEN gain exposure to the underlying assets in each pool. Since assets can be deposited freely, LPs will experience the volatility of those assets—whether positive or negative.
While LPs are paid liquidity fees, these remain dynamic and may not be enough to cover "Impermanent Losses", which occur when price changes happen. With their deposit, Liquidity providers are voluntarily and knowingly taking on this risk. Therefore, they should not assume they are guaranteed or entitled to receive a specific quantity of their assets back when they deposit; rather, they should expect to receive their fair share of the pool's earnings and final asset balances.
{% endhint %}
## How to LP
### Requirements & Costs
Liquidity providers must have assets to deposit and their assets must be native to a supported chain. There is no minimum amount to deposit in existing pools. However, new assets must win a competition to be listed – larger value deposits will be listed over smaller value deposits.
Liquidity prov프로젝트로 돌아가기