Swell 백서

Swell

원문

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

aption></figure> # Buy ETH with FIAT guide If you're finding yourself low on ETH to stake you can always purchase more with [Transak](https://transak.com/), Swell's FIAT on ramp partner. Simply; * Click on the card icon * Check the FIAT currency you have is correct * Enter how much ETH you want to purchase and click `Buy Now` * Double check the ETH address * Use Transak's super fast KYC * Add your card details to purchase ETH with FIAT and confirm {% embed url="<https://www.loom.com/share/95f8bbb294464fadb7d2418bb81de278>" %} {% hint style="info" %} Transak has support for Apple Pay and Google Pay (selected countries only) {% endhint %} ### Support If you need help with any aspect acquiring FIAT with Transak please visit their support [page](https://support.transak.com/hc/en-us). # Node operator guide The following pages contain a set of "how to" guides for node operators.&#x20; # Generating deposit data The first step to submitting your validator keys is to generate a set of deposit data. Submission of your validator keys can be done in a batch comprising of chunks of 50 keys in each transaction with a maximum of 1,000 keys per batch. {% hint style="info" %} To be efficient with gas costs we recommend to generate your keys in chunks of 50. {% endhint %} \ Swell supports multiple ways of generating deposit data such as, Staking Deposit CLI, ethdo, wagyu and is compatible with Dirk. So you can choose any of these method to generate your validator keys. \ \ When generating please set the withdrawal address to Swell's `deposit manager contract` address; <table><thead><tr><th width="208">Chain</th><th>Deposit manager contract address</th></tr></thead><tbody><tr><td>Goerli</td><td>0xB575EE401310714Ee14D2E2EDFE38218F21f7381</td></tr><tr><td>Mainnet</td><td>0xb3D9cf8E163bbc840195a97E81F8A34E295B8f39</td></tr></tbody></table> \ Once completed the next step is to visit the operator app of the Swell App to begin submitting your keys. # Operator app overiew The operator app is portal that allows Node operators to&#x20; * Check on their current staking capacity and total capacity of the staking pool * Upload, validate and submit their validator keys * Check on other current staking capacity of other node operators&#x20; It's comprised of;\ \ **Dashboard** - You can view high level information of Swell’s staking pool, information relating to staking capacity and on chain historical tables for convenience. <figure><img src="https://2957241090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7UdE175zY4z4MFiWtgOF%2Fuploads%2FqRKYed4MxyOCLFheoJZJ%2Fimage.png?alt=media&amp;token=c8922751-6b6c-47bc-ad16-76706dbaf1dd" alt=""><figcaption></figcaption></figure> **Validator keys** - This is the main area to upload, validate and submit your validator keys. <figure><img src="https://2957241090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7UdE175zY4z4MFiWtgOF%2Fuploads%2Fsf0ShGfpD02pOGvfxqcv%2Fimage.png?alt=media&amp;token=58f6bca7-d60b-4155-b841-979aeedd1aef" alt=""><figcaption></figcaption></figure> **All operators** - This section lets you view the status of other node operators in the pool regarding their validator usage and capacity. <figure><img src="https://2957241090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7UdE175zY4z4MFiWtgOF%2Fuploads%2F1oOSDy6Dtghc1lqxNnuJ%2Fimage.png?alt=media&amp;token=bd341655-c882-4f7e-9dd7-5dff6802c85b" alt=""><figcaption></figcaption></figure> # Validating deposit data In the `Validator keys` section you can upload a .json file or directly paste your validator keys into the box provided and click the `Validate` button. The UI will thoroughly validate the keys prior to allowing the you to submit it on chain. If any errors occur they will be listed on the right with hyperlinks, linking you to the validator key with the error for you to remediate. It will require a 100% pass rate before allowing you to submit on chain. {% hint style="info" %} The validation will require a 100% pass rate before allowing you to submit on chain. {% endhint %} {% embed url="<https://www.loom.com/share/b4d23301b28f4b97aa163757859edcf4>" %} Validating and correcting an error {% endembed %} An example of a validator key with correct formatting; {% code title="Example only!" lineNumbers="true" %} ```json [ { "name": "Deposit for wallet1/519", "account": "wallet1/519", "pubkey": "0x89bd355089849508b31cb3bf27f60d1a95f2d5865718ad69dcce98ef06ca0181e0bee81ac2589c5b69955f354ff54ca4", "withdrawal_credentials": "0x010000000000000000000000874361ecb3b0f1b13914ac264b7aae207ac47166", "signature": "0xb935cb41f5d1fe615951296c097840282ea0e7c469d38d53970a74af1365c983e56d8d5c6faf177835fd189fce1dbd3e0b086247e87fc2f131b3a3aee29f8b1b485f4c8cdf2ff1c39684735110a4a3319ea220defead6490dedcd5f684081c1f", "amount": 32000000000, "deposit_data_root": "0x1e40264db9b68e557c33883579edb42b910c08068253d1a1bf61b155b5170b93", "deposit_message_root": "0x44cf6209d7c4168c5213d23343d78da77fda425ca31a803d1fa0b85d0512f071", "fork_version": "0x00001020", "version": 3 } ] ``` {% endcode %} # Submitting deposit data When all the keys have been validated, click `Submit` to begin the process of serially submitting the keys on chain to the `node operator registry`. This requires you to sign each transaction for a chunk of 50 keys in a batch. {% embed url="<https://www.loom.com/share/986830f701d74ec0b29fa2278428e676>" %} Submitting several chunks {% endembed %} During this batch submission, there will be a table that displays the status of each submission along with any that might have failed. Each line is hyperlinked with the details of each.<br> <table><thead><tr><th width="251">Status</th><th>Description</th></tr></thead><tbody><tr><td>Not started</td><td>In a queue to be submitted</td></tr><tr><td>Prompting</td><td>In a state of being approved by client wallet</td></tr><tr><td>Pending</td><td>Transaction approved and in the process to be submitted on chain</td></tr><tr><td>Submitted</td><td>Successfully submitted</td></tr><tr><td>Error</td><td>Explicit error such as “Tx rejected by user”</td></tr><tr><td>Externally-managed</td><td>Txs that are managed outside of the app, currently Gnosis managed submissions</td></tr><tr><td>Unknown</td><td>Will show when the browser tab is closed without confirmation</td></tr></tbody></table> # Submission errors If you encounter an error you can choose to continue submitting the rest of your keys, the table will allow you to pinpoint which 50 key chunk was affected and provide an error message. In either case please revalidate the keys again before re-submitting. # Duplicates keys The app will detect duplicate keys and will not allow you to submit them. This is stored within the browser’s local storage. If you were to change browsers or clear the memory to resubmit keys it will not be able to detect duplicates so please take care. # Priority fees and MEV rewards collection In order to distribute priority fees and MEV rewards via restaking into the staking pool all node operators will be required to set the `suggested_fee_recipient` in both the `validator client` and the `beacon node` to Swell's `deposit manager contract` address &#x20; <table><thead><tr><th width="208">Chain</th><th>Deposit manager contract address</th></tr></thead><tbody><tr><td>Goerli</td><td>0xB575EE401310714Ee14D2E2EDFE38218F21f7381</td></tr><tr><td>Mainnet</td><td>0xb3D9cf8E163bbc840195a97E81F8A34E295B8f39</td></tr></tbody></table> # rswETH Liquid Restaking <figure><img src="https://2957241090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7UdE175zY4z4MFiWtgOF%2Fuploads%2F7FcXUDai36YAhv6qGob8%2FName%3DrswETH.png?alt=media&amp;token=be5a43d9-25ba-48c8-84c7-2e824414d6af" alt=""><figcaption><p>rswETH</p></figcaption></figure> rswETH is an ERC-20 Liquid Restaking Token that provides liquidity for users who are wanting to "restake" their ETH into restaking protocols such as EigenLayer without having their restaked ETH locked. \ \ It is a repricing token that represents a user's yield-bearing ETH that is being used by validators that attest to transactions on the Ethereum blockchain.&#x20; {% hint style="info" %} To "restake" is to have a validator that has their withdrawal credentials pointed to an Eigenlayer Eigenpod address. {% endhint %} # rswETH v1.0 system design The first version of rswETH follows the [current implementation](https://www.blog.eigenlayer.xyz/eigenlayer-stage-1-mainnet-launch/) of EigenLayer restaking protocol and is for the most part a direct fork of the [swETH set of smart contracts](/swell-staking/sweth-liquid-staking/sweth-v1.0-system-design). \ \ This current implementation of EigenLayer mainnet only allows for deposits and withdrawals, it also rewards 'restakers' with off chain EigenLayer points.\ \ How the protocol handles; * [Node operators](/swell-staking/sweth-liquid-staking/node-operator-guide) * [Staking](/swell-staking/sweth-liquid-staking/sweth-v1.0-system-design/staking-with-sweth) * [Repricing](/swell-staking/sweth-liquid-staking/sweth-v1.0-system-design/staking-with-sweth/exchange-rate) * [Reward distribution](/swell-staking/sweth-liquid-staking/sweth-v1.0-system-design/rewards-and-distribution/reward-distribution) Remains exactly the same as swETH with exception to its integration with EigenLayer's set of contracts.&#x20; <figure><img src="https://2957241090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7UdE175zY4z4MFiWtgOF%2Fuploads%2FJRHaZP22ts17yKTreUMJ%2Fimage.png?alt=media&amp;token=34e5a153-a253-4cae-a755-777e096c0966" alt=""><figcaption><p>Swell Liquid Restaking High Level Architecture</p></figcaption></figure> The restaking deposit manager acts as the EigenPod Owner and interacts with the EigenPod manager to; * Create the EigenPod and verify it's withdrawal credentials * Stake 32 ETH with deposit data into the Beacon Chain&#x20; * Sweeps rewards from the EigenPod back to the restaking pool # Withdrawals rswETH can be withdrawn at the primary market rate through the Swell app.\ \ Withdrawals are subject to waiting times of up to 28 days, with very occasional delays beyond this. The exact duration depends on: **EigenLayer delays**\ \ Native restaking on EigenLayer is subject to withdrawal times of 14 days. This was increased from 7 days with the launch of slashing, to allow for AVSs to properly account for and slash, if necessary, assets pending withdrawal. **Beacon chain exit queue time** Ethereum limits the amount of validators that can exit during each epoch. Exits above this limit are placed in a[ queue](https://www.validatorqueue.com/), with waiting times varying from a few minutes to several days. **Validator sweep state** The process of sweeping validators for exits involves cycling through all eligible validators by index number. The more ETH that is staked globally, the more validators there are and the longer it takes to go through the queue. As Swell grew very quickly in a short period of time, a lot of validators were spun up in a concentrated range of numbers.The result is that withdrawal requests made just after the validators have been swept will only be processed when the sweep passes through this concentrated range of validators again, which can take up to 9 days as of July '24.\ \ If the window to exit is missed, then it is necessary to wait for all the validators to be swept again until there is another opportunity, creating longer waiting times.\ \ **Demand for staking and unstaking in Swell** Swell has a buffer of staking rewards and daily deposits allowing withdrawals to be made without the need to exit validators. Large withdrawal requests may exceed the buffer, potentially leading to longer queues for withdrawals. ### Swapping on the secondary market To avoid waiting to withdraw, rswETH holders can instead swap out in minutes on the secondary market using a DEX or aggregator. Please note that this route may be subject to slippage, and that the swap rate on the secondary market may differ from the primary market rate shown on the Swell app.&#x20; Visit the[ FAQ](https://app.gitbook.com/o/T03QeoH19oR80NW7Wqko/s/7UdE175zY4z4MFiWtgOF/swell-staking/faqs) for answers to common questions about withdrawals. # Liquid Restaking rewards and fees Updated 26.01.2024 The following table details the current distribution of total rewards earned for all parties involved.&#x20; | Entity | Total rewards | | ------------------ | ------------- | | Staker | 90% | | Node Operator | 5% | | Swell DAO Treasury | 5% | | Total | 100% | <br> # AVS Selection :construction\_site: The AVS Selection Framework is currently under construction. It will include active measures to minimize risks for restakers and at the same time generate additional restaking returns.&#x20; The framework is designed and proposed by Swell's risk management partner [Gauntlet](https://www.gauntlet.xyz/). It is then discussed and implemented. More soon. # swBTC Liquid Restaking Vault <div align="center"><figure><img src="https://2957241090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7UdE175zY4z4MFiWtgOF%2Fuploads%2FqIZTRLrgdGXJFed8nXja%2FName6.png?alt=media&amp;token=667dce94-76ba-4187-ab31-cee3dbf024e1" alt=""><figcaption><p>swBTC</p></figcaption></figure></div> [swBTC](https://etherscan.io/token/0x8db2350d78abc13f5673a411d4700bcf87864dde) is a yield bearing ERC-20 Liquid Restaking Token that offers liquidity for users who want to stake their WBTC in protocols like Symbiotic, EigenLayer, or Karak without locking up their WBTC.&#x20; swBTC allows holders to earn native yield from restaking platforms while simultaneously leveraging swBTC across the DeFi ecosystem. It can be used as collateral in lending and borrowing protocols, DEXs, options platforms, and more. {% hint style="success" %} Get swBTC [here](https://app.swellnetwork.io/stake/swbtc). {% endhint %} ### Key features * **Non-custodial:** Stake directly from your own non-custodial wallet. * **Yield generation:** Yield is generated through restaking protocols like Symbiotic, Karak, and EigenLayer. * **Liquidity:** Utilize swBTC in your preferred DeFi protocols to earn extra yield. ### Audits * [Chainsecurity](https://github.com/SwellNetwork/v3-core-public/tree/master/Audit%20Reports/BTC%20LRT) * [Nethermind](https://github.com/SwellNetwork/v3-core-public/tree/master/Audit%20Reports/BTC%20LRT) {% hint style="success" %} Swell is offering rewards of up to [$250,000 USD](https://immunefi.com/bug-bounty/swell/) for reporting of low to critical vulnerabilities on all levels of our technology stack from smart contract to websites and applications. &#x20; {% endhint %} ### FAQs **How is the yield generated?** Yield is generated by utilizing the collateral asset (WBTC) as economic security for networks on restaking protocols such as Symbiotic, Karak, and EigenLayer. These networks compensate for the economic security provided, which translates into yield for swBTC holders. **What form of BTC can I deposit?** Deposit WBTC on Ethereum mainnet. Or swap native BTC to swBTC via [Garden.finance](https://garden.finance/swap/) or Thorchain (coming soon). **How are deposits distributed between the different restaking protocols?** Gauntlet will act as a Restaking Guardian, selecting strategies and markets to optimize vault performance. **Is swBTC audited?** The swBTC vault is based on Yearn v3, which has been thoroughly battle-tested since launching in 2022. Swell's changes to the vault were audited by [Nethermind](https://github.com/SwellNetwork/v3-core-public/blob/master/Audit%20Reports/BTC%20LRT/NM_0273_SWELL_BTC_LRT.pdf) and [ChainSecurity](https://github.com/SwellNetwork/v3-core-public/blob/master/Audit%20Reports/BTC%20LRT/ChainSecurity_Swell_swBTC_audit.pdf). **Are there any fees?** swBTC holders pay zero fees. Fees will remain zero until real restaking rewards begin to flow. **Can I withdraw?** Withdrawals can be made at any time. Withdrawing swBTC currently takes 3 days. **What rewards do I earn?** The rewards earned are in the deposit token (i.e. WBTC), all network rewards earned will be reflected in the exchange rate of swBTC. **Which networks are currently receiving security?** View a list of all networks that are secured by swBTC here.&#x20; **What is the minimum deposit?** There is no minimum deposit. **What can I do with swBTC?** Users can utilize swBTC across defi protocols listed [here](https://app.swellnetwork.io/earn/portfolio).&#x20; **How do I get swBTC?** Users can get swBTC on the [Swell app](https://app.swellnetwork.io/stake/swbtc) or trade into swBTC on the [secondary market](https://pancakeswap.finance/liquidity/12035?chain=eth). # swBTC Architecture <figure><img src="https://2957241090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7UdE175zY4z4MFiWtgOF%2Fuploads%2F5UINTKXbn3jsz9A3o7Q4%2FBTC%20LRT.PNG?alt=media&amp;token=7e6a250b-b123-425a-ba12-18cd87f8081e" alt=""><figcaption></figcaption></figure> The swBTC system is optimizes Bitcoin yields through a flexible and extendable smart contract architecture. It allows users to stake their WBTC and participate in multiple restaking protocols, such as Symbiotic, Karak (TBD), and EigenLayer (TBD), via the Aera Vault. \ \ Sitting at the center of this system is the Aera Vault. Aera is a treasury management protocol built by Gauntlet and Auditless and enables Gauntlet to act as the AVS Risk Guardian for the Swell Restaked BTC Vault. Swell DAO is the owner of 2 important contracts: 1. The Asset Registry 2. The Hooks Module ### The Asset Registry The Asset Registry defines which assets Gauntlet as the risk guardian can interact with. This stops Gauntlet from being able to make unwanted swaps like selling BTC for ETH. The only tokens that will be added to the Asset Registry are WBTC (and any restaking derivatives like DC\_WBTC) and the AVS Rewards Tokens. By doing this Swell constricts Gauntlet to only be able to swap between those tokens. ### The Hooks Module The Hooks Module stores each sighash that Gauntlet can interact with. A Sighash takes both the function call and contract address. Swell retains full control of the Hooks Module, meaning the Swell DAO can limit Gauntlet's capabilities to only the required function calls to operate the vault\ \ These 2 contracts act as a rigorous access control system, protecting users from Gauntlet acting in bad faith while not hindering their ability to be an effective Guardian. Gauntlet as the Restaking Guardian can optimally allocate the deposited WBTC across various Restaking Layers and AVSs to ensure users achieve the best possible risk-adjusted returns. Further, the Aera Vault can leverage Gauntlet's modelling expertise to ensure swBTC holder AVS tokens are sold back to WBTC as efficiently as possible. # Withdrawals ## **Direct Withdrawals** swBTC can be withdrawn at the primary market rate through the [Swell app](https://app.swellnetwork.io/stake/swbtc). Withdrawals are processed in 18 days, which accommodates the unbonding period and signing requirements of withdrawing from Symbiotic vaults. ### Swapping on the secondary market To avoid the wait, swBTC holders can exchange their tokens instantly on the secondary market using a DEX or aggregator. {% hint style="info" %} Use the incentivsed [Curve](https://curve.fi/#/ethereum/pools/factory-stable-ng-241/deposit) or [PancakeSwap](https://pancakeswap.finance/liquidity/12035?chain=eth) pools. {% endhint %} Please note that the swap rate on the secondary market may differ from the primary market rate displayed on the Swell app.\ \ Visit the [FAQ](/swell-staking/faqs) for answers to common questions about withdrawals. # Rewards and distribution Rewards are generated by utilizing the collateral asset (WBTC) as economic security for networks on restaking protocols such as Symbi
프로젝트로 돌아가기