@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
14 lines • 738 B
TypeScript
import type { AccountLike } from "@ledgerhq/types-live";
import type { TransactionStatus } from "../../../../generated/types";
import { BigNumber } from "bignumber.js";
/**
* Maximum amount the user can send (spendable/balance minus estimated fees).
* Returns zero if account is missing or balance would be negative.
*/
export declare function getMaxAvailable(account: AccountLike | null | undefined, estimatedFees: BigNumber): BigNumber;
/**
* Returns true if the transaction status has an amount error that indicates
* insufficient funds (so the CTA can show "Get funds" instead of "Review").
*/
export declare function isInsufficientFundsAmountError(status: TransactionStatus): boolean;
//# sourceMappingURL=amountReview.d.ts.map