(goCtx context.Context, msg *types.MsgUpdatePools)
| 327 | } |
| 328 | |
| 329 | func (k msgServer) UpdatePools(goCtx context.Context, msg *types.MsgUpdatePools) (*types.MsgUpdatePoolsResponse, error) { |
| 330 | ctx := sdk.UnwrapSDKContext(goCtx) |
| 331 | signer, err := sdk.AccAddressFromBech32(msg.Signer) |
| 332 | if err != nil { |
| 333 | return nil, err |
| 334 | } |
| 335 | if !k.AdminKeeper().IsAdminAccount(ctx, admintypes.AdminType_MARGIN, signer) { |
| 336 | return nil, sdkerrors.Wrap(admintypes.ErrPermissionDenied, fmt.Sprintf("signer not authorised: %s", msg.Signer)) |
| 337 | } |
| 338 | |
| 339 | params := k.GetParams(ctx) |
| 340 | params.Pools = msg.Pools |
| 341 | params.ClosedPools = msg.ClosedPools |
| 342 | k.SetParams(ctx, ¶ms) |
| 343 | |
| 344 | return &types.MsgUpdatePoolsResponse{}, nil |
| 345 | } |
| 346 | |
| 347 | func (k msgServer) UpdateRowanCollateral(goCtx context.Context, msg *types.MsgUpdateRowanCollateral) (*types.MsgUpdateRowanCollateralResponse, error) { |
| 348 | ctx := sdk.UnwrapSDKContext(goCtx) |
nothing calls this directly
no test coverage detected