diff --git a/docs/js_sdk/erc20Trade/orderERC20.md b/docs/js_sdk/erc20Trade/orderERC20.md index bcc9583f..b5dc4c43 100644 --- a/docs/js_sdk/erc20Trade/orderERC20.md +++ b/docs/js_sdk/erc20Trade/orderERC20.md @@ -20,24 +20,24 @@ The parameters to call this interface are "accountId" and "market=LRC-ETH". In t **4) Set slippage as the slippage value user configured in UI (for example 0.1%)** -**5)Caculate minCostLRC and minCostETH as below** +**5)Calculate minCostLRC and minCostETH as below** minCostLRC = max(minTokenLRC, tradeCostLRC/maxAllowBips) minCostETH = max(minTokenETH, tradeCostETH/maxAllowBips) -**6) Caculate the cost by considering slippage** +**6) Calculate the cost by considering slippage** minCostLRCSlip = minCostLRC/(1-slippage) minCostETHSlip = minCostETH/(1-slippage) -**7) Cacluate the minimum quantity user has to set** +**7) Calculate the minimum quantity user has to set** tradeCostSellLRC = max(tradeCostSellLRC, minTokenLRC) * 1.1 tradeCostSellETH = max(tradeCostSellETH, minTokenETH) * 1.1 Here we add additonally 10% tolerance. -**8) Caculate the previous minimum token amount per calling api/v3/user/orderUserRateAmount (existing logic)** +**8) Calculate the previous minimum token amount per calling api/v3/user/orderUserRateAmount (existing logic)** This is the threshold to distinguish small quantity trading and normal trading We will get two values (configSellLRC and configSellETH) which are used for previous trading quantity limit (Per USD 100) caculation