Msg/SetFeeParams

gov authority must be authorized

Background

Given fee params

{}

gov authority is not authorized

Given authority is set to "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw"

When fee params are set

Then expect error contains "unauthorized".

gov authority is authorized

Given authority is set to the keeper authority

When fee params are set

Then expect no error.

fee params get saved

non-empty fee params

Given authority is set to the keeper authority

And fee params

{
  "buyer_percentage_fee": "0.01",
  "seller_percentage_fee": "0.01"
}

When fee params are set

Then expect no error

And expect fee params

  {
    "buyer_percentage_fee": "0.01",
    "seller_percentage_fee": "0.01"
  }

empty fee params

Given authority is set to the keeper authority

And fee params

{}

When fee params are set

Then expect no error

And expect fee params

  {}