func (m Minter) BlockProvision(params Params) sdk.Coin {
	provisionAmt := m.AnnualProvisions.QuoInt(sdk.NewInt(int64(params.BlocksPerYear)))
	return sdk.NewCoin(params.MintDenom, provisionAmt.TruncateInt())
}
BlockProvision returns the provisions for a block based on the annual
provisions rate.
package types
import (
	"fmt"
	sdk "github.com/Dipper-Labs/Dipper-Protocol/types"
)
type Minter struct {
	Inflation         sdk.Dec `json:"inflation" yaml:"inflation"`                  
	AnnualProvisions  sdk.Dec `json:"annual_provisions" yaml:"annual_provisions"`  
	CurrentProvisions sdk.Dec `json:"current_provisions" yaml:"current_provisions"`
}
func NewMinter(inflation, annualProvisions, currentProvisions sdk.Dec) Minter {
	return Minter{
		Inflation:         inflation,
		AnnualProvisions:  annualProvisions,
		CurrentProvisions: currentProvisions,
	}
}
func InitialMinter(inflation sdk.Dec) Minter {
	return NewMinter(
		inflation,
		sdk.NewDec(0),
		sdk.NewDec(0),
	)
}
func DefaultInitialMinter() Minter {
	return InitialMinter(
		sdk.NewDecWithPrec(4, 2),
	)
}
func ValidateMinter(minter Minter) error {
	if minter.Inflation.LT(sdk.ZeroDec()) {
		return fmt.Errorf("mint parameter Inflation should be positive, is %s",
			minter.Inflation.String())
	}
	return nil
}
func (m Minter) NextInflationRate(params Params, bondedRatio sdk.Dec) sdk.Dec {
	inflationRateChangePerYear := sdk.OneDec().
		Sub(bondedRatio.Quo(params.GoalBonded)).
		Mul(params.InflationRateChange)
	inflationRateChange := inflationRateChangePerYear.Quo(sdk.NewDec(int64(params.BlocksPerYear)))
	inflation := m.Inflation.Add(inflationRateChange)  
	if inflation.GT(params.InflationMax) {
		inflation = params.InflationMax
	}
	if inflation.LT(params.InflationMin) {
		inflation = params.InflationMin
	}
	return inflation
}
func (m Minter) NextAnnualProvisions(_ Params, totalSupply sdk.Int) sdk.Dec {
	return m.Inflation.MulInt(totalSupply)
}