@ape.swap/bonds-sdk 1.0.280 → 1.0.281

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.
@@ -189,7 +189,7 @@ var BondModal = function (_a) {
189
189
  console.log(maxPrice2.valueOf());
190
190
  console.log(bondData[0].trueBillPrice);
191
191
  console.log('-------');
192
- return [4 /*yield*/, bondContract.deposit(amount, maxPrice, account)];
192
+ return [4 /*yield*/, bondContract.deposit(amount, maxPrice2.valueOf(), account)];
193
193
  case 2:
194
194
  tx = _a.sent();
195
195
  return [4 /*yield*/, tx.wait()];
@@ -200,7 +200,7 @@ var BondModal = function (_a) {
200
200
  case 4:
201
201
  error_1 = _a.sent();
202
202
  console.error('Approval error', error_1);
203
- alert('Approval Failed');
203
+ alert('Approval Failed!');
204
204
  return [3 /*break*/, 5];
205
205
  case 5: return [2 /*return*/];
206
206
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.280",
6
+ "version": "1.0.281",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",