Skip to content

limpire-programmer/Solidity-Vault-SmartContract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

VaultSol Simple example of vault contract, commonly used in DeFi.

This contract demonstrates practical math for calculating shares to mint on deposit and the amount of token to withdraw.

How the contract works

Some amount of shares are minted when an user deposits. The DeFi protocol would use the users' deposits to generate yield (somehow). User burn shares to withdraw his tokens + yield.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published