github.com/Finschia/finschia-sdk@v0.48.1/x/distribution/types/fee_pool.go (about) 1 package types 2 3 import ( 4 "fmt" 5 6 sdk "github.com/Finschia/finschia-sdk/types" 7 ) 8 9 // zero fee pool 10 func InitialFeePool() FeePool { 11 return FeePool{ 12 CommunityPool: sdk.DecCoins{}, 13 } 14 } 15 16 // ValidateGenesis validates the fee pool for a genesis state 17 func (f FeePool) ValidateGenesis() error { 18 if f.CommunityPool.IsAnyNegative() { 19 return fmt.Errorf("negative CommunityPool in distribution fee pool, is %v", 20 f.CommunityPool) 21 } 22 23 return nil 24 }