Appearance
Solidity API
PropsWithdrawInternal
Internal functions for the PropsWithdraw facet
PropsWithdraw__InsufficientBalance
solidity
error PropsWithdraw__InsufficientBalance()PropsWithdraw__TransferFailed
solidity
error PropsWithdraw__TransferFailed()_withdrawETH
solidity
function _withdrawETH(address payable recipient, uint256 amount) internalWithdraws ETH from the contract
Parameters
| Name | Type | Description |
|---|---|---|
| recipient | address payable | The address to receive the ETH |
| amount | uint256 | The amount of ETH to withdraw |
_withdrawERC20
solidity
function _withdrawERC20(address token, address recipient, uint256 amount) internalWithdraws ERC20 tokens from the contract
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the ERC20 token to withdraw |
| recipient | address | The address to receive the tokens |
| amount | uint256 | The amount of tokens to withdraw |