hackquest logo

Crypto Savings Vault

Crypto Savings Vault -Users can save and withdraw ETH, tracking balances.

Công nghệ sử dụng

Web3
Solidity

Sự miêu tả

The Savings Vault is a simple Ethereum-based smart contract that allows users to securely deposit and withdraw ETH. The contract maintains a balance for each user and ensures that withdrawals do not exceed the deposited amount.

Features

  • Deposit ETH: Users can send ETH to the contract, which is credited to their personal balance.

  • Withdraw ETH: Users can withdraw a specified amount from their balance, ensuring they do not exceed their available funds.

  • Balance Tracking: The contract keeps track of individual balances and allows users to check their available funds.

Technical Details

  • Written in Solidity without using imports or constructors.

  • Uses a mapping to store balances associated with each address.

  • The deposit function allows users to add funds to their vault.

  • The withdraw function ensures only the owner of the funds can withdraw and enforces sufficient balance checks.

  • The getBalance function provides an easy way for users to check their ETH holdings in the vault.

Tiến độ hackathon

50

Trạng thái huy động vốn

0
Trưởng nhóm
Hhimesh agarwal
Liên kết dự án
Ngành
DeFi