Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat rebase mecanism #44

Closed

Conversation

julienbrs
Copy link
Collaborator

@julienbrs julienbrs commented May 2, 2024

closes #38

  • Users are now minting and holding shares of the total supply
  • In project.cairo, balance still returns the carbon_credits amount and not the shares thanks to the share_to_cc function.
  • erc1155 abi isn't embed anymore => reimplementation of all the functions in the project.cairo to keep compatibility.

/!\ Because internal balance is now using shares of supply, but the balance used by users are cc tokens, we need to use converters like cc_to_share and share_to_cc. There are rounding errors that needs to be solved, will be done in an other PR.

@julienbrs julienbrs requested a review from cloudvenger May 2, 2024 08:00
@julienbrs julienbrs self-assigned this May 3, 2024
@julienbrs julienbrs requested a review from tekkac May 3, 2024 14:28
@julienbrs julienbrs marked this pull request as ready for review May 3, 2024 14:28
@julienbrs
Copy link
Collaborator Author

New rebase design has to be made to keep track of failed CC

@julienbrs julienbrs closed this May 10, 2024
@julienbrs julienbrs deleted the feat-rebase-mecanism branch June 18, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CPv3 - Rebase function - change Tokenized Carbon Credit status and supply
1 participant