Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

getAppConfig

Fetch the app-level configuration: contract addresses, fee rates, liquidation parameters, and minimum deposit per denom.

Signature

function getAppConfig(
  client: Client,
  parameters?: { height?: number },
): Promise<AppConfig>

Example

import { createPublicClient, createTransport, testnet } from "@left-curve/sdk"
 
const client = createPublicClient({ chain: testnet, transport: createTransport() })
const config = await client.getAppConfig()
console.log(config.addresses.accountFactory)

Parameters

heightnumber, optional. Block height to query at. Default 0 (latest).

Returns

AppConfig — the full app config. Notable fields:

  • addresses — addresses of every system contract (account factory, dex, perps, gateway, oracle, taxman, warp, hyperlane).
  • makerFeeRate, takerFeeRate — fee strings.
  • maxLiquidationBonus, minLiquidationBonus, targetUtilizationRate.
  • minimumDepositRecord<Denom, string>.

Notes

See also