Advertisement
Guest User

Untitled

a guest
Aug 13th, 2020
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.57 KB | None | 0 0
  1. --- src/generateV1.ts   2020-08-13 09:51:31.537229955 +0000
  2. +++ src/generateV1.ts   2020-08-13 09:51:34.587281932 +0000
  3. @@ -87,7 +87,8 @@
  4.  const getRewardAmount = (block: number) => {
  5.      const initReward = parseInt(process.env.TOKEN_INIT_REWARD_V1 as string, 10);
  6.      const halveningInterval = parseInt(process.env.TOKEN_HALVING_INTERVAL_V1 as string, 10);
  7. -    return initReward / (Math.floor(block / halveningInterval) + 1);
  8. +    const double = initReward / (Math.floor(block / halveningInterval) + 1);
  9. +    return parseInt(double.toString(), 10);
  10.  };
  11.  
  12.  interface IState {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement