Function: setBoostDelegationParams(bool isEnabled, uint256 feePct, address callback)
Enable or disable boost delegation and set boost delegation parameters.
Inputs
isEnabled
Control: Controlled by the user.
Constraints: N/A.
Impact: If boost delegation is enabled.
feePct
Control: Controlled by the user.
Constraints: Must be less than or equal to 10,000 or equal with
type(uint16).max
.Impact: Fee percent charged when claims are made that delegate to the caller's boost.
callback
Control: Controlled by the user.
Constraints: Must be a contract address.
Impact: Optional contract address to receive a callback each time a claim is made that delegates to the caller's boost.
Branches and code coverage (including function calls)
Intended branches
Enable boost delegation and set a delegation successfully.
Disable boost delegation.
Negative behavior
Test when callback is not a contract address.