From 002c15b3a9bf52700b59fbd3060fb6a4bbd03b08 Mon Sep 17 00:00:00 2001 From: forcodedancing Date: Mon, 23 Sep 2024 16:37:38 +0800 Subject: [PATCH] chore: add code example for staking reward --- docs/bnb-smart-chain/staking/developer-guide.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/bnb-smart-chain/staking/developer-guide.md b/docs/bnb-smart-chain/staking/developer-guide.md index bde8878243..e7c893040c 100644 --- a/docs/bnb-smart-chain/staking/developer-guide.md +++ b/docs/bnb-smart-chain/staking/developer-guide.md @@ -241,7 +241,8 @@ to `0` to get all the locked BNBs. 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 `getPooledBNB` of the credit contract of a validator, 3) do the math. +the `getPooledBNB` of the credit contract of a validator, 3) do the math. You can refer +to [this code repository](https://github.com/bnb-chain/staking-reward-example) for reference. ### How to get the total staking address of a validator?