@orbs-network/twap 1.9.7 → 1.9.8

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.
Files changed (2) hide show
  1. package/dist/src/lib.js +8 -2
  2. package/package.json +1 -1
package/dist/src/lib.js CHANGED
@@ -152,9 +152,15 @@ class TWAPLib {
152
152
  (0, bignumber_js_1.default)(this.config.bidDelaySeconds).toFixed(0),
153
153
  (0, bignumber_js_1.default)(fillDelaySeconds).toFixed(0),
154
154
  ];
155
- if (this.config.twapVersion > 3)
155
+ let ask;
156
+ if (this.config.twapVersion > 3) {
156
157
  askParams.push(askData);
157
- const tx = yield (0, web3_candies_1.sendAndWaitForConfirmations)(this.twap.methods.ask(askParams), {
158
+ ask = this.twap.methods.ask(askParams);
159
+ }
160
+ else {
161
+ ask = this.twap.methods.ask(...askParams);
162
+ }
163
+ const tx = yield (0, web3_candies_1.sendAndWaitForConfirmations)(ask, {
158
164
  from: this.maker,
159
165
  maxPriorityFeePerGas,
160
166
  maxFeePerGas,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbs-network/twap",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/orbs-network/twap.git"