Skip to content

Commit

Permalink
Fix UT of ComputeRemainingRedelegatedSharesAfterUnbondings to use unb…
Browse files Browse the repository at this point in the history
…onding delegations `Balance` instead of `InitialBalance` (logic changed in a3ba996aa81e) (#14)
  • Loading branch information
sainoe authored May 21, 2024
1 parent b6c86fc commit e4d08f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/staking/keeper/tokenize_share_record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,19 +432,19 @@ func (suite *KeeperTestSuite) TestComputeRemainingRedelegatedSharesAfterUnbondin
Entries: []types.UnbondingDelegationEntry{
{
CompletionTime: timeNow.Add(3 * time.Hour),
InitialBalance: math.NewInt(5), // 5 - 5 => 0
Balance: math.NewInt(5), // 5 - 5 => 0
},
{
CompletionTime: timeNow.Add(8 * time.Hour),
InitialBalance: math.NewInt(1), // 5 - 1 => 4
Balance: math.NewInt(1), // 5 - 1 => 4
},
{
CompletionTime: timeNow.Add(12 * time.Hour),
InitialBalance: math.NewInt(10), // 4 + 2 - 10 => 0
Balance: math.NewInt(10), // 4 + 2 - 10 => 0
},
{
CompletionTime: timeNow.Add(25 * time.Hour),
InitialBalance: math.NewInt(5), // 5 + 1 - 5 + 2 => 3
Balance: math.NewInt(5), // 5 + 1 - 5 + 2 => 3
},
},
}
Expand Down

0 comments on commit e4d08f8

Please sign in to comment.