From daa7880264ca8932078010ed595a51a30c9e614a Mon Sep 17 00:00:00 2001 From: Sergey Rodin Date: Thu, 4 Apr 2024 18:22:21 +0700 Subject: [PATCH] feat: simplify token approval step --- docs/apps/ronin-bridge/guides/deposit-nft.md | 20 +++---------------- docs/apps/ronin-bridge/guides/withdraw-nft.md | 20 ++++--------------- 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/docs/apps/ronin-bridge/guides/deposit-nft.md b/docs/apps/ronin-bridge/guides/deposit-nft.md index 9d3395e..8a12366 100644 --- a/docs/apps/ronin-bridge/guides/deposit-nft.md +++ b/docs/apps/ronin-bridge/guides/deposit-nft.md @@ -35,30 +35,16 @@ If you access Ronin Bridge on mobile, remember to import your Ethereum address t ## Step 3. Approve the NFT -To deposit an NFT, you need to grant Ronin Bridge permission to bridge it, which is also referred to as *approval*. You have two ways to do it: approve a single token or approve all tokens. - -### Approve a single token - -Approving a single token means that every time you bridge an NFT, you will need to approve each token individually. So when you bridge another token in the future, you will need to approve it again. +When a smart contract interacts with an NFT in your wallet, you may be prompted to approve the token. 1. With the NFT selected, click **Approve NFT**. ![nft-deposit-5](../assets/nft-deposit-5.png) -2. Select **Single token**. +2. Select **Single token** to grant access to a single NFT. ![nft-deposit-6](../assets/nft-deposit-6.png) -3. When prompted, sign the transaction in your connected wallet. - -### Approve all tokens - -Approving all tokens means that you only need to grant approval once, and your future NFT bridges will not require any approval. - -1. Select the NFT you want to bridge, and then click **Approve NFT**. - ![nft-deposit-5](../assets/nft-deposit-5.png) -2. Select **All tokens**. + Or select **All tokens** to grant access to all tokens from that collection. You can revoke your approval later using the [Token Revoke](https://ronin.axiedao.org/revoke/) tool. ![nft-deposit-7](../assets/nft-deposit-7.png) 3. When prompted, sign the transaction in your connected wallet. -You can revoke token approval by using the [Token Revoke](https://ronin.axiedao.org/revoke/) tool. - ## Step 4. Confirm your deposit 1. Review the transaction details, including the gas fees associated with the deposit. Make sure you have enough ETH in your Ethereum wallet to pay gas. If everything looks correct, select **Deposit**. diff --git a/docs/apps/ronin-bridge/guides/withdraw-nft.md b/docs/apps/ronin-bridge/guides/withdraw-nft.md index f0b29e9..fa51c1a 100644 --- a/docs/apps/ronin-bridge/guides/withdraw-nft.md +++ b/docs/apps/ronin-bridge/guides/withdraw-nft.md @@ -36,27 +36,15 @@ If you access Ronin Bridge on mobile, remember to import your Ethereum address t ## Step 3. Approve the NFT -To withdraw an NFT, you need to grant Ronin Bridge permission to bridge it, which is also referred to as *approval*. You have two ways to do it: approve a single token or approve all tokens. - -### Approve a single token - -Approving a single token means that every time you bridge an NFT, you will need to approve each token individually. So when you bridge another token in the future, you will need to approve it again. +When a smart contract interacts with an NFT in your wallet, you may be prompted to approve the token. 1. With the NFT selected, click **Approve NFT**. ![nft-withdrawal-6](../assets/nft-withdrawal-6.png) -2. Select **Single token**. +2. Select **Single token** to grant access to a single NFT. ![nft-withdrawal-7](../assets/nft-withdrawal-7.png) - -### Approve all tokens - -Approving all tokens means that you only need to grant approval once, and your future NFT bridges will not require any approval. - -1. Select the NFT you want to bridge, then click **Approve NFT**. - ![nft-withdrawal-6](../assets/nft-withdrawal-6.png) -2. Select **All tokens**. + Or select **All tokens** to grant access to all tokens from that collection. You can revoke your approval later using the [Token Revoke](https://ronin.axiedao.org/revoke/) tool. ![nft-withdrawal-8](../assets/nft-withdrawal-8.png) - -You can revoke token approval by using the [Token Revoke](https://ronin.axiedao.org/revoke/) tool. +3. When prompted, sign the transaction in your connected wallet. ## Step 4. Confirm your withdrawal