Skip to content

Commit

Permalink
Merge branch 'fast-updates-rewarding-fix' into 'main'
Browse files Browse the repository at this point in the history
Fast updates rewarding fix

See merge request flarenetwork/ftso-scaling!112
  • Loading branch information
alenabelium committed Jul 22, 2024
2 parents a3ce6a5 + d3417db commit aa70b36
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6,321 deletions.
4 changes: 2 additions & 2 deletions libs/ftso-core/src/reward-calculation/reward-fast-updates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BURN_ADDRESS, FTSO2_FAST_UPDATES_PROTOCOL_ID } from "../configs/networks";
import { BURN_ADDRESS, FTSO2_FAST_UPDATES_PROTOCOL_ID, TOTAL_BIPS } from "../configs/networks";
import { FUFeedValue } from "../data-calculation-interfaces";
import { FastUpdateFeedConfiguration } from "../events/FUInflationRewardsOffered";
import { ILogger } from "../utils/ILogger";
Expand Down Expand Up @@ -131,7 +131,7 @@ export function calculateFastUpdatesClaims(
);
}
const voterAmount = sharePerOne + (i < remainder ? 1n : 0n);
const feeAmount = (voterAmount * BigInt(feeBIPS)) / TOTAL_PPM;
const feeAmount = (voterAmount * BigInt(feeBIPS)) / TOTAL_BIPS;
const feeClaim: IPartialRewardClaim = {
votingRoundId: offer.votingRoundId,
beneficiary: identityAddress,
Expand Down
Loading

0 comments on commit aa70b36

Please sign in to comment.