Skip to content

Commit

Permalink
Set pandasia address in chart
Browse files Browse the repository at this point in the history
  • Loading branch information
chand1012 committed Dec 11, 2023
1 parent 596eb0a commit 83b8d6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions public/js/gogopool.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class GoGoPool {
contracts;
storage;
multicall3;
pandasia;
// Optional Params
EOALabels;
transforms;
Expand All @@ -54,6 +55,7 @@ class GoGoPool {
contracts = this.required(),
storage = this.required(),
multicall3 = this.required(),
pandasia = this.required(),
EOALabels = {},
transforms = [],
dashboard = [],
Expand All @@ -67,6 +69,7 @@ class GoGoPool {
EOALabels,
transforms,
dashboard,
pandasia,
});
this.minipoolsData = [];
this.dashboardData = [];
Expand Down Expand Up @@ -148,6 +151,10 @@ class GoGoPool {
);
}
}
if (this.contracts["Pandasia"]) {
// if we have a pandasia contract, set the address
this.contracts["Pandasia"].address = this.pandasia;
}
console.log(this.contracts);
this.isLoaded = true;
}
Expand Down
3 changes: 1 addition & 2 deletions public/js/pandasia.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { utils as ethersUtils, providers, Contract, constants, BigNumber } from "https://esm.sh/[email protected]";
import { Contract as MCContract, Provider as MCProvider } from "https://esm.sh/[email protected]";
import { providers, Contract } from "https://esm.sh/[email protected]";

class Pandasia {
trees;
Expand Down

0 comments on commit 83b8d6c

Please sign in to comment.