Function: transferToCustody(address wallet, address asset, uint256 amount)
Allows owner or account with the Minter role to transfer tokens or native tokens from the current contract to the trusted custody wallet.
Inputs
walletConstraints: the
CustodyWalletshould contain thewalletaddress.Impact: The receiver of tokens.
assetConstraints: No.
Impact: The token address.
amountConstraints: No.
Impact: The amount will be transferred.
Branches and code coverage (including function calls)
Negative behavior
The caller is not a Minter.
The caller is not an owner.
The wallet is not trusted.
Function call analysis
wallet.call{value: amount}('')External/Internal? External.
Argument control?
walletandamount.Impact: Transfer native tokens from the current contract to a trusted wallet.
IERC20(asset).safeTransfer(wallet, amount)External/Internal? External.
Argument control?
asset,wallet, andamount.Impact: Transfer asset tokens from the current contract to a trusted wallet account.