Message: ExecuteMsg::SetDistributionFee
This allows the admin to set the treasury fee charged on rewards distribution.
Inputs
info.senderValidation: The
set_distribution_feefunction verifies that theinfo.senderis the owner.Impact: N/A.
new_distribution_feeValidation: The fee is verified to be lower than 100%.
Impact: The new fee is set to be this value.
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%.