Function: frozenBalance(byte[32] _tokenHash, uint256 _chainId, uint128 _deltaBalance)
The function is triggered only from the executeWithdrawAction function of Ledger contrast.
Inputs
_tokenHashControl: Full control by operator.
Constraints: There is a check that the token is allowed in the
executeWithdrawActionfunction.Impact: The token hash that will be withdrawn.
_chainIdControl: Full control by operator.
Constraints: There is a check that the vault balance in
_chainIdis enough in theexecuteWithdrawActionfunction.Impact: The destination chain ID, where the withdraw will be performed and tokens will be transferred to the receiver.
_deltaBalanceControl: Full control by operator.
Constraints: There is a check that the vault balance is enough in the
executeWithdrawActionfunction.Impact: The amount of tokens for withdraw — the balance of the vault will be decreased by this value.
Branches and code coverage
Intended branches
tokenBalanceOnchainis decreased by_deltaBalance.Include function calls.
End sentences with periods.
Negative behavior
tokenBalanceOnchainis less than_deltaBalance.