Skip to content

Commit

Permalink
Update src/misc/stakingPoolsConfig.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Mark T. B. Carroll <[email protected]>
  • Loading branch information
2 people authored and uHappyLogic committed Dec 13, 2024
1 parent 07c6169 commit c79c779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/misc/stakingPoolsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ async function fetchDelegatorDataFromNetwork(definition: StakingPoolDefinition,

const zilToTokenRate = 1 / parseFloat(formatUnits(zilToTokenRateWei, 18));

const bigingDivisionPrecision = 1000000n;
const bigintDivisionPrecision = 1000000n;

const commission = Number((commissionNumerator * bigingDivisionPrecision) / commissionDenominator) / Number(bigingDivisionPrecision);
const votingPower = Number(((delegatorStake * bigingDivisionPrecision) / depositTotalStake)) / Number(bigingDivisionPrecision);
const commission = Number((commissionNumerator * bigintDivisionPrecision) / commissionDenominator) / Number(bigintDivisionPrecision);
const votingPower = Number(((delegatorStake * bigintDivisionPrecision) / depositTotalStake)) / Number(bigintDivisionPrecision);
const rewardsPerYearInZil = 51000 * 24 * 365;

const delegatorYearReward = votingPower * rewardsPerYearInZil;
Expand Down

0 comments on commit c79c779

Please sign in to comment.