Toucan
Search
⌃K

Pool Contracts

Addresses

The addresses of all Toucan contracts deployed across all mainnet and testnet networks can be found here.

Error codes

We use custom error codes (not to be confused with Solidity custom errors) in our pool contracts to keep the size of the contracts as small as possible.
Below you can find the existing error codes and a description for each one.
Error code
Description
1
User is not authorized
2
Empty array provided as input
3
Pool is full of TCO2s
4
ERC20 is blacklisted in the pool. This error is returned for TCO2s that have been blacklisted like the HFC-23 project
5
ERC20 is not whitelisted in the pool. This error is returned in case the ERC20 is not a TCO2 in which case it has to be manually whitelisted in order to be allowed in the pool
6
Vintage start time of a TCO2 is too old
7
Region is not accepted in the pool
8
Standard is not accepted in the pool
9
Methodology is not accepted in the pool
10
Provided fee is invalid, not in a basis points format: [0,10000)
11
Provided address needs to be non-zero
12
Validation check to ensure array lengths match
13
TCO2 not exempted from redeem fees
14
The pool is paused
15
Redemption transaction has leftover unredeemed value. All value needs to be redeemed in order for the transaction to be successfull
16
Redemption exceeds deposited TCO2 supply
17
User must be a router
18
User must be the pool owner
19
Zero destination address is invalid for pool token transfers
20
Self destination address is invalid for pool token transfers