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