Skip to content

Commit

Permalink
rm milliDOT
Browse files Browse the repository at this point in the history
  • Loading branch information
filippoweb3 committed Sep 3, 2024
1 parent efa585d commit d5e2cac
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions components/utilities/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,25 @@ const values = {
symbol: "KSM",
},
polkadotpeople: {
precision: 1e7,
symbol: "milliDOT",
precision: 1e10,
symbol: "DOT",
},
kusamapeople: {
precision: 1e9,
symbol: "milliKSM",
precision: 1e12,
symbol: "KSM",
},
};

module.exports = {

HumanReadable: function (value, network, setReturnValue) {
let decimals = undefined;
if (network === Polkadot || network === Statemint || network == PolkadotPeople) {
if (network === Polkadot || network === Statemint) {
decimals = 3;
} else if (network === Kusama || network === Statemine || network == KusamaPeople) {
} else if (network === Kusama || network === Statemine || network === PolkadotPeople) {
decimals = 6;
} else if (network == KusamaPeople) {
decimals = 8;
} else {
console.log("Unknown network type found when attempting to apply 'Human Readable' filter");
return;
Expand Down

0 comments on commit d5e2cac

Please sign in to comment.