From 95f760e2999898857ee0bb4012ce32d77cd5b714 Mon Sep 17 00:00:00 2001 From: VictorTrustyDev Date: Thu, 26 Sep 2024 14:49:51 +0700 Subject: [PATCH] patch 21 --- x/dymns/keeper/msg_server_register_name.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/dymns/keeper/msg_server_register_name.go b/x/dymns/keeper/msg_server_register_name.go index a0117a9a3..5a8ddaa63 100644 --- a/x/dymns/keeper/msg_server_register_name.go +++ b/x/dymns/keeper/msg_server_register_name.go @@ -24,7 +24,9 @@ func (k msgServer) RegisterName(goCtx context.Context, msg *dymnstypes.MsgRegist priceParams := k.PriceParams(ctx) - addDurationInSeconds := 86400 * 365 * msg.Duration + addDurationInSeconds := 86400 * // number of seconds per day + 365 * // number of days per year + msg.Duration // number of registration years firstYearPrice := priceParams.GetFirstYearDymNamePrice(msg.Name)