Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nagesh #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nageshannamareddy
Copy link

Added Smart Contract logic in Vault1 and Vault2. Created Unit Tests and tested all the changes made in the Smart Contract code

@@ -1,6 +1,42 @@
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

// Smart Contract to deposit and withdraw
contract Vault1 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to make these transactions (deposit and withdraw) using ERC20 tokens

_mint(msg.sender, _amount);

//fire event
emit Mint(msg.sender, _amount);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_burn(msg.sender,_amount);

//fire event
emit Burn(msg.sender, _amount);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants