Skip to content

Commit 552247b

Browse files
chore: add code example for staking reward (#468)
* chore: add code example for staking reward * update wording
1 parent ee2bae8 commit 552247b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/bnb-smart-chain/staking/developer-guide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ to `0` to get all the locked BNBs.
241241

242242
The contracts do not save the initial delegation amount of a delegator. To get the accumulated
243243
reward, the following steps can be taken: 1) track the initial delegation amount in your system, 2) call
244-
the `getPooledBNB` of the credit contract of a validator, 3) do the math.
244+
the `getPooledBNB` of the credit contract of a validator, 3) do the math. You can refer
245+
to [this code repository](https://github.com/bnb-chain/staking-reward-example) for example.
245246

246247
### How to get the total staking address of a validator?
247248

0 commit comments

Comments
 (0)