Skip to content

Commit

Permalink
Merge branch 'todo_beta/refactor/mint_allocation_dao' into todo_beta/…
Browse files Browse the repository at this point in the history
…params/mint_allocation_proposer

* todo_beta/refactor/mint_allocation_dao:
  test: mint_allocation_dao validation
  • Loading branch information
bryanchriswhite committed Nov 8, 2024
2 parents 929eb77 + b8f2c56 commit 30a66dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/tokenomics/keeper/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ func TestParams_ValidateMintAllocationDao(t *testing.T) {
mintAllocatioDao: "0",
expectedErr: tokenomicstypes.ErrTokenomicsParamInvalid.Wrap("invalid parameter type: string"),
},
{
desc: "invalid MintAllocationDao (<0)",
mintAllocatioDao: -0.1,
expectedErr: tokenomicstypes.ErrTokenomicsParamInvalid.Wrapf("mint allocation to DAO must be greater than or equal to 0: got %f", -0.1),
},
{
desc: "valid MintAllocationDao",
mintAllocatioDao: tokenomicstypes.DefaultMintAllocationDao,
Expand Down

0 comments on commit 30a66dc

Please sign in to comment.