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

Commit f66337f

Browse files
committed
eth price changed to 1 for frontend to work
1 parent 47ba7e5 commit f66337f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphql/mutations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ const handleSync = {
539539
// update ETH price now that reserves could have changed
540540
let bundle = await Bundle.findOne({ id: "1" });
541541
//bundle.ethPrice = getEthPriceInUSD();
542-
bundle.ethPrice = 0; //passing zero Because Casper don't have the feature right now
542+
bundle.ethPrice = 1; //passing one Because Casper don't have the feature right now and zero gives error on the frontend
543543
await bundle.save();
544544

545545
// token0.derivedETH = findEthPerToken(token0);

graphql/pricing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function findEthPerToken(token) {
9393
//let pairAddress = await factory.getPair(process.env.FACTORY_CONTRACT,token.id, WHITELIST[i]);
9494

9595
let pairAddress =
96-
"hash-0000000000000000000000000000000000000000000000000000000000000000";
96+
"0000000000000000000000000000000000000000000000000000000000000000";
9797
if (pairAddress != ADDRESS_ZERO) {
9898
let pair = await Pair.findOne({ id: pairAddress });
9999
if (

0 commit comments

Comments
 (0)