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