Skip to content

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) internal

Withdraws ETH from the contract

Parameters

NameTypeDescription
recipientaddress payableThe address to receive the ETH
amountuint256The amount of ETH to withdraw

_withdrawERC20

solidity
function _withdrawERC20(address token, address recipient, uint256 amount) internal

Withdraws ERC20 tokens from the contract

Parameters

NameTypeDescription
tokenaddressThe address of the ERC20 token to withdraw
recipientaddressThe address to receive the tokens
amountuint256The amount of tokens to withdraw