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

[EPIC] New fee model architecture #270

Open
wants to merge 59 commits into
base: main
Choose a base branch
from
Open

[EPIC] New fee model architecture #270

wants to merge 59 commits into from

Conversation

vzotova
Copy link
Member

@vzotova vzotova commented May 17, 2024

Type of PR:

  • Bugfix
  • Feature
  • Documentation
  • Other

Required reviews:

  • 1
  • 2
  • 3

What this does:
Changes fee model, now it's separate contract that must be approved in coordinator.
Implements subscription for BqETH

Issues fixed/closed:

Why it's needed:

Explain how this PR fits in the greater context of the NuCypher Network.
E.g., if this PR address a nucypher/productdev issue, let reviewers know!

Notes for reviewers:
This PR is ready for tests and integration with nucypher repo, ManagedAllowList needs touch up in some of following PRs

@vzotova vzotova self-assigned this May 17, 2024
@vzotova vzotova changed the title [EPIC][WIP] New fee model architecture [EPIC] New fee model architecture Jun 27, 2024
@vzotova vzotova marked this pull request as ready for review June 27, 2024 11:12
Copy link
Member

@derekpierre derekpierre left a comment

Choose a reason for hiding this comment

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

Looks like we will need some nucypher updates to accommodate the new architecture. Filed nucypher/nucypher#3514.

contracts/contracts/coordination/Coordinator.sol Outdated Show resolved Hide resolved
contracts/contracts/coordination/GlobalAllowList.sol Outdated Show resolved Hide resolved
Comment on lines +107 to +115
return 42 * 10 ** 20; // TODO
}

/**
* @notice Returns the base expiration duration
* @return The base expiration duration
*/
function baseExpiration() public pure returns (uint256) {
return 52 weeks; // TODO
Copy link
Member

Choose a reason for hiding this comment

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

Do these "TODOs" still need to be revisited?

Copy link
Member Author

Choose a reason for hiding this comment

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

I plan to remove Subscription contract when ManagedAllowList will be integrated with new Subscription

Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
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.

TACo Subscriptions Cohort End of Service: Yellow and Red periods
4 participants