Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors