Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Nov 12, 2024
1 parent bb57927 commit 330dcb5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.
7 changes: 0 additions & 7 deletions x/protocolpool/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ func (k Keeper) InitGenesis(ctx context.Context, data *types.GenesisState) error
}

// sanity check to avoid trying to distribute more than what is available
<<<<<<< HEAD
if data.LastBalance.LT(totalToBeDistributed) {
return fmt.Errorf("total to be distributed is greater than the last balance")
}
=======
>>>>>>> 13c234f42 (feat(x/protocolpool)!: allow any coins in continuous funds (#21916))

if totalToBeDistributed.IsAnyGT(data.LastBalance.Amount) || !totalToBeDistributed.DenomsSubsetOf(data.LastBalance.Amount) {
return fmt.Errorf("total to be distributed is greater than the last balance: %s > %s", totalToBeDistributed, data.LastBalance.Amount)
}
Expand Down
43 changes: 1 addition & 42 deletions x/protocolpool/testutil/expected_keepers_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 330dcb5

Please sign in to comment.