@pump-fun/pump-sdk 1.21.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 +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/sdk.ts +4 -5
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 (
|
|
8636
|
-
const feeRecipients = [global.
|
|
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.
|
|
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 (
|
|
8656
|
-
const feeRecipients = [global.
|
|
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.
|
|
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
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 (
|
|
674
|
-
const feeRecipients = [global.feeRecipient, ...global.feeRecipients, ...global.reservedFeeRecipients];
|
|
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
|
}
|