diff --git a/contracts/OffsetHelper.sol b/contracts/OffsetHelper.sol index 984217d..68d03d6 100644 --- a/contracts/OffsetHelper.sol +++ b/contracts/OffsetHelper.sol @@ -17,7 +17,7 @@ import "./interfaces/IToucanContractRegistry.sol"; * * Retiring carbon tokens requires multiple steps and interactions with * Toucan Protocol's main contracts: - * 1. Obtain a Toucan pool token e.g., NCT (by performing a token + * 1. Obtain a pool token e.g., NCT (by performing a token * swap on a DEX). * 2. Redeem the pool token for a TCO2 token. * 3. Retire the TCO2 token. @@ -359,7 +359,7 @@ contract OffsetHelper is OffsetHelperStorage { IToucanPoolToken PoolTokenImplementation = IToucanPoolToken(_fromToken); // auto redeem pool token for TCO2; will transfer automatically picked TCO2 to this contract - (tco2s, amounts) = PoolTokenImplementation.redeemAuto2(_amount); + (tco2s, amounts) = PoolTokenImplementation.redeemAuto(_amount); // update balances balances[msg.sender][_fromToken] -= _amount; diff --git a/contracts/interfaces/IToucanPoolToken.sol b/contracts/interfaces/IToucanPoolToken.sol index 25672ed..b0c2d5c 100644 --- a/contracts/interfaces/IToucanPoolToken.sol +++ b/contracts/interfaces/IToucanPoolToken.sol @@ -12,24 +12,27 @@ interface IToucanPoolToken is IERC20Upgradeable { function checkEligible(address erc20Addr) external view returns (bool); - function checkAttributeMatching(address erc20Addr) - external - view - returns (bool); + function checkAttributeMatching( + address erc20Addr + ) external view returns (bool); function calculateRedeemFees( address[] memory tco2s, uint256[] memory amounts ) external view returns (uint256); - function redeemMany(address[] memory tco2s, uint256[] memory amounts) - external; + function redeemMany( + address[] memory tco2s, + uint256[] memory amounts + ) external; - function redeemAuto(uint256 amount) external; + function redeemAuto( + uint256 amount + ) external returns (address[] memory tco2s, uint256[] memory amounts); - function redeemAuto2(uint256 amount) - external - returns (address[] memory tco2s, uint256[] memory amounts); + function redeemAuto2( + uint256 amount + ) external returns (address[] memory tco2s, uint256[] memory amounts); function getRemaining() external view returns (uint256);