Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when checking ETH USDT pair #15

Open
RarebatDeveloper opened this issue Jan 20, 2021 · 3 comments
Open

Error when checking ETH USDT pair #15

RarebatDeveloper opened this issue Jan 20, 2021 · 3 comments

Comments

@RarebatDeveloper
Copy link

Having error while checking ETH USDT pair price. No issue on the other token. Anybody encountered this issue?

@canberk17
Copy link

I am having a similar issue when I try to check the price of MAHA, CFI, GRT it gives me this error: Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.

@RarebatDeveloper
Copy link
Author

Turns out that it is due to uniswap problem when reading the USDT price, i managed to isolate and figured out it is due to this line of code:
const uniswapResult = await exchangeContract.methods.getEthToTokenInputPrice(inputAmount).call()

Now i am not sure what should i change already. Any idea?

@cipherzzz
Copy link

@RarebatDeveloper see - #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants