diff --git a/book/general/guides/relayer.md b/book/general/guides/relayer.md index bb3740a..de60e95 100644 --- a/book/general/guides/relayer.md +++ b/book/general/guides/relayer.md @@ -28,9 +28,9 @@ Before you commit to sharing part of your journey with Tornado Cash users as a r The formula for designating a relayer is as follows: -* The list of all registered relayers is retrieved from the Relayer Registry smart contract. -* For each relayer, calculate a score based on its staked TORN and its fee. The higher the stake, the higher the score is; the higher the fee, the lower the score is. For Ethereum mainnet, the formula used to calculate the score is `stake * [1 - 25*(fee-0.33)^2]`; for sidechains, the formula is `stake * [1 - 11.89*(fee-0.01)^2]`. -* Then randomly pick a relayer, weighted by its calculated score. +- The list of all registered relayers is retrieved from the Relayer Registry smart contract. +- For each relayer, calculate a score based on its staked TORN and its fee. The higher the stake, the higher the score is; the higher the fee, the lower the score is. For Ethereum mainnet, the formula used to calculate the score is `stake * [1 - 25*(fee-0.33)^2]`; for sidechains, the formula is `stake * [1 - 11.89*(fee-0.01)^2]`. +- Then randomly pick a relayer, weighted by its calculated score. ### 2. Set up relayer @@ -38,7 +38,7 @@ The first concrete step is to run the Tornado Cash Relayer software for Ethereum Once completed, you will need to insert your url in the input box. -![](<../../.gitbook/assets/set-relayer-link.png>) +![](../../.gitbook/assets/set-relayer-link.png) {% hint style="warning" %} It is strongly recommended that you use your own RPC nodes. Instructions on how to run full nodes can be found [here](https://github.com/feshchenkod/rpc-nodes). @@ -48,10 +48,10 @@ It is strongly recommended that you use your own RPC nodes. Instructions on how The next steps entail: -* Creating an [ENS domain](https://ens.domains/) for your relayer. -* Unwrap domain in settings on app.ens.domains or by calling [this function](https://etherscan.io/address/0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401#writeContract#F23). -* Setting up its mainnet subdomain. -* Adding a TXT record with the Relayer URL to the mainnet subdomain according to this specific format: +- Creating an [ENS domain](https://ens.domains/) for your relayer. +- Unwrap domain in settings on app.ens.domains or by calling [this function](https://etherscan.io/address/0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401#writeContract#F23). +- Setting up its mainnet subdomain. +- Adding a TXT record with the Relayer URL to the mainnet subdomain according to this specific format: #### **Ethereum relayers (Mandatory)** @@ -97,7 +97,7 @@ Only the mainnet requires you to register workers. All other networks do not req With the implementation of a decentralized relayer registry, a staking condition has been introduced as a requirement to become listed on Tornado Cash UI. Keep in mind **staking TORN is now necessary to be added to the recommended list of relayers.** -The minimum staked amount is currently set by Tornado Cash governance at **`2000 TORN`**. This threshold can be changed by Tornado Cash governance at any time. +The minimum staked amount is currently set by Tornado Cash governance at **`5000 TORN`**. This threshold can be changed by Tornado Cash governance at any time. When a relayer is used in the Tornado Cash pool, a small amount of TORN is automatically collected from this staked balance by the `StakingReward` contract. This element is essential to keep in mind as relayers will need to keep enough TORN locked (\~`500 TORN` at the moment in June 2023) to be able to pay back the transaction fee to the staking contract.