Skip to content

Commit

Permalink
deploy: 552247b
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Sep 25, 2024
1 parent 27b49d6 commit 5ae453f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bnb-smart-chain/staking/developer-guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2634,7 +2634,8 @@ <h3 id="how-to-get-the-unbonding-delegations-of-a-delegator-and-the-unbonded-req
<h3 id="how-to-get-the-reward-of-a-delegator">How to get the reward of a delegator?<a class="headerlink" href="#how-to-get-the-reward-of-a-delegator" title="Link to this section"></a></h3>
<p>The contracts do not save the initial delegation amount of a delegator. To get the accumulated
reward, the following steps can be taken: 1) track the initial delegation amount in your system, 2) call
the <code>getPooledBNB</code> of the credit contract of a validator, 3) do the math.</p>
the <code>getPooledBNB</code> of the credit contract of a validator, 3) do the math. You can refer
to <a href="https://github.com/bnb-chain/staking-reward-example">this code repository</a> for example.</p>
<h3 id="how-to-get-the-total-staking-address-of-a-validator">How to get the total staking address of a validator?<a class="headerlink" href="#how-to-get-the-total-staking-address-of-a-validator" title="Link to this section"></a></h3>
<p>The contract does not provide a function to get the total staking address of a validator.
It needs an offchain service to index <code>Delegated</code>, <code>Redelegated</code>, <code>Undelegated</code> events for the purpose.</p>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

0 comments on commit 5ae453f

Please sign in to comment.