@shogun-sdk/money-legos
Version:
Shogun Money Legos: clients and types for quotes, memes, prices, balances, fees, validations, etc.
23 lines • 1.21 kB
TypeScript
import type { TokenBalanceResults } from '../types/index.js';
export interface InsufficientFundsErrorBuilderProps {
nativeTotalBalance?: number;
sourceNetwork: number;
destinationNetwork: number;
isTransfer: boolean;
balances: TokenBalanceResults[];
tokenInAddress: string;
tokenOutAddress: string;
amountInput: string;
systemFeePercent: number;
errorBuilder?: (network: string, tokenSymbol?: string, minUsdValue?: number) => string;
isEoaAccount: boolean;
additionalAffiliateFee: number;
externalServiceTxCostUsd: number;
}
export declare class InsufficientFundsErrorBuilder {
private props;
constructor(props: InsufficientFundsErrorBuilderProps);
build(): string;
static buildAffiliateFeeErrorMsg(amountInWei: string, balances: TokenBalanceResults[], excludeFee: boolean, tokenInAddress: string, sourceNetwork: number, isTransfer: boolean, systemFeePercent: number, isEoaAccount: boolean, externalServiceTxCostUsd: number, additionalAffiliateFee: number, errorBuilder: (network: string, tokenSymbol?: string, minAmountValue?: number, minUsdValue?: number) => string): string;
}
//# sourceMappingURL=InsufficientFundsErrorBuilder.d.ts.map