From 9a0152c00da5dbd5955d07383aac63c5aabad105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDongLieu=E2=80=9D?= Date: Tue, 12 Nov 2024 15:13:45 +0700 Subject: [PATCH] updates OracleScript for UpdatesStableCoinProposal --- x/psm/keeper/msg_server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x/psm/keeper/msg_server.go b/x/psm/keeper/msg_server.go index 322a420..bdbd3f1 100644 --- a/x/psm/keeper/msg_server.go +++ b/x/psm/keeper/msg_server.go @@ -131,6 +131,11 @@ func (k msgServer) UpdatesStableCoinProposal(ctx context.Context, msg *types.Msg return &types.MsgUpdatesStableCoinResponse{}, err } + err = k.keeper.OracleKeeper.AddNewSymbolToBandOracleRequest(ctx, msg.Symbol, msg.OracleScript) + if err != nil { + return &types.MsgUpdatesStableCoinResponse{}, err + } + sdkCtx.EventManager().EmitEvent( sdk.NewEvent( types.EventAddStablecoin,