Skip to content

@gala-chain/chaincodeAPI


API > fetchDexProtocolFeeConfig

Function: fetchDexProtocolFeeConfig()

fetchDexProtocolFeeConfig(ctx): Promise\<DexFeeConfig | undefined>

Retrieves the global DEX protocol fee configuration.

Parameters

ctx: GalaChainContext

GalaChain context object.

Returns

A Promise resolving to the DexFeeConfig object if found, or undefined if not set.

Source

chaincode/src/dex/dexUtils.ts:115