Function: lock(address token, string receipt, uint256 amount)
This function locks the tokens for bridging the tokens.
Inputs
tokenControl: Fully controlled by the caller.
Constraints: Must be whitelisted.
Impact: Address of the token to lock.
receiptControl: Fully controlled by the caller.
Constraints: None.
Impact: String to be used for the
Lockevent.
amountControl: Fully controlled by the caller.
Constraints: Must be less than or equal to
maxAmountand greater than or equal tominAmount.Impact: Amount to lock.
Branches and code coverage
Intended branches
Transfer the token to this bridge.
Negative behavior
Revert if the token is not whitelisted.