Commit 8bf3334d authored by pengjun's avatar pengjun

#627 fix query error

parent 248ebbe9
...@@ -305,7 +305,7 @@ func CollateralizeManage(cmd *cobra.Command, args []string) { ...@@ -305,7 +305,7 @@ func CollateralizeManage(cmd *cobra.Command, args []string) {
params := &rpctypes.CreateTxIn{ params := &rpctypes.CreateTxIn{
Execer: cfg.ExecName(pkt.CollateralizeX), Execer: cfg.ExecName(pkt.CollateralizeX),
ActionName: "CollateralizeManage", ActionName: "CollateralizeManage",
Payload: []byte(fmt.Sprintf("{\"debtCeiling\":%d, \"liquidationRatio\":%f, \"stabilityFeeRatio\":%f, \"period\":%d, \"totalBalance\":%d,}", Payload: []byte(fmt.Sprintf("{\"debtCeiling\":%d, \"liquidationRatio\":%f, \"stabilityFeeRatio\":%f, \"period\":%d, \"totalBalance\":%d}",
debtCeiling, liquidationRatio, stabilityFeeRatio, period, totalBalance)), debtCeiling, liquidationRatio, stabilityFeeRatio, period, totalBalance)),
} }
......
...@@ -266,7 +266,6 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ ...@@ -266,7 +266,6 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ
return nil, pty.ErrRiskParam return nil, pty.ErrRiskParam
} }
var collConfig *pty.CollateralizeManage
manConfig, _ := getCollateralizeConfig(action.db) manConfig, _ := getCollateralizeConfig(action.db)
if manConfig == nil { if manConfig == nil {
manConfig = &pty.CollateralizeManage{ manConfig = &pty.CollateralizeManage{
...@@ -275,9 +274,11 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ ...@@ -275,9 +274,11 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ
StabilityFeeRatio: DefaultStabilityFeeRation, StabilityFeeRatio: DefaultStabilityFeeRation,
Period: DefaultPeriod, Period: DefaultPeriod,
CollTotalBalance: DefaultCollTotalBalance, CollTotalBalance: DefaultCollTotalBalance,
CurrentTime: action.blocktime,
} }
} }
collConfig := &pty.CollateralizeManage{}
if manage.StabilityFeeRatio != 0 { if manage.StabilityFeeRatio != 0 {
collConfig.StabilityFeeRatio = manage.StabilityFeeRatio collConfig.StabilityFeeRatio = manage.StabilityFeeRatio
} else { } else {
...@@ -308,6 +309,12 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ ...@@ -308,6 +309,12 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ
collConfig.CollTotalBalance = manConfig.CollTotalBalance collConfig.CollTotalBalance = manConfig.CollTotalBalance
} }
if manage.CurrentTime != 0 {
collConfig.CollTotalBalance = manage.CollTotalBalance
} else {
collConfig.CollTotalBalance = manConfig.CollTotalBalance
}
value := types.Encode(collConfig) value := types.Encode(collConfig)
action.db.Set(ConfigKey(), value) action.db.Set(ConfigKey(), value)
kv = append(kv, &types.KeyValue{Key: ConfigKey(), Value: value}) kv = append(kv, &types.KeyValue{Key: ConfigKey(), Value: value})
......
...@@ -123,8 +123,7 @@ func (c *Collateralize) Query_CollateralizeConfig(req *pty.ReqCollateralizeRecor ...@@ -123,8 +123,7 @@ func (c *Collateralize) Query_CollateralizeConfig(req *pty.ReqCollateralizeRecor
collIDRecords, err := queryCollateralizeByStatus(c.GetLocalDB(), pty.CollateralizeStatusCreated, 0) collIDRecords, err := queryCollateralizeByStatus(c.GetLocalDB(), pty.CollateralizeStatusCreated, 0)
if err != nil { if err != nil {
clog.Error("Query_CollateralizeByStatus", "get collateralize record error", err) clog.Debug("Query_CollateralizeByStatus", "get collateralize record error", err)
return nil, err
} }
collBalance := config.CollTotalBalance collBalance := config.CollTotalBalance
...@@ -144,6 +143,7 @@ func (c *Collateralize) Query_CollateralizeConfig(req *pty.ReqCollateralizeRecor ...@@ -144,6 +143,7 @@ func (c *Collateralize) Query_CollateralizeConfig(req *pty.ReqCollateralizeRecor
StabilityFeeRatio: config.StabilityFeeRatio, StabilityFeeRatio: config.StabilityFeeRatio,
Period: config.Period, Period: config.Period,
CollBalance: collBalance, CollBalance: collBalance,
CurrentTime: config.CurrentTime,
} }
return ret, nil return ret, nil
......
...@@ -67,6 +67,7 @@ message CollateralizeManage { ...@@ -67,6 +67,7 @@ message CollateralizeManage {
float stabilityFeeRatio = 3; //稳定费 float stabilityFeeRatio = 3; //稳定费
int64 period = 4; //合约期限 int64 period = 4; //合约期限
int64 collTotalBalance = 5; //放贷总量 int64 collTotalBalance = 5; //放贷总量
int64 currentTime = 6; //设置时间
} }
message CollateralizeAddr { message CollateralizeAddr {
...@@ -216,4 +217,5 @@ message RepCollateralizeConfig { ...@@ -216,4 +217,5 @@ message RepCollateralizeConfig {
int64 period = 4; //合约期限 int64 period = 4; //合约期限
int64 collTotalBalance = 5; //放贷总量 int64 collTotalBalance = 5; //放贷总量
int64 collBalance = 6; //剩余放贷额度 int64 collBalance = 6; //剩余放贷额度
int64 currentTime = 7; //设置时间
} }
\ No newline at end of file
...@@ -331,7 +331,7 @@ func CreateRawCollateralizeManageTx(cfg *types.Chain33Config, parm *Collateraliz ...@@ -331,7 +331,7 @@ func CreateRawCollateralizeManageTx(cfg *types.Chain33Config, parm *Collateraliz
LiquidationRatio: parm.LiquidationRatio, LiquidationRatio: parm.LiquidationRatio,
StabilityFeeRatio: parm.StabilityFeeRatio, StabilityFeeRatio: parm.StabilityFeeRatio,
Period: parm.Period, Period: parm.Period,
CollTotalBalance: parm.TotalBalance, CollTotalBalance: parm.CollTotalBalance,
} }
manage := &CollateralizeAction{ manage := &CollateralizeAction{
......
...@@ -550,6 +550,7 @@ type CollateralizeManage struct { ...@@ -550,6 +550,7 @@ type CollateralizeManage struct {
StabilityFeeRatio float32 `protobuf:"fixed32,3,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"` StabilityFeeRatio float32 `protobuf:"fixed32,3,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"`
Period int64 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"` Period int64 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"`
CollTotalBalance int64 `protobuf:"varint,5,opt,name=collTotalBalance,proto3" json:"collTotalBalance,omitempty"` CollTotalBalance int64 `protobuf:"varint,5,opt,name=collTotalBalance,proto3" json:"collTotalBalance,omitempty"`
CurrentTime int64 `protobuf:"varint,6,opt,name=currentTime,proto3" json:"currentTime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -615,6 +616,13 @@ func (m *CollateralizeManage) GetCollTotalBalance() int64 { ...@@ -615,6 +616,13 @@ func (m *CollateralizeManage) GetCollTotalBalance() int64 {
return 0 return 0
} }
func (m *CollateralizeManage) GetCurrentTime() int64 {
if m != nil {
return m.CurrentTime
}
return 0
}
type CollateralizeAddr struct { type CollateralizeAddr struct {
SuperAddrs []string `protobuf:"bytes,1,rep,name=superAddrs,proto3" json:"superAddrs,omitempty"` SuperAddrs []string `protobuf:"bytes,1,rep,name=superAddrs,proto3" json:"superAddrs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
...@@ -1750,6 +1758,7 @@ type RepCollateralizeConfig struct { ...@@ -1750,6 +1758,7 @@ type RepCollateralizeConfig struct {
Period int64 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"` Period int64 `protobuf:"varint,4,opt,name=period,proto3" json:"period,omitempty"`
CollTotalBalance int64 `protobuf:"varint,5,opt,name=collTotalBalance,proto3" json:"collTotalBalance,omitempty"` CollTotalBalance int64 `protobuf:"varint,5,opt,name=collTotalBalance,proto3" json:"collTotalBalance,omitempty"`
CollBalance int64 `protobuf:"varint,6,opt,name=collBalance,proto3" json:"collBalance,omitempty"` CollBalance int64 `protobuf:"varint,6,opt,name=collBalance,proto3" json:"collBalance,omitempty"`
CurrentTime int64 `protobuf:"varint,7,opt,name=currentTime,proto3" json:"currentTime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -1822,6 +1831,13 @@ func (m *RepCollateralizeConfig) GetCollBalance() int64 { ...@@ -1822,6 +1831,13 @@ func (m *RepCollateralizeConfig) GetCollBalance() int64 {
return 0 return 0
} }
func (m *RepCollateralizeConfig) GetCurrentTime() int64 {
if m != nil {
return m.CurrentTime
}
return 0
}
func init() { func init() {
proto.RegisterType((*Collateralize)(nil), "types.Collateralize") proto.RegisterType((*Collateralize)(nil), "types.Collateralize")
proto.RegisterType((*BorrowRecord)(nil), "types.BorrowRecord") proto.RegisterType((*BorrowRecord)(nil), "types.BorrowRecord")
...@@ -1856,80 +1872,81 @@ func init() { ...@@ -1856,80 +1872,81 @@ func init() {
func init() { proto.RegisterFile("collateralize.proto", fileDescriptor_a988fb4a61381972) } func init() { proto.RegisterFile("collateralize.proto", fileDescriptor_a988fb4a61381972) }
var fileDescriptor_a988fb4a61381972 = []byte{ var fileDescriptor_a988fb4a61381972 = []byte{
// 1192 bytes of a gzipped FileDescriptorProto // 1206 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xdd, 0x6e, 0xdc, 0x44, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0x6d, 0x6b, 0xdc, 0x46,
0x14, 0xae, 0xed, 0xfd, 0xc9, 0x9e, 0x4d, 0xd2, 0x76, 0x12, 0x82, 0x09, 0x51, 0xb4, 0xb2, 0x90, 0x10, 0x8e, 0xa4, 0x7b, 0xf1, 0xcd, 0xd9, 0x4e, 0xb2, 0x76, 0x5d, 0xd5, 0x35, 0xe6, 0x10,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 0x43, 0x18, 0x48, 0x94, 0x7a, 0x25, 0xb7, 0xfa, 0xa9, 0x20, 0xce, 0x9f, 0x46, 0xa4, 0xb5, 0x6b, 0xdf, 0x6d, 0x9d, 0xf8, 0x99, 0xd8, 0xbf, 0xcd, 0x53, 0xf2, 0x29, 0x0c, 0x24,
0x73, 0x9f, 0x59, 0x12, 0x9f, 0x87, 0x17, 0xff, 0xf5, 0xe7, 0x9c, 0xf0, 0x5f, 0xd8, 0x72, 0xd8, 0x4a, 0xbd, 0xa3, 0x5b, 0xfd, 0x54, 0x10, 0xe7, 0x8d, 0xd9, 0xdc, 0x67, 0x96, 0xc4, 0xe7, 0xe1,
0x40, 0xfa, 0x5f, 0x31, 0x2d, 0x06, 0xf8, 0xab, 0xc9, 0xa3, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x3b, 0xf1, 0xe0, 0x4b, 0xa2, 0x02, 0x96, 0x3f, 0xf8, 0x4a, 0x93, 0xfe, 0x24, 0x1c, 0x36,
0xab, 0xcf, 0xc4, 0xe0, 0x4c, 0x11, 0x00, 0x00, 0x9e, 0x84, 0x8b, 0x01, 0xfe, 0xf2, 0xf2, 0xe8, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x75,
0xc0, 0x02, 0x90, 0x11, 0x00, 0x00,
} }
...@@ -51,6 +51,6 @@ type CollateralizeManageTx struct { ...@@ -51,6 +51,6 @@ type CollateralizeManageTx struct {
LiquidationRatio float32 `json:"liquidationRatio"` LiquidationRatio float32 `json:"liquidationRatio"`
StabilityFeeRatio float32 `json:"stabilityFeeRatio"` StabilityFeeRatio float32 `json:"stabilityFeeRatio"`
Period int64 `json:"period"` Period int64 `json:"period"`
TotalBalance int64 `json:"totalBalance"` CollTotalBalance int64 `json:"collTotalBalance"`
Fee int64 `json:"fee"` Fee int64 `json:"fee"`
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment