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 installand
$ forge installThis is a list of the most frequently needed commands.
Build the contracts:
$ bun run buildDelete the build artifacts and cache directories:
$ bun run cleanIn Deploy.s.sol in run() you can set network used for the deployment.
$ bun run deployIn Upgrade.s.sol in run() you can set network used and other params like proxy.
$ bun run upgradeRun the tests:
$ bun run testGet a gas report:
$ bun run test --gas-report