deposit
depositTo(msg.sender, amount, token).
depositTo
address
required
Must have a registered inbox key (
ReceivingKeyNotFound).uint256
required
Deposit amount in token base units. For fee-on-transfer tokens, the amount actually received is used.
address
required
address(0) for ETH. Must be whitelisted (TokenNotWhitelisted).uint256
required
ETH:
amount + gasEscrow. ERC-20: gasEscrow only.pendingDepositHashes[index] = keccak256(abi.encode(recipient, token, amount, msg.sender, gasEscrow)) and emits DepositPending.
Limits (_checkDepositLimits): amount ≥ minDeposit[token]; amount ≤ maxDeposit[token] when set; pool balance ≤ depositCap[token] when set.
registerReceivingKeyAndDeposit
withdrawPendingDeposit
cancelCheckFee, the capped check cost is kept. Emits DepositStatusChanged(index, REVERTED).