Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #27

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Offset Helper

This contract has the purpose to simplify the carbon offsetting process.
This contract simplifies the carbon offsetting process on Toucan.

What it does in more exact terms is it abstracts the process of retiring TCO2, which normally looks like so:
More specifically, the Offset Helper abstracts the process of using a stablecoin to acquire and retire TCO2. This process normally looks like:

- user exchanges USDC for BCT/NCT tokens at one of the DEXs (Uniswap, Sushiswap, etc. depending on network)
- user interacts with the BCT/NCT token contract to redeem the tokens for TCO2
- user exchanges USDC (a stablecoin) for carbon reference tokens like BCT or NCT using a DEX like Uniswap, Sushiswap, etc. (depending on network)
- user interacts with the BCT/NCT pool token contract to redeem TCO2 tokens from within the pool
- user interacts with the TCO2 token contract to retire the TCO2

You can see this process explained in more depth in our [docs](https://docs.toucan.earth/toucan/introduction/overview).

With the OffsetHelper contract, the user only needs to interact with the OffsetHelper contract, which will take care of the rest in a single transaction.

## Deployments
Expand All @@ -22,14 +24,14 @@ See [./docs/OffsetHelper.md](./docs/OffsetHelper.md) for detailed documentation.

### Development

## Preqrequisites
## Prerequisites

1. Install the required packages:
```
yarn
```
2. Copy `.env.example` to `.env` and modify values of the required environment variables:
1. `POLYGON_URL`/`MUMBAI_URL` to specify custom RPC endpoints for Polygon Mainnet, respectively, the Mumbai Testnet.
1. `POLYGON_URL`/`MUMBAI_URL` to specify your preferred RPC endpoints for Polygon Mainnet and the Mumbai Testnet.
2. `PRIVATE_KEY` and `POLYGONSCAN_KEY` in order to deploy contract and publish source code on [polygonscan](https://polygonscan.com).

## Commands
Expand Down
Loading