games_app/backend/dist/utils/withdrawalFee.d.ts

18 lines
836 B
TypeScript

/**
* Withdrawal network fee helpers (USDT deducted from user ledger).
*/
import { SystemSettings } from '../models';
/** Canonical micro units for the admin setting (6 decimal places). */
export declare const USDT_FEE_SETTING_DECIMALS = 6;
/** @deprecated Use USDT_FEE_SETTING_DECIMALS */
export declare const USDT_DECIMALS = 6;
/**
* Returns the configured network fee in smallest units for the given wallet decimals.
* Setting is stored as 6-decimal micro-USDT; scaled when wallet decimals differ (e.g. BEP20 18).
*/
export declare function getWithdrawalNetworkFeeRaw(settings: SystemSettings, walletDecimals?: number): bigint;
/**
* Formats a raw USDT amount for display (trims trailing zeros).
*/
export declare function formatUsdtRawHuman(raw: bigint, decimals?: number): string;
//# sourceMappingURL=withdrawalFee.d.ts.map