Assessment reports>Astroport Pair XYK Sale Tax>Threat Model>Message: ExecuteMsg::UpdateConfig

Message: ExecuteMsg::UpdateConfig

This message allows to update the configuration of the contract, and it can only be sent by the contract owner, or by the tax config admin.

The user provides a serialized SalesTaxConfigUpdate struct, and is able to supply the following optional fields:

  • tax_configs — Can only be provided if the caller is the tax config admin. Allows to update the tax configuration. The new configuration is validated, to ensure it refers to assets in the pool, that the tax rate is not over 50%, and that the tax recipient address is valid.

  • tax_config_admin — Can only be provided if the caller is the tax config admin. Allows to set the new tax config admin.

  • track_asset_balances — If true, configures the pool to explicitly keep track of asset balances. Note that asset balance tracking cannot be disabled. Can only be used if the sender is the contract owner.

Zellic © 2024Back to top ↑