Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
feat: simplify token approval step
Browse files Browse the repository at this point in the history
  • Loading branch information
RodinGolodin committed Apr 4, 2024
1 parent d17e473 commit daa7880
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 33 deletions.
20 changes: 3 additions & 17 deletions docs/apps/ronin-bridge/guides/deposit-nft.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**.
Expand Down
20 changes: 4 additions & 16 deletions docs/apps/ronin-bridge/guides/withdraw-nft.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit daa7880

Please sign in to comment.