From a9d2f2f2224c6217af9c463206d24abfc2bc761e Mon Sep 17 00:00:00 2001 From: toteki <63419657+toteki@users.noreply.github.com> Date: Wed, 11 May 2022 16:27:06 -0700 Subject: [PATCH 1/4] feat: add MarketSummary query --- proto/umee/leverage/v1/query.proto | 27 + x/leverage/keeper/grpc_query.go | 36 ++ x/leverage/types/query.pb.go | 813 +++++++++++++++++++++++++---- x/leverage/types/query.pb.gw.go | 80 +++ 4 files changed, 862 insertions(+), 94 deletions(-) diff --git a/proto/umee/leverage/v1/query.proto b/proto/umee/leverage/v1/query.proto index a9545bd75f..c0479a13af 100644 --- a/proto/umee/leverage/v1/query.proto +++ b/proto/umee/leverage/v1/query.proto @@ -120,6 +120,11 @@ service Query { rpc LiquidationTargets(QueryLiquidationTargetsRequest) returns (QueryLiquidationTargetsResponse) { option (google.api.http).get = "/umee/leverage/v1/liquidation_targets"; } + + // MarketSummary queries a base asset's current borrowing and lending conditions. + rpc MarketSummary(QueryMarketSummaryRequest) returns (QueryMarketSummaryResponse) { + option (google.api.http).get = "/umee/leverage/v1/market_summary"; + } } // QueryRegisteredTokens defines the request structure for the RegisteredTokens @@ -356,3 +361,25 @@ message QueryLiquidationTargetsRequest {} message QueryLiquidationTargetsResponse { repeated string targets = 1; } + +// QueryMarketSummaryRequest defines the request structure for the +// MarketSummary gRPC service handler. +message QueryMarketSummaryRequest { + string denom = 1; +} + +// QueryMarketSummaryResponse defines the response structure for the +// MarketSummary gRPC service handler. +message QueryMarketSummaryResponse { + string symbol_denom = 1; + string uToken_exchange_rate = 2 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string lend_APY = 3 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string borrow_APY = 4 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string market_size = 5 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string available_borrow = 6 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; +} \ No newline at end of file diff --git a/x/leverage/keeper/grpc_query.go b/x/leverage/keeper/grpc_query.go index e1178bfa5d..86971213d5 100644 --- a/x/leverage/keeper/grpc_query.go +++ b/x/leverage/keeper/grpc_query.go @@ -558,3 +558,39 @@ func (q Querier) LiquidationTargets( return &types.QueryLiquidationTargetsResponse{Targets: stringTargets}, nil } + +func (q Querier) MarketSummary( + goCtx context.Context, + req *types.QueryMarketSummaryRequest, +) (*types.QueryMarketSummaryResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + if req.Denom == "" { + return nil, status.Error(codes.InvalidArgument, "invalid denom") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + token, err := q.Keeper.GetRegisteredToken(ctx, req.Denom) + if err != nil { + return nil, status.Error(codes.InvalidArgument, "not accepted Token denom") + } + rate := q.Keeper.DeriveExchangeRate(ctx, req.Denom) + lendAPY := q.Keeper.DeriveLendAPY(ctx, req.Denom) + borrowAPY := q.Keeper.DeriveBorrowAPY(ctx, req.Denom) + marketSizeCoin, err := q.Keeper.GetTotalLoaned(ctx, req.Denom) + if err != nil { + return nil, err + } + availableBorrow := q.Keeper.GetAvailableToBorrow(ctx, req.Denom) + + return &types.QueryMarketSummaryResponse{ + SymbolDenom: token.SymbolDenom, + UTokenExchangeRate: rate, + Lend_APY: lendAPY, + Borrow_APY: borrowAPY, + MarketSize: marketSizeCoin.Amount, + AvailableBorrow: availableBorrow, + }, nil +} diff --git a/x/leverage/types/query.pb.go b/x/leverage/types/query.pb.go index 5019c9a92c..55c6b871ee 100644 --- a/x/leverage/types/query.pb.go +++ b/x/leverage/types/query.pb.go @@ -1719,6 +1719,103 @@ func (m *QueryLiquidationTargetsResponse) GetTargets() []string { return nil } +// QueryMarketSummaryRequest defines the request structure for the +// MarketSummary gRPC service handler. +type QueryMarketSummaryRequest struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (m *QueryMarketSummaryRequest) Reset() { *m = QueryMarketSummaryRequest{} } +func (m *QueryMarketSummaryRequest) String() string { return proto.CompactTextString(m) } +func (*QueryMarketSummaryRequest) ProtoMessage() {} +func (*QueryMarketSummaryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1e8137dcabb0ccc7, []int{38} +} +func (m *QueryMarketSummaryRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMarketSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMarketSummaryRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryMarketSummaryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMarketSummaryRequest.Merge(m, src) +} +func (m *QueryMarketSummaryRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryMarketSummaryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMarketSummaryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMarketSummaryRequest proto.InternalMessageInfo + +func (m *QueryMarketSummaryRequest) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +// QueryMarketSummaryResponse defines the response structure for the +// MarketSummary gRPC service handler. +type QueryMarketSummaryResponse struct { + SymbolDenom string `protobuf:"bytes,1,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty"` + UTokenExchangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=uToken_exchange_rate,json=uTokenExchangeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"uToken_exchange_rate"` + Lend_APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=lend_APY,json=lendAPY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"lend_APY"` + Borrow_APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=borrow_APY,json=borrowAPY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"borrow_APY"` + MarketSize github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=market_size,json=marketSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"market_size"` + AvailableBorrow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=available_borrow,json=availableBorrow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"available_borrow"` +} + +func (m *QueryMarketSummaryResponse) Reset() { *m = QueryMarketSummaryResponse{} } +func (m *QueryMarketSummaryResponse) String() string { return proto.CompactTextString(m) } +func (*QueryMarketSummaryResponse) ProtoMessage() {} +func (*QueryMarketSummaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1e8137dcabb0ccc7, []int{39} +} +func (m *QueryMarketSummaryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMarketSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMarketSummaryResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryMarketSummaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMarketSummaryResponse.Merge(m, src) +} +func (m *QueryMarketSummaryResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryMarketSummaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMarketSummaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMarketSummaryResponse proto.InternalMessageInfo + +func (m *QueryMarketSummaryResponse) GetSymbolDenom() string { + if m != nil { + return m.SymbolDenom + } + return "" +} + func init() { proto.RegisterType((*QueryRegisteredTokens)(nil), "umeenetwork.umee.leverage.v1.QueryRegisteredTokens") proto.RegisterType((*QueryAvailableBorrowRequest)(nil), "umeenetwork.umee.leverage.v1.QueryAvailableBorrowRequest") @@ -1758,105 +1855,115 @@ func init() { proto.RegisterType((*QueryLiquidationLimitResponse)(nil), "umeenetwork.umee.leverage.v1.QueryLiquidationLimitResponse") proto.RegisterType((*QueryLiquidationTargetsRequest)(nil), "umeenetwork.umee.leverage.v1.QueryLiquidationTargetsRequest") proto.RegisterType((*QueryLiquidationTargetsResponse)(nil), "umeenetwork.umee.leverage.v1.QueryLiquidationTargetsResponse") + proto.RegisterType((*QueryMarketSummaryRequest)(nil), "umeenetwork.umee.leverage.v1.QueryMarketSummaryRequest") + proto.RegisterType((*QueryMarketSummaryResponse)(nil), "umeenetwork.umee.leverage.v1.QueryMarketSummaryResponse") } func init() { proto.RegisterFile("umee/leverage/v1/query.proto", fileDescriptor_1e8137dcabb0ccc7) } var fileDescriptor_1e8137dcabb0ccc7 = []byte{ - // 1481 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcd, 0x6f, 0xdc, 0xc4, - 0x1b, 0x8e, 0xdb, 0x5f, 0xd3, 0xf4, 0x4d, 0xfb, 0x4b, 0x3a, 0x04, 0x9a, 0x9a, 0x74, 0x37, 0xb8, - 0x69, 0x1b, 0x51, 0x62, 0x27, 0x1b, 0x4a, 0x4b, 0x5b, 0x24, 0xb2, 0xfd, 0x10, 0x85, 0x54, 0x6d, - 0xb7, 0x1f, 0x22, 0xe5, 0xb0, 0xf2, 0xae, 0xa7, 0x5b, 0x2b, 0x5e, 0x7b, 0x63, 0x7b, 0xb7, 0x4d, - 0xc5, 0x01, 0x71, 0xe0, 0x0a, 0x12, 0x48, 0x5c, 0x90, 0xe0, 0xc0, 0x01, 0x21, 0x84, 0x84, 0x04, - 0x12, 0x07, 0x0e, 0x1c, 0x7b,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x43, 0x61, 0x90, 0x97, 0xc2, 0x78, 0xcd, 0x10, 0x39, 0xcd, 0x2b, 0x1c, 0x46, 0xc8, 0x0f, - 0x12, 0xec, 0x4b, 0x0c, 0x3e, 0xe4, 0xe4, 0x10, 0xae, 0xe2, 0xbd, 0x52, 0x3e, 0x35, 0x3c, 0x10, - 0x89, 0xce, 0x33, 0xa2, 0x0a, 0x99, 0x1d, 0x4c, 0x94, 0xf7, 0x4c, 0x76, 0xb5, 0xbc, 0xb7, 0x0a, - 0x5d, 0x6d, 0x62, 0x26, 0x11, 0xba, 0xda, 0xe4, 0xfc, 0x91, 0x75, 0xb5, 0xbc, 0x0f, 0x93, 0x6f, - 0x25, 0x18, 0x8f, 0x75, 0x7b, 0x72, 0x42, 0xd8, 0x49, 0xe2, 0xf0, 0xde, 0x18, 0x16, 0x86, 0x04, - 0x8f, 0x32, 0x82, 0xb3, 0xa4, 0x30, 0x88, 0x20, 0x1e, 0xdc, 0xcf, 0x12, 0x4c, 0xf4, 0x88, 0x72, - 0xf2, 0xa6, 0x80, 0xcf, 0xfe, 0xea, 0x5f, 0x3e, 0x9d, 0x07, 0x8a, 0x94, 0x5f, 0x65, 0x94, 0xe7, - 0x88, 0x92, 0xa6, 0xac, 0x87, 0x90, 0x2a, 0xbf, 0x77, 0xf2, 0x95, 0x04, 0x7b, 0xba, 0xa2, 0x9d, - 0x88, 0x67, 0x41, 0x24, 0xc4, 0xe5, 0xd7, 0x87, 0x03, 0x21, 0xc9, 0x39, 0x46, 0xb2, 0x40, 0x66, - 0x06, 0x85, 0x64, 0x55, 0x6f, 0x6d, 0x92, 0x2f, 0x24, 0xd8, 0x8d, 0x52, 0x9e, 0x08, 0x45, 0x57, - 0xe2, 0x37, 0x02, 0xb9, 0x34, 0x0c, 0x64, 0xeb, 0xa4, 0xb6, 0xa8, 0x6d, 0x30, 0x5a, 0xdf, 0x48, - 0x00, 0x91, 0x54, 0x26, 0x22, 0x27, 0x90, 0x92, 0xe3, 0xf2, 0x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x5c, 0x8c, 0x90, 0x5f, 0x25, 0x98, 0xec, 0xd5, 0x02, 0x44, 0xe4, 0x3a, 0x07, 0x48, 0x0f, - 0xa1, 0x79, 0x79, 0x90, 0xf8, 0xc8, 0xaa, 0x69, 0x29, 0x51, 0x42, 0x7e, 0x97, 0x80, 0xa4, 0x65, - 0x02, 0x39, 0x3b, 0x1c, 0x81, 0xa4, 0xfe, 0x90, 0xdf, 0xca, 0x89, 0xc6, 0x0d, 0x2c, 0xb0, 0x0d, - 0x1c, 0x23, 0x47, 0xb2, 0x37, 0x80, 0x82, 0xa5, 0xfc, 0xee, 0xc3, 0x27, 0x05, 0xe9, 0xd1, 0x93, - 0x82, 0xf4, 0xcf, 0x93, 0x82, 0xf4, 0xd9, 0xd3, 0xc2, 0xc8, 0xa3, 0xa7, 0x85, 0x91, 0x3f, 0x9f, - 0x16, 0x46, 0x6e, 0x2f, 0xc6, 0x34, 0x56, 0x60, 0x6a, 0x01, 0x29, 0x71, 0xbb, 0x9d, 0x92, 0x76, - 0x3f, 0x32, 0xce, 0x14, 0x57, 0x6d, 0x94, 0xfd, 0x63, 0x64, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xe6, 0xfe, 0x73, 0x9f, 0xcb, 0x19, 0x00, 0x00, + // 1614 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcb, 0x6f, 0xdc, 0x54, + 0x17, 0x8f, 0x9b, 0x36, 0x8f, 0x93, 0xf4, 0x4b, 0x7a, 0xbf, 0x40, 0xa7, 0x26, 0x9d, 0x49, 0xdd, + 0xb4, 0x8d, 0x28, 0xf1, 0xe4, 0x41, 0x69, 0x69, 0x8b, 0x44, 0xd2, 0x87, 0x28, 0xa4, 0x6a, 0x3b, + 0x7d, 0x88, 0x94, 0xc5, 0xe0, 0x99, 0xb9, 0x9d, 0x5a, 0xf1, 0xd8, 0x13, 0xdb, 0x33, 0x6d, 0x2a, + 0x16, 0x88, 0x05, 0x5b, 0x90, 0x40, 0x62, 0x83, 0x04, 0x0b, 0x16, 0x08, 0xb1, 0x41, 0x02, 0x89, + 0x05, 0x0b, 0x96, 0x5d, 0x56, 0x62, 0x83, 0x90, 0x28, 0xa8, 0x45, 0xe2, 0xdf, 0x40, 0xbe, 0xf7, + 0x78, 0x6c, 0x8f, 0x3d, 0xce, 0x1d, 0xa7, 0x5d, 0x65, 0x7c, 0xed, 0xdf, 0x39, 0xbf, 0x7b, 0xef, + 0x79, 0x07, 0xa6, 0x5b, 0x0d, 0x4a, 0x8b, 0x06, 0x6d, 0x53, 0x5b, 0xab, 0xd3, 0x62, 0x7b, 0xb1, + 0xb8, 0xd9, 0xa2, 0xf6, 0x96, 0xda, 0xb4, 0x2d, 0xd7, 0x22, 0xec, 0xad, 0x49, 0xdd, 0x7b, 0x96, + 0xbd, 0xa1, 0x7a, 0xbf, 0x55, 0xff, 0x4b, 0xb5, 0xbd, 0x28, 0x4f, 0xd7, 0x2d, 0xab, 0x6e, 0xd0, + 0xa2, 0xd6, 0xd4, 0x8b, 0x9a, 0x69, 0x5a, 0xae, 0xe6, 0xea, 0x96, 0xe9, 0x70, 0xac, 0x5c, 0x88, + 0x49, 0xee, 0x60, 0xf9, 0x07, 0x53, 0x75, 0xab, 0x6e, 0xb1, 0x9f, 0x45, 0xef, 0x17, 0xae, 0xe6, + 0xab, 0x96, 0xd3, 0xb0, 0x9c, 0x62, 0x45, 0x73, 0x3c, 0x50, 0x85, 0xba, 0xda, 0x62, 0xb1, 0x6a, + 0xe9, 0x26, 0x7f, 0xaf, 0xec, 0x87, 0x17, 0xae, 0x79, 0x0c, 0x4b, 0xb4, 0xae, 0x3b, 0x2e, 0xb5, + 0x69, 0xed, 0x86, 0xb5, 0x41, 0x4d, 0x47, 0x59, 0x86, 0x97, 0xd8, 0x8b, 0x95, 0xb6, 0xa6, 0x1b, + 0x5a, 0xc5, 0xa0, 0xab, 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, 0x91, 0x82, 0x55, 0xe8, 0x6a, 0xa3, 0xc5, 0x69, 0xda, 0xd5, 0xf2, 0x22, 0x8d, 0x7c, 0x23, + 0xc1, 0x58, 0xa8, 0x14, 0x24, 0x27, 0x84, 0x95, 0x44, 0x0e, 0xef, 0xb5, 0x7e, 0x61, 0x48, 0xf0, + 0x28, 0x23, 0x38, 0x43, 0xf2, 0xbd, 0x08, 0xe2, 0xc1, 0xfd, 0x28, 0xc1, 0x44, 0xd7, 0xc4, 0x86, + 0xbc, 0x2e, 0xa0, 0x33, 0x79, 0x34, 0x24, 0x9f, 0xce, 0x02, 0x45, 0xca, 0x2f, 0x33, 0xca, 0xb3, + 0x44, 0x89, 0x53, 0xee, 0x8e, 0x67, 0xe4, 0x4b, 0x09, 0x46, 0x3b, 0x13, 0x1d, 0x22, 0xee, 0x05, + 0xc1, 0x94, 0x46, 0x7e, 0xb5, 0x3f, 0x10, 0x92, 0x9c, 0x65, 0x24, 0xf3, 0x64, 0xba, 0x97, 0x49, + 0x96, 0xb5, 0xe6, 0x16, 0xf9, 0x5c, 0x82, 0x61, 0x9c, 0xf3, 0x10, 0x21, 0xeb, 0x8a, 0x0c, 0x90, + 0xe4, 0xa5, 0x7e, 0x20, 0xdb, 0x3b, 0x35, 0x4b, 0x7c, 0x1e, 0xad, 0xaf, 0x25, 0x80, 0x60, 0x8e, + 0x42, 0x44, 0x4e, 0x20, 0x36, 0xab, 0x91, 0x4f, 0xf4, 0x89, 0x42, 0x7e, 0x47, 0x18, 0xbf, 0x02, + 0x39, 0x18, 0xe7, 0x17, 0x4a, 0x7f, 0xe4, 0x27, 0x09, 0x26, 0xba, 0xe6, 0x3d, 0x42, 0xf6, 0x98, + 0x3c, 0x58, 0x12, 0xb2, 0xc7, 0x1e, 0xe3, 0xa5, 0xb4, 0xdc, 0xc2, 0x12, 0x4a, 0x39, 0xcc, 0xdb, + 0x8b, 0x97, 0x91, 0xbe, 0x4a, 0x28, 0x5e, 0x26, 0x35, 0x6f, 0x42, 0xf1, 0x32, 0xb1, 0x85, 0x4b, + 0x8b, 0x97, 0x36, 0x07, 0x94, 0x79, 0x93, 0x46, 0x7e, 0x91, 0x60, 0x5f, 0xac, 0x9f, 0x22, 0x22, + 0xa9, 0xb8, 0x57, 0x5b, 0x27, 0x9f, 0xcd, 0x06, 0x46, 0xea, 0xaf, 0x30, 0xea, 0x47, 0xc9, 0x6c, + 0x9c, 0x7a, 0x68, 0x7a, 0xe1, 0x20, 0xd1, 0xaf, 0x24, 0x80, 0x40, 0x96, 0x90, 0x21, 0xc7, 0x3a, + 0x40, 0x21, 0x43, 0x8e, 0x37, 0x7b, 0x69, 0x11, 0x20, 0x60, 0xca, 0xe2, 0x6a, 0xd7, 0x44, 0x46, + 0xc8, 0x8e, 0x93, 0x87, 0x42, 0x42, 0x76, 0xdc, 0x63, 0x00, 0x94, 0x16, 0x57, 0xbb, 0x07, 0x43, + 0xe4, 0x5b, 0x09, 0xc6, 0x23, 0x75, 0xb3, 0x48, 0xfe, 0x49, 0xe8, 0x44, 0xe5, 0x93, 0x7d, 0xe3, + 0x90, 0xed, 0x31, 0xc6, 0xf6, 0x10, 0x29, 0xc4, 0xd9, 0x46, 0x7a, 0x03, 0x96, 0x60, 0x43, 0xad, + 0xa2, 0x50, 0x82, 0x8d, 0xf7, 0xa3, 0x42, 0x09, 0x36, 0xa1, 0x23, 0x4d, 0x4b, 0xb0, 0xe1, 0x4e, + 0x95, 0xfc, 0x2c, 0xc1, 0x64, 0x77, 0xa3, 0x48, 0x44, 0xae, 0xb3, 0x47, 0x5f, 0x2a, 0x54, 0x2f, + 0xf7, 0xea, 0x4c, 0xd3, 0x62, 0x5a, 0xac, 0x63, 0x25, 0xbf, 0x4a, 0x40, 0xe2, 0x3d, 0x24, 0x39, + 0xdb, 0x1f, 0x81, 0x68, 0x73, 0x2a, 0xbf, 0x91, 0x11, 0x8d, 0x1b, 0x98, 0x67, 0x1b, 0x38, 0x46, + 0x8e, 0xa4, 0x6f, 0x00, 0xbb, 0x59, 0x16, 0x96, 0x23, 0x5d, 0xa9, 0x50, 0x58, 0x4e, 0xea, 0x7d, + 0x85, 0xc2, 0x72, 0x62, 0x03, 0x9c, 0x16, 0x96, 0xfd, 0x14, 0xc2, 0x11, 0xab, 0x6f, 0x3f, 0x7c, + 0x92, 0x97, 0x1e, 0x3d, 0xc9, 0x4b, 0x7f, 0x3f, 0xc9, 0x4b, 0x9f, 0x3e, 0xcd, 0x0f, 0x3c, 0x7a, + 0x9a, 0x1f, 0xf8, 0xfd, 0x69, 0x7e, 0xe0, 0xf6, 0x42, 0xa8, 0x65, 0xf3, 0xa4, 0xcc, 0x23, 0x11, + 0x2e, 0xb2, 0xbd, 0x54, 0xbc, 0x1f, 0xc8, 0x65, 0x0d, 0x5c, 0x65, 0x88, 0xfd, 0x93, 0x6f, 0xf9, + 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x53, 0xc7, 0x00, 0x8c, 0x97, 0x1c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1925,6 +2032,8 @@ type QueryClient interface { LiquidationLimit(ctx context.Context, in *QueryLiquidationLimitRequest, opts ...grpc.CallOption) (*QueryLiquidationLimitResponse, error) // LiquidationTargets queries a list of all borrower addresses eligible for liquidation. LiquidationTargets(ctx context.Context, in *QueryLiquidationTargetsRequest, opts ...grpc.CallOption) (*QueryLiquidationTargetsResponse, error) + // MarketSummary queries a base asset's current borrowing and lending conditions. + MarketSummary(ctx context.Context, in *QueryMarketSummaryRequest, opts ...grpc.CallOption) (*QueryMarketSummaryResponse, error) } type queryClient struct { @@ -2106,6 +2215,15 @@ func (c *queryClient) LiquidationTargets(ctx context.Context, in *QueryLiquidati return out, nil } +func (c *queryClient) MarketSummary(ctx context.Context, in *QueryMarketSummaryRequest, opts ...grpc.CallOption) (*QueryMarketSummaryResponse, error) { + out := new(QueryMarketSummaryResponse) + err := c.cc.Invoke(ctx, "/umeenetwork.umee.leverage.v1.Query/MarketSummary", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // RegisteredTokens queries for all the registered tokens. @@ -2162,6 +2280,8 @@ type QueryServer interface { LiquidationLimit(context.Context, *QueryLiquidationLimitRequest) (*QueryLiquidationLimitResponse, error) // LiquidationTargets queries a list of all borrower addresses eligible for liquidation. LiquidationTargets(context.Context, *QueryLiquidationTargetsRequest) (*QueryLiquidationTargetsResponse, error) + // MarketSummary queries a base asset's current borrowing and lending conditions. + MarketSummary(context.Context, *QueryMarketSummaryRequest) (*QueryMarketSummaryResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -2225,6 +2345,9 @@ func (*UnimplementedQueryServer) LiquidationLimit(ctx context.Context, req *Quer func (*UnimplementedQueryServer) LiquidationTargets(ctx context.Context, req *QueryLiquidationTargetsRequest) (*QueryLiquidationTargetsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LiquidationTargets not implemented") } +func (*UnimplementedQueryServer) MarketSummary(ctx context.Context, req *QueryMarketSummaryRequest) (*QueryMarketSummaryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MarketSummary not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -2572,6 +2695,24 @@ func _Query_LiquidationTargets_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Query_MarketSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryMarketSummaryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).MarketSummary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/umeenetwork.umee.leverage.v1.Query/MarketSummary", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).MarketSummary(ctx, req.(*QueryMarketSummaryRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "umeenetwork.umee.leverage.v1.Query", HandlerType: (*QueryServer)(nil), @@ -2652,6 +2793,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "LiquidationTargets", Handler: _Query_LiquidationTargets_Handler, }, + { + MethodName: "MarketSummary", + Handler: _Query_MarketSummary_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "umee/leverage/v1/query.proto", @@ -3897,6 +4042,116 @@ func (m *QueryLiquidationTargetsResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } +func (m *QueryMarketSummaryRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryMarketSummaryRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMarketSummaryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryMarketSummaryResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryMarketSummaryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.AvailableBorrow.Size() + i -= size + if _, err := m.AvailableBorrow.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.MarketSize.Size() + i -= size + if _, err := m.MarketSize.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.Borrow_APY.Size() + i -= size + if _, err := m.Borrow_APY.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.Lend_APY.Size() + i -= size + if _, err := m.Lend_APY.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.UTokenExchangeRate.Size() + i -= size + if _, err := m.UTokenExchangeRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.SymbolDenom) > 0 { + i -= len(m.SymbolDenom) + copy(dAtA[i:], m.SymbolDenom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.SymbolDenom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -4401,6 +4656,42 @@ func (m *QueryLiquidationTargetsResponse) Size() (n int) { return n } +func (m *QueryMarketSummaryRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryMarketSummaryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SymbolDenom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = m.UTokenExchangeRate.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.Lend_APY.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.Borrow_APY.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.MarketSize.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.AvailableBorrow.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -7672,6 +7963,340 @@ func (m *QueryLiquidationTargetsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryMarketSummaryRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMarketSummaryRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMarketSummaryRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMarketSummaryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMarketSummaryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SymbolDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SymbolDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UTokenExchangeRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.UTokenExchangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lend_APY", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Lend_APY.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Borrow_APY", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Borrow_APY.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MarketSize", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MarketSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableBorrow", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AvailableBorrow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/leverage/types/query.pb.gw.go b/x/leverage/types/query.pb.gw.go index 7df027a257..c7b5e81226 100644 --- a/x/leverage/types/query.pb.gw.go +++ b/x/leverage/types/query.pb.gw.go @@ -661,6 +661,42 @@ func local_request_Query_LiquidationTargets_0(ctx context.Context, marshaler run } +var ( + filter_Query_MarketSummary_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_MarketSummary_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryMarketSummaryRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MarketSummary_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.MarketSummary(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_MarketSummary_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryMarketSummaryRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MarketSummary_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.MarketSummary(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -1047,6 +1083,26 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_MarketSummary_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_MarketSummary_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_MarketSummary_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1468,6 +1524,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_MarketSummary_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_MarketSummary_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_MarketSummary_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1509,6 +1585,8 @@ var ( pattern_Query_LiquidationLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"umee", "leverage", "v1", "liquidation_limit"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_LiquidationTargets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"umee", "leverage", "v1", "liquidation_targets"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_MarketSummary_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"umee", "leverage", "v1", "market_summary"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( @@ -1549,4 +1627,6 @@ var ( forward_Query_LiquidationLimit_0 = runtime.ForwardResponseMessage forward_Query_LiquidationTargets_0 = runtime.ForwardResponseMessage + + forward_Query_MarketSummary_0 = runtime.ForwardResponseMessage ) From 5f9132387f1b2b1dc560558f606680a2f012e7e9 Mon Sep 17 00:00:00 2001 From: toteki <63419657+toteki@users.noreply.github.com> Date: Wed, 11 May 2022 16:33:40 -0700 Subject: [PATCH 2/4] cl++ --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 025c3f24b6..d8db50396e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Features - [860](https://github.com/umee-network/umee/pull/860) Add IBC upgrade and upgrade-client gov proposals. +- [894](https://github.com/umee-network/umee/pull/894) Add MarketSummary query ### Improvements From 2769c71e28a3d6940c60b9bd94a24d81bff69f3d Mon Sep 17 00:00:00 2001 From: toteki <63419657+toteki@users.noreply.github.com> Date: Wed, 11 May 2022 16:36:59 -0700 Subject: [PATCH 3/4] include market size usd --- proto/umee/leverage/v1/query.proto | 4 +- x/leverage/keeper/grpc_query.go | 6 + x/leverage/types/query.pb.go | 254 +++++++++++++++++------------ 3 files changed, 160 insertions(+), 104 deletions(-) diff --git a/proto/umee/leverage/v1/query.proto b/proto/umee/leverage/v1/query.proto index c0479a13af..615a3b027a 100644 --- a/proto/umee/leverage/v1/query.proto +++ b/proto/umee/leverage/v1/query.proto @@ -380,6 +380,8 @@ message QueryMarketSummaryResponse { [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; string market_size = 5 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; - string available_borrow = 6 + string market_size_USD = 6 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string available_borrow = 7 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } \ No newline at end of file diff --git a/x/leverage/keeper/grpc_query.go b/x/leverage/keeper/grpc_query.go index 86971213d5..78e82ff79b 100644 --- a/x/leverage/keeper/grpc_query.go +++ b/x/leverage/keeper/grpc_query.go @@ -583,6 +583,11 @@ func (q Querier) MarketSummary( if err != nil { return nil, err } + marketSizeUSD, err := q.Keeper.TokenValue(ctx, marketSizeCoin) + if err != nil { + return nil, err + } + availableBorrow := q.Keeper.GetAvailableToBorrow(ctx, req.Denom) return &types.QueryMarketSummaryResponse{ @@ -591,6 +596,7 @@ func (q Querier) MarketSummary( Lend_APY: lendAPY, Borrow_APY: borrowAPY, MarketSize: marketSizeCoin.Amount, + MarketSize_USD: marketSizeUSD, AvailableBorrow: availableBorrow, }, nil } diff --git a/x/leverage/types/query.pb.go b/x/leverage/types/query.pb.go index 55c6b871ee..d5b86504aa 100644 --- a/x/leverage/types/query.pb.go +++ b/x/leverage/types/query.pb.go @@ -1773,7 +1773,8 @@ type QueryMarketSummaryResponse struct { Lend_APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=lend_APY,json=lendAPY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"lend_APY"` Borrow_APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=borrow_APY,json=borrowAPY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"borrow_APY"` MarketSize github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=market_size,json=marketSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"market_size"` - AvailableBorrow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=available_borrow,json=availableBorrow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"available_borrow"` + MarketSize_USD github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=market_size_USD,json=marketSizeUSD,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"market_size_USD"` + AvailableBorrow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=available_borrow,json=availableBorrow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"available_borrow"` } func (m *QueryMarketSummaryResponse) Reset() { *m = QueryMarketSummaryResponse{} } @@ -1862,108 +1863,109 @@ func init() { func init() { proto.RegisterFile("umee/leverage/v1/query.proto", fileDescriptor_1e8137dcabb0ccc7) } var fileDescriptor_1e8137dcabb0ccc7 = []byte{ - // 1614 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcb, 0x6f, 0xdc, 0x54, - 0x17, 0x8f, 0x9b, 0x36, 0x8f, 0x93, 0xf4, 0x4b, 0x7a, 0xbf, 0x40, 0xa7, 0x26, 0x9d, 0x49, 0xdd, - 0xb4, 0x8d, 0x28, 0xf1, 0xe4, 0x41, 0x69, 0x69, 0x8b, 0x44, 0xd2, 0x87, 0x28, 0xa4, 0x6a, 0x3b, - 0x7d, 0x88, 0x94, 0xc5, 0xe0, 0x99, 0xb9, 0x9d, 0x5a, 0xf1, 0xd8, 0x13, 0xdb, 0x33, 0x6d, 0x2a, - 0x16, 0x88, 0x05, 0x5b, 0x90, 0x40, 0x62, 0x83, 0x04, 0x0b, 0x16, 0x08, 0xb1, 0x41, 0x02, 0x89, - 0x05, 0x0b, 0x96, 0x5d, 0x56, 0x62, 0x83, 0x90, 0x28, 0xa8, 0x45, 0xe2, 0xdf, 0x40, 0xbe, 0xf7, - 0x78, 0x6c, 0x8f, 0x3d, 0xce, 0x1d, 0xa7, 0x5d, 0x65, 0x7c, 0xed, 0xdf, 0x39, 0xbf, 0x7b, 0xef, - 0x79, 0x07, 0xa6, 0x5b, 0x0d, 0x4a, 0x8b, 0x06, 0x6d, 0x53, 0x5b, 0xab, 0xd3, 0x62, 0x7b, 0xb1, - 0xb8, 0xd9, 0xa2, 0x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0x46, 0x3b, 0x13, 0x1d, 0x22, 0xee, 0x05, - 0xc1, 0x94, 0x46, 0x7e, 0xb5, 0x3f, 0x10, 0x92, 0x9c, 0x65, 0x24, 0xf3, 0x64, 0xba, 0x97, 0x49, - 0x96, 0xb5, 0xe6, 0x16, 0xf9, 0x5c, 0x82, 0x61, 0x9c, 0xf3, 0x10, 0x21, 0xeb, 0x8a, 0x0c, 0x90, - 0xe4, 0xa5, 0x7e, 0x20, 0xdb, 0x3b, 0x35, 0x4b, 0x7c, 0x1e, 0xad, 0xaf, 0x25, 0x80, 0x60, 0x8e, - 0x42, 0x44, 0x4e, 0x20, 0x36, 0xab, 0x91, 0x4f, 0xf4, 0x89, 0x42, 0x7e, 0x47, 0x18, 0xbf, 0x02, - 0x39, 0x18, 0xe7, 0x17, 0x4a, 0x7f, 0xe4, 0x27, 0x09, 0x26, 0xba, 0xe6, 0x3d, 0x42, 0xf6, 0x98, - 0x3c, 0x58, 0x12, 0xb2, 0xc7, 0x1e, 0xe3, 0xa5, 0xb4, 0xdc, 0xc2, 0x12, 0x4a, 0x39, 0xcc, 0xdb, - 0x8b, 0x97, 0x91, 0xbe, 0x4a, 0x28, 0x5e, 0x26, 0x35, 0x6f, 0x42, 0xf1, 0x32, 0xb1, 0x85, 0x4b, - 0x8b, 0x97, 0x36, 0x07, 0x94, 0x79, 0x93, 0x46, 0x7e, 0x91, 0x60, 0x5f, 0xac, 0x9f, 0x22, 0x22, - 0xa9, 0xb8, 0x57, 0x5b, 0x27, 0x9f, 0xcd, 0x06, 0x46, 0xea, 0xaf, 0x30, 0xea, 0x47, 0xc9, 0x6c, - 0x9c, 0x7a, 0x68, 0x7a, 0xe1, 0x20, 0xd1, 0xaf, 0x24, 0x80, 0x40, 0x96, 0x90, 0x21, 0xc7, 0x3a, - 0x40, 0x21, 0x43, 0x8e, 0x37, 0x7b, 0x69, 0x11, 0x20, 0x60, 0xca, 0xe2, 0x6a, 0xd7, 0x44, 0x46, - 0xc8, 0x8e, 0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c, 0x65, 0x88, 0xfd, 0x93, 0x6f, 0xf9, - 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x53, 0xc7, 0x00, 0x8c, 0x97, 0x1c, 0x00, 0x00, + // 1630 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcd, 0x6f, 0xdc, 0xd4, + 0x16, 0x8f, 0xfb, 0x91, 0x8f, 0x93, 0xf4, 0x25, 0xbd, 0x2f, 0xef, 0x75, 0xea, 0x97, 0x4e, 0x52, + 0x37, 0x6d, 0xa3, 0x57, 0xe2, 0xc9, 0x07, 0xa5, 0xa5, 0x2d, 0x12, 0x49, 0xd3, 0x8a, 0x42, 0xaa, + 0xb6, 0x93, 0xb6, 0x22, 0x65, 0x31, 0x78, 0x66, 0x6e, 0xa7, 0x56, 0x3c, 0xf6, 0xc4, 0xf6, 0x4c, + 0x9b, 0x8a, 0x05, 0x62, 0xc1, 0x16, 0x24, 0x90, 0xd8, 0x20, 0xc1, 0x82, 0x05, 0x42, 0x6c, 0x90, + 0x40, 0x62, 0x81, 0x04, 0xcb, 0x2e, 0x2b, 0xb1, 0x41, 0x48, 0x14, 0xd4, 0xf2, 0x87, 0x20, 0xdf, + 0x7b, 0x3c, 0xfe, 0x9a, 0x71, 0xee, 0x78, 0xda, 0x55, 0xc6, 0xd7, 0xfe, 0x9d, 0xf3, 0xbb, 0xf7, + 0xfe, 0xee, 0xb9, 0xe7, 0x9c, 0xc0, 0x54, 0xb3, 0x4e, 0x69, 0xc1, 0xa0, 0x2d, 0x6a, 0x6b, 0x35, + 0x5a, 0x68, 0x2d, 0x16, 0xb6, 0x9b, 0xd4, 0xde, 0x51, 0x1b, 0xb6, 0xe5, 0x5a, 0x84, 0xbd, 0x35, + 0xa9, 0x7b, 0xdf, 0xb2, 0xb7, 0x54, 0xef, 0xb7, 0xea, 0x7f, 0xa9, 0xb6, 0x16, 0xe5, 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xfa, 0xf7, 0x27, 0x7b, 0x8e, 0x93, 0x63, 0x85, 0x44, 0xe9, 0x6d, + 0xb7, 0x31, 0x25, 0x97, 0xd3, 0xfb, 0x48, 0x82, 0x41, 0x9e, 0x76, 0x93, 0x05, 0x01, 0xa7, 0x91, + 0xac, 0x5f, 0x5e, 0xec, 0x01, 0x81, 0xe4, 0x66, 0x18, 0x39, 0x99, 0xe4, 0x92, 0xe4, 0x78, 0xbe, + 0x4f, 0x3e, 0x93, 0x60, 0xd8, 0xcf, 0x69, 0xc9, 0x92, 0x80, 0x87, 0x58, 0x61, 0x20, 0x2f, 0xf7, + 0x84, 0x41, 0x5e, 0x0a, 0xe3, 0x35, 0x45, 0xe4, 0x24, 0x2f, 0x3f, 0x03, 0x26, 0xdf, 0x4a, 0x70, + 0x20, 0x92, 0x6d, 0x93, 0x33, 0x3d, 0xb8, 0x0a, 0x27, 0x68, 0xf2, 0xd9, 0xde, 0x81, 0x48, 0x74, + 0x8e, 0x11, 0x55, 0xc8, 0x4c, 0x77, 0xa2, 0x3c, 0x51, 0x63, 0x5b, 0xcb, 0x13, 0x3a, 0xa1, 0xad, + 0x8d, 0x24, 0xc2, 0x42, 0x5b, 0x1b, 0x4d, 0x7a, 0xd3, 0xb6, 0x96, 0x27, 0x7f, 0xe4, 0x2b, 0x09, + 0x46, 0x43, 0x29, 0x26, 0x39, 0x2d, 0xec, 0x24, 0xb2, 0x78, 0xaf, 0xf4, 0x0a, 0x43, 0x82, 0x27, + 0x18, 0xc1, 0x19, 0x92, 0xef, 0x46, 0x10, 0x17, 0xee, 0x7b, 0x09, 0xc6, 0x63, 0x9d, 0x20, 0xf2, + 0xaa, 0x80, 0xcf, 0xce, 0x2d, 0x27, 0xf9, 0x5c, 0x16, 0x28, 0x52, 0xfe, 0x3f, 0xa3, 0x3c, 0x4b, + 0x94, 0x24, 0xe5, 0x78, 0x3c, 0x23, 0x9f, 0x4b, 0x30, 0xd2, 0xee, 0x14, 0x11, 0xf1, 0x53, 0x10, + 0x74, 0x7f, 0xe4, 0x97, 0x7b, 0x03, 0x21, 0xc9, 0x59, 0x46, 0x32, 0x4f, 0xa6, 0xba, 0x49, 0xb2, + 0xa4, 0x35, 0x76, 0xc8, 0xa7, 0x12, 0x0c, 0x61, 0xff, 0x88, 0x08, 0xa9, 0x2b, 0xd2, 0x98, 0x92, + 0x97, 0x7a, 0x81, 0xec, 0x7e, 0xa8, 0xd9, 0x85, 0xea, 0xd1, 0xfa, 0x52, 0x02, 0x08, 0xfa, 0x33, + 0x44, 0x64, 0x05, 0x12, 0x3d, 0x20, 0xf9, 0x74, 0x8f, 0x28, 0xe4, 0x77, 0x9c, 0xf1, 0x9b, 0x26, + 0x47, 0x92, 0xfc, 0x42, 0xb7, 0x20, 0xf9, 0x41, 0x82, 0xf1, 0x58, 0x1f, 0x49, 0x48, 0x8f, 0x9d, + 0x1b, 0x56, 0x42, 0x7a, 0xec, 0xd2, 0xb6, 0x4a, 0xbb, 0x5b, 0xd8, 0x85, 0x52, 0x0a, 0xf3, 0xf6, + 0xe2, 0x65, 0xa4, 0x5e, 0x13, 0x8a, 0x97, 0x9d, 0x8a, 0x42, 0xa1, 0x78, 0xd9, 0xb1, 0x34, 0x4c, + 0x8b, 0x97, 0x36, 0x07, 0x94, 0x78, 0xf1, 0x47, 0x7e, 0x92, 0xe0, 0x60, 0xa2, 0x4e, 0x23, 0x22, + 0x57, 0x71, 0xb7, 0x72, 0x51, 0xbe, 0x90, 0x0d, 0x8c, 0xd4, 0x5f, 0x62, 0xd4, 0x4f, 0x90, 0xd9, + 0x24, 0xf5, 0x50, 0x57, 0xc4, 0x41, 0xa2, 0x5f, 0x48, 0x00, 0x81, 0x2d, 0x21, 0x21, 0x27, 0x2a, + 0x4b, 0x21, 0x21, 0x27, 0x8b, 0xc8, 0xb4, 0x08, 0x10, 0x30, 0x65, 0x71, 0x35, 0xd6, 0xe9, 0x11, + 0xd2, 0x71, 0xe7, 0x66, 0x93, 0x90, 0x8e, 0xbb, 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x64, 0xff, 0x3c, 0x5c, + 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0x7c, 0x2c, 0xfd, 0x7a, 0xef, 0x1c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -4101,6 +4103,16 @@ func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x3a + { + size := m.MarketSize_USD.Size() + i -= size + if _, err := m.MarketSize_USD.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x32 { size := m.MarketSize.Size() @@ -4687,6 +4699,8 @@ func (m *QueryMarketSummaryResponse) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) l = m.MarketSize.Size() n += 1 + l + sovQuery(uint64(l)) + l = m.MarketSize_USD.Size() + n += 1 + l + sovQuery(uint64(l)) l = m.AvailableBorrow.Size() n += 1 + l + sovQuery(uint64(l)) return n @@ -8243,6 +8257,40 @@ func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MarketSize_USD", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MarketSize_USD.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AvailableBorrow", wireType) } From 4746ae1409de6157fe7130367a6c0a84b68d1b58 Mon Sep 17 00:00:00 2001 From: toteki <63419657+toteki@users.noreply.github.com> Date: Wed, 11 May 2022 16:52:56 -0700 Subject: [PATCH 4/4] exponent++ --- proto/umee/leverage/v1/query.proto | 17 +- x/leverage/keeper/grpc_query.go | 24 +- x/leverage/spec/03_queries.md | 1 + x/leverage/types/query.pb.go | 353 ++++++++++++++++++----------- 4 files changed, 245 insertions(+), 150 deletions(-) diff --git a/proto/umee/leverage/v1/query.proto b/proto/umee/leverage/v1/query.proto index 615a3b027a..7fbdc904e2 100644 --- a/proto/umee/leverage/v1/query.proto +++ b/proto/umee/leverage/v1/query.proto @@ -372,16 +372,19 @@ message QueryMarketSummaryRequest { // MarketSummary gRPC service handler. message QueryMarketSummaryResponse { string symbol_denom = 1; - string uToken_exchange_rate = 2 + uint32 exponent = 2; + string oracle_price = 3 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = true]; + string uToken_exchange_rate = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; - string lend_APY = 3 + string lend_APY = 5 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; - string borrow_APY = 4 + string borrow_APY = 6 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; - string market_size = 5 + string market_size = 7 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; - string market_size_USD = 6 - [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; - string available_borrow = 7 + string available_borrow = 8 + [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string reserved = 9 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } \ No newline at end of file diff --git a/x/leverage/keeper/grpc_query.go b/x/leverage/keeper/grpc_query.go index 78e82ff79b..2eeb9ae3bc 100644 --- a/x/leverage/keeper/grpc_query.go +++ b/x/leverage/keeper/grpc_query.go @@ -579,24 +579,24 @@ func (q Querier) MarketSummary( rate := q.Keeper.DeriveExchangeRate(ctx, req.Denom) lendAPY := q.Keeper.DeriveLendAPY(ctx, req.Denom) borrowAPY := q.Keeper.DeriveBorrowAPY(ctx, req.Denom) - marketSizeCoin, err := q.Keeper.GetTotalLoaned(ctx, req.Denom) - if err != nil { - return nil, err - } - marketSizeUSD, err := q.Keeper.TokenValue(ctx, marketSizeCoin) - if err != nil { - return nil, err - } - + marketSizeCoin, _ := q.Keeper.GetTotalLoaned(ctx, req.Denom) availableBorrow := q.Keeper.GetAvailableToBorrow(ctx, req.Denom) + reserved := q.Keeper.GetReserveAmount(ctx, req.Denom) - return &types.QueryMarketSummaryResponse{ + resp := types.QueryMarketSummaryResponse{ SymbolDenom: token.SymbolDenom, + Exponent: token.Exponent, UTokenExchangeRate: rate, Lend_APY: lendAPY, Borrow_APY: borrowAPY, MarketSize: marketSizeCoin.Amount, - MarketSize_USD: marketSizeUSD, AvailableBorrow: availableBorrow, - }, nil + Reserved: reserved, + } + + if oraclePrice, oracleErr := q.Keeper.TokenPrice(ctx, req.Denom); oracleErr == nil { + resp.OraclePrice = &oraclePrice + } + + return &resp, nil } diff --git a/x/leverage/spec/03_queries.md b/x/leverage/spec/03_queries.md index 9cd785fb17..01ae91f9ba 100644 --- a/x/leverage/spec/03_queries.md +++ b/x/leverage/spec/03_queries.md @@ -14,6 +14,7 @@ Queries on accepted asset types: - **Exchange Rate** queries the [uToken Exchange Rate](01_concepts.md#uToken-Exchange-Rate) of a given uToken denomination. - **Market Size** queries the [Market Size](01_concepts.md#Market-Size) of a specified denomination. - **Token Market Size** queries the [Market Size](01_concepts.md#Market-Size) of a specified denomination, but denominated in base tokens instead of USD. This amounts to _total loaned by all lenders + interest accrued._ +- **Market Summary** combines several asset-specifying queries for more efficient frontend access. Queries on account addresses: - **Borrowed** queries for the amount of a given token denomination borrowed by a user. If a denomination is not supplied, the total for each borrowed token is returned. diff --git a/x/leverage/types/query.pb.go b/x/leverage/types/query.pb.go index d5b86504aa..81b253aef7 100644 --- a/x/leverage/types/query.pb.go +++ b/x/leverage/types/query.pb.go @@ -1768,13 +1768,15 @@ func (m *QueryMarketSummaryRequest) GetDenom() string { // QueryMarketSummaryResponse defines the response structure for the // MarketSummary gRPC service handler. type QueryMarketSummaryResponse struct { - SymbolDenom string `protobuf:"bytes,1,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty"` - UTokenExchangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=uToken_exchange_rate,json=uTokenExchangeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"uToken_exchange_rate"` - Lend_APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=lend_APY,json=lendAPY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"lend_APY"` - Borrow_APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=borrow_APY,json=borrowAPY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"borrow_APY"` - MarketSize github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=market_size,json=marketSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"market_size"` - MarketSize_USD github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=market_size_USD,json=marketSizeUSD,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"market_size_USD"` - AvailableBorrow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=available_borrow,json=availableBorrow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"available_borrow"` + SymbolDenom string `protobuf:"bytes,1,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty"` + Exponent uint32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` + OraclePrice *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=oracle_price,json=oraclePrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"oracle_price,omitempty"` + UTokenExchangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=uToken_exchange_rate,json=uTokenExchangeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"uToken_exchange_rate"` + Lend_APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=lend_APY,json=lendAPY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"lend_APY"` + Borrow_APY github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=borrow_APY,json=borrowAPY,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"borrow_APY"` + MarketSize github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=market_size,json=marketSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"market_size"` + AvailableBorrow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=available_borrow,json=availableBorrow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"available_borrow"` + Reserved github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=reserved,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"reserved"` } func (m *QueryMarketSummaryResponse) Reset() { *m = QueryMarketSummaryResponse{} } @@ -1817,6 +1819,13 @@ func (m *QueryMarketSummaryResponse) GetSymbolDenom() string { return "" } +func (m *QueryMarketSummaryResponse) GetExponent() uint32 { + if m != nil { + return m.Exponent + } + return 0 +} + func init() { proto.RegisterType((*QueryRegisteredTokens)(nil), "umeenetwork.umee.leverage.v1.QueryRegisteredTokens") proto.RegisterType((*QueryAvailableBorrowRequest)(nil), "umeenetwork.umee.leverage.v1.QueryAvailableBorrowRequest") @@ -1863,109 +1872,112 @@ func init() { func init() { proto.RegisterFile("umee/leverage/v1/query.proto", fileDescriptor_1e8137dcabb0ccc7) } var fileDescriptor_1e8137dcabb0ccc7 = []byte{ - // 1630 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcd, 0x6f, 0xdc, 0xd4, - 0x16, 0x8f, 0xfb, 0x91, 0x8f, 0x93, 0xf4, 0x25, 0xbd, 0x2f, 0xef, 0x75, 0xea, 0x97, 0x4e, 0x52, - 0x37, 0x6d, 0xa3, 0x57, 0xe2, 0xc9, 0x07, 0xa5, 0xa5, 0x2d, 0x12, 0x49, 0xd3, 0x8a, 0x42, 0xaa, - 0xb6, 0x93, 0xb6, 0x22, 0x65, 0x31, 0x78, 0x66, 0x6e, 0xa7, 0x56, 0x3c, 0xf6, 0xc4, 0xf6, 0x4c, - 0x9b, 0x8a, 0x05, 0x62, 0xc1, 0x16, 0x24, 0x90, 0xd8, 0x20, 0xc1, 0x82, 0x05, 0x42, 0x6c, 0x90, - 0x40, 0x62, 0x81, 0x04, 0xcb, 0x2e, 0x2b, 0xb1, 0x41, 0x48, 0x14, 0xd4, 0xf2, 0x87, 0x20, 0xdf, - 0x7b, 0x3c, 0xfe, 0x9a, 0x71, 0xee, 0x78, 0xda, 0x55, 0xc6, 0xd7, 0xfe, 0x9d, 0xf3, 0xbb, 0xf7, - 0xfe, 0xee, 0xb9, 0xe7, 0x9c, 0xc0, 0x54, 0xb3, 0x4e, 0x69, 0xc1, 0xa0, 0x2d, 0x6a, 0x6b, 0x35, - 0x5a, 0x68, 0x2d, 0x16, 0xb6, 0x9b, 0xd4, 0xde, 0x51, 0x1b, 0xb6, 0xe5, 0x5a, 0x84, 0xbd, 0x35, - 0xa9, 0x7b, 0xdf, 0xb2, 0xb7, 0x54, 0xef, 0xb7, 0xea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, - 0x66, 0x95, 0x53, 0x1f, 0xfc, 0xfa, 0xf7, 0x27, 0x7b, 0x8e, 0x93, 0x63, 0x85, 0x44, 0xe9, 0x6d, - 0xb7, 0x31, 0x25, 0x97, 0xd3, 0xfb, 0x48, 0x82, 0x41, 0x9e, 0x76, 0x93, 0x05, 0x01, 0xa7, 0x91, - 0xac, 0x5f, 0x5e, 0xec, 0x01, 0x81, 0xe4, 0x66, 0x18, 0x39, 0x99, 0xe4, 0x92, 0xe4, 0x78, 0xbe, - 0x4f, 0x3e, 0x93, 0x60, 0xd8, 0xcf, 0x69, 0xc9, 0x92, 0x80, 0x87, 0x58, 0x61, 0x20, 0x2f, 0xf7, - 0x84, 0x41, 0x5e, 0x0a, 0xe3, 0x35, 0x45, 0xe4, 0x24, 0x2f, 0x3f, 0x03, 0x26, 0xdf, 0x4a, 0x70, - 0x20, 0x92, 0x6d, 0x93, 0x33, 0x3d, 0xb8, 0x0a, 0x27, 0x68, 0xf2, 0xd9, 0xde, 0x81, 0x48, 0x74, - 0x8e, 0x11, 0x55, 0xc8, 0x4c, 0x77, 0xa2, 0x3c, 0x51, 0x63, 0x5b, 0xcb, 0x13, 0x3a, 0xa1, 0xad, - 0x8d, 0x24, 0xc2, 0x42, 0x5b, 0x1b, 0x4d, 0x7a, 0xd3, 0xb6, 0x96, 0x27, 0x7f, 0xe4, 0x2b, 0x09, - 0x46, 0x43, 0x29, 0x26, 0x39, 0x2d, 0xec, 0x24, 0xb2, 0x78, 0xaf, 0xf4, 0x0a, 0x43, 0x82, 0x27, - 0x18, 0xc1, 0x19, 0x92, 0xef, 0x46, 0x10, 0x17, 0xee, 0x7b, 0x09, 0xc6, 0x63, 0x9d, 0x20, 0xf2, - 0xaa, 0x80, 0xcf, 0xce, 0x2d, 0x27, 0xf9, 0x5c, 0x16, 0x28, 0x52, 0xfe, 0x3f, 0xa3, 0x3c, 0x4b, - 0x94, 0x24, 0xe5, 0x78, 0x3c, 0x23, 0x9f, 0x4b, 0x30, 0xd2, 0xee, 0x14, 0x11, 0xf1, 0x53, 0x10, - 0x74, 0x7f, 0xe4, 0x97, 0x7b, 0x03, 0x21, 0xc9, 0x59, 0x46, 0x32, 0x4f, 0xa6, 0xba, 0x49, 0xb2, - 0xa4, 0x35, 0x76, 0xc8, 0xa7, 0x12, 0x0c, 0x61, 0xff, 0x88, 0x08, 0xa9, 0x2b, 0xd2, 0x98, 0x92, - 0x97, 0x7a, 0x81, 0xec, 0x7e, 0xa8, 0xd9, 0x85, 0xea, 0xd1, 0xfa, 0x52, 0x02, 0x08, 0xfa, 0x33, - 0x44, 0x64, 0x05, 0x12, 0x3d, 0x20, 0xf9, 0x74, 0x8f, 0x28, 0xe4, 0x77, 0x9c, 0xf1, 0x9b, 0x26, - 0x47, 0x92, 0xfc, 0x42, 0xb7, 0x20, 0xf9, 0x41, 0x82, 0xf1, 0x58, 0x1f, 0x49, 0x48, 0x8f, 0x9d, - 0x1b, 0x56, 0x42, 0x7a, 0xec, 0xd2, 0xb6, 0x4a, 0xbb, 0x5b, 0xd8, 0x85, 0x52, 0x0a, 0xf3, 0xf6, - 0xe2, 0x65, 0xa4, 0x5e, 0x13, 0x8a, 0x97, 0x9d, 0x8a, 0x42, 0xa1, 0x78, 0xd9, 0xb1, 0x34, 0x4c, - 0x8b, 0x97, 0x36, 0x07, 0x94, 0x78, 0xf1, 0x47, 0x7e, 0x92, 0xe0, 0x60, 0xa2, 0x4e, 0x23, 0x22, - 0x57, 0x71, 0xb7, 0x72, 0x51, 0xbe, 0x90, 0x0d, 0x8c, 0xd4, 0x5f, 0x62, 0xd4, 0x4f, 0x90, 0xd9, - 0x24, 0xf5, 0x50, 0x57, 0xc4, 0x41, 0xa2, 0x5f, 0x48, 0x00, 0x81, 0x2d, 0x21, 0x21, 0x27, 0x2a, - 0x4b, 0x21, 0x21, 0x27, 0x8b, 0xc8, 0xb4, 0x08, 0x10, 0x30, 0x65, 0x71, 0x35, 0xd6, 0xe9, 0x11, - 0xd2, 0x71, 0x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x04, 0x76, 0x59, 0x01, 0x57, 0x1e, 0x64, 0xff, 0x3c, 0x5c, - 0xfe, 0x27, 0x00, 0x00, 0xff, 0xff, 0x7c, 0x2c, 0xfd, 0x7a, 0xef, 0x1c, 0x00, 0x00, + // 1668 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcb, 0x6f, 0xdc, 0x54, + 0x17, 0x8f, 0xdb, 0xe6, 0x75, 0x92, 0x7c, 0x49, 0xef, 0x97, 0xef, 0xeb, 0xd4, 0xa4, 0x93, 0xd4, + 0x4d, 0xdb, 0x88, 0x92, 0x99, 0x3c, 0x28, 0x2d, 0x6d, 0x91, 0x48, 0xfa, 0x10, 0x2d, 0xa9, 0x9a, + 0x4e, 0x1f, 0x22, 0x65, 0x61, 0x3c, 0x33, 0xb7, 0x53, 0x2b, 0x1e, 0x7b, 0x62, 0x7b, 0xa6, 0x4d, + 0xc5, 0x02, 0xb1, 0x60, 0x0b, 0x12, 0x48, 0x6c, 0x90, 0x40, 0x88, 0x05, 0x42, 0x6c, 0x90, 0x40, + 0x62, 0xc1, 0x82, 0x65, 0x97, 0x95, 0xd8, 0x20, 0x24, 0x0a, 0x6a, 0xf9, 0x43, 0x90, 0xef, 0x3d, + 0x7e, 0x8d, 0x67, 0x9c, 0x3b, 0x4e, 0xbb, 0xca, 0xf8, 0xda, 0xbf, 0x73, 0x7e, 0xf7, 0xde, 0x73, + 0xce, 0x3d, 0xbf, 0x1b, 0x98, 0x6a, 0xd6, 0x29, 0x2d, 0x1a, 0xb4, 0x45, 0x6d, 0xad, 0x46, 0x8b, + 0xad, 0xc5, 0xe2, 0x56, 0x93, 0xda, 0xdb, 0x85, 0x86, 0x6d, 0xb9, 0x16, 0x61, 0x6f, 0x4d, 0xea, + 0xde, 0xb7, 0xec, 0xcd, 0x82, 0xf7, 0xbb, 0xe0, 0x7f, 0x59, 0x68, 0x2d, 0xca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 0x04, 0xe3, 0x6d, 0x97, 0x4d, 0xe4, 0x75, 0x01, 0x9f, 0x9d, 0x6f, 0xb5, 0xe4, 0x33, 0x59, 0xa0, + 0x48, 0xf9, 0x65, 0x46, 0x79, 0x96, 0x28, 0x49, 0xca, 0xed, 0xb5, 0x91, 0x7c, 0x21, 0xc1, 0x70, + 0x70, 0x19, 0x45, 0xc4, 0xb3, 0x20, 0xbc, 0x60, 0x92, 0x5f, 0xed, 0x0d, 0x84, 0x24, 0x67, 0x19, + 0xc9, 0x3c, 0x99, 0xea, 0x16, 0x92, 0xaa, 0xd6, 0xd8, 0x26, 0x9f, 0x49, 0x30, 0x88, 0x57, 0x54, + 0x44, 0x28, 0xba, 0x62, 0x77, 0x5f, 0xf2, 0x52, 0x2f, 0x90, 0x9d, 0x93, 0x9a, 0x1d, 0xa2, 0x1e, + 0xad, 0xaf, 0x24, 0x80, 0xf0, 0x0a, 0x88, 0x88, 0xac, 0x40, 0xe2, 0x9a, 0x49, 0x3e, 0xd9, 0x23, + 0x0a, 0xf9, 0x1d, 0x65, 0xfc, 0xa6, 0xc9, 0xa1, 0x24, 0xbf, 0xc8, 0x51, 0x4a, 0x7e, 0x92, 0x60, + 0xbc, 0xed, 0xaa, 0x4a, 0x28, 0x1e, 0x3b, 0xdf, 0x89, 0x09, 0xc5, 0x63, 0x97, 0x9b, 0xb1, 0xb4, + 0xb3, 0x85, 0x1d, 0x28, 0x6a, 0x94, 0xb7, 0x57, 0x2f, 0x63, 0x92, 0x50, 0xa8, 0x5e, 0x76, 0xd2, + 0x9d, 0x42, 0xf5, 0xb2, 0xa3, 0xfa, 0x4c, 0xab, 0x97, 0x78, 0x84, 0xab, 0x5c, 0x5f, 0x92, 0x5f, + 0x24, 0xd8, 0x9f, 0x90, 0x82, 0x44, 0xe4, 0x28, 0xee, 0xa6, 0x48, 0xe5, 0x73, 0xd9, 0xc0, 0x48, + 0xfd, 0x15, 0x46, 0xfd, 0x18, 0x99, 0x4d, 0x52, 0x8f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+ 0xfa, 0xe4, 0x59, 0xbe, 0xef, 0xf1, 0xb3, 0x7c, 0xdf, 0xef, 0xcf, 0xf2, 0x7d, 0x77, 0x16, 0x22, + 0x5a, 0xcd, 0xb3, 0x32, 0x8f, 0x44, 0xb8, 0xc9, 0xd6, 0x52, 0xf1, 0x41, 0x68, 0x97, 0x29, 0xb7, + 0xf2, 0x00, 0xfb, 0xff, 0xe4, 0xf2, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x2f, 0x8e, 0xd3, + 0x52, 0x1d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -4095,25 +4107,25 @@ func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, err var l int _ = l { - size := m.AvailableBorrow.Size() + size := m.Reserved.Size() i -= size - if _, err := m.AvailableBorrow.MarshalTo(dAtA[i:]); err != nil { + if _, err := m.Reserved.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x4a { - size := m.MarketSize_USD.Size() + size := m.AvailableBorrow.Size() i -= size - if _, err := m.MarketSize_USD.MarshalTo(dAtA[i:]); err != nil { + if _, err := m.AvailableBorrow.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x42 { size := m.MarketSize.Size() i -= size @@ -4123,7 +4135,7 @@ func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x3a { size := m.Borrow_APY.Size() i -= size @@ -4133,7 +4145,7 @@ func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x32 { size := m.Lend_APY.Size() i -= size @@ -4143,7 +4155,7 @@ func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x2a { size := m.UTokenExchangeRate.Size() i -= size @@ -4153,7 +4165,24 @@ func (m *QueryMarketSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x22 + if m.OraclePrice != nil { + { + size := m.OraclePrice.Size() + i -= size + if _, err := m.OraclePrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Exponent != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Exponent)) + i-- + dAtA[i] = 0x10 + } if len(m.SymbolDenom) > 0 { i -= len(m.SymbolDenom) copy(dAtA[i:], m.SymbolDenom) @@ -4691,6 +4720,13 @@ func (m *QueryMarketSummaryResponse) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Exponent != 0 { + n += 1 + sovQuery(uint64(m.Exponent)) + } + if m.OraclePrice != nil { + l = m.OraclePrice.Size() + n += 1 + l + sovQuery(uint64(l)) + } l = m.UTokenExchangeRate.Size() n += 1 + l + sovQuery(uint64(l)) l = m.Lend_APY.Size() @@ -4699,10 +4735,10 @@ func (m *QueryMarketSummaryResponse) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) l = m.MarketSize.Size() n += 1 + l + sovQuery(uint64(l)) - l = m.MarketSize_USD.Size() - n += 1 + l + sovQuery(uint64(l)) l = m.AvailableBorrow.Size() n += 1 + l + sovQuery(uint64(l)) + l = m.Reserved.Size() + n += 1 + l + sovQuery(uint64(l)) return n } @@ -8121,6 +8157,61 @@ func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { m.SymbolDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Exponent", wireType) + } + m.Exponent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Exponent |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OraclePrice", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_cosmos_cosmos_sdk_types.Dec + m.OraclePrice = &v + if err := m.OraclePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UTokenExchangeRate", wireType) } @@ -8154,7 +8245,7 @@ func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Lend_APY", wireType) } @@ -8188,7 +8279,7 @@ func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Borrow_APY", wireType) } @@ -8222,7 +8313,7 @@ func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MarketSize", wireType) } @@ -8256,9 +8347,9 @@ func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarketSize_USD", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AvailableBorrow", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8286,13 +8377,13 @@ func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MarketSize_USD.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AvailableBorrow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableBorrow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reserved", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8320,7 +8411,7 @@ func (m *QueryMarketSummaryResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.AvailableBorrow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Reserved.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex