Toucan Documentation
  • 🌱Introduction
    • Welcome to Toucan
    • Legal Disclaimer
  • 🌏Toucan
    • Bridging
      • Puro Carbon Bridge
        • Tokenization
        • Detokenization
    • Carbon Pools
      • How a Carbon Pool Works
      • Benefits of Pools
      • CHAR Carbon Pool
      • How to Buy CHAR
      • Deposits and Redemptions
    • Carbon Retirements
  • 🌿RESOURCES
    • Web3 concepts
    • Carbon markets
      • Carbon credits
    • Frequently asked questions
      • How do I use the Carbon Bridge?
      • How can one carbon pool token, like CHAR, represent one tonne of carbon?
      • Can I retire carbon pool tokens, like CHAR, to offset my emissions?
      • Where can I find the addresses of CHAR or other contracts?
      • How long does it take to bridge carbon credits?
      • What happens to a pool token if it is bridged to another network?
      • FAQ for transition to Open Source
    • Archives
      • Verra Bridge [Deprecated]
      • Pool Acceptance Criteria: NCT, BCT
      • NCT Pool Report
    • Audits
  • 💻Developers
    • Toucan for developers
    • Smart contracts
      • Carbon pool contracts
      • TCO2 contracts
      • Retirement certificates
      • OffsetHelper
    • Subgraphs
    • Toucan SDK
      • Quickstart
      • Contract interactions
      • Subgraph interactions
    • Tools + examples
      • Integration examples
      • Testnet faucets
      • Dune dashboard
    • Developer support
      • Error codes
Powered by GitBook
On this page

Was this helpful?

  1. Developers

Smart contracts

PreviousToucan for developersNextCarbon pool contracts

Last updated 6 months ago

Was this helpful?

This section will walk you through the functions of the core smart contracts you're likely to interact with.

If you need to see where the contract are deployed, you can find addresses and ABIs

If you'd like to see the source code of the contracts, you can find it . You'll also find .json artifacts in this repository. Do keep in mind that our contracts actually live in a different (private) repository — the linked repo is a delayed mirror of it.

In the EVM, Ether and token amounts are often converted into (much) smaller standard units, to allow the use of sub-integer amounts.

Toucan's token contracts use 18 decimals, which means whenever a number of tokens is referenced, the value is converted by multiplying the quantity by 1e+18. This standard unit helps in dealing with very small amounts and avoids floating point operations. Always remember to convert for accuracy in transactions.

💻
here ->
here ->