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

Add call to burner #62

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Add call to burner #62

merged 3 commits into from
Oct 15, 2024

Conversation

1kresh
Copy link
Collaborator

@1kresh 1kresh commented Oct 15, 2024

No description provided.

@@ -170,6 +181,21 @@ abstract contract BaseSlasher is Entity, StaticDelegateCallable, ReentrancyGuard
_cumulativeSlash[subnetwork][operator].push(Time.timestamp(), cumulativeSlash(subnetwork, operator) + amount);
}

function _burnerOnSlash(bytes32 subnetwork, address operator, uint256 amount, uint48 captureTimestamp) internal {
address burner = IVault(vault).burner();
if (burner != address(0)) {
Copy link
Member

Choose a reason for hiding this comment

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

mb only if hook enabled?

Copy link
Collaborator Author

@1kresh 1kresh Oct 15, 2024

Choose a reason for hiding this comment

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

New base init param for slasher?

Copy link
Member

Choose a reason for hiding this comment

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

yeah, If vault have normal slasher we don't need to call hook

@1kresh 1kresh merged commit 35df819 into stage Oct 15, 2024
1 of 2 checks passed
@1kresh 1kresh deleted the burner-hook branch December 4, 2024 14:07
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