Skip to content

A project to learn how to create an autocompounding smartcontract on top of ComethSwap

License

Notifications You must be signed in to change notification settings

CleiK/cometh-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComethVault

This repository contains the ComethVault smartcontract.

Workflow

  1. User deposit LP token in the Vault (first, user has to approve LP token to the Vault)
  2. The Vault deposits the LP token in the Farm
  3. Chainlink Keepers calls the Vault to compound interests periodically
  4. User can withdraw LP token from the Vault

Links

ComethSwap

Notes

This is a project in development, mainly used to get familiar with solidity and defi smartcontracts.

Thanks to @PatrickAlphaC for this course.

Tools

Install brownie

pip install brownie

Install ganache

npm install -g ganache-cli

Local deployment

Use brownie to run the deploy script

brownie run scripts/deploy --network=ganache-cli

Explore other scripts

Live deployment

Setup your environment variables

Create a ".env" file in the root directory

touch .env

Add your private key to deploy on a live testnet

export PRIVATE_KEY=0xyourprivatekey

Add your Etherscan token to publish your code

export ETHERSCAN_TOKEN=yourtoken

About

A project to learn how to create an autocompounding smartcontract on top of ComethSwap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published