Skip to content

Commit

Permalink
Fixes NeoToken.CalculateBonus() (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang committed Aug 4, 2019
1 parent 53f7d02 commit 30a8997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/SmartContract/Native/Tokens/NeoToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private BigInteger CalculateBonus(Snapshot snapshot, BigInteger value, uint star
}
amount += (iend - istart) * Blockchain.GenerationAmount[ustart];
}
amount += GAS.GetSysFeeAmount(snapshot, end - 1) - (start == 0 ? 0 : GAS.GetSysFeeAmount(snapshot, start - 1));
amount += (GAS.GetSysFeeAmount(snapshot, end - 1) - (start == 0 ? 0 : GAS.GetSysFeeAmount(snapshot, start - 1))) / GAS.Factor;
return value * amount * GAS.Factor / TotalAmount;
}

Expand Down

0 comments on commit 30a8997

Please sign in to comment.