@ape.swap/bonds-sdk 2.0.5 → 2.0.6

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.
package/dist/main.js CHANGED
@@ -67333,7 +67333,7 @@ function parseUnits$1(value, unitName) {
67333
67333
 
67334
67334
  const PUBLIC_RPC_URLS = {
67335
67335
  [types.ChainId.BSC]: [
67336
- 'https://bsc-dataseed.binanc123e.org/',
67336
+ 'https://bsc-dataseed.binance.org/',
67337
67337
  'https://bsc-dataseed1.defibit.io',
67338
67338
  'https://endpoints.omniatech.io/v1/bsc/mainnet/public',
67339
67339
  ],
@@ -73481,7 +73481,11 @@ var ProgressBarWrapper$1 = React__default.memo(ProgressBarWrapper);
73481
73481
 
73482
73482
  const BondRow = ({ bond }) => {
73483
73483
  var _a, _b, _c, _d, _e, _f, _g;
73484
- const billAddress = 'billAddress' in bond ? bond.billAddress : undefined;
73484
+ const billAddress = 'billAddress' in bond
73485
+ ? bond.billAddress
73486
+ : 'contractAddress' in bond
73487
+ ? bond.contractAddress[bond.chainId]
73488
+ : undefined;
73485
73489
  const discount = 'discount' in bond ? bond.discount : undefined;
73486
73490
  // Modal
73487
73491
  const [openBuyModal] = useModal(jsx$2(ModalHandler, { bondAddress: billAddress, bondChain: bond.chainId }), true, true, `buyBondModal-${billAddress}-${bond.chainId}`);
@@ -73852,6 +73856,9 @@ const Bonds = () => {
73852
73856
  if (filterOption !== 'SOLD OUT') {
73853
73857
  billsToReturn = billsToReturn === null || billsToReturn === void 0 ? void 0 : billsToReturn.filter((bond) => !isBondSoldOut(bond));
73854
73858
  }
73859
+ if (filterOption === 'SOLD OUT') {
73860
+ billsToReturn = billsToReturn === null || billsToReturn === void 0 ? void 0 : billsToReturn.filter((bond) => isBondSoldOut(bond));
73861
+ }
73855
73862
  if (filterOption === 'FAVORITES') {
73856
73863
  billsToReturn = billsToReturn === null || billsToReturn === void 0 ? void 0 : billsToReturn.filter((bill) => { var _a, _b; return favTokens.includes((_b = (_a = bill === null || bill === void 0 ? void 0 : bill.earnToken) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.toLowerCase()); });
73857
73864
  }
package/dist/styles.css CHANGED
@@ -1562,6 +1562,7 @@ span.flex-inline {
1562
1562
  display: flex;
1563
1563
  justify-content: space-between;
1564
1564
  flex-direction: column;
1565
+ gap: 20px;
1565
1566
  }
1566
1567
  @media screen and (min-width: 1000px) {
1567
1568
  .yourbondinfo.button-container {
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": "2.0.5",
6
+ "version": "2.0.6",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",