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

crypto

The SavingsVault smart contract is a simple Ethereum-based vault that allows users to deposit and withdraw ETH securely.

技术栈

Solidity

描述

The SavingsVault smart contract is a simple Ethereum-based vault that allows users to deposit and withdraw ETH securely. It maintains a mapping of user balances and ensures that withdrawals do not exceed the deposited amount. The contract emits events for transparency when users deposit or withdraw funds.

Features:

  • Deposit ETH: Users can send ETH to the contract, which updates their balance.

  • Withdraw ETH: Users can withdraw their available balance, ensuring they do not exceed their deposit.

  • Balance Tracking: Users can check their balance using the getBalance function.

  • Event Logging: The contract emits events (Deposited and Withdrawn) for easy tracking of transactions.

本次黑客松进展

60

融资状态

progessing
队长
AAnshika Negi
项目链接
赛道
SocialFiOther