Browse Source

Adding level 0

digibyte
AlphaX-Projects 3 years ago committed by GitHub
parent
commit
10f6f95074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 45
      qortal-ui-plugins/plugins/core/minting/minting-info.src.js

45
qortal-ui-plugins/plugins/core/minting/minting-info.src.js

@ -650,27 +650,28 @@ class MintingInfo extends LitElement {
_countLevels() { _countLevels() {
if (this.addressInfo.level === 0) { if (this.addressInfo.level === 0) {
return "0" let countTier0 = (this.addressLevel[0].count).toString();
return "" + countTier0;
} else if (this.addressInfo.level === 1) { } else if (this.addressInfo.level === 1) {
let countTier10 = (this.addressLevel[0].count + this.addressLevel[1].count).toString(); let countTier10 = (this.addressLevel[1].count + this.addressLevel[2].count).toString();
return "" + countTier10; return "" + countTier10;
} else if (this.addressInfo.level === 2) { } else if (this.addressInfo.level === 2) {
let countTier11 = (this.addressLevel[0].count + this.addressLevel[1].count).toString(); let countTier11 = (this.addressLevel[1].count + this.addressLevel[2].count).toString();
return "" + countTier11; return "" + countTier11;
} else if (this.addressInfo.level === 3) { } else if (this.addressInfo.level === 3) {
let countTier20 = (this.addressLevel[2].count + this.addressLevel[3].count).toString(); let countTier20 = (this.addressLevel[3].count + this.addressLevel[4].count).toString();
return "" + countTier20; return "" + countTier20;
} else if (this.addressInfo.level === 4) { } else if (this.addressInfo.level === 4) {
let countTier21 = (this.addressLevel[2].count + this.addressLevel[3].count).toString(); let countTier21 = (this.addressLevel[3].count + this.addressLevel[4].count).toString();
return "" + countTier21; return "" + countTier21;
} else if (this.addressInfo.level === 5) { } else if (this.addressInfo.level === 5) {
let countTier30 = (this.addressLevel[4].count + this.addressLevel[5].count).toString(); let countTier30 = (this.addressLevel[5].count + this.addressLevel[6].count).toString();
return "" + countTier30; return "" + countTier30;
} else if (this.addressInfo.level === 6) { } else if (this.addressInfo.level === 6) {
let countTier31 = (this.addressLevel[4].count + this.addressLevel[5].count).toString(); let countTier31 = (this.addressLevel[5].count + this.addressLevel[6].count).toString();
return "" + countTier31; return "" + countTier31;
} else if (this.addressInfo.level === 10) { } else if (this.addressInfo.level === 10) {
let countTier101 = (this.addressLevel[6].count).toString(); let countTier101 = (this.addressLevel[7].count).toString();
return "" + countTier101; return "" + countTier101;
} }
} }
@ -679,31 +680,31 @@ class MintingInfo extends LitElement {
if (this.addressInfo.level === 0) { if (this.addressInfo.level === 0) {
return "0" return "0"
} else if (this.addressInfo.level === 1) { } else if (this.addressInfo.level === 1) {
let countReward10 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[0].count + this.addressLevel[1].count)).toFixed(8); let countReward10 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[1].count + this.addressLevel[2].count)).toFixed(8);
let countReward11 = (countReward10).toString(); let countReward11 = (countReward10).toString();
return "" + countReward11; return "" + countReward11;
} else if (this.addressInfo.level === 2) { } else if (this.addressInfo.level === 2) {
let countReward20 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[0].count + this.addressLevel[1].count)).toFixed(8); let countReward20 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[1].count + this.addressLevel[2].count)).toFixed(8);
let countReward21 = (countReward20).toString(); let countReward21 = (countReward20).toString();
return "" + countReward21; return "" + countReward21;
} else if (this.addressInfo.level === 3) { } else if (this.addressInfo.level === 3) {
let countReward30 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[2].count + this.addressLevel[3].count)).toFixed(8); let countReward30 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[3].count + this.addressLevel[4].count)).toFixed(8);
let countReward31 = (countReward30).toString(); let countReward31 = (countReward30).toString();
return "" + countReward31; return "" + countReward31;
} else if (this.addressInfo.level === 4) { } else if (this.addressInfo.level === 4) {
let countReward40 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[2].count + this.addressLevel[3].count)).toFixed(8); let countReward40 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[3].count + this.addressLevel[4].count)).toFixed(8);
let countReward41 = (countReward40).toString(); let countReward41 = (countReward40).toString();
return "" + countReward41; return "" + countReward41;
} else if (this.addressInfo.level === 5) { } else if (this.addressInfo.level === 5) {
let countReward50 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[4].count + this.addressLevel[5].count)).toFixed(8); let countReward50 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[5].count + this.addressLevel[6].count)).toFixed(8);
let countReward51 = (countReward50).toString(); let countReward51 = (countReward50).toString();
return "" + countReward51; return "" + countReward51;
} else if (this.addressInfo.level === 6) { } else if (this.addressInfo.level === 6) {
let countReward60 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[4].count + this.addressLevel[5].count)).toFixed(8); let countReward60 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[5].count + this.addressLevel[6].count)).toFixed(8);
let countReward61 = (countReward60).toString(); let countReward61 = (countReward60).toString();
return "" + countReward61; return "" + countReward61;
} else if (this.addressInfo.level === 10) { } else if (this.addressInfo.level === 10) {
let countReward100 = ((this._blockReward() / 100 * this._tierPercent()) / this.addressLevel[6].count).toFixed(8); let countReward100 = ((this._blockReward() / 100 * this._tierPercent()) / this.addressLevel[7].count).toFixed(8);
let countReward101 = (countReward100).toString(); let countReward101 = (countReward100).toString();
return "" + countReward101; return "" + countReward101;
} }
@ -713,31 +714,31 @@ class MintingInfo extends LitElement {
if (this.addressInfo.level === 0) { if (this.addressInfo.level === 0) {
return "0" return "0"
} else if (this.addressInfo.level === 1) { } else if (this.addressInfo.level === 1) {
let countRewardDay10 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[0].count + this.addressLevel[1].count) * this._timeCalc()).toFixed(8); let countRewardDay10 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[1].count + this.addressLevel[2].count) * this._timeCalc()).toFixed(8);
let countRewardDay11 = (countRewardDay10).toString(); let countRewardDay11 = (countRewardDay10).toString();
return "" + countRewardDay11; return "" + countRewardDay11;
} else if (this.addressInfo.level === 2) { } else if (this.addressInfo.level === 2) {
let countRewardDay20 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[0].count + this.addressLevel[1].count) * this._timeCalc()).toFixed(8); let countRewardDay20 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[1].count + this.addressLevel[2].count) * this._timeCalc()).toFixed(8);
let countRewardDay21 = (countRewardDay20).toString(); let countRewardDay21 = (countRewardDay20).toString();
return "" + countRewardDay21; return "" + countRewardDay21;
} else if (this.addressInfo.level === 3) { } else if (this.addressInfo.level === 3) {
let countRewardDay30 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[2].count + this.addressLevel[3].count) * this._timeCalc()).toFixed(8); let countRewardDay30 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[3].count + this.addressLevel[4].count) * this._timeCalc()).toFixed(8);
let countRewardDay31 = (countRewardDay30).toString(); let countRewardDay31 = (countRewardDay30).toString();
return "" + countRewardDay31; return "" + countRewardDay31;
} else if (this.addressInfo.level === 4) { } else if (this.addressInfo.level === 4) {
let countRewardDay40 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[2].count + this.addressLevel[3].count) * this._timeCalc()).toFixed(8); let countRewardDay40 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[3].count + this.addressLevel[4].count) * this._timeCalc()).toFixed(8);
let countRewardDay41 = (countRewardDay40).toString(); let countRewardDay41 = (countRewardDay40).toString();
return "" + countRewardDay41; return "" + countRewardDay41;
} else if (this.addressInfo.level === 5) { } else if (this.addressInfo.level === 5) {
let countRewardDay50 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[4].count + this.addressLevel[5].count) * this._timeCalc()).toFixed(8); let countRewardDay50 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[5].count + this.addressLevel[6].count) * this._timeCalc()).toFixed(8);
let countRewardDay51 = (countRewardDay50).toString(); let countRewardDay51 = (countRewardDay50).toString();
return "" + countRewardDay51; return "" + countRewardDay51;
} else if (this.addressInfo.level === 6) { } else if (this.addressInfo.level === 6) {
let countRewardDay60 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[4].count + this.addressLevel[5].count) * this._timeCalc()).toFixed(8); let countRewardDay60 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[5].count + this.addressLevel[6].count) * this._timeCalc()).toFixed(8);
let countRewardDay61 = (countRewardDay60).toString(); let countRewardDay61 = (countRewardDay60).toString();
return "" + countRewardDay61; return "" + countRewardDay61;
} else if (this.addressInfo.level === 10) { } else if (this.addressInfo.level === 10) {
let countRewardDay100 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[6].count) * this._timeCalc()).toFixed(8); let countRewardDay100 = ((this._blockReward() / 100 * this._tierPercent()) / (this.addressLevel[7].count) * this._timeCalc()).toFixed(8);
let countRewardDay101 = (countRewardDay100).toString(); let countRewardDay101 = (countRewardDay100).toString();
return "" + countRewardDay101; return "" + countRewardDay101;
} }

Loading…
Cancel
Save