-
Notifications
You must be signed in to change notification settings - Fork 11
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
Last minute changes to Coordinator #187
Conversation
Emit RitualAuthorityTransferred event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎸
initiator_balance_after_refund = erc20.balanceOf(initiator) | ||
coordinator_balance_after_refund = erc20.balanceOf(coordinator) | ||
refund = initiator_balance_after_refund - initiator_balance_before_refund | ||
assert refund == coordinator.getRitualInitiationCost(nodes, ONE_DAY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💥
@@ -253,6 +274,7 @@ contract Coordinator is Initializable, AccessControlDefaultAdminRulesUpgradeable | |||
ritual.endTimestamp = ritual.initTimestamp + duration; | |||
ritual.accessController = accessController; | |||
|
|||
uint96 minAuthorization = application.minimumAuthorization(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to move this variable either to immutable or to variable, each call is slower because of using inner call. I know that is not crucial but would be good to make
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
@@ -438,13 +467,14 @@ contract Coordinator is Initializable, AccessControlDefaultAdminRulesUpgradeable | |||
currency.safeTransferFrom(msg.sender, address(this), ritualCost); | |||
} | |||
|
|||
function processPendingFee(uint32 ritualId) public { | |||
function processPendingFee(uint32 ritualId) public returns (uint256) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function processPendingFee(uint32 ritualId) public returns (uint256) { | |
function processPendingFee(uint32 ritualId) public returns (uint256 refundableFee ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
Co-authored-by: Victoria Zotova <[email protected]>
Type of PR:
Required reviews:
What this does:
RitualState
to allow discerning active and expired rituals at the protocol state level.Related PRs:
nucypher-contracts
nucypher#3344nucypher/taco-web
(neenucypher-ts
) - Update DKG states based on last minute changes to Coordinator contract. taco-web#398Issues fixed/closed:
Why it's needed:
Notes for reviewers: