Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
eth price changed to 1 for frontend to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammad-Mubeen committed Nov 18, 2021
1 parent 47ba7e5 commit f66337f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphql/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ const handleSync = {
// update ETH price now that reserves could have changed
let bundle = await Bundle.findOne({ id: "1" });
//bundle.ethPrice = getEthPriceInUSD();
bundle.ethPrice = 0; //passing zero Because Casper don't have the feature right now
bundle.ethPrice = 1; //passing one Because Casper don't have the feature right now and zero gives error on the frontend
await bundle.save();

// token0.derivedETH = findEthPerToken(token0);
Expand Down
2 changes: 1 addition & 1 deletion graphql/pricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function findEthPerToken(token) {
//let pairAddress = await factory.getPair(process.env.FACTORY_CONTRACT,token.id, WHITELIST[i]);

let pairAddress =
"hash-0000000000000000000000000000000000000000000000000000000000000000";
"0000000000000000000000000000000000000000000000000000000000000000";
if (pairAddress != ADDRESS_ZERO) {
let pair = await Pair.findOne({ id: pairAddress });
if (
Expand Down

0 comments on commit f66337f

Please sign in to comment.