hackquest logo

SavingsVault

SavingsVault Contract Description A simple Ethereum smart contract that allows users to deposit and withdraw ETH securely. Features Users can deposit ETH into the contract. Users can withdraw ETH fro

技術堆疊

Solidity
Ethers
Web3

描述

SavingsVault Contract

Description

A simple Ethereum smart contract that allows users to deposit and withdraw ETH securely.

Features

  • Users can deposit ETH into the contract.

  • Users can withdraw ETH from their balance.

  • Users can check their current balance in the contract.

Deployed Address

0x2fD1cCb76f6EaD5E9D8EdD983832138Ac282D069

Functions

deposit()

Allows a user to deposit ETH into their vault balance.

withdraw(uint256 amount)

Allows a user to withdraw a specified amount from their balance.

getBalance()

Returns the current balance of the user in the vault.

Notes

  • The contract ensures that deposits must be greater than zero.

  • Withdrawals must not exceed the user's balance.

黑客松進展

60

籌資狀態

0
團隊負責人
AAADISH JAIN
專案連結
行業
DeFi