Function: handleDeposit(Deposit deposit)
This verifies a deposit note and adds it to the Merkle tree. Called only by Teller.
Inputs
depositControl: Arbitrarily set by any deposit source calling into
Teller.depositFunds.Constraints: The
deposit.encodedAssetmust be a supported contract. Note must pass checks (seeCommitmentTreeManager._handleRefundNotein section ref↗ for more info).Impact: Note details added to Merkle tree.
Branches and code coverage
Intended branches
Call into
CommitmentTreeManager._handleRefundNote.
Negative behavior
Contract is paused.
Caller is not Teller.
Asset is not whitelisted.
The call to
CommitmentTreeManager._handleRefundNotereverts.