Skip to content

Commit

Permalink
updates OracleScript for UpdatesStableCoinProposal
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Nov 12, 2024
1 parent ed56be2 commit 9a0152c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/psm/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9a0152c

Please sign in to comment.