Skip to content

Commit

Permalink
fix: change epoch for pool pledge
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbormann committed Feb 10, 2024
1 parent 1a48a89 commit b980b47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public static PoolRewardCalculationResult calculatePoolRewardInEpoch(String pool
// pledged during pool registration)"

// Step 7: Get the latest pool update before this epoch and extract the pledge
double poolPledge = dataProvider.getPoolPledgeInEpoch(poolId, epoch - 1);
double poolPledge = dataProvider.getPoolPledgeInEpoch(poolId, epoch);

PoolOwnerHistory poolOwnersHistoryInEpoch = dataProvider.getHistoryOfPoolOwnersInEpoch(poolId, epoch);
double totalActiveStakeOfOwners = poolOwnersHistoryInEpoch.getActiveStake();
Expand Down

0 comments on commit b980b47

Please sign in to comment.