From 489eabdce12cc5703cc9414f1f13432b85752172 Mon Sep 17 00:00:00 2001 From: Sowmayjain Date: Sun, 27 Jan 2019 05:09:02 +0530 Subject: [PATCH] dai2eth is not payable function. --- contracts/v2/DAI2ETH.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/v2/DAI2ETH.sol b/contracts/v2/DAI2ETH.sol index 06684d6..875001a 100644 --- a/contracts/v2/DAI2ETH.sol +++ b/contracts/v2/DAI2ETH.sol @@ -66,7 +66,7 @@ contract Trade is Registry { return kyberFunctions.getExpectedRate(getAddress("dai"), getAddress("eth"), srcDAI); } - function dai2eth(uint srcDAI) public payable returns (uint destAmt) { + function dai2eth(uint srcDAI) public returns (uint destAmt) { address src = getAddress("dai"); address dest = getAddress("eth"); uint minConversionRate; @@ -74,7 +74,7 @@ contract Trade is Registry { // Interacting with Kyber Proxy Contract Kyber kyberFunctions = Kyber(getAddress("kyber")); - destAmt = kyberFunctions.trade.value(msg.value)( + destAmt = kyberFunctions.trade.value(0)( src, srcDAI, dest,