MCPcopy Create free account
hub / github.com/Sifchain/sifnode / GetSQParams

Method GetSQParams

x/margin/keeper/grpc_query.go:103–111  ·  view source on GitHub ↗
(ctx context.Context, request *types.GetSQParamsRequest)

Source from the content-addressed store, hash-verified

101}
102
103func (srv queryServer) GetSQParams(ctx context.Context, request *types.GetSQParamsRequest) (*types.GetSQParamsResponse, error) {
104 pool, err := srv.keeper.ClpKeeper().GetPool(sdk.UnwrapSDKContext(ctx), request.Pool)
105 if err != nil {
106 return nil, err
107 }
108 return &types.GetSQParamsResponse{
109 BeginBlock: int64(srv.keeper.GetSQBeginBlock(sdk.UnwrapSDKContext(ctx), &pool)),
110 }, nil
111}
112
113func (srv queryServer) IsWhitelisted(ctx context.Context, request *types.IsWhitelistedRequest) (*types.IsWhitelistedResponse, error) {
114 return &types.IsWhitelistedResponse{

Callers

nothing calls this directly

Calls 3

GetPoolMethod · 0.65
ClpKeeperMethod · 0.65
GetSQBeginBlockMethod · 0.65

Tested by

no test coverage detected