Skip to content

Commit

Permalink
Merge pull request #305 from darwinia-network/reset-ring-kton-rewards
Browse files Browse the repository at this point in the history
chore: reset ring and kton rewards
  • Loading branch information
1022ranji authored May 30, 2022
2 parents eb7c3bf + d4a964f commit 1ade5ec
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/page/PloContribute/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,14 @@ const PloContribute = () => {
const myReferralCodeFromGql = myReferralCode ? referralCodeToPolkadotAddress(myReferralCode.memo) : null;

const myTotalPower = myReferTotalPower.add(myContributeTotalPower);
const myRingReward = myTotalPower.isZero()
? "0"
: Big(myTotalPower).div(globalTotalPower.toString()).mul(Big("200000000")).toFixed(4);
const myKtonReward = myTotalPower.isZero()
? "0"
: Big(myTotalPower).div(globalTotalPower.toString()).mul(Big("8000")).toFixed(4);
// const myRingReward = myTotalPower.isZero()
// ? "0"
// : Big(myTotalPower).div(globalTotalPower.toString()).mul(Big("200000000")).toFixed(4);
// const myKtonReward = myTotalPower.isZero()
// ? "0"
// : Big(myTotalPower).div(globalTotalPower.toString()).mul(Big("8000")).toFixed(4);
const myRingReward = '0';
const myKtonReward = '0';

let auctionSuccessReward = {
base: { ring: Big(0), kton: Big(0) },
Expand Down

0 comments on commit 1ade5ec

Please sign in to comment.