Message: ExecuteMsg::SetDistributionFee
This allows the admin to set the treasury fee charged on rewards distribution.
Inputs
info.sender
Validation: The
set_distribution_fee
function verifies that theinfo.sender
is the owner.Impact: N/A.
new_distribution_fee
Validation: 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%.