import { BaseFeeStruct, BaseFeeStructArgs } from "./baseFeeStruct.js"; import { DynamicFeeStruct, DynamicFeeStructArgs } from "./dynamicFeeStruct.js"; import "./index.js"; import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit"; //#region src/generated/types/poolFeesStruct.d.ts /** * Information regarding fee charges * trading_fee = amount * trade_fee_numerator / denominator * protocol_fee = trading_fee * protocol_fee_percentage / 100 * referral_fee = protocol_fee * referral_percentage / 100 * partner_fee = (protocol_fee - referral_fee) * partner_fee_percentage / denominator */ type PoolFeesStruct = { /** * Trade fees are extra token amounts that are held inside the token * accounts during a trade, making the value of liquidity tokens rise. * Trade fee numerator */ baseFee: BaseFeeStruct; /** * Protocol trading fees are extra token amounts that are held inside the token * accounts during a trade, with the equivalent in pool tokens minted to * the protocol of the program. * Protocol trade fee numerator */ protocolFeePercent: number; /** partner fee */ partnerFeePercent: number; /** referral fee */ referralFeePercent: number; /** padding */ padding0: Array; /** dynamic fee */ dynamicFee: DynamicFeeStruct; /** padding */ padding1: Array; }; type PoolFeesStructArgs = { /** * Trade fees are extra token amounts that are held inside the token * accounts during a trade, making the value of liquidity tokens rise. * Trade fee numerator */ baseFee: BaseFeeStructArgs; /** * Protocol trading fees are extra token amounts that are held inside the token * accounts during a trade, with the equivalent in pool tokens minted to * the protocol of the program. * Protocol trade fee numerator */ protocolFeePercent: number; /** partner fee */ partnerFeePercent: number; /** referral fee */ referralFeePercent: number; /** padding */ padding0: Array; /** dynamic fee */ dynamicFee: DynamicFeeStructArgs; /** padding */ padding1: Array; }; declare function getPoolFeesStructEncoder(): FixedSizeEncoder; declare function getPoolFeesStructDecoder(): FixedSizeDecoder; declare function getPoolFeesStructCodec(): FixedSizeCodec; //#endregion export { PoolFeesStruct, PoolFeesStructArgs, getPoolFeesStructCodec, getPoolFeesStructDecoder, getPoolFeesStructEncoder }; //# sourceMappingURL=poolFeesStruct.d.ts.map