π·Ether Vault
Simple and Secure Ether Storage
Design Ethos
Storage
// Locksmith verifies key-holdership.
ILocksmith public locksmith;
// The ledger enforces asset rights
ILedger public ledger;
// We hard-code the arn into the contract.
bytes32 public ethArn;
// keep track of full contract balance for invariant control
uint256 public etherBalance;ethArn = AssetResourceName.AssetType({
contractAddress: AssetResourceName.GAS_TOKEN_CONTRACT,
tokenStandard: AssetResourceName.GAS_TOKEN_STANDARD,
id: AssetResourceName.GAS_ID}).arn();Operations
deposit
withdrawal
Last updated