@shogun-sdk/one-shot
Version:
Shogun SDK - One Shot: React Components and hooks for cross-chain swaps
24 lines • 887 B
TypeScript
import { ICollectedFees, QuoteParams, QuoteTypes, Token } from '@shogun-sdk/money-legos';
export declare const useFeeCalculations: (props: {
address: string | undefined;
inputAmount: string;
tokenIn: Token;
hasInput: boolean;
tokenInBalance: bigint | undefined;
queryParams: QuoteParams | null;
setLatestSuggestedAutoSlippageValue: (slippage: number) => void;
notifyAboutError: (error: Error) => void;
}) => {
fees: ICollectedFees | undefined;
balanceError: string | null;
calculateFees: (quotes: QuoteTypes) => Promise<{
fees: ICollectedFees | undefined;
maxAmount: string | null;
}>;
setFees: import("react").Dispatch<import("react").SetStateAction<ICollectedFees | undefined>>;
resetBalanceError: () => {
fees: undefined;
maxAmount: null;
};
};
//# sourceMappingURL=useFeeCalculation.d.ts.map