@edgex-web/components
Version:
EdgeX Universal UI Components Library - Reusable React components for deposit, withdraw and other common UI patterns
20 lines • 687 B
TypeScript
export interface UsePoolBalanceParams {
bscRpcUrl?: string;
arbitrumRpcUrl?: string;
pollingInterval?: number;
}
/**
* usePoolBalance
* Reads pool balances for:
* - BNB_USDT (USDT on BSC, holder = BSC_POOL)
* - ARB_USDT (USDT on Arbitrum, holder = ARB_POOL_USDT)
* - ARB_USDC (USDC on Arbitrum, holder = ARB_POOL_USDC)
* Returns formatted strings; defaults to '0' if not available yet.
* In testnet environment, returns '99999' instead of real balances.
*/
export declare function usePoolBalance(params?: UsePoolBalanceParams): {
BNB_USDT_BALANCE: string;
ARB_USDT_BALANCE: string;
ARB_USDC_BALANCE: string;
};
//# sourceMappingURL=usePoolBalance.d.ts.map