UNPKG

@shogun-sdk/money-legos

Version:

Shogun Money Legos: clients and types for quotes, memes, prices, balances, fees, validations, etc.

23 lines 890 B
import { FormattedAffiliateFee } from '../types/affiliateFees.js'; import { CallStruct } from '../types/multicall.js'; export declare function calculateAffiliateFeeAndUpdateAmountIn(config: { srcChain: number; amount: string; srcToken: string; affiliateFee: string; affiliateWallet: string; }): { formattedAffiliateFeeData: FormattedAffiliateFee; updatedAmountIn: bigint; }; /** * Adds first call that collects affiliate fee as native token * @param bridgeCalls Bridge calls arrays that should be modified (mutated) * @param config Trade config * @param formattedAffiliateFeeData Formatted affiliate fee data */ export declare function collectAffiliateFeeBeforeSwap(bridgeCalls: CallStruct[], config: { srcToken: string; affiliateWallet: string; }, formattedAffiliateFeeData: FormattedAffiliateFee): void; //# sourceMappingURL=bridgeHelpers.d.ts.map