Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Freeze while loading datas #50

Closed
w0dm4n opened this issue Dec 20, 2020 · 1 comment
Closed

Freeze while loading datas #50

w0dm4n opened this issue Dec 20, 2020 · 1 comment

Comments

@w0dm4n
Copy link

w0dm4n commented Dec 20, 2020

Hello, the following code result in a few seconds complete freeze until the result come in which mean that javascript is overloaded and getting totally fucked for a little while, how is that even possible ?)

import { Fetcher, Route } from '@uniswap/sdk'
        const netId = await web3.eth.net.getId();
        const PTE = await Fetcher.fetchTokenData(netId, web3.utils.toChecksumAddress(Env().PEET_CONTRACT_ADDR));
        const USDT = await Fetcher.fetchTokenData(netId, web3.utils.toChecksumAddress(Env().USDT_CONTRACT_ADDR));
        
        const pair = await Fetcher.fetchPairData(PTE, USDT);
        const route = new Route([pair], USDT)
@moodysalem
Copy link
Contributor

moodysalem commented Mar 7, 2021

Fetcher has been removed from this repository see #39 (comment)

royalaid pushed a commit to royalaid/qidao-sdk that referenced this issue Apr 7, 2023
…housekeeping

Address checksums and gitignore updates
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants