Skip to content

Commit

Permalink
withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusWentz committed Jul 10, 2023
1 parent d51161d commit 9429d10
Show file tree
Hide file tree
Showing 2 changed files with 47 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
44 changes: 44 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,44 @@
import { Callout, Steps } from "nextra-theme-docs";

# Prover Claim 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.

### Withdraw your TTKO

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.

Click `Connect to Web3` and connect your wallet.

<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>

</Steps>

0 comments on commit 9429d10

Please sign in to comment.