-
Notifications
You must be signed in to change notification settings - Fork 357
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
test: slashing integration todos #934
test: slashing integration todos #934
Conversation
- still failing with `WithdrawalNotQueued` when slashing added
also fixes logging toggle
- adds time machine logging + cleanup - roll to completion removed from modify allocations to simplify check flow
4b024ff
to
60442a0
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.
Need unit test on EP change
} | ||
} | ||
|
||
function assert_HasUnderlyingTokenBalances_AfterSlash( |
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.
For non native ETH Strategies, we should also have an assertion on the token balance of the Strategy being burned/updated after the slashOperator
call and it should be sent to the burn address.
Perhaps it makes sense to be in this check or a separate assert function
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.
will include in follow up pr
_calculateExpectedTokens(withdrawals[i].strategies, withdrawals[i].scaledShares); | ||
staker.completeWithdrawalAsTokens(withdrawals[i]); | ||
// FIXME: check_Withdrawal_AsTokens_State_AfterSlash(staker, operator, withdrawals[i], allocateParams, slashingParams, expectedTokens); |
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.
Whats broken in this check atm?
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.
currently failing for staker shares, which should also be conditionally adjusted
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.
will fix in follow up pr
refactor: review changes refactor: final commit fix: `assert_Snap_Allocations_Modified` bandaid will improve in second pr fix: `assert_Snap_Allocations_Modified` made need further improvement... test(wip): add `assert_HasUnderlyingTokenBalances_AfterSlash` refactor: snap checks fix: `EigenPod` gwei bug test(wip): add `assert_Snap_Magnitudes_Slashed`
d7a5d61
to
78ddf56
Compare
Closing in favor of #945 |
Changes:
HOLDS_MAX
assetType (denotes a user that holds the maximum allowed strategies to test gas constraints).print.gasUsed()
(prints the gas consumed from the last call).print.gasUsed()
.PermissionController
support toAVS
andUser
integration user types.assertApproxEqAbs
(1 single instance remains for beaconchain).TODOS: