@pump-fun/pump-sdk 1.22.0 → 1.22.1-devnet.1

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/esm/index.js CHANGED
@@ -8632,11 +8632,11 @@ var PumpSdk = class {
8632
8632
  };
8633
8633
  var PUMP_SDK = new PumpSdk();
8634
8634
  function getFeeRecipient(global, mayhemMode) {
8635
- if (!mayhemMode) {
8636
- const feeRecipients = [global.feeRecipient, ...global.feeRecipients, ...global.feeRecipients];
8635
+ if (mayhemMode) {
8636
+ const feeRecipients = [global.reservedFeeRecipient, ...global.reservedFeeRecipients];
8637
8637
  return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
8638
8638
  } else {
8639
- const feeRecipients = [global.reservedFeeRecipient, ...global.reservedFeeRecipients];
8639
+ const feeRecipients = [global.feeRecipient, ...global.feeRecipients];
8640
8640
  return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
8641
8641
  }
8642
8642
  }
package/dist/index.js CHANGED
@@ -8652,11 +8652,11 @@ var PumpSdk = class {
8652
8652
  };
8653
8653
  var PUMP_SDK = new PumpSdk();
8654
8654
  function getFeeRecipient(global, mayhemMode) {
8655
- if (!mayhemMode) {
8656
- const feeRecipients = [global.feeRecipient, ...global.feeRecipients, ...global.feeRecipients];
8655
+ if (mayhemMode) {
8656
+ const feeRecipients = [global.reservedFeeRecipient, ...global.reservedFeeRecipients];
8657
8657
  return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
8658
8658
  } else {
8659
- const feeRecipients = [global.reservedFeeRecipient, ...global.reservedFeeRecipients];
8659
+ const feeRecipients = [global.feeRecipient, ...global.feeRecipients];
8660
8660
  return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
8661
8661
  }
8662
8662
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pump-fun/pump-sdk",
3
- "version": "1.22.0",
3
+ "version": "1.22.1-devnet.1",
4
4
  "description": "Pump Bonding Curve SDK",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/pump-fun/pump-sdk#readme",
package/src/sdk.ts CHANGED
@@ -670,12 +670,11 @@ export class PumpSdk {
670
670
  export const PUMP_SDK = new PumpSdk();
671
671
 
672
672
  export function getFeeRecipient(global: Global, mayhemMode: boolean): PublicKey {
673
- if (!mayhemMode) {
674
- const feeRecipients = [global.feeRecipient, ...global.feeRecipients, ...global.feeRecipients];
675
- return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
676
- }
677
- else {
673
+ if (mayhemMode) {
678
674
  const feeRecipients = [global.reservedFeeRecipient, ...global.reservedFeeRecipients];
679
675
  return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
676
+ } else {
677
+ const feeRecipients = [global.feeRecipient, ...global.feeRecipients,];
678
+ return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
680
679
  }
681
680
  }