Function: completeErc20Deposit(DepositRequest req, byte[] signature)
This completes ERC-20 deposit given a valid signature.
Inputs
req
Control: Arbitrarily set by caller.
Constraints: Digest must be in outstanding deposit requests. Must pass checks done in
Teller.depositFunds
(see section ref↗).Impact: Calls
Teller.depositFunds
with data.
signature
Control: Arbitrarily set by caller.
Constraints: Must be a valid signature made by screener of digest of
req
.Impact: None.
Branches and code coverage
Intended branches
Calls
Teller.depositFunds
.Actual gas compensation made.
Remaining gas compensation made.
Negative behavior
Deposit limits exceeded.
Signature of
req
digest is not a screener.Deposit digest is not outstanding deposit.
The
depositFunds
reverts.