Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Jul 23, 2024
1 parent 724dab1 commit 7206813
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dexs/dedust/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { postURL } from "../../utils/fetchURL"
import { CHAIN } from "../../helpers/chains";
import { FetchOptions } from "../../adapters/types";
import { FetchOptions, SimpleAdapter } from "../../adapters/types";

const GRAPHQL_ENDPOINT = 'https://api.dedust.io/v3/graphql';

Expand Down Expand Up @@ -33,7 +33,6 @@ query GetAssets {


const fetch = async (options: FetchOptions) => {
console.log("Requesting assets list")
const assetsList = (await postURL(GRAPHQL_ENDPOINT, {
query: ASSETS_QUERY,
operationName: 'GetAssets'
Expand All @@ -48,9 +47,7 @@ const fetch = async (options: FetchOptions) => {
symbol: asset.symbol
}
}
console.log(`Inited ${Object.keys(assetInfo).length} assets`);

console.log("Requesting pools list")
const poolsList = (await postURL(GRAPHQL_ENDPOINT, {
query: POOLS_QUERY,
operationName: 'GetPools'
Expand All @@ -62,7 +59,6 @@ const fetch = async (options: FetchOptions) => {
const leftAddr = pool.assets[0];
const rightAddr = pool.assets[1];
if (!(leftAddr in assetInfo && rightAddr in assetInfo)) {
console.warn("No assets info for pool", pool);
continue;
}
const left = assetInfo[leftAddr];
Expand All @@ -78,8 +74,7 @@ const fetch = async (options: FetchOptions) => {
};


const adapter: any = {
version: 2,
const adapter: SimpleAdapter = {
adapter: {
[CHAIN.TON]: {
fetch,
Expand Down

0 comments on commit 7206813

Please sign in to comment.