Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Jan 2, 2025
1 parent 398f846 commit 230ad16
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions launchpad/reward_distributor_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func TestRewardDistributor(t *testing.T) {

uassert.Equal(t, distributed.ToString(), initialReward.ToString())

// 분배 후 대기 리워드가 0인지 확인
remaining, _ := rd.PendingRewards(testAddr, project.id)
uassert.True(t, remaining.IsZero())

Expand All @@ -103,15 +102,13 @@ func TestRewardDistributor(t *testing.T) {
rd.pendingRewards.Set(generateRewardKey(addr, project.id), u256.NewUint(1000))
}

// 배치 분배 실행
err := rd.BatchDistribute(testAddrs, project.id)
uassert.NoError(t, err)

for _, addr := range testAddrs {
remaining, _ := rd.PendingRewards(addr, project.id)
uassert.True(t, remaining.IsZero())

// 분배 이력 확인
height := uint64(std.GetHeight())
historyKey := generateDistributionHistoryKey(generateRewardKey(addr, project.id), height)
_, exists := rd.distributionHistory.Get(historyKey)
Expand All @@ -137,7 +134,6 @@ func TestRewardDistributor(t *testing.T) {

func TestCalculateDepositReward(t *testing.T) {
t.Run("Normal case", func(t *testing.T) {
// t.Skip("fix")
rd := NewRewardDistributor()

project := Project{
Expand Down

0 comments on commit 230ad16

Please sign in to comment.