@pancakeswap/infinity-sdk 1.0.0 → 1.0.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"bsc.d.ts","sourceRoot":"","sources":["../../../src/constants/hooksList/bsc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsC,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG9F,eAAO,MAAM,eAAe,EAAE,QAmB7B,CAAA;AAqBD,eAAO,MAAM,YAAY,EAAE,QAAQ,EAoFlC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAGlE,CAAA"}
1
+ {"version":3,"file":"bsc.d.ts","sourceRoot":"","sources":["../../../src/constants/hooksList/bsc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsC,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG9F,eAAO,MAAM,eAAe,EAAE,QAmB7B,CAAA;AAqBD,eAAO,MAAM,YAAY,EAAE,QAAQ,EAsKlC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAGlE,CAAA"}
package/dist/index.js CHANGED
@@ -6,7 +6,6 @@ var v3Sdk = require('@pancakeswap/v3-sdk');
6
6
  var invariant12 = require('tiny-invariant');
7
7
  var swapSdkCore = require('@pancakeswap/swap-sdk-core');
8
8
  var BigNumber2 = require('bignumber.js');
9
- var cacheByMem = require('@pancakeswap/utils/cacheByMem');
10
9
 
11
10
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
11
 
@@ -467,6 +466,8 @@ var HOOK_CATEGORY = /* @__PURE__ */ ((HOOK_CATEGORY2) => {
467
466
  HOOK_CATEGORY2["OrderType"] = "Order Type";
468
467
  HOOK_CATEGORY2["Oracle"] = "Oracle";
469
468
  HOOK_CATEGORY2["Others"] = "Others";
469
+ HOOK_CATEGORY2["BrevisDiscount"] = "Fee Discount (Brevis)";
470
+ HOOK_CATEGORY2["PrimusDiscount"] = "Fee Discount (Primus)";
470
471
  return HOOK_CATEGORY2;
471
472
  })(HOOK_CATEGORY || {});
472
473
  var HookType = /* @__PURE__ */ ((HookType2) => {
@@ -513,15 +514,15 @@ var CL_DYNAMIC_HOOK = {
513
514
  };
514
515
  var dynamicHooksList = [CL_DYNAMIC_HOOK];
515
516
  var bscHooksList = [
516
- ...dynamicHooksList
517
+ ...dynamicHooksList,
517
518
  // {
518
- // address: '0x9c5554cCEa7F38c3337f017E8357C3eD62BF9885',
519
- // name: 'Fee Discount Hook (Primus)',
519
+ // // bnb/usdt
520
520
  // poolType: POOL_TYPE.CLAMM,
521
- // description:
522
- // 'Prove your CEX 30-day spot trading volume exceeded $1M with zkTLS by Primus and get 50% off the initial fee. Create your proof via the link (https://pancakeswap-hook.primuslabs.xyz/). The proof is valid for 14 days.',
521
+ // address: '0x9c5554cCEa7F38c3337f017E8357C3eD62BF9885',
522
+ // name: 'CEX Whale Discount Hook (Primus)',
523
+ // description: `Prove your CEX 30-day spot trading volume exceeded $1M with zkTLS by Primus and get 50% off the pool fee. Create your proof here: https://hook.primuslabs.xyz/cexwhale . The proof is valid for 14 days.`,
523
524
  // github: 'https://github.com/primus-labs/pancakeswapv4-cex-trading-hooks',
524
- // category: [HOOK_CATEGORY.Oracle, HOOK_CATEGORY.JIT, HOOK_CATEGORY.Others, HOOK_CATEGORY.DynamicFees],
525
+ // category: [HOOK_CATEGORY.PrimusDiscount, HOOK_CATEGORY.DynamicFees],
525
526
  // creator: 'https://github.com/primus-labs/',
526
527
  // audit: '',
527
528
  // isVerified: true,
@@ -530,72 +531,153 @@ var bscHooksList = [
530
531
  // afterInitialize: true,
531
532
  // beforeSwap: true,
532
533
  // },
533
- // hookType: HookType.Universal,
534
- // defaultFee: 3000,
535
- // },
536
- // {
537
- // address: checksumAddress('0x9F0D5091D31a7801d34da352572BAc84e8Ac48Ad'),
538
- // name: 'Fee Discount Hook (CAKE Holding)',
539
- // poolType: POOL_TYPE.CLAMM,
540
- // description: 'Fee discount based on the last 30-day CAKE token holding.',
541
- // github: 'https://github.com/brevis-network/pancake-tokenholding-hook/tree/main',
542
- // category: [HOOK_CATEGORY.Oracle, HOOK_CATEGORY.JIT, HOOK_CATEGORY.Others, HOOK_CATEGORY.DynamicFees],
543
- // creator: 'https://github.com/brevis-network',
544
- // audit: '',
545
- // isVerified: true,
546
- // isUpgradable: true,
547
- // hooksRegistration: {
548
- // beforeSwap: true,
549
- // },
550
534
  // hookType: HookType.PerPool,
551
- // defaultFee: 100000,
552
- // },
553
- // {
554
- // address: checksumAddress('0x4910a4852A06D0F6B206bd737ea3C98866Be796C'),
555
- // name: 'Fee Discount Hook (Trading Volume)',
556
- // poolType: POOL_TYPE.CLAMM,
557
- // description: 'Fee discount based on the last 30-day trading volume.',
558
- // github: 'https://github.com/brevis-network/vip-hook',
559
- // category: [HOOK_CATEGORY.Oracle, HOOK_CATEGORY.JIT, HOOK_CATEGORY.Others, HOOK_CATEGORY.DynamicFees],
560
- // creator: 'https://github.com/brevis-network',
561
- // audit: '',
562
- // isVerified: true,
563
- // isUpgradable: true,
564
- // hooksRegistration: {
565
- // beforeSwap: true,
566
- // },
567
- // hookType: HookType.PerPool,
568
- // defaultFee: 100000,
569
- // },
570
- // {
571
- // address: '0x0A6440c9cfb5f28BE699a9e4e83BF8A89de72498',
572
- // name: 'veCake Exclusive (CLAMM)',
573
- // poolType: POOL_TYPE.CLAMM,
574
- // description:
575
- // 'This multi-feature contract allows for liquidity locks, TWAMM (Time weighted average market maker), and impermanent loss hedging on pools. Check the Github readme for more details.',
576
- // github: 'https://testnet.bscscan.com/address/0x0A6440c9cfb5f28BE699a9e4e83BF8A89de72498',
577
- // category: [HOOK_CATEGORY.Oracle, HOOK_CATEGORY.JIT, HOOK_CATEGORY.Others],
578
- // creator: 'https://github.com/pancakeswap',
579
- // audit: 'https://github.com/pancakeswap',
580
- // isVerified: true,
581
- // isUpgradable: false,
582
- // hooksRegistration: {
583
- // beforeSwap: true,
584
- // },
585
- // },
586
- // {
587
- // address: '0x0284ceB8F3Ad42131A6feB69E3F324990837Ef2c',
588
- // name: 'veCake Exclusive (Bin)',
589
- // poolType: POOL_TYPE.Bin,
590
- // description: 'Exclusive to holders of veCake (0x3c3C66383690d3cf08205cD3Ba862bc4F6348829)',
591
- // github: 'https://testnet.bscscan.com/address/0x0284ceB8F3Ad42131A6feB69E3F324990837Ef2c',
592
- // category: [HOOK_CATEGORY.Others],
593
- // isVerified: true,
594
- // isUpgradable: false,
595
- // hooksRegistration: {
596
- // beforeSwap: true,
597
- // },
535
+ // defaultFee: 500,
598
536
  // },
537
+ {
538
+ // cake-usdt
539
+ poolType: "CL" /* CLAMM */,
540
+ address: "0x1A3DFBCAc585e22F993Cc8e09BcC0dB388Cc1Ca3",
541
+ name: "CAKE Holder Discount Hook (Brevis)",
542
+ description: `Powered by Brevis, this hook enables swap fee discounts for CAKE holders who have made at least 1 swap in this pool in the last 30 days. The fee discount tier is based on a user\u2019s last 30-day Time-Weighted Average (TWA) CAKE balance:
543
+ (VIP 1) 5% discount if 100 CAKE < TWA <= 1,000 CAKE,
544
+ (VIP 2) 15% discount if 1,000 CAKE < TWA <= 10,000 CAKE,
545
+ (VIP 3) 25% discount if 10,000 CAKE < TWA <= 20,000 CAKE,
546
+ (VIP 4) 35% discount if 20,000 CAKE < TWA <= 30,000 CAKE,
547
+ (VIP 5) 45% discount if TWA > 30,000 CAKE.
548
+ `,
549
+ github: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main",
550
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
551
+ creator: "https://github.com/brevis-network",
552
+ audit: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main/audits",
553
+ isVerified: true,
554
+ isUpgradable: true,
555
+ hooksRegistration: {
556
+ beforeSwap: true
557
+ },
558
+ hookType: "PerPool" /* PerPool */,
559
+ defaultFee: 2500
560
+ },
561
+ {
562
+ // USDT-USDC
563
+ poolType: "CL" /* CLAMM */,
564
+ address: "0x1e9c64Cad39DDD36fB808E004067Cffc710EB71D",
565
+ name: "VIP discount Hook (Brevis)",
566
+ description: `Powered by Brevis, this hook enables swap fee discounts for VIP traders based on their cumulative trading volume in this pool in the last 30 days:
567
+ (VIP 1) 5% discount if 50,000 USDT < 30-Day Volume <= 1,000,000 USDT,
568
+ (VIP 2) 15% discount if 1,000,000 USDT < 30-Day Volume <= 5,000,000 USDT,
569
+ (VIP 3) 25% discount if 5,000,000 USDT < 30-Day Volume <= 15,000,000 USDT,
570
+ (VIP 4) 35% discount if 15,000,000 USDT < 30-Day Volume <= 20,000,000 USDT,
571
+ (VIP 5) 45% discount if 30-Day Volume > 20,000,000 USDT.
572
+ `,
573
+ github: "https://github.com/brevis-network/vip-hook",
574
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
575
+ creator: "https://github.com/brevis-network",
576
+ audit: "https://github.com/brevis-network/vip-hook/tree/main/audits",
577
+ isVerified: true,
578
+ isUpgradable: true,
579
+ hooksRegistration: {
580
+ beforeSwap: true
581
+ },
582
+ hookType: "PerPool" /* PerPool */,
583
+ defaultFee: 100
584
+ },
585
+ {
586
+ // ETH-USDT
587
+ poolType: "CL" /* CLAMM */,
588
+ address: "0xF27b9134B23957D842b08fFa78b07722fB9845BD",
589
+ name: "VIP discount Hook (Brevis)",
590
+ description: `Powered by Brevis, this hook enables swap fee discounts for VIP traders based on their cumulative trading volume in this pool in the last 30 days:
591
+ (VIP 1) 5% discount if 28 ETH < 30-Day Volume <= 555 ETH,
592
+ (VIP 2) 15% discount if 555 ETH < 30-Day Volume <= 2,778 ETH,
593
+ (VIP 3) 25% discount if 2,778 ETH < 30-Day Volume <= 8,333 ETH,
594
+ (VIP 4) 35% discount if 8,333 ETH < 30-Day Volume <= 11,111 ETH,
595
+ (VIP 5) 45% discount if 30-Day Volume > 11,111 ETH.
596
+ `,
597
+ github: "https://github.com/brevis-network/vip-hook",
598
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
599
+ creator: "https://github.com/brevis-network",
600
+ audit: "https://github.com/brevis-network/vip-hook/tree/main/audits",
601
+ isVerified: true,
602
+ isUpgradable: true,
603
+ hooksRegistration: {
604
+ beforeSwap: true
605
+ },
606
+ hookType: "PerPool" /* PerPool */,
607
+ defaultFee: 500
608
+ },
609
+ {
610
+ // BNB-USDT
611
+ poolType: "Bin" /* Bin */,
612
+ address: "0x60FbCAfaB24bc117b6facECd00D3e8f56ca4D5e9",
613
+ name: "CAKE Holder Discount Hook (Brevis)",
614
+ description: `Powered by Brevis, this hook enables swap fee discounts for CAKE holders who have made at least 1 swap in this pool in the last 30 days. The fee discount tier is based on a user\u2019s last 30-day Time-Weighted Average (TWA) CAKE balance:
615
+ (VIP 1) 5% discount if 100 CAKE < TWA <= 1,000 CAKE,
616
+ (VIP 2) 15% discount if 1,000 CAKE < TWA <= 10,000 CAKE,
617
+ (VIP 3) 25% discount if 10,000 CAKE < TWA <= 20,000 CAKE,
618
+ (VIP 4) 35% discount if 20,000 CAKE < TWA <= 30,000 CAKE,
619
+ (VIP 5) 45% discount if TWA > 30,000 CAKE.
620
+ `,
621
+ github: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main",
622
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
623
+ creator: "https://github.com/brevis-network",
624
+ audit: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main/audits",
625
+ isVerified: true,
626
+ isUpgradable: true,
627
+ hooksRegistration: {
628
+ beforeSwap: true
629
+ },
630
+ hookType: "PerPool" /* PerPool */,
631
+ defaultFee: 500
632
+ },
633
+ {
634
+ // BTCB-BNB
635
+ poolType: "CL" /* CLAMM */,
636
+ address: "0x0fcF6D110Cf96BE56D251716E69E37619932edF2",
637
+ name: "CAKE Holder Discount Hook (Brevis)",
638
+ description: `Powered by Brevis, this hook enables swap fee discounts for CAKE holders who have made at least 1 swap in this pool in the last 30 days. The fee discount tier is based on a user\u2019s last 30-day Time-Weighted Average (TWA) CAKE balance:
639
+ (VIP 1) 5% discount if 100 CAKE < TWA <= 1,000 CAKE,
640
+ (VIP 2) 15% discount if 1,000 CAKE < TWA <= 10,000 CAKE,
641
+ (VIP 3) 25% discount if 10,000 CAKE < TWA <= 20,000 CAKE,
642
+ (VIP 4) 35% discount if 20,000 CAKE < TWA <= 30,000 CAKE,
643
+ (VIP 5) 45% discount if TWA > 30,000 CAKE.
644
+ `,
645
+ github: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main",
646
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
647
+ creator: "https://github.com/brevis-network",
648
+ audit: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main/audits",
649
+ isVerified: true,
650
+ isUpgradable: true,
651
+ hooksRegistration: {
652
+ beforeSwap: true
653
+ },
654
+ hookType: "PerPool" /* PerPool */,
655
+ defaultFee: 500
656
+ },
657
+ {
658
+ // CAKE-BNB
659
+ poolType: "CL" /* CLAMM */,
660
+ address: "0xDfdfB2c5a717AB00B370E883021f20C2fbaEd277",
661
+ name: "CAKE Holder Discount Hook (Brevis)",
662
+ description: `Powered by Brevis, this hook enables swap fee discounts for CAKE holders who have made at least 1 swap in this pool in the last 30 days. The fee discount tier is based on a user\u2019s last 30-day Time-Weighted Average (TWA) CAKE balance:
663
+ (VIP 1) 5% discount if 100 CAKE < TWA <= 1,000 CAKE,
664
+ (VIP 2) 15% discount if 1,000 CAKE < TWA <= 10,000 CAKE,
665
+ (VIP 3) 25% discount if 10,000 CAKE < TWA <= 20,000 CAKE,
666
+ (VIP 4) 35% discount if 20,000 CAKE < TWA <= 30,000 CAKE,
667
+ (VIP 5) 45% discount if TWA > 30,000 CAKE.
668
+ `,
669
+ github: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main",
670
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
671
+ creator: "https://github.com/brevis-network",
672
+ audit: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main/audits",
673
+ isVerified: true,
674
+ isUpgradable: true,
675
+ hooksRegistration: {
676
+ beforeSwap: true
677
+ },
678
+ hookType: "PerPool" /* PerPool */,
679
+ defaultFee: 2500
680
+ }
599
681
  ];
600
682
  var bscDynamicHooks = {
601
683
  CL: CL_DYNAMIC_HOOK,
@@ -7145,7 +7227,21 @@ var getCLPool = ({
7145
7227
  })
7146
7228
  };
7147
7229
  };
7148
- var isDynamicFeeHook = cacheByMem.cacheByMem((chainId, hook) => {
7230
+ function cacheByMem(fn) {
7231
+ const cache = /* @__PURE__ */ new Map();
7232
+ return (...args) => {
7233
+ const key = viem.stringify(args);
7234
+ if (cache.has(key)) {
7235
+ return cache.get(key);
7236
+ }
7237
+ const result = fn(...args);
7238
+ cache.set(key, result);
7239
+ return result;
7240
+ };
7241
+ }
7242
+
7243
+ // src/functions/hooks/isDynamicFeeHook.ts
7244
+ var isDynamicFeeHook = cacheByMem((chainId, hook) => {
7149
7245
  if (!hook)
7150
7246
  return false;
7151
7247
  const relatedHook = findHook(hook, chainId);
@@ -7154,7 +7250,7 @@ var isDynamicFeeHook = cacheByMem.cacheByMem((chainId, hook) => {
7154
7250
  }
7155
7251
  return false;
7156
7252
  });
7157
- var isDynamicFeeHookForSupportedChains = cacheByMem.cacheByMem((hook) => {
7253
+ var isDynamicFeeHookForSupportedChains = cacheByMem((hook) => {
7158
7254
  if (!hook)
7159
7255
  return false;
7160
7256
  for (const chainId of INFINITY_SUPPORTED_CHAINS) {
package/dist/index.mjs CHANGED
@@ -5,7 +5,6 @@ export { getInputAmount, getOutputAmount } from '@pancakeswap/v3-sdk';
5
5
  import invariant12 from 'tiny-invariant';
6
6
  import { Percent, sortCurrencies, Price, CurrencyAmount } from '@pancakeswap/swap-sdk-core';
7
7
  import BigNumber2, { BigNumber } from 'bignumber.js';
8
- import { cacheByMem } from '@pancakeswap/utils/cacheByMem';
9
8
 
10
9
  // src/constants/index.ts
11
10
 
@@ -461,6 +460,8 @@ var HOOK_CATEGORY = /* @__PURE__ */ ((HOOK_CATEGORY2) => {
461
460
  HOOK_CATEGORY2["OrderType"] = "Order Type";
462
461
  HOOK_CATEGORY2["Oracle"] = "Oracle";
463
462
  HOOK_CATEGORY2["Others"] = "Others";
463
+ HOOK_CATEGORY2["BrevisDiscount"] = "Fee Discount (Brevis)";
464
+ HOOK_CATEGORY2["PrimusDiscount"] = "Fee Discount (Primus)";
464
465
  return HOOK_CATEGORY2;
465
466
  })(HOOK_CATEGORY || {});
466
467
  var HookType = /* @__PURE__ */ ((HookType2) => {
@@ -507,15 +508,15 @@ var CL_DYNAMIC_HOOK = {
507
508
  };
508
509
  var dynamicHooksList = [CL_DYNAMIC_HOOK];
509
510
  var bscHooksList = [
510
- ...dynamicHooksList
511
+ ...dynamicHooksList,
511
512
  // {
512
- // address: '0x9c5554cCEa7F38c3337f017E8357C3eD62BF9885',
513
- // name: 'Fee Discount Hook (Primus)',
513
+ // // bnb/usdt
514
514
  // poolType: POOL_TYPE.CLAMM,
515
- // description:
516
- // 'Prove your CEX 30-day spot trading volume exceeded $1M with zkTLS by Primus and get 50% off the initial fee. Create your proof via the link (https://pancakeswap-hook.primuslabs.xyz/). The proof is valid for 14 days.',
515
+ // address: '0x9c5554cCEa7F38c3337f017E8357C3eD62BF9885',
516
+ // name: 'CEX Whale Discount Hook (Primus)',
517
+ // description: `Prove your CEX 30-day spot trading volume exceeded $1M with zkTLS by Primus and get 50% off the pool fee. Create your proof here: https://hook.primuslabs.xyz/cexwhale . The proof is valid for 14 days.`,
517
518
  // github: 'https://github.com/primus-labs/pancakeswapv4-cex-trading-hooks',
518
- // category: [HOOK_CATEGORY.Oracle, HOOK_CATEGORY.JIT, HOOK_CATEGORY.Others, HOOK_CATEGORY.DynamicFees],
519
+ // category: [HOOK_CATEGORY.PrimusDiscount, HOOK_CATEGORY.DynamicFees],
519
520
  // creator: 'https://github.com/primus-labs/',
520
521
  // audit: '',
521
522
  // isVerified: true,
@@ -524,72 +525,153 @@ var bscHooksList = [
524
525
  // afterInitialize: true,
525
526
  // beforeSwap: true,
526
527
  // },
527
- // hookType: HookType.Universal,
528
- // defaultFee: 3000,
529
- // },
530
- // {
531
- // address: checksumAddress('0x9F0D5091D31a7801d34da352572BAc84e8Ac48Ad'),
532
- // name: 'Fee Discount Hook (CAKE Holding)',
533
- // poolType: POOL_TYPE.CLAMM,
534
- // description: 'Fee discount based on the last 30-day CAKE token holding.',
535
- // github: 'https://github.com/brevis-network/pancake-tokenholding-hook/tree/main',
536
- // category: [HOOK_CATEGORY.Oracle, HOOK_CATEGORY.JIT, HOOK_CATEGORY.Others, HOOK_CATEGORY.DynamicFees],
537
- // creator: 'https://github.com/brevis-network',
538
- // audit: '',
539
- // isVerified: true,
540
- // isUpgradable: true,
541
- // hooksRegistration: {
542
- // beforeSwap: true,
543
- // },
544
528
  // hookType: HookType.PerPool,
545
- // defaultFee: 100000,
546
- // },
547
- // {
548
- // address: checksumAddress('0x4910a4852A06D0F6B206bd737ea3C98866Be796C'),
549
- // name: 'Fee Discount Hook (Trading Volume)',
550
- // poolType: POOL_TYPE.CLAMM,
551
- // description: 'Fee discount based on the last 30-day trading volume.',
552
- // github: 'https://github.com/brevis-network/vip-hook',
553
- // category: [HOOK_CATEGORY.Oracle, HOOK_CATEGORY.JIT, HOOK_CATEGORY.Others, HOOK_CATEGORY.DynamicFees],
554
- // creator: 'https://github.com/brevis-network',
555
- // audit: '',
556
- // isVerified: true,
557
- // isUpgradable: true,
558
- // hooksRegistration: {
559
- // beforeSwap: true,
560
- // },
561
- // hookType: HookType.PerPool,
562
- // defaultFee: 100000,
563
- // },
564
- // {
565
- // address: '0x0A6440c9cfb5f28BE699a9e4e83BF8A89de72498',
566
- // name: 'veCake Exclusive (CLAMM)',
567
- // poolType: POOL_TYPE.CLAMM,
568
- // description:
569
- // 'This multi-feature contract allows for liquidity locks, TWAMM (Time weighted average market maker), and impermanent loss hedging on pools. Check the Github readme for more details.',
570
- // github: 'https://testnet.bscscan.com/address/0x0A6440c9cfb5f28BE699a9e4e83BF8A89de72498',
571
- // category: [HOOK_CATEGORY.Oracle, HOOK_CATEGORY.JIT, HOOK_CATEGORY.Others],
572
- // creator: 'https://github.com/pancakeswap',
573
- // audit: 'https://github.com/pancakeswap',
574
- // isVerified: true,
575
- // isUpgradable: false,
576
- // hooksRegistration: {
577
- // beforeSwap: true,
578
- // },
579
- // },
580
- // {
581
- // address: '0x0284ceB8F3Ad42131A6feB69E3F324990837Ef2c',
582
- // name: 'veCake Exclusive (Bin)',
583
- // poolType: POOL_TYPE.Bin,
584
- // description: 'Exclusive to holders of veCake (0x3c3C66383690d3cf08205cD3Ba862bc4F6348829)',
585
- // github: 'https://testnet.bscscan.com/address/0x0284ceB8F3Ad42131A6feB69E3F324990837Ef2c',
586
- // category: [HOOK_CATEGORY.Others],
587
- // isVerified: true,
588
- // isUpgradable: false,
589
- // hooksRegistration: {
590
- // beforeSwap: true,
591
- // },
529
+ // defaultFee: 500,
592
530
  // },
531
+ {
532
+ // cake-usdt
533
+ poolType: "CL" /* CLAMM */,
534
+ address: "0x1A3DFBCAc585e22F993Cc8e09BcC0dB388Cc1Ca3",
535
+ name: "CAKE Holder Discount Hook (Brevis)",
536
+ description: `Powered by Brevis, this hook enables swap fee discounts for CAKE holders who have made at least 1 swap in this pool in the last 30 days. The fee discount tier is based on a user\u2019s last 30-day Time-Weighted Average (TWA) CAKE balance:
537
+ (VIP 1) 5% discount if 100 CAKE < TWA <= 1,000 CAKE,
538
+ (VIP 2) 15% discount if 1,000 CAKE < TWA <= 10,000 CAKE,
539
+ (VIP 3) 25% discount if 10,000 CAKE < TWA <= 20,000 CAKE,
540
+ (VIP 4) 35% discount if 20,000 CAKE < TWA <= 30,000 CAKE,
541
+ (VIP 5) 45% discount if TWA > 30,000 CAKE.
542
+ `,
543
+ github: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main",
544
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
545
+ creator: "https://github.com/brevis-network",
546
+ audit: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main/audits",
547
+ isVerified: true,
548
+ isUpgradable: true,
549
+ hooksRegistration: {
550
+ beforeSwap: true
551
+ },
552
+ hookType: "PerPool" /* PerPool */,
553
+ defaultFee: 2500
554
+ },
555
+ {
556
+ // USDT-USDC
557
+ poolType: "CL" /* CLAMM */,
558
+ address: "0x1e9c64Cad39DDD36fB808E004067Cffc710EB71D",
559
+ name: "VIP discount Hook (Brevis)",
560
+ description: `Powered by Brevis, this hook enables swap fee discounts for VIP traders based on their cumulative trading volume in this pool in the last 30 days:
561
+ (VIP 1) 5% discount if 50,000 USDT < 30-Day Volume <= 1,000,000 USDT,
562
+ (VIP 2) 15% discount if 1,000,000 USDT < 30-Day Volume <= 5,000,000 USDT,
563
+ (VIP 3) 25% discount if 5,000,000 USDT < 30-Day Volume <= 15,000,000 USDT,
564
+ (VIP 4) 35% discount if 15,000,000 USDT < 30-Day Volume <= 20,000,000 USDT,
565
+ (VIP 5) 45% discount if 30-Day Volume > 20,000,000 USDT.
566
+ `,
567
+ github: "https://github.com/brevis-network/vip-hook",
568
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
569
+ creator: "https://github.com/brevis-network",
570
+ audit: "https://github.com/brevis-network/vip-hook/tree/main/audits",
571
+ isVerified: true,
572
+ isUpgradable: true,
573
+ hooksRegistration: {
574
+ beforeSwap: true
575
+ },
576
+ hookType: "PerPool" /* PerPool */,
577
+ defaultFee: 100
578
+ },
579
+ {
580
+ // ETH-USDT
581
+ poolType: "CL" /* CLAMM */,
582
+ address: "0xF27b9134B23957D842b08fFa78b07722fB9845BD",
583
+ name: "VIP discount Hook (Brevis)",
584
+ description: `Powered by Brevis, this hook enables swap fee discounts for VIP traders based on their cumulative trading volume in this pool in the last 30 days:
585
+ (VIP 1) 5% discount if 28 ETH < 30-Day Volume <= 555 ETH,
586
+ (VIP 2) 15% discount if 555 ETH < 30-Day Volume <= 2,778 ETH,
587
+ (VIP 3) 25% discount if 2,778 ETH < 30-Day Volume <= 8,333 ETH,
588
+ (VIP 4) 35% discount if 8,333 ETH < 30-Day Volume <= 11,111 ETH,
589
+ (VIP 5) 45% discount if 30-Day Volume > 11,111 ETH.
590
+ `,
591
+ github: "https://github.com/brevis-network/vip-hook",
592
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
593
+ creator: "https://github.com/brevis-network",
594
+ audit: "https://github.com/brevis-network/vip-hook/tree/main/audits",
595
+ isVerified: true,
596
+ isUpgradable: true,
597
+ hooksRegistration: {
598
+ beforeSwap: true
599
+ },
600
+ hookType: "PerPool" /* PerPool */,
601
+ defaultFee: 500
602
+ },
603
+ {
604
+ // BNB-USDT
605
+ poolType: "Bin" /* Bin */,
606
+ address: "0x60FbCAfaB24bc117b6facECd00D3e8f56ca4D5e9",
607
+ name: "CAKE Holder Discount Hook (Brevis)",
608
+ description: `Powered by Brevis, this hook enables swap fee discounts for CAKE holders who have made at least 1 swap in this pool in the last 30 days. The fee discount tier is based on a user\u2019s last 30-day Time-Weighted Average (TWA) CAKE balance:
609
+ (VIP 1) 5% discount if 100 CAKE < TWA <= 1,000 CAKE,
610
+ (VIP 2) 15% discount if 1,000 CAKE < TWA <= 10,000 CAKE,
611
+ (VIP 3) 25% discount if 10,000 CAKE < TWA <= 20,000 CAKE,
612
+ (VIP 4) 35% discount if 20,000 CAKE < TWA <= 30,000 CAKE,
613
+ (VIP 5) 45% discount if TWA > 30,000 CAKE.
614
+ `,
615
+ github: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main",
616
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
617
+ creator: "https://github.com/brevis-network",
618
+ audit: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main/audits",
619
+ isVerified: true,
620
+ isUpgradable: true,
621
+ hooksRegistration: {
622
+ beforeSwap: true
623
+ },
624
+ hookType: "PerPool" /* PerPool */,
625
+ defaultFee: 500
626
+ },
627
+ {
628
+ // BTCB-BNB
629
+ poolType: "CL" /* CLAMM */,
630
+ address: "0x0fcF6D110Cf96BE56D251716E69E37619932edF2",
631
+ name: "CAKE Holder Discount Hook (Brevis)",
632
+ description: `Powered by Brevis, this hook enables swap fee discounts for CAKE holders who have made at least 1 swap in this pool in the last 30 days. The fee discount tier is based on a user\u2019s last 30-day Time-Weighted Average (TWA) CAKE balance:
633
+ (VIP 1) 5% discount if 100 CAKE < TWA <= 1,000 CAKE,
634
+ (VIP 2) 15% discount if 1,000 CAKE < TWA <= 10,000 CAKE,
635
+ (VIP 3) 25% discount if 10,000 CAKE < TWA <= 20,000 CAKE,
636
+ (VIP 4) 35% discount if 20,000 CAKE < TWA <= 30,000 CAKE,
637
+ (VIP 5) 45% discount if TWA > 30,000 CAKE.
638
+ `,
639
+ github: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main",
640
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
641
+ creator: "https://github.com/brevis-network",
642
+ audit: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main/audits",
643
+ isVerified: true,
644
+ isUpgradable: true,
645
+ hooksRegistration: {
646
+ beforeSwap: true
647
+ },
648
+ hookType: "PerPool" /* PerPool */,
649
+ defaultFee: 500
650
+ },
651
+ {
652
+ // CAKE-BNB
653
+ poolType: "CL" /* CLAMM */,
654
+ address: "0xDfdfB2c5a717AB00B370E883021f20C2fbaEd277",
655
+ name: "CAKE Holder Discount Hook (Brevis)",
656
+ description: `Powered by Brevis, this hook enables swap fee discounts for CAKE holders who have made at least 1 swap in this pool in the last 30 days. The fee discount tier is based on a user\u2019s last 30-day Time-Weighted Average (TWA) CAKE balance:
657
+ (VIP 1) 5% discount if 100 CAKE < TWA <= 1,000 CAKE,
658
+ (VIP 2) 15% discount if 1,000 CAKE < TWA <= 10,000 CAKE,
659
+ (VIP 3) 25% discount if 10,000 CAKE < TWA <= 20,000 CAKE,
660
+ (VIP 4) 35% discount if 20,000 CAKE < TWA <= 30,000 CAKE,
661
+ (VIP 5) 45% discount if TWA > 30,000 CAKE.
662
+ `,
663
+ github: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main",
664
+ category: ["Fee Discount (Brevis)" /* BrevisDiscount */, "Dynamic Fees" /* DynamicFees */],
665
+ creator: "https://github.com/brevis-network",
666
+ audit: "https://github.com/brevis-network/pancake-tokenholding-hook/tree/main/audits",
667
+ isVerified: true,
668
+ isUpgradable: true,
669
+ hooksRegistration: {
670
+ beforeSwap: true
671
+ },
672
+ hookType: "PerPool" /* PerPool */,
673
+ defaultFee: 2500
674
+ }
593
675
  ];
594
676
  var bscDynamicHooks = {
595
677
  CL: CL_DYNAMIC_HOOK,
@@ -7139,6 +7221,20 @@ var getCLPool = ({
7139
7221
  })
7140
7222
  };
7141
7223
  };
7224
+ function cacheByMem(fn) {
7225
+ const cache = /* @__PURE__ */ new Map();
7226
+ return (...args) => {
7227
+ const key = stringify(args);
7228
+ if (cache.has(key)) {
7229
+ return cache.get(key);
7230
+ }
7231
+ const result = fn(...args);
7232
+ cache.set(key, result);
7233
+ return result;
7234
+ };
7235
+ }
7236
+
7237
+ // src/functions/hooks/isDynamicFeeHook.ts
7142
7238
  var isDynamicFeeHook = cacheByMem((chainId, hook) => {
7143
7239
  if (!hook)
7144
7240
  return false;
package/dist/types.d.ts CHANGED
@@ -158,7 +158,9 @@ export declare enum HOOK_CATEGORY {
158
158
  PricingCurve = "Pricing Curve",
159
159
  OrderType = "Order Type",
160
160
  Oracle = "Oracle",
161
- Others = "Others"
161
+ Others = "Others",
162
+ BrevisDiscount = "Fee Discount (Brevis)",
163
+ PrimusDiscount = "Fee Discount (Primus)"
162
164
  }
163
165
  export interface HookData {
164
166
  address: Address;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AAExC,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,SAAS,EAAE,KAAK,MAAM,EAAE,CAAA;CACzB;AAED,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAEhG,MAAM,MAAM,OAAO,GAAG,KAAK,MAAM,EAAE,CAAA;AAEnC;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,OAA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YAAY,kBAAkB;IAC9B,SAAS,eAAe;IACxB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,cAAc,0BAA0B;IACxC,cAAc,0BAA0B;CACzC;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAEhB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAA;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,oBAAY,QAAQ;IAClB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.0.0",
7
+ "version": "1.0.2",
8
8
  "description": "⚒️ An SDK for building applications on top of Pancakeswap Infinity",
9
9
  "files": [
10
10
  "dist"
@@ -21,15 +21,15 @@
21
21
  "bignumber.js": "^9.0.0",
22
22
  "tiny-invariant": "^1.3.3",
23
23
  "viem": "^2.22.23",
24
- "@pancakeswap/chains": "0.5.1",
24
+ "@pancakeswap/chains": "0.5.2",
25
25
  "@pancakeswap/swap-sdk-core": "1.4.0",
26
- "@pancakeswap/v3-sdk": "3.9.2",
27
- "@pancakeswap/permit2-sdk": "1.1.2",
28
- "@pancakeswap/utils": "6.1.0"
26
+ "@pancakeswap/v3-sdk": "3.9.3",
27
+ "@pancakeswap/permit2-sdk": "1.1.3"
29
28
  },
30
29
  "devDependencies": {
31
30
  "tsup": "^6.7.0",
32
- "@pancakeswap/swap-sdk-evm": "1.1.2"
31
+ "@pancakeswap/swap-sdk-evm": "1.1.3",
32
+ "@pancakeswap/utils": "6.1.3"
33
33
  },
34
34
  "engines": {
35
35
  "node": ">=10"