Skip to content

Commit

Permalink
feat(website): docs guide prover withdraw TTKO (#14133)
Browse files Browse the repository at this point in the history
Co-authored-by: dave | d1onys1us <[email protected]>
  • Loading branch information
MarcusWentz and dionysuzx authored Jul 11, 2023
1 parent cda3d5f commit 1a136d4
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/website/pages/docs/guides/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"enable-a-prover": {
"title": "✅ Enable a prover"
},
"claim-prover-ttko": {
"title": "🛄 Claim prover TTKO"
},
"deploy-a-contract": {
"title": "🚀 Deploy a contract"
},
Expand Down
48 changes: 48 additions & 0 deletions packages/website/pages/docs/guides/claim-prover-ttko.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { Callout, Steps } from "nextra-theme-docs";

# Claim prover TTKO

## Overview

This guide will help you claim TTKO 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 rewards.
- Must have a balance of ETH Sepolia (see: [Receive tokens](/docs/guides/receive-tokens)).

## Steps

<Steps>

### View TTKO prover address balance

Go to the Taiko L1 contract read page and select [getTokenTokenBalance(addr address)](https://sepolia.etherscan.io/address/0x6375394335f34848b850114b66A49D6F47f2cdA8#readProxyContract#F10)
to lookup your TTKO claim balance for your prover's address.

### Enter withdraw amount

Go to the Taiko L1 contract write page and select [withdrawTaikoToken(amount uint256)](https://sepolia.etherscan.io/address/0x6375394335f34848b850114b66A49D6F47f2cdA8#writeProxyContract#F11)
to withdraw TTKO 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 TTKO

Click `Connect to Web3` and connect your wallet.

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

</Steps>

1 comment on commit 1a136d4

@hansikadenu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi

Please sign in to comment.