mirror of
https://github.com/Instadapp/InstaContract.git
synced 2024-07-29 22:47:45 +00:00
dai2eth is not payable function.
This commit is contained in:
parent
b9b2fad21d
commit
489eabdce1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user