(goCtx context.Context, msg *types.MsgUpdateRowanCollateral)
| 345 | } |
| 346 | |
| 347 | func (k msgServer) UpdateRowanCollateral(goCtx context.Context, msg *types.MsgUpdateRowanCollateral) (*types.MsgUpdateRowanCollateralResponse, error) { |
| 348 | ctx := sdk.UnwrapSDKContext(goCtx) |
| 349 | signer, err := sdk.AccAddressFromBech32(msg.Signer) |
| 350 | if err != nil { |
| 351 | return nil, err |
| 352 | } |
| 353 | if !k.AdminKeeper().IsAdminAccount(ctx, admintypes.AdminType_MARGIN, signer) { |
| 354 | return nil, sdkerrors.Wrap(admintypes.ErrPermissionDenied, fmt.Sprintf("signer not authorised: %s", msg.Signer)) |
| 355 | } |
| 356 | |
| 357 | params := k.GetParams(ctx) |
| 358 | params.RowanCollateralEnabled = msg.RowanCollateralEnabled |
| 359 | k.SetParams(ctx, ¶ms) |
| 360 | |
| 361 | return &types.MsgUpdateRowanCollateralResponse{}, nil |
| 362 | } |
| 363 | |
| 364 | func (k msgServer) Whitelist(goCtx context.Context, msg *types.MsgWhitelist) (*types.MsgWhitelistResponse, error) { |
| 365 | ctx := sdk.UnwrapSDKContext(goCtx) |
nothing calls this directly
no test coverage detected