Message: ExecuteMsg::SetFee
This allows the admin to set the treasury fee charged on rewards.
Inputs
info.senderValidation: The
set_feefunction verifies that theinfo.senderis the owner.Impact: N/A.
new_feeValidation: The fee is verified to be lower than 100%.
Impact: The fee is set to
new_fee.
Branches and code coverage (including function calls)
Intended branches
If the fee is lower than 100%, it is updated in the state.
Negative behavior
Fail if the fee is larger than 100%.