h-agent-swap 1.8.0 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h-agent-swap",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "agent-swap",
5
5
  "main": "src/index.js",
6
6
  "files": [
package/src/agent-swap.js CHANGED
@@ -295,10 +295,11 @@ class AgentSwap extends HI {
295
295
  let result = await this.SC.methods.limitBuy().call()
296
296
  let token = new ERC20({ ...this.network,contract:pricing })
297
297
  let precision = await token.decimals()
298
- result.currentHold = toSmall(result.currentHold,precision)
298
+
299
299
  result.buyMin = toSmall(result.buyMin,precision)
300
300
  result.buyMax = toSmall(result.buyMax,precision)
301
301
  result.holdMax = toSmall(result.holdMax,precision)
302
+ return result
302
303
  }
303
304
 
304
305
  async onlyRate(path) {