Function: deposit(address token, uint256 amount)
Allows the owner to deposit tokens into the contract.
Inputs
tokenControl: Fully controlled.
Constraints: Assumed that the token is a valid ERC-20 token.
Impact: The token to deposit.
amountControl: Fully controlled.
Constraints: Will fail if
msg.senderdoes not have enough tokens.Impact: The amount of tokens to deposit.
Branches and code coverage
Intended branches
Increase the
balanceof the token for the contract.Decrease the
balanceof the token for the caller.Adapt the
reserveof the token by the amount deposited.
Negative behavior
Should not be callable by anyone other than the
admin.