smart-contracts
smart-contracts copied to clipboard
bad function call in conversion rate (pricing)
in conversion rate. https://github.com/KyberNetwork/smart-contracts/blob/02094d33d8d552adf8b4e58fbf38a3aabf27d12d/contracts/ConversionRates.sol#L227
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...
Fixed with new conversion rate contract in this PR: https://github.com/KyberNetwork/smart-contracts/pull/416/files
This issue should be resolved in enhanced step function contract