parse_fee_assets

function parse_fee_assets(gtv: gtv, module_name: text): list<fee_asset>(source)

Parses the module_args for a module, where the value contained is a list of fee_assets.

Throws "CONFIG ERROR" if gtv is neither a dictionary nor a list of dictionaries.

Throws if any of the assets is not a valid fee_asset.

Return

the parsed values

Parameters

gtv

the module_args for the module that is being parsed

module_name

the name of the module for better errors

See also

fee_asset

for a definition of invalid values.