@ape.swap/bonds-sdk 1.0.286 → 1.0.288
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.
|
@@ -183,15 +183,17 @@ var BondModal = function (_a) {
|
|
|
183
183
|
maxPrice2 = new BigNumber(bondData[0].trueBillPrice).times(102).div(100);
|
|
184
184
|
amount = adjustDecimals(inputValue);
|
|
185
185
|
amountWei = ethers.utils.parseUnits(amount.toString(), "ether");
|
|
186
|
-
console.log('
|
|
186
|
+
console.log('-------!!!');
|
|
187
187
|
console.log(amount);
|
|
188
188
|
console.log(amountWei.toString());
|
|
189
|
-
console.log(
|
|
190
|
-
console.log(
|
|
189
|
+
console.log('%%%%%');
|
|
190
|
+
console.log(maxPrice.toString());
|
|
191
|
+
console.log(maxPrice2.toString());
|
|
192
|
+
console.log('%%%%%');
|
|
191
193
|
console.log(maxPrice2.valueOf());
|
|
192
194
|
console.log(bondData[0].trueBillPrice);
|
|
193
195
|
console.log('-------');
|
|
194
|
-
return [4 /*yield*/, bondContract.deposit(amountWei.toString(),
|
|
196
|
+
return [4 /*yield*/, bondContract.deposit(amountWei.toString(), maxPrice.toString(), account)];
|
|
195
197
|
case 2:
|
|
196
198
|
tx = _a.sent();
|
|
197
199
|
return [4 /*yield*/, tx.wait()];
|