forked from KlimaDAO/klimadao-solidity
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Specific Retirement for Toucan Protocol (KlimaDAO#11)
Replace `redeemAuto` with `redeemAuto2` to save on gas, as well as implement check to ensure that the `retire` function is only called on TCO2s actually redeemed. Add methods to selectively choose and retire TCO2s using the aggregator. This accounts for any redemption fees incurred so that the desired number of tons will be retired. Update the `getNeededBuyAmount` function across all helpers to allow consistent switching between factoring in a redemption fee or just the AMM fees.
- Loading branch information
Showing
7 changed files
with
551 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.