Function: lock(uint256 _cvxAmount)
Lock the OFT tokens of the _canonicalChainId.
Inputs
_cvxAmountControl: Full control.
Constraints:
msg.sendershould have more or an equal amount of tokens.Impact: The amount of tokens will be transferred to another chain.
Branches and code coverage (including function calls)
Intended branches
The balance of
msg.senderwas decreased by_cvxAmount.The totalSupply was increased by _cvxAmount
Negative behavior
msg.senderdoes not have enough tokens._cvxAmount== 0.without fee
Function call analysis
_debitFrom(msg.sender, canonicalChainId, bytes(""), _cvxAmount) -> _debitFrom -> _burn(_from, _amount)External/internal? Internal.
Argument control?
_cvxAmountImpact Burn the
_cvxAmountamount of tokens from themsg.senderbalance before transfer to thecanonicalChainId.