Skip to content

lawofambak-web3-playground/Compound-ETH-Supply-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supply and Redeem ETH on Compound

Description:

A simple test to supply and redeem ETH using the Compound protocol. It shows that a user gets cEth tokens in exchange for supplying ETH. It also shows that interest is accrued after a user supplies ETH and some time passes. Finally, at the end, a user can redeem the cEth tokens to get back their ETH supplied plus interest.

Go to supply-test.js file to simulate supplying and redeeming ETH on Compound using Hardhat's mainnet forking feature.

Run npx hardhat test

Screen Shot 2022-05-17 at 11 14 21 AM

Releases

No releases published

Packages

No packages published