Skip to content

Commit

Permalink
initialize distribution test
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Mar 8, 2024
1 parent 4e2b0ed commit ededd19
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions x/emissions/keeper/distributions_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package keeper_test

import (
"testing"

"github.com/stretchr/testify/require"
keepertest "github.com/zeta-chain/zetacore/testutil/keeper"
)

func TestKeeper_GetDistributions(t *testing.T) {
k, ctx, sdkk, _ := keepertest.EmissionsKeeper(t)

val, obs, tss := k.GetDistributions(ctx)

require.EqualValues(t, "4810474537037037037", val.String()) // 0.5 * block reward
require.EqualValues(t, "2405237268518518518", obs.String()) // 0.25 * block reward
require.EqualValues(t, "2405237268518518518", tss.String()) // 0.25 * block reward
}

0 comments on commit ededd19

Please sign in to comment.