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

SOV-3666 burn penalties staking #544

Open
wants to merge 8 commits into
base: development
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adjust foundry tests: send slash amount to 0x1
  • Loading branch information
tjcloa committed Apr 6, 2024
commit 057ab2be2c2e5f7e5fbb39e442b83012e7719e17
5 changes: 3 additions & 2 deletions tests-foundry/staking/StakingStake.t.sol
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ contract StakingFuzzTest is Test {
feeSharingCollector = IFeeSharingCollector(address(feeSharingCollectorProxy));

amount = 1000;
user = address(1);
user = address(100);
user2 = address(2);
delegatee = address(3);

@@ -941,7 +941,8 @@ contract StakingFuzzTest is Test {

emit log_named_uint("test case 2: block.timestamp after withdraw", block.timestamp);

assertEq(sov.balanceOf(address(feeSharingCollector)), expectedSlashAmount);
assertEq(sov.balanceOf(address(feeSharingCollector)), 0); // we burn penalties amount rather than distributing it
assertEq(sov.balanceOf(address(0x1)), expectedSlashAmount); // burn by sending to 0x1 address

//@test-case 3) _withdrawTS is in (lockDate, ∞) - should withdraw with no penalties
if (block.timestamp >= lockDate) {
Loading