Skip to content

Commit

Permalink
chore: add tx fee FAQ (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Jul 8, 2024
2 parents 078452e + 61484d3 commit cfc8134
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-staking",
"version": "0.2.5",
"version": "0.2.6",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
16 changes: 16 additions & 0 deletions src/app/components/FAQ/data/questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,20 @@ export const questions = (coinName: string) => [
content: `<p>Hands-on stakers can operate the <a href="https://github.com/babylonchain/btc-staker/blob/dev/docs/create-phase1-staking.md" target="_blank" rel="noopener noreferrer" class="text-primary"><u>btc-staker CLI program</u></a> that allows for the creation of ${coinName} staking transactions from the CLI.</p>
`,
},
{
title: "Will I pay any fees for staking?",
content: `<p>Yes, there are three transaction fees associated with staking, all charged by the Bitcoin network:</p><br />
<ol>
<li>
1. <b>Staking Transaction Fee (Fs)</b>: This fee is for the staking transaction. To stake amount S, you need at least S + Fs in your wallet. It is calculated in real-time based on current network conditions.
</li><br />
<li>
2. <b>Unbonding Transaction Fee (Fu)</b>: If you unbond your stake before it expires, this fee is deducted from your stake S, resulting in a withdrawable amount of S - Fu. Fu is a calculated static value to ensure inclusion in busy network conditions.
</li><br />
<li>
3. <b>Withdraw Transaction Fee (Fw)</b>: This fee is for the withdrawal transaction that transfers the stake back to your wallet. It is deducted from your withdrawable stake, which is either S (if you wait until expiration) or S - Fu (if unbonded early). This fee ensures fast inclusion based on current network conditions.
</li>
</ol><br />
<p>In summary, to stake S, you need S + Fs, and upon completion, you get S - Fw or S - Fu - Fw back, depending on whether you wait for expiration or unbond early.</p>`,
},
];

0 comments on commit cfc8134

Please sign in to comment.