hackquest logo
  • 学习
  • 课程探索
  • 实战
  • 探索黑客松
  • 往期项目
  • 社区
  • 论坛
  • 全球活动
  • 我的社区
  • 共学营
  • 组织中心
  • 更多
    • 词汇表
    • 博客
    • 水龙头
    • 工作机会
    • 媒体工具包
    • 创始人
hackquest logo

Crypto Savings Vault

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

技术栈

Web3
Solidity

描述

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.

本次黑客松进展

50

融资状态

0
队长
HHimesh Agarwal
项目链接
赛道
DeFi