@ape.swap/bonds-sdk 1.0.287 → 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,7 +183,7 @@ 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
189
|
console.log('%%%%%');
|
|
@@ -193,7 +193,7 @@ var BondModal = function (_a) {
|
|
|
193
193
|
console.log(maxPrice2.valueOf());
|
|
194
194
|
console.log(bondData[0].trueBillPrice);
|
|
195
195
|
console.log('-------');
|
|
196
|
-
return [4 /*yield*/, bondContract.deposit(amountWei.toString(),
|
|
196
|
+
return [4 /*yield*/, bondContract.deposit(amountWei.toString(), maxPrice.toString(), account)];
|
|
197
197
|
case 2:
|
|
198
198
|
tx = _a.sent();
|
|
199
199
|
return [4 /*yield*/, tx.wait()];
|