Function: setFee(address depositContract, address depositToken, uint16 fee)
This function is used to set the fee for a specific fee configuration. This function can only be called by the contract owner.
Inputs
depositContract
Control: Arbitrary.
Constraints: None.
Impact: Address of the deposit contract.
depositToken
Control: Arbitrary.
Constraints: None.
Impact: Address of the deposit token.
fee
Control: Arbitrary.
Constraints: Value between zero and 10,000.
Impact: New fee in basis points.
Branches and code coverage
Intended branches
Update the fee.
Negative behavior
Revert if the caller is not the contract owner.
Revert if the fee configuration does not exist.
Revert if the fee is greater than 10,000.