2024-02-01 10:58:34 +00:00
|
|
|
package keeper
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.vdb.to/cerc-io/laconic2d/x/bond"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GetMaxBondAmount max bond amount
|
|
|
|
func (k Keeper) GetMaxBondAmount(ctx sdk.Context) (res sdk.Coin) {
|
|
|
|
// TODO: Implement
|
2024-02-02 09:39:10 +00:00
|
|
|
return sdk.NewCoin(sdk.DefaultBondDenom, bond.DefaultMaxBondAmountTokens)
|
2024-02-01 10:58:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetParams - Get all parameter as types.Params.
|
|
|
|
func (k Keeper) GetParams(ctx sdk.Context) (params bond.Params) {
|
|
|
|
getMaxBondAmount := k.GetMaxBondAmount(ctx)
|
|
|
|
return bond.Params{MaxBondAmount: getMaxBondAmount}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetParams - set the params.
|
|
|
|
func (k Keeper) SetParams(ctx sdk.Context, params bond.Params) {
|
|
|
|
// TODO: Implement
|
|
|
|
}
|