diff --git a/contracts/protocols/InstaKyber.sol b/contracts/protocols/InstaKyber.sol index 7f2d4d6..f10f4a9 100644 --- a/contracts/protocols/InstaKyber.sol +++ b/contracts/protocols/InstaKyber.sol @@ -81,10 +81,11 @@ contract Trade is Registry { } function executeTrade( - address src, - address dest, - uint srcAmt, - uint minConversionRate + address src, // token to sell + address dest, // token to buy + uint srcAmt, // amount of token for sell + uint minConversionRate, // minimum slippage rate + uint maxDestAmt // max amount of dest token ) public payable returns (uint destAmt) { @@ -97,7 +98,7 @@ contract Trade is Registry { srcAmt, dest, msg.sender, - 2**256 - 1, + maxDestAmt, minConversionRate, getAddress("admin") ); diff --git a/contracts/protocols/MoatMaker.sol b/contracts/protocols/InstaMaker.sol similarity index 100% rename from contracts/protocols/MoatMaker.sol rename to contracts/protocols/InstaMaker.sol