Skip to content

Commit

Permalink
feat: change commssion
Browse files Browse the repository at this point in the history
  • Loading branch information
HuberTRoy committed Mar 21, 2024
1 parent caea2a4 commit 496d69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/network-clients/src/clients/networkClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class NetworkClient {
// Jun 2022 commission-divUnit = perMil / 100 -> 10,000
const COMMISSION_DIV_UNIT = 10000;
const PERCENTAGE_UNIT = 100;
const rawCommission = parseRawEraValue(commission, currentEra.toNumber());
const rawCommission = parseRawEraValue(commission, currentEra.toNumber() - 1);
const sortedCommission = {
current: rawCommission.current.toNumber() / (COMMISSION_DIV_UNIT * PERCENTAGE_UNIT),
after: rawCommission.after.toNumber() / (COMMISSION_DIV_UNIT * PERCENTAGE_UNIT),
Expand Down

0 comments on commit 496d69a

Please sign in to comment.