@gala-chain/chaincode ∙ API
API > configurePoolDexFee
Function: configurePoolDexFee()
configurePoolDexFee(
ctx,dto):Promise\<ConfigurePoolDexFeeResDto>
Parameters
▪ ctx: GalaChainContext
GalaChainContext – The execution context providing access to the GalaChain environment.
▪ dto: ConfigurePoolDexFeeDto
ConfigurePoolDexFeeDto – A data transfer object containing: - Pool identifier – The specific pool where the protocol fee is being updated. - fee value – The new protocol fee percentage, ranging from 0 to 1 (0% to 100%).
Returns
New fee for the pool
Dev
The setProtocolFee function updates the protocol fee percentage for a previously exisiting Decentralized exchange pool within the GalaChain ecosystem.