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

Use project composition to calculate fees #42

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

0xmichalis
Copy link
Member

@0xmichalis 0xmichalis commented Feb 7, 2024

Instead of calculating fees at the vintage level
we should be calculating fees at the project
level. In order to achieve that, use the newly
implemented pool function totalPerProjectTCO2Supply
to determine how many credits of a project are
found in a pool.

@0xmichalis 0xmichalis marked this pull request as ready for review February 7, 2024 19:21
Instead of calculating fees at the vintage level
we should be calculating fees at the project
level. In order to achieve that, use the newly
implemented pool function `totalPerProjectTCO2Supply`
to determine how many credits of a project are
found in a pool.
Copy link
Member

@aspiers aspiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@aspiers
Copy link
Member

aspiers commented Feb 8, 2024

@kosecki123 Would be great to get your review on this before audit. I think Farouq has already agreed to this change in principle.

Copy link
Contributor

@kosecki123 kosecki123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@0xmichalis 0xmichalis merged commit 1dfdf83 into main Feb 8, 2024
1 check passed
@0xmichalis 0xmichalis deleted the use-project-supply branch February 8, 2024 12:21
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.

3 participants