-
Notifications
You must be signed in to change notification settings - Fork 12
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
support multiple slash ratios #164
Conversation
b788f76
to
db4e9d1
Compare
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.
LGTM.
@@ -472,7 +477,8 @@ impl ExternalStakingContract<'_> { | |||
.tombstone_validator(deps.storage, valoper, height, time)?; | |||
if active { | |||
// Slash the validator (if bonded) | |||
let slash_msg = self.handle_slashing(&env, deps.storage, valoper)?; | |||
let slash_msg = | |||
self.handle_slashing(&env, deps.storage, valoper, SlashingReason::DoubleSign)?; |
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.
👍🏼
3c523c8
to
745ee54
Compare
745ee54
to
c20eecc
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #164 +/- ##
==========================================
+ Coverage 88.36% 88.40% +0.03%
==========================================
Files 69 69
Lines 13112 13151 +39
Branches 13112 13151 +39
==========================================
+ Hits 11587 11626 +39
Misses 992 992
Partials 533 533 ☔ View full report in Codecov by Sentry. |
Closes #151
The changes to
native-staking
are there to support the modifiedLocalStakingApi::max_slash
.