Skip to content

pareto-credit/USP

Repository files navigation

Pareto USP contracts Foundry

This repository contains the Pareto Synthetic Dollar contracts:

  • ParetoDollar: the main contract that mints and redeems USP
  • ParetoDollarQueue: the contract that manages the deposits and redeems into Pareto Credit Vaults and ERC4626 vaults. It also manages users redeem requests
  • ParetoDollarStaking: the contract that allows users to stake their USP for sUSP and earn yield from Pareto Credit Vaults and ERC4626 vaults.

Installing Dependencies

$ bun install

or

$ yarn install

and

$ forge install

Usage

This is a list of the most frequently needed commands.

Build

Build the contracts:

$ bun run build

Clean

Delete the build artifacts and cache directories:

$ bun run clean

Deploy

In Deploy.s.sol in run() you can set network used for the deployment.

$ bun run deploy

Upgrade

In Upgrade.s.sol in run() you can set network used and other params like proxy.

$ bun run upgrade

Test

Run the tests:

$ bun run test

Gas Usage

Get a gas report:

$ bun run test --gas-report

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published