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

Another set of minor improvements #598

Merged
merged 5 commits into from
Feb 10, 2023

Conversation

folkyatina
Copy link
Member

No description provided.

@folkyatina folkyatina changed the base branch from master to feature/shapella-upgrade February 10, 2023 14:35

bool isBunkerModeWasSetBefore = isBunkerModeActive();

// on bunker mode state change
if (_isBunkerModeNow != isBunkerModeWasSetBefore) {
// write previous timestamp to enable bunker or max uint to disable
uint256 newTimestamp = _isBunkerModeNow ? _bunkerModeSinceTimestamp : BUNKER_MODE_DISABLED_TIMESTAMP;
uint256 newTimestamp = _isBunkerModeNow ? _sinceTimestamp : BUNKER_MODE_DISABLED_TIMESTAMP;
Copy link
Contributor

Choose a reason for hiding this comment

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

need a event

@@ -59,7 +59,8 @@ abstract contract WithdrawalQueueBase {
/// @notice structure to store discount factors for requests in the queue
struct DiscountCheckpoint {
/// @notice first `_requestId` the discount is valid for
uint256 fromRequestId;
/// @dev storing in uint160 to pack into one slot. Overflowing here is unlikely
uint160 fromRequestId;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

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

🚀

@TheDZhon TheDZhon merged commit cbfd98c into feature/shapella-upgrade Feb 10, 2023
@TheDZhon TheDZhon deleted the refactor/review_fixes branch February 10, 2023 14:43
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.

2 participants