@pump-fun/pump-swap-sdk
Version:
Official SDK for interacting with Pump Swap AMM protocol on Solana
24 lines (21 loc) • 922 B
text/typescript
import BN from 'bn.js';
import { G as GlobalConfig, F as FeeConfig, p as Fees, o as FeeTier } from '../sdk-CZdu75Sm.mjs';
import { PublicKey } from '@solana/web3.js';
import '@solana/spl-token';
declare function computeFeesBps({ globalConfig, feeConfig, creator, baseMintSupply, baseMint, baseReserve, quoteReserve, tradeSize, }: {
globalConfig: GlobalConfig;
feeConfig: FeeConfig | null;
creator: PublicKey;
baseMintSupply: BN;
baseMint: PublicKey;
baseReserve: BN;
quoteReserve: BN;
tradeSize: BN;
}): Fees;
declare function calculateFeeTier({ feeTiers, marketCap, }: {
feeTiers: FeeTier[];
marketCap: BN;
}): Fees;
declare function getFeeRecipient(globalConfig: GlobalConfig, isMayhemMode: boolean): PublicKey;
declare function getBuybackFeeRecipient(globalConfig: GlobalConfig): PublicKey;
export { calculateFeeTier, computeFeesBps, getBuybackFeeRecipient, getFeeRecipient };