@ape.swap/bonds-sdk 1.0.592 → 1.0.594

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.
@@ -75,17 +75,17 @@ var BondModal = function (_a) {
75
75
  billAddress = bondData[0].billAddress;
76
76
  decimals = 18;
77
77
  try {
78
- console.log('HANDLEBUY CLICKED!');
78
+ console.log('HANDLEBUY CLICKED!_!');
79
79
  maxPrice = new BigNumber(bondData[0].trueBillPrice).times(102).div(100);
80
80
  amount = convertToTokenValue(inputValue, decimals);
81
81
  console.log('BillAddress:', billAddress);
82
82
  console.log('Amount:', amount);
83
- console.log('MaxPrice:', maxPrice);
83
+ console.log('MaxPrice:', maxPrice.toString(), decimals);
84
84
  writeContract({
85
85
  address: billAddress,
86
86
  abi: BOND_ABI,
87
87
  functionName: 'deposit',
88
- args: [amount, amount, account],
88
+ args: [amount, maxPrice.toString(), account],
89
89
  });
90
90
  console.log('BuyTransaction:', hash);
91
91
  if (hash) {
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.592",
6
+ "version": "1.0.594",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",