@ape.swap/bonds-sdk 1.0.280 → 1.0.282

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.
@@ -184,12 +184,13 @@ var BondModal = function (_a) {
184
184
  amount = adjustDecimals(inputValue);
185
185
  console.log('-------');
186
186
  console.log(amount);
187
+ console.log(inputValue);
187
188
  console.log(maxPrice);
188
189
  console.log(maxPrice2);
189
190
  console.log(maxPrice2.valueOf());
190
191
  console.log(bondData[0].trueBillPrice);
191
192
  console.log('-------');
192
- return [4 /*yield*/, bondContract.deposit(amount, maxPrice, account)];
193
+ return [4 /*yield*/, bondContract.deposit(amount, maxPrice2.valueOf(), account)];
193
194
  case 2:
194
195
  tx = _a.sent();
195
196
  return [4 /*yield*/, tx.wait()];
@@ -200,7 +201,7 @@ var BondModal = function (_a) {
200
201
  case 4:
201
202
  error_1 = _a.sent();
202
203
  console.error('Approval error', error_1);
203
- alert('Approval Failed');
204
+ alert('Approval Failed!');
204
205
  return [3 /*break*/, 5];
205
206
  case 5: return [2 /*return*/];
206
207
  }
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.282",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",