small bug

This commit is contained in:
Samyak Jain 2019-06-24 03:26:01 +05:30
parent c11b590562
commit 2b06bcc8dd

View File

@ -397,6 +397,7 @@ contract GetDetails is MakerHelpers {
address srcAdd = src;
address destAdd = dest;
(uint kyberPrice,) = KyberInterface(getAddressKyber()).getExpectedRate(srcAdd, destAdd, srcAmt);
kyberPrice = wmul(srcAmt, kyberPrice);
if (srcAdd == getAddressETH()) {
srcAdd = getAddressWETH();
} else {