Skip to content

Ether Vault

EtherVault is a special vault contract that:

  • Is initialized with 2^128 Ether.
  • Allows the contract owner to authorize addresses.
  • Allows authorized addresses to send/release Ether.
event Authorized(address addr, bool authorized)
event EtherReleased(address to, uint256 amount)
modifier onlyAuthorized()
receive() external payable
function init(address addressManager) external
function releaseEther(uint256 amount) public

Transfer Ether from EtherVault to the sender, checking that the sender is authorized.

NameTypeDescription
amountuint256Amount of Ether to send.
function releaseEther(address recipient, uint256 amount) public

Transfer Ether from EtherVault to a designated address, checking that the sender is authorized.

NameTypeDescription
recipientaddressAddress to receive Ether.
amountuint256Amount of ether to send.
function authorize(address addr, bool authorized) public

Set the authorized status of an address, only the owner can call this.

NameTypeDescription
addraddressAddress to set the authorized status of.
authorizedboolAuthorized status to set.
function isAuthorized(address addr) public view returns (bool)

Get the authorized status of an address.

NameTypeDescription
addraddressAddress to get the authorized status of.