Variable musdQueryKeysConst
musdQueryKeys: {
balance: (
chainId: number,
address: `0x${string}`,
) => readonly ["musd", number, "balance", `0x${string}`];
borrowingPower: (
chainId: number,
collateral: bigint,
) => readonly ["musd", number, "borrowingPower", string];
oraclePrice: (chainId: number) => readonly ["musd", number, "oraclePrice"];
trove: (
chainId: number,
address: `0x${string}`,
) => readonly ["musd", number, "trove", `0x${string}`];
} = ...
Type declaration
Readonlybalance: (
chainId: number,
address: `0x${string}`,
) => readonly ["musd", number, "balance", `0x${string}`]
ReadonlyborrowingPower: (
chainId: number,
collateral: bigint,
) => readonly ["musd", number, "borrowingPower", string]
ReadonlyoraclePrice: (chainId: number) => readonly ["musd", number, "oraclePrice"]
Readonlytrove: (
chainId: number,
address: `0x${string}`,
) => readonly ["musd", number, "trove", `0x${string}`]
Stable TanStack query keys (chainId + method + args). Hooks that share a key dedupe to a single fetch (e.g.
useTrove/useHealthFactor/useLiquidationPricefor one address differ only byselect). bigints are stringified, TanStack hashes keys withJSON.stringify, which throws on bigint.