This repository contains the Pareto Synthetic Dollar contracts:
ParetoDollar
: the main contract that mints and redeems USPParetoDollarQueue
: the contract that manages the deposits and redeems into Pareto Credit Vaults and ERC4626 vaults. It also manages users redeem requestsParetoDollarStaking
: the contract that allows users to stake their USP for sUSP and earn yield from Pareto Credit Vaults and ERC4626 vaults.
$ bun install
or
$ yarn install
and
$ forge install
This is a list of the most frequently needed commands.
Build the contracts:
$ bun run build
Delete the build artifacts and cache directories:
$ bun run clean
In Deploy.s.sol
in run()
you can set network used for the deployment.
$ bun run deploy
In Upgrade.s.sol
in run()
you can set network used and other params like proxy.
$ bun run upgrade
Run the tests:
$ bun run test
Get a gas report:
$ bun run test --gas-report