Function: claimFee(address token)
Allows claiming the cumulative fees of the token.
Inputs
token
Control: Fully controlled by the caller.
Constraints: Assumes there is a token to claim.
Impact: The token to claim.
Branches and code coverage
Intended branches
Assume the balance corresponds to the cumulative sum of the fees. This is not always the case, as in the case of bridging transactions that are not successful. These tokens can be griefed to the
feeAddr
address.Transfer the balance of the token to the fee address.
Negative behavior
Caller is a service admin.
Negative behavior should be what the function requires.