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

Invalid number of parameters for "getExpectedRate". Got 3 expected 4! #35

Open
bielsky0 opened this issue Dec 2, 2021 · 2 comments
Open

Comments

@bielsky0
Copy link

bielsky0 commented Dec 2, 2021

When I pulled changes from PR#13 i go this error:

Error: Invalid number of parameters for "getExpectedRate". Got 3 expected 4!
at Object.InvalidNumberOfParams (/home/skygate/Dokumenty/blockchain/price-bot/node_modules/web3-core-helpers/src/errors.js:32:16)
at Object._createTxObject (/home/skygate/Dokumenty/blockchain/price-bot/node_modules/web3-eth-contract/src/index.js:699:22)
at checkPair (/home/skygate/Dokumenty/blockchain/price-bot/index.js:69:6)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at monitorPrice (/home/skygate/Dokumenty/blockchain/price-bot/index.js:102:5)
at Timeout._onTimeout (/home/skygate/Dokumenty/blockchain/price-bot/index.js:146:3)

@Shaikh-Ahmad
Copy link

I also got the same error message When I pulled changes from PR#13. if anyone know something about it kindly do tell. thanks

@Glebexe
Copy link

Glebexe commented Jan 29, 2022

You should find and delete "{"name":"usePermissionless","type":"bool"}" in the KYBER_RATE_ABI. It is a description of that parameter which you removed. And also you don't need to change name of the function "slippageRate" or you will need to change the name of it also in the descritprion in the KYBER_RATE_ABI. Idk why he didn't mentioned it. I took for me about 5 hours to figure it out.

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