Skip to content

Commit

Permalink
Fix commission for validators in Polkadot network (#447)
Browse files Browse the repository at this point in the history
* fix commission

* comment
  • Loading branch information
mariopino authored Mar 12, 2020
1 parent 81f8df2 commit e519388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reducers/polkadotV0-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function validatorReducer(network, validator) {
uptimePercentage: undefined,
tokens: validator.tokens,
commissionUpdateTime: undefined,
commission: validator.validatorPrefs.commission / 10000000,
commission: (validator.validatorPrefs.commission / 1000000000).toFixed(9), // Returns commission in 0-1 range (1 = 100%)
maxCommission: undefined,
maxChangeCommission: undefined,
status: `ACTIVE`, // We are fetching current session active validators only (not intentions)
Expand Down

0 comments on commit e519388

Please sign in to comment.