Argo is an OHM-focused decentralized borrowing protocol built around a synthetic stable unit of account.
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 coverageBasic Hardhat-basted testing:
yarn test
Full testing requires installation of dapp tools:
yarn fuzz
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
When running a local node, deployments are automatic:
npx hardhat node --network localhost
To run without deployments:
npx hardhat node --no-deploy
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
yarn prettier
Discord link (TODO)