THORChain 백서

THORChain

원문

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

# Introduction A high-level overview of what THORChain is, does, encourages, and pursues. {% hint style="info" %} **New to THORChain?** Check out [What is THORChain and RUNE?](/what-is-thorchain-and-rune) for an easy-to-understand introduction. {% endhint %} ## Introduction ### What is THORChain? THORChain is a decentralized exchange (DEX) enabling native cross-chain swaps without wrapped assets or bridges. All trades occur on-chain and are permissionless. Built on the [Cosmos SDK](https://docs.cosmos.network), it utilises the CometBFT consensus engine, the Cosmos-SDK state machine, and the GG20 Threshold Signature Scheme (TSS) to execute its purpose, which is to allow users to swap native assets across multiple chains with zero reliance on centralised third parties. In doing so, it stands as one of the few exchanges that verifiably ensures transparent and fair prices for cross-chain swaps of native assets. THORChain's design renders no need for wrapped or pegged assets. Instead, the protocol deploys what are called continuous liquidity pools (CLPs), which—with highly complex algorithms—maximise the efficiency of its transactions. These CLPs allow for THORChain to manage funds directly in on-chain vaults, and it secures those funds via an economic security model. For all this, THORChain might be best described as a "cross-chain automated market maker (AMM), like Uniswap", or even a "decentralised Binance". ### THORChain's Financial Offerings Building on the foundation of liquidity pools, THORChain pursues two important financial primitives: 1. Allow a user to [**Swap**](/technical-documentation/thorchain-finance/continuous-liquidity-pools) {*Asset X on Chain A*}, to {*Asset Y on Chain B*}. 2. Allow a user to [**Pool**](/technical-documentation/thorchain-finance/runepool) RUNE across liquidity pools, ### Building on THORChain THORChain welcomes developers who want to build applications and interfaces for users. Whether you're creating wallets, exchanges, or innovative DeFi applications, THORChain provides the infrastructure for cross-chain liquidity. For technical integration guides, API documentation, and developer resources, visit the [THORChain Developer Documentation](https://dev.thorchain.org/). For a detailed understanding of THORChain's technical innovations, design principles, and protocol mechanics, see the Technical Deep Dive section below. To learn how THORChain works, feel free to jump here: {% content-ref url="/pages/K9qI3quGrONhi97sUDWI" %} [Technical Deep Dive](/technical-documentation/technical-deep-dive) {% endcontent-ref %} ### THORNodes THORNodes are anonymous individuals who bond their RUNE to the network in order to provide validation services. As a fully permissionless network, THORChain allows anyone with the required funds to do this—all while maintaining user security. To further elevate network security, THORChain maintains a high churn schedule for these validators, every three days kicking out the oldest, slowest, and lowest bonded. This high-churn model ensures that THORChain remains resistant to centralization, capture, and censorship. Each individual THORNode is comprised of several independent servers in a cluster, which run full-nodes for each connected chain. Initially intended to max out capacity at 100 nodes, the protocol is able scale to 250+ nodes. ### CONTRIBUTING THORChain is an open-source, public project with a vibrant and growing ecosystem. Whether you’re a user, an interface developer, or an app builder on top of the network, there’s a way to get involved. #### 1. Join the Community Be part of the THORChain ecosystem by joining the [THORChain Community Discord](https://discord.com/invite/c4EhDZdFMA). It’s the best place to ask questions, learn how things work, and discuss all things THORChain with other users, builders, and contributors. #### 2. Build on THORChain Developers can create applications and interfaces that leverage THORChain's cross-chain liquidity infrastructure. This includes wallets, exchanges, DeFi applications, and innovative financial products that benefit users across multiple blockchains. For comprehensive developer resources, technical guides, and community support, visit the [THORChain Developer Documentation](https://dev.thorchain.org/). # What is THORChain and RUNE? THORChain is a Layer-1 blockchain that enables different cryptocurrencies to work together. It acts as a decentralized exchange (DEX) that allows you to swap coins across different blockchains in a single step. Every swap on THORChain happens directly from your wallet in a safe and permissionless way. THORChain doesn't hold your funds—though it does retain your inbound asset briefly during the swap before immediately sending you the output asset. You never give up custody to a centralized entity. Unlike centralized exchanges: * You don't need an account * There is no KYC or paperwork * You don't have to trust a company to hold your funds Example: If you own Bitcoin and want Ethereum, you just send Bitcoin from your wallet and receive Ethereum back in a single transaction — no exchange accounts, no middlemen. <div align="center"><img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-16602a275ec1c12f69fb28cd38ad7e7eb596a722%2Fthorchain-dex.png?alt=media" alt="THORChain DEX diagram showing RUNE at the center connected to various blockchains including Bitcoin, Ethereum, Avalanche, Cosmos, and others" width="400"></div> ## Supported Blockchains THORChain enables native swaps between the following major blockchains: * Bitcoin (BTC) * Ethereum (ETH) * Ripple (XRP) * BNB Smart Chain (BNB) * Bitcoin Cash (BCH) * Litecoin (LTC) * Dogecoin (DOGE) * Avalanche (AVAX) * Base (BASE) * Cosmos Hub (ATOM) * Tron (TRX) THORChain will continue to evolve and add more chains over time, so users will be able to swap even more popular cryptocurrencies—all without wrapped tokens or intermediaries. THORChain is a full blockchain (like Ethereum or Solana). This means that, in addition to swapping, developers can build smart contracts and decentralized apps (dApps) on top of it. This makes THORChain not only a trading tool but also a foundation for the next generation of DeFi projects. ## What is RUNE? RUNE is the native utility token of THORChain that serves four critical functions: ### 1. Settlement Asset * All transactions and swaps in the network are settled in RUNE * RUNE acts as the bridge connecting all supported blockchains ### 2. Network Security (Bonding) * Validators must bond RUNE to participate in consensus * More bonded RUNE makes the network harder to attack * Running a node allows earning a share of THORChain's revenue ### 3. Liquidity * RUNE is present in every liquidity pool (BTC–RUNE, ETH–RUNE, etc.) * This ensures unified pricing and constant demand for RUNE ### 4. Governance and Incentives * Validators and liquidity providers earn rewards in RUNE * These rewards come from real network fees, not token inflation * RUNE holders participate in network governance through validator delegation *** ## Next Steps Now that you understand what THORChain and RUNE are, explore how it works: * [**Native Cross-chain Swaps**](/native-cross-chain-swaps) - Learn how THORChain enables direct swaps between different blockchains * [**How to Use THORChain**](/how-to-use-thorchain) - Step-by-step guide to start swapping * [**Tokenomics**](/tokenomics-rune-tcy) - Deep dive into RUNE's economics and revenue model # Native Cross-chain Swaps How THORChain enables decentralized swaps between native L1 assets without wrapping or centralized intermediaries THORChain is a decentralized protocol that enables cryptocurrencies to be swapped across different blockchains natively – without using wrapped tokens and without relying on centralized exchanges. This means you can directly exchange one Layer-1 coin (e.g., Bitcoin) for another (e.g., Ethereum) in a single, seamless transaction. The entire process happens without intermediaries – you don’t need to trust any company or institution. ## How Swaps Work in THORChain ### Liquidity Pools and RUNE Every cryptocurrency supported by THORChain is paired with RUNE in liquidity pools. RUNE acts as a hub that connects all pools into one continuous network. When you swap one coin for another, two steps happen under the hood: your coin is first swapped into RUNE, and then RUNE is swapped into the target coin. For the user, this appears as one simple swap – you don't need to hold or manage RUNE yourself. ### Decentralized Vaults Each blockchain has its own vault, operated collectively by THORChain's node network. Your funds are deposited there, and after the network confirms the transaction, they are released as the native coin on the destination chain. Thanks to threshold signatures (a type of multi-signature technology), no single node has full control over the funds. <div align="center"><img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-bc924bb0b85ffc018b4ba6f00ac012db59531c9b%2Fliquidity-pools-with-rune.png?alt=media" alt="Liquidity pools with RUNE showing how different cryptocurrencies connect through RUNE as the settlement asset" width="500"></div> ## Example: Swapping BTC to ETH 1. In your wallet, you choose the swap BTC → ETH and send, for example, 1 BTC to a THORChain vault address on the Bitcoin network. 2. The THORChain network detects the deposit and internally swaps BTC into RUNE in the BTC:RUNE pool. 3. RUNE is then immediately swapped into ETH in the RUNE:ETH pool. 4. The network releases the equivalent amount of native ETH directly to your Ethereum address. 5. In practice, you send BTC and shortly after see ETH in your wallet. <div align="center"><img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-8b1cbb95da8bc26561beab4d0431310c560e9cb5%2FExample-Swap-BTC-ETH.png?alt=media" alt="Example of BTC to ETH swap process showing the step-by-step flow through THORChain" width="500"></div> ## Why THORChain is Different In most cases, swapping assets across blockchains requires either a centralized exchange or cross-chain bridges with wrapped tokens like WBTC. Both approaches involve trusting a third party or custodian that holds your funds. THORChain eliminates these issues: * You swap real coins (e.g., BTC, ETH, LTC), not synthetic versions * You never hand over custody of your funds to a company * The process is secured by a decentralized network of nodes, each required to bond large amounts of RUNE, incentivizing honest behavior As a result, THORChain enables true cross-chain swaps: you can easily exchange native BTC for native ETH (and vice versa) in a fully decentralized, secure, and trustless way - with no intermediaries. # How to Use THORChain A practical walkthrough of connecting a wallet, selecting assets, executing swaps, and accessing supported networks 1. Create a wallet on your preferred interface (e.g., Vultisig, Keystore, Ledger, etc.). Go to the [Ecosystem](/ecosystem#integrated-wallets-and-exchanges) page to find a wallet provider. 2. Go to [THORChain's Swap website](https://swap.thorchain.org/) <img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-a1339276a2c5a0de3bd2934696339fba3c3111d6%2Fswap.thorchain-screenshot.png?alt=media" alt="Thorchain swap website" width="500"> 3. Connect your wallet <img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-58cd2060b4e051626a181fb2ec2eec7914bd17ce%2Fswap.thorchain-connect-wallet.png?alt=media" alt="Connect wallet interface" width="500"> 4. Choose the asset you want to exchange <img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-6d6bf04dfd2bdc993ea37934951ca079576a72c8%2Fswap.thorchain-select-source-asset.png?alt=media" alt="Select source asset button" width="500"> Search for the source coin you want to swap from. <img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-9bdebcb0d42f4506dfd8c42f180100ad979c1c63%2Fswap.thorchain-select-coin-dialog.png?alt=media" alt="Asset selection dialog" width="500"> 5. Choose the asset you want to receive Same process as selecting a source asset <img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-a7672a4879f151f73743937d33bb5f5bb194a9c7%2Fswap.thorchain-select-destination-asset.png?alt=media" alt="Select destination asset" width="500"> 6. Review & confirm: check amount, route, fees, and slippage, then press the Swap button. <img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-78fb60b782d668b55048b33b42663ce5f4ca52c2%2Fswap.thorchain-swap-button.png?alt=media" alt="Swap button confirmation" width="500"> Approve the transaction in your wallet if prompted. (Tip: The first time you swap a given token like an ERC-20, you may see two prompts: Approve one-time and then Swap.) 7. Well done! Your transaction is complete. # Application Layer Overview of the ecosystem of apps, wallets, and interfaces built on top of THORChain ## Introduction The App Layer transforms THORChain from being just a cross-chain decentralized exchange into a full ecosystem of financial applications. It provides an environment for developers to build and deploy decentralized applications (dApps) and financial services, leveraging the security and liquidity of the THORChain base layer. The **THORChain Base** Layer serves as the foundation – it is responsible for: * Secure storage and transfer of value * Native asset swaps across different blockchains (e.g. BTC ↔ ETH) * Maintaining consensus and network security The **App Layer** extends these capabilities by giving developers tools to: * Write and deploy smart contracts (powered by CosmWasm) * Build applications that directly use the liquidity and functions of the base layer * Create advanced financial products such as orderbook exchanges, lending protocols, perpetual trading systems, launchpads, or liquidation platforms In practice, the App Layer works like a "construction site" on top of the THORChain foundation: instead of just simple swaps, it enables the creation of an entire DeFi ecosystem that leverages the security and cross-chain capabilities of the base layer. ## Base Layer (THORChain) * Manages liquidity pools * Enables cross-chain swaps (BTC ↔ ETH ↔ ATOM, etc.) * Provides security and validation ## Application Layer (App Layer = Rujira) * Built on THORChain, using its liquidity * Powered by CosmWasm smart contracts → apps can be written in Rust/WASM * Enables the creation of DeFi tools such as: * Orderbook exchanges * Perpetuals (leverage) * Lending/borrowing * Launchpads, liquidations, etc. ## Rujira Economics The App Layer has its own economic model, centered around the RUJI token: * RUJI is the native token of the App Layer, * a portion of application fees is distributed to RUJI stakers, * revenues are shared between THORChain 50% and Rujira 50%. <div align="center"><img src="https://3337783180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfvaTNxU33ciP7UstKtwU%2Fuploads%2Fgit-blob-23a073a74a3cd6c434db674f22b93d073f2d34c1%2FFee-Movements.png?alt=media" alt="Fee movements diagram showing how revenues are shared between THORChain and Rujira App Layer" width="500"></div> ## Simple Analogy THORChain (Base Layer) = highway → provides core infrastructure, traffic, and security. App Layer (Rujira) = gas stations, shops, and services along the highway → adds extra functionality and convenience. The highway itself is essential, but it’s the services around it that make people want to use it. Similarly, Rujira expands THORChain’s appeal by enabling a full ecosystem of applications. # Liquidity THORChain's slip-based fees, streaming swaps, and how arbitrage protects against MEV and sandwich attacks ## Introduction Most traditional exchanges (e.g., Binance or Coinbase) operate using an order book – buyers and sellers place their offers, and the system matches them. THORChain works differently: instead of an order book, it uses Continuous Liquidity Pools (CLP). What does this mean in practice? * Each token pair (e.g., BTC-RUNE) has a shared capital pool * Users can swap one token for another at any time at a price determined by the ratio of assets in the pool * This ensures that liquidity is always available, and swaps occur without intermediaries or centralized price oracles * Pool prices are additionally "maintained" by arbitrageurs to keep them aligned with external markets ## Slip-based Fees – liquidity-dependent fees A slip-based fee is a transaction fee model tied to the size of a swap relative to pool depth. Simply put: the larger the transaction relative to available liquidity, the higher the slip (price impact within the pool during the swap), and therefore the higher the fee paid to liquidity providers. This mechanism ensures that the fee corresponds to the demand for pool capital: * Large trades pay more * Small trades pay less As a result: * The protocol penalizes impatient traders who execute large, sudden swaps * Liquidity providers are rewarded for making their capital available * Users who insist on forcing massive instant swaps cause high slip and pay significant fees to the pool Meanwhile, smaller or gradual swaps create minimal slip, leading to lower fees – in extreme cases, with little demand, slip fees approach zero, allowing swaps to occur almost at market price without extra cost. ### How does it work? Every swap in THORChain changes the ratio of assets in the pool. The larger the swap relative to pool depth, the greater the price movement (slip). Slip generates a fee that goes directly to liquidity providers (LPs). * Small transactions – barely move the price → negligible slip → minimal fee * Large transactions – significantly move the price → high slip → high fee ### Why is this important? * Protects against price manipulation – sudden large price moves cost attackers heavily * Forces traders to choose between: * Speed (one large swap at once, with a high fee) * Better price (many smaller swaps, slower, but cheaper) * Pool prices gain natural inertia – they cannot be easily manipulated in one move ### Example 1: Small Swap * BTC-RUNE pool: 1,000 BTC and equivalent RUNE * User swaps 0.1 BTC → only 0.01% of the pool * Price barely changes, slip fee ≈ 0, symbolic fee ### Example 2: Large Swap * Same pool * User swaps 100 BTC → 10% of the pool * Price in the pool drops significantly, slip fee amounts to several percent of trade value ## Streaming Swaps – time-sliced swaps Streaming Swaps is a THORChain mechanism that allows users to split a large swap into a series of smaller transactions (sub-swaps), executed sequentially at defined intervals. This feature was introduced to help users optimize pricing – performing swaps with minimal slip – without manually breaking orders into smaller chunks. Normally, a single large swap leads to high slip fees, while splitting it manually would mean paying multiple network fees (inbound/outbound fees for each part). Streaming Swaps solve this by letting users control the swap's timeframe: one deposit internally creates many sub-swaps without additional L1 network fees beyond those of a single swap. ### The Problem When a user wants to swap a large amount (e.g., 1,000 ETH), a one-off swap causes: *
프로젝트로 돌아가기