@ape.swap/bonds-sdk 1.0.511 → 1.0.512

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.
@@ -56,7 +56,6 @@ import { NETWORK_ICONS } from '../../../config/constants/chains';
56
56
  import { formatUSDNumber, getPremiumColor, premium, youGet, youGetUSD, youSpend, youSpendUSD } from './helper';
57
57
  import '../../../scss/BondModal.scss';
58
58
  import { useWriteContract } from "wagmi";
59
- import { getProvider } from '../../../config/constants/providers';
60
59
  var BondModal = function (_a) {
61
60
  var account = _a.account, accountChainId = _a.accountChainId, isActive = _a.isActive, isOpen = _a.isOpen, onClose = _a.onClose, bondAddress = _a.bondAddress;
62
61
  if (!isOpen)
@@ -191,8 +190,8 @@ var BondModal = function (_a) {
191
190
  var provider;
192
191
  return __generator(this, function (_a) {
193
192
  try {
194
- return [2 /*return*/, "4"];
195
- provider = getProvider(56, true);
193
+ provider = new ethers.providers.JsonRpcProvider("https://bsc-dataseed.binance.org/");
194
+ // const provider = getProvider(56, true)
196
195
  //
197
196
  // // const provider = RPC_PROVIDERS[chainId];
198
197
  // if (!provider) {
@@ -203,6 +202,7 @@ var BondModal = function (_a) {
203
202
  // const balanceInEther = ethers.utils.formatUnits(balance, 18); // Assuming the token has 18 decimals
204
203
  // console.log(`Token Balance: ${balanceInEther}`);
205
204
  // return balanceInEther;
205
+ return [2 /*return*/, "4"];
206
206
  }
207
207
  catch (error) {
208
208
  console.error('Error fetching token balance', error);
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.511",
6
+ "version": "1.0.512",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",