mirror of
https://github.com/Instadapp/InstaContract.git
synced 2024-07-29 22:47:45 +00:00
Added Max Dest Amount Argument in the executeTrade function.
This commit is contained in:
parent
544c92dda6
commit
70f48cb607
|
@ -81,10 +81,11 @@ contract Trade is Registry {
|
||||||
}
|
}
|
||||||
|
|
||||||
function executeTrade(
|
function executeTrade(
|
||||||
address src,
|
address src, // token to sell
|
||||||
address dest,
|
address dest, // token to buy
|
||||||
uint srcAmt,
|
uint srcAmt, // amount of token for sell
|
||||||
uint minConversionRate
|
uint minConversionRate, // minimum slippage rate
|
||||||
|
uint maxDestAmt // max amount of dest token
|
||||||
) public payable returns (uint destAmt)
|
) public payable returns (uint destAmt)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -97,7 +98,7 @@ contract Trade is Registry {
|
||||||
srcAmt,
|
srcAmt,
|
||||||
dest,
|
dest,
|
||||||
msg.sender,
|
msg.sender,
|
||||||
2**256 - 1,
|
maxDestAmt,
|
||||||
minConversionRate,
|
minConversionRate,
|
||||||
getAddress("admin")
|
getAddress("admin")
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user