Skip to content

refactor: update withheld amount maintenance - #213

Merged
kupermind merged 28 commits into
mainfrom
update_withheld_amount
Jun 27, 2025
Merged

refactor: update withheld amount maintenance#213
kupermind merged 28 commits into
mainfrom
update_withheld_amount

Conversation

@kupermind

Copy link
Copy Markdown
Contributor
  • Update withheld amount maintenance in accordance with the proposed TargetDispenserL2 resolution.

@kupermind
kupermind requested review from 77ph and mariapiamo June 23, 2025 13:14
77ph
77ph previously approved these changes Jun 23, 2025
mariapiamo
mariapiamo previously approved these changes Jun 23, 2025
@kupermind
kupermind dismissed stale reviews from mariapiamo and 77ph via e885e71 June 24, 2025 16:55
Comment on lines +404 to +417
/// @dev Updates withheld amount manually by the DAO in order to account for `processDataMaintenance()` amounts.
/// @notice The amount here must correspond to the exact withheldAmount minus the accumulation of all the previous
/// unique amounts deposited via `processDataMaintenance()` function execution.
/// @param amount Updated withheld amount.
function updateWithheldAmountMaintenance(uint256 amount) external {
// Check the contract ownership
if (msg.sender != owner) {
revert OwnerOnly(msg.sender, owner);
}

withheldAmount = amount;

emit WithheldAmountUpdated(amount);
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Introducing function described in the WD.

@kupermind
kupermind merged commit d5d0644 into main Jun 27, 2025
2 checks passed
@kupermind
kupermind deleted the update_withheld_amount branch June 27, 2025 12:46
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