Function: rescue(IERC20 token, address to, uint256 amount)
This function transfers a given token to a given address with a given amount. This function is meant be called by the RESCUER_ROLE
when rescuing tokens that were mistakenly sent to the contract.
Inputs
token
Control: Completely controlled by the caller.
Constraints: None.
Impact: ERC-20 token to rescue.
to
Control: Completely controlled by the caller.
Constraints: None.
Impact: Address to rescue.
amount
Control: Completely controlled by the caller.
Constraints: None.
Impact: Amount to rescue.
Branches and code coverage
Intended branches
Transfer a given token to a given address with a given amount.
Negative behavior
Revert if caller does not have
RESCUER_ROLE
.