Skip to content

Commit

Permalink
bugfix: point too small to be zero
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Feb 20, 2024
1 parent 5d54a9a commit 44cdd2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apollo/src/aggregation/aggregation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,6 @@ export class AggregationService extends PrismaClient implements OnModuleInit {
(BigInt(relayerInfo.liquidityFeeRate) * amount) / BigInt(100000);
const R = relayerInfo.slashCount;
const w = 1 + R * 0.1;
return Number(F / BigInt(10 ** decimals)) * w;
return Number(F) * w;
}
}

0 comments on commit 44cdd2a

Please sign in to comment.