-
Notifications
You must be signed in to change notification settings - Fork 390
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
Kyber Rates are 0 #12
Comments
@djarbz did you ever figure this out? @gwmccubbin can you help? |
Same here! Any hints? |
I haven't found a solution yet. |
I too am having the same issue. I find it very strange that the issue is specific to token and exchange combinations. If it were all the swaps on kyber I would think it to be a problem with the API or addresses for Kyber. If the tokens didn't work on both exchanges, I'd say the issue would lie in the token addresses. But strangely it's a mix of the two and I am still racking my brain for a solution. |
Got it to work. Just had to update the Factory Address and the ABI. Check out the documentation for Kyber Network Address and ABI |
Thanks @mohamedalichelbi -- you made it so easy. |
Whic ABI did you use I am getting errors when I use it |
specifically this error
|
@Genoux In which file did you change the factory address and the ABI? I can't find it in index.js |
It's in |
Thanks for the info.
I already changed all changes made by @mohanedalichelbi_PR, but now I am
getting the error: expected 4, received 3.This is, as far as I can tell,
because of line 40, where he deleted true in the methods call. Any
suggestion what to do there?
let kyberResult = await kyberRateContract.methods.getExpectedRate(
inputTokenAddress, outputTokenAddress, inputAmount).call()
…On Sun, Mar 21, 2021 at 10:02 PM John Barry ***@***.***> wrote:
Got it to work. Just had to update the Factory Address and the ABI.
Look for KyberNetworkProxy address and I used the KyberNetworkProxy (V1)
ABI
Check out the documentation for Kyber Network Address
<https://developer.kyber.network/docs/Addresses-Intro/> and ABI
<https://developer.kyber.network/docs/API_ABI-ABI/>
@Genoux <https://github.com/Genoux> In which file did you change the
factory address and the ABI? I can't find it in index.js
It's in index.js look for KYBER_RATE_ADDRESS and KYBER_RATE_ABI
Have a look at mohamedalichelbi PR
<mohamedalichelbi@9e6053a>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATKZ73OJMRY7IKG6OKGOB4TTEZNIBANCNFSM4UKRRHCA>
.
|
//https://developer.kyber.network/docs/API_ABI-ABI/ then replace keyber call by
|
Kyber Rates for DAI, KNC, and LINK all return 0
The text was updated successfully, but these errors were encountered: