Skip to content

Commit

Permalink
Show rewards amounts for *next* cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJohnnyGault committed Dec 20, 2023
1 parent f73b970 commit 4d44e66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/deployments/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{
"fn": "getInflationAmt",
"formatter": "formatInflationAmt",
"desc": "Amount of GGP to be issued in next reward cycle"
"desc": "getInflationIntervalRate * getInflationIntervalsElapsed (until now) "
},
{
"fn": "getClaimingContractDistribution",
Expand Down
3 changes: 2 additions & 1 deletion public/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h3 class="d-inline-block text-center"><a href="/home">Minipools</a></h3>
</div>

<div class="container w-95 text-center mb-4 pb-4 alert alert-warning">
⚠️ These numbers are all estimates based on the information in the smart contracts, and may not be accurate.
⚠️ These numbers are all estimates of next cycle's rewards, based on the information in the smart contracts, and may
not be accurate.
<br />
Not Financial Advice, Do Your Own Research, WAGMI.
</div>
Expand Down
3 changes: 2 additions & 1 deletion public/js/gogopool.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { MINIPOOL_STATUS_MAP, formatters, transformerFns, unfuckEthersObj } from
import { minipoolsTransformer } from "/js/transformers.js";

// Hard-code reward cycle amounts
// Note we show the rewards for the *next* cycle amount
const REWARDS_TOTAL_NODEOP_POOL_AMT = {
0: BigNumber.from("50629343838906640213406"),
1: BigNumber.from("50832782764109674639470"),
Expand Down Expand Up @@ -356,7 +357,7 @@ class GoGoPool {
"0x624c4F9E55d2D1158fD5dee555C3bc8110b1E936": true,
};
const INVESTOR_REWARDS_SHARE = 0.2;
const REWARDS_POOL_AMT = REWARDS_TOTAL_NODEOP_POOL_AMT[this.rewardsCycleCount()];
const REWARDS_POOL_AMT = REWARDS_TOTAL_NODEOP_POOL_AMT[this.rewardsCycleCount() + 1]; // look forward to next cycle

// Make 2 groups, investors and users. (do math in regular numbers)
const investors = eligibleStakers.filter((s) => INVESTOR_ADDRS[s.stakerAddr]);
Expand Down

0 comments on commit 4d44e66

Please sign in to comment.