Skip to content

Commit aa9257c

Browse files
committed
address comments
1 parent 2b9102b commit aa9257c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

postmortem/2023-10-10.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,26 @@ During the testing of the Staking as NFT(IIP-13) feature on Mainnet, it was foun
1515

1616
The votes for the NFT Bucket only calculate the staked amount and does not consider the weighting of stake duration and stake-lock.
1717

18-
**Incorrect calculation**
18+
**Incorrect calculation**
1919

20-
$$votes=amount$$
20+
$`votes=amount`$
2121

2222
**The correct**
2323

24-
$$votes=amount*(1+\log_{1.2}{(duration/86400)(1+m)})$$
24+
$`votes=amount*(1+\log_{1.2}{(duration/86400)(1+m)})`$
2525

26-
$$m= \begin{cases} 1 & locked \\ 0 & unlocked \geq 1 \end{cases}$$
26+
$`
27+
m= \begin{cases}
28+
1 & locked \\
29+
0 & unlocked \geq 1
30+
\end{cases}
31+
`$
2732

2833
# Solution
2934

3035
Using the accurate formula for vote calculation post hard-fork height. State patching is unnecessary as NFT votes are calculated in real-time, instead of being stored in the database. Also ensure the consistency of the vote calculation formula across blockchain, rewarding service, and web/mobile.
3136

32-
We calculate the rewards for NFT staking from epoch 37021 to 39613 based on the new reward rules and provide users with a one-time supplemental payment for the difference. The details are shown below:
37+
We calculate the rewards for NFT staking from epoch 37021(SystemStaking contract deployed) to 39613(hard-fork activated) based on the new reward rules and provide users with a one-time supplemental payment for the difference. The details are shown below:
3338

3439
| Reward Address (io) | Reward Address (eth) | Rewards (IOTX) |
3540
| ----------------------------------------- | ------------------------------------------ | -------------- |

0 commit comments

Comments
 (0)