diff --git a/example-frontend/pages/index.tsx b/example-frontend/pages/index.tsx index fa437dd..2fb94b3 100644 --- a/example-frontend/pages/index.tsx +++ b/example-frontend/pages/index.tsx @@ -1,98 +1,106 @@ export default function Home() { return ( -
-

- Welcome to the OffsetHelper Example Frontend -

-

- Helper functions that simplify the carbon offsetting (retirement) - process. Retiring carbon tokens requires multiple steps and interactions - with Toucan Protocol‘s main contracts: -

-
-
    -
  1. - {" "} - 1. Obtain a Toucan pool token such as BCT or NCT (by performing a - token swap). -
  2. -
  3. 2. Redeem the pool token for a TCO2 token.
  4. -
  5. 3. Retire the TCO2 token.
  6. -
+
+

Welcome to the OffsetHelper Example Frontend

-

- These steps are combined in each of the following "auto - offset" methods implemented in OffsetHelper to allow a retirement - within one transaction: -

- +
+

+ Helper functions that simplify the carbon offsetting (retirement) + process. Retiring carbon tokens requires multiple steps and + interactions with Toucan Protocol‘s main contracts: +

+ +
    +
  1. + Obtain a Toucan pool token such as BCT or NCT (by performing a token + swap). +
  2. +
  3. Redeem the pool token for a TCO2 token.
  4. +
  5. Retire the TCO2 token.
  6. +
+
+ +
+

+ These steps are combined in each of the following "auto + offset" methods implemented in OffsetHelper to allow a retirement + within one transaction: +

+ +
    +
  • + + + autoOffsetPoolToken() + + {" "} + - if the user already owns a Toucan pool token such as BCT or NCT; +
  • +
  • + + + autoOffsetExactOutToken() + + {" "} + - if the user would like to perform a retirement using an ERC20 + token (USDC, WETH or WMATIC), specifying the exact amount of TCO2s + to retire; +
  • +
  • + + + autoOffsetExactInToken() + + {" "} + - if the user would like to perform a retirement using an ERC20 + token (USDC, WETH or WMATIC), specifying the exact amount of token + to swap into TCO2s; +
  • +
  • + + + autoOffsetExactOutETH() + + {" "} + - if the user would like to perform a retirement using MATIC, + specifying the exact amount of TCO2s to retire; +
  • +
  • + + + autoOffsetExactInETH() + + {" "} + - if the user would like to perform a retirement using MATIC, + swapping all sent MATIC into TCO2s; +
  • +
+
); }