Skip to content

Commit 92142a9

Browse files
author
wubinTron
committed
special handler when brokerage is equal 100
1 parent 139e9cd commit 92142a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

framework/src/main/java/org/tron/core/Wallet.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,10 @@ public double percentageOfBlockReward(long beginCycle, long endCycle, byte[] add
24332433
if (beginCycle <= endCycle) {
24342434
for (long cycle = beginCycle; cycle <= endCycle; cycle++) {
24352435
int brokerage = dbManager.getDelegationStore().getBrokerage(cycle, address);
2436+
if (brokerage == 100) {
2437+
continue;
2438+
}
2439+
24362440
double brokerageRate = (double) brokerage / 100;
24372441
reward += dbManager.getDelegationStore().getReward(cycle, address) / (1 - brokerageRate);
24382442
blockPayReward += dbManager.getDelegationStore().getBlockReward(cycle, address);

0 commit comments

Comments
 (0)