fix: small bugs on new polymarket fetcher

This commit is contained in:
NunoSempere 2022-03-28 22:37:57 -04:00
parent b7409b23f2
commit 4c1376f170

View File

@ -73,7 +73,7 @@ async function fetchAll() {
if (moreMarketAnswer.length > 0) { if (moreMarketAnswer.length > 0) {
let moreMarketInfo = moreMarketAnswer[0]; let moreMarketInfo = moreMarketAnswer[0];
let id = `polymarket-${addressLowerCase.slice(0, 10)}`; let id = `polymarket-${addressLowerCase.slice(0, 10)}`;
console.log(id); // console.log(id);
let numforecasts = Number(moreMarketInfo.tradesQuantity); let numforecasts = Number(moreMarketInfo.tradesQuantity);
let tradevolume = let tradevolume =
(Number(moreMarketInfo.collateralBuyVolume) + (Number(moreMarketInfo.collateralBuyVolume) +
@ -94,8 +94,8 @@ async function fetchAll() {
let result = { let result = {
id: id, id: id,
title: marketInfo.title, title: marketInfo.question,
url: marketInfo.url, url: "https://polymarket.com/market/" + marketInfo.slug,
platform: "PolyMarket", platform: "PolyMarket",
description: marketInfo.description, description: marketInfo.description,
options: options, options: options,