Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

129 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Argo Contracts

Argo is an OHM-focused decentralized borrowing protocol built around a synthetic stable unit of account.

Develop

This project uses Hardhat and is based on the Advanced Sample Hardhat Project. Built-in commands include

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage

Test

Basic Hardhat-basted testing:

yarn test

Full testing requires installation of dapp tools:

yarn fuzz

Deploy

This project uses hardhat-deploy to manage and track deployments.

To deploy locally:

npx hardhat deploy --network rinkeby

View deployments:

npx hardhat deployments --network rinkeby

Run locally

When running a local node, deployments are automatic:

npx hardhat node --network localhost

To run without deployments:

npx hardhat node --no-deploy

Creating a market

To prepare a transaction for separate signing (e.g. via a Gnosis Safe or similar):

HARDHAT_NETWORK=localhost npx ts-node --files scripts/createMarket.ts --treasury 0x0ab87046fBb341D058F17CBC4c1133F25a20a52f \
--collateralToken 0x0ab87046fBb341D058F17CBC4c1133F25a20a52f \
--debtToken 0x0ab87046fBb341D058F17CBC4c1133F25a20a52f \
--oracle 0x0ab87046fBb341D058F17CBC4c1133F25a20a52f \
--maxLoanToValue 3 \
--borrowRate 2 \
--liquidationPenalty 1 \
--prepare

Listing markets:

npx hardhat markets --network rinkeby

Formatting

yarn prettier

Contact

Discord link (TODO)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages