owner() :
Returns the address of the current owner.
renounceOwnership() :
Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
requestEth(address) :
function to request a small amount of ETHThe function checks if the contract has enough balanceThe function also checks if the user has requested beforeIf all the conditions are met, the function will transfer the amount stored in transferEthAmount to the user address
- _to: address to send the eth
setTransferEthAmount(uint256) :
function that allows the owner to change the value of the transferEthAmountThe function will be executed only by the owner of the contract
- _amount: new amount that should be equal or greater than zero
transferOwnership(address) :
Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
withdraw() :
function that allows the owner to withdraw the contract balancethe function checks that the contract has a balance greater than zeroThe function will be executed only by the owner of the contract