Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Nov 10, 2023
1 parent 2b9102b commit aa9257c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions postmortem/2023-10-10.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,26 @@ During the testing of the Staking as NFT(IIP-13) feature on Mainnet, it was foun

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

**Incorrect calculation**
**Incorrect calculation**

$$votes=amount$$
$`votes=amount`$

**The correct**

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

$$m= \begin{cases} 1 & locked \\ 0 & unlocked \geq 1 \end{cases}$$
$`
m= \begin{cases}
1 & locked \\
0 & unlocked \geq 1
\end{cases}
`$

# Solution

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.

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:
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:

| Reward Address (io) | Reward Address (eth) | Rewards (IOTX) |
| ----------------------------------------- | ------------------------------------------ | -------------- |
Expand Down

0 comments on commit aa9257c

Please sign in to comment.