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

bad function call in conversion rate (pricing) #291

Open
ilanDoron opened this issue Aug 28, 2018 · 2 comments · May be fixed by KyberNetwork/kyber_reserves_sc#12
Open

bad function call in conversion rate (pricing) #291

ilanDoron opened this issue Aug 28, 2018 · 2 comments · May be fixed by KyberNetwork/kyber_reserves_sc#12

Comments

@ilanDoron
Copy link
Contributor

ilanDoron commented Aug 28, 2018

in conversion rate.

qty = getTokenQty(token, rate, qty);

call to getTokenQty(token, rate, qty);
rate and qty are swapped
should be replaced by
getTokenQty(token, qty, rate);

thanks to @namnm1991 for finding this bug...

@manhlx3006
Copy link
Contributor

Fixed with new conversion rate contract in this PR: https://github.com/KyberNetwork/smart-contracts/pull/416/files

@manhlx3006
Copy link
Contributor

This issue should be resolved in enhanced step function contract

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

Successfully merging a pull request may close this issue.

2 participants