Skip to content

Commit

Permalink
docs(website): Update claim-prover-rewards.mdx (#14368)
Browse files Browse the repository at this point in the history
Co-authored-by: d1onys1us <13951458+d1onys1us@users.noreply.github.com>
  • Loading branch information
2 people authored and 2manslkh committed Aug 8, 2023
1 parent 2cef073 commit 7063238
Showing 1 changed file with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { Callout, Steps } from "nextra-theme-docs";

# Claim prover rewards

This guide will help you claim TTKO/TTKOe earned as a prover.

## Prerequisites

- You followed the [Enable a prover](/docs/guides/enable-a-prover) guide and have a prover which has proved a block to earn TTKO/TTKOe rewards.

### Grimsvotn L2 (TTKO)

- Must have a balance of ETH on Sepolia L1 (see: [Receive tokens](/docs/guides/receive-tokens)).

### Eldfell L3 (TTKOe)

- Must have a balance of ETH on Grimsvotn L2 (see: [Receive tokens](/docs/guides/receive-tokens)/[Bridge tokens](/docs/guides/build-on-taiko/bridge-tokens)).

## Steps

<Steps>

### View TTKO/TTKOe prover address balance

Go to the TaikoL1 contract read page ([TTKO](https://sepolia.etherscan.io/address/0x6375394335f34848b850114b66A49D6F47f2cdA8#readProxyContract#F10)/[TTKOe](https://explorer.test.taiko.xyz/address/0x4e7c942D51d977459108bA497FDc71ae0Fc54a00/read-proxy#address-tabs)) and input your prover address to lookup your TTKO/TTKOe claim balance.

### Enter withdraw amount

Switch to the contract write page and select `withdrawTaikoToken(amount uint256)` to withdraw [TTKO](https://sepolia.etherscan.io/address/0x6375394335f34848b850114b66A49D6F47f2cdA8#writeProxyContract#F11)/[TTKOe](https://explorer.test.taiko.xyz/address/0x4e7c942D51d977459108bA497FDc71ae0Fc54a00/write-proxy#address-tabs) balances earned from being a prover.

<Callout type="warning">
Make sure to click the plus sign and add `10^8` decimals, or add 8 zeroes
manually.
</Callout>

For example if you want to withdraw `69` TTKO, you would enter `6900000000`.

<Callout type="warning">
Make sure
```solidity
amount<=withdrawTaikoToken(proverAddress)
```
or else the transaction will revert.
</Callout>

### Withdraw your tokens

Click `Write` and confirm the transaction in your wallet.

</Steps>

0 comments on commit 7063238

Please sign in to comment.