Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
020ed969
Commit
020ed969
authored
Nov 08, 2019
by
pengjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#627 update collateralize query
parent
8bf3334d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
86 deletions
+116
-86
collateralizedb.go
plugin/dapp/collateralize/executor/collateralizedb.go
+13
-8
query.go
plugin/dapp/collateralize/executor/query.go
+2
-0
collateralize.proto
plugin/dapp/collateralize/proto/collateralize.proto
+2
-0
collateralize.pb.go
plugin/dapp/collateralize/types/collateralize.pb.go
+94
-77
issuancedb.go
plugin/dapp/issuance/executor/issuancedb.go
+5
-1
No files found.
plugin/dapp/collateralize/executor/collateralizedb.go
View file @
020ed969
...
...
@@ -274,7 +274,6 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ
StabilityFeeRatio
:
DefaultStabilityFeeRation
,
Period
:
DefaultPeriod
,
CollTotalBalance
:
DefaultCollTotalBalance
,
CurrentTime
:
action
.
blocktime
,
}
}
...
...
@@ -308,12 +307,7 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ
}
else
{
collConfig
.
CollTotalBalance
=
manConfig
.
CollTotalBalance
}
if
manage
.
CurrentTime
!=
0
{
collConfig
.
CollTotalBalance
=
manage
.
CollTotalBalance
}
else
{
collConfig
.
CollTotalBalance
=
manConfig
.
CollTotalBalance
}
collConfig
.
CurrentTime
=
action
.
blocktime
value
:=
types
.
Encode
(
collConfig
)
action
.
db
.
Set
(
ConfigKey
(),
value
)
...
...
@@ -425,6 +419,7 @@ func (action *Action) CollateralizeCreate(create *pty.CollateralizeCreate) (*typ
coll
.
CreateAddr
=
action
.
fromaddr
coll
.
Status
=
pty
.
CollateralizeActionCreate
coll
.
Index
=
action
.
GetIndex
()
coll
.
CollBalance
=
0
clog
.
Debug
(
"CollateralizeCreate created"
,
"CollateralizeID"
,
collateralizeID
,
"TotalBalance"
,
coll
.
TotalBalance
)
...
...
@@ -611,6 +606,7 @@ func (action *Action) CollateralizeBorrow(borrow *pty.CollateralizeBorrow) (*typ
coll
.
BorrowRecords
=
append
(
coll
.
BorrowRecords
,
borrowRecord
)
coll
.
Status
=
pty
.
CollateralizeStatusCreated
coll
.
Balance
-=
borrow
.
Value
coll
.
CollBalance
+=
btyFrozen
coll
.
Save
(
action
.
db
)
kv
=
append
(
kv
,
coll
.
GetKVSet
()
...
)
...
...
@@ -693,6 +689,7 @@ func (action *Action) CollateralizeRepay(repay *pty.CollateralizeRepay) (*types.
// 保存
coll
.
Balance
+=
borrowRecord
.
DebtValue
coll
.
CollBalance
-=
borrowRecord
.
CollateralValue
coll
.
BorrowRecords
=
append
(
coll
.
BorrowRecords
[
:
index
],
coll
.
BorrowRecords
[
index
+
1
:
]
...
)
coll
.
InvalidRecords
=
append
(
coll
.
InvalidRecords
,
borrowRecord
)
coll
.
LatestLiquidationPrice
=
getLatestLiquidationPrice
(
&
coll
.
Collateralize
)
...
...
@@ -788,6 +785,7 @@ func (action *Action) CollateralizeAppend(cAppend *pty.CollateralizeAppend) (*ty
}
// 记录当前借贷的最高自动清算价格
coll
.
CollBalance
+=
cAppend
.
CollateralValue
coll
.
LatestLiquidationPrice
=
getLatestLiquidationPrice
(
&
coll
.
Collateralize
)
coll
.
LatestExpireTime
=
getLatestExpireTime
(
&
coll
.
Collateralize
)
// append操作不更新Index
...
...
@@ -900,6 +898,7 @@ func (action *Action) systemLiquidation(coll *pty.Collateralize, price float32)
borrowRecord
.
Index
=
action
.
GetIndex
()
coll
.
InvalidRecords
=
append
(
coll
.
InvalidRecords
,
borrowRecord
)
coll
.
BorrowRecords
=
append
(
coll
.
BorrowRecords
[
:
index
],
coll
.
BorrowRecords
[
index
+
1
:
]
...
)
coll
.
CollBalance
-=
borrowRecord
.
CollateralValue
}
else
{
borrowRecord
.
PreStatus
=
borrowRecord
.
Status
borrowRecord
.
Status
=
pty
.
CollateralizeUserStatusWarning
...
...
@@ -958,6 +957,7 @@ func (action *Action) expireLiquidation(coll *pty.Collateralize) (*types.Receipt
borrowRecord
.
Index
=
action
.
GetIndex
()
coll
.
InvalidRecords
=
append
(
coll
.
InvalidRecords
,
borrowRecord
)
coll
.
BorrowRecords
=
append
(
coll
.
BorrowRecords
[
:
index
],
coll
.
BorrowRecords
[
index
+
1
:
]
...
)
coll
.
CollBalance
-=
borrowRecord
.
CollateralValue
}
else
{
borrowRecord
.
PreIndex
=
borrowRecord
.
Index
borrowRecord
.
Index
=
action
.
GetIndex
()
...
...
@@ -987,6 +987,11 @@ func pricePolicy(feed *pty.CollateralizeFeed) float32 {
totalVolume
+=
volume
}
if
totalVolume
==
0
{
clog
.
Error
(
"collateralize price feed volume empty"
)
return
0
}
for
i
,
price
:=
range
feed
.
Price
{
totalPrice
+=
price
*
float32
(
float64
(
feed
.
Volume
[
i
])
/
float64
(
totalVolume
))
}
...
...
@@ -1011,7 +1016,7 @@ func (action *Action) CollateralizeFeed(feed *pty.CollateralizeFeed) (*types.Rec
}
price
:=
pricePolicy
(
feed
)
if
price
==
0
||
price
==
-
1
{
if
price
<=
0
{
clog
.
Error
(
"CollateralizePriceFeed"
,
"price"
,
price
,
"err"
,
pty
.
ErrPriceInvalid
)
return
nil
,
pty
.
ErrPriceInvalid
}
...
...
plugin/dapp/collateralize/executor/query.go
View file @
020ed969
...
...
@@ -26,6 +26,7 @@ func (c *Collateralize) Query_CollateralizeInfoByID(req *pty.ReqCollateralizeInf
Balance
:
coll
.
Balance
,
Period
:
coll
.
Period
,
CollateralizeId
:
coll
.
CollateralizeId
,
CollBalance
:
coll
.
CollBalance
,
},
nil
}
...
...
@@ -48,6 +49,7 @@ func (c *Collateralize) Query_CollateralizeInfoByIDs(req *pty.ReqCollateralizeIn
Balance
:
coll
.
Balance
,
Period
:
coll
.
Period
,
CollateralizeId
:
coll
.
CollateralizeId
,
CollBalance
:
coll
.
CollBalance
,
})
}
...
...
plugin/dapp/collateralize/proto/collateralize.proto
View file @
020ed969
...
...
@@ -19,6 +19,7 @@ message Collateralize {
int64
latestExpireTime
=
13
;
//最近超期时间
int64
index
=
14
;
//当前索引
int64
preIndex
=
15
;
//上一个索引
int64
collBalance
=
16
;
//抵押bty
}
// 借出记录
...
...
@@ -150,6 +151,7 @@ message RepCollateralizeCurrentInfo {
int64
balance
=
7
;
//剩余可借贷金额(ccny)
int64
period
=
8
;
//合约期限
string
collateralizeId
=
9
;
//放贷ID
int64
collBalance
=
10
;
//抵押bty
}
// 根据ID列表查询多期放贷信息
...
...
plugin/dapp/collateralize/types/collateralize.pb.go
View file @
020ed969
...
...
@@ -37,6 +37,7 @@ type Collateralize struct {
LatestExpireTime
int64
`protobuf:"varint,13,opt,name=latestExpireTime,proto3" json:"latestExpireTime,omitempty"`
Index
int64
`protobuf:"varint,14,opt,name=index,proto3" json:"index,omitempty"`
PreIndex
int64
`protobuf:"varint,15,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
CollBalance
int64
`protobuf:"varint,16,opt,name=collBalance,proto3" json:"collBalance,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -172,6 +173,13 @@ func (m *Collateralize) GetPreIndex() int64 {
return
0
}
func
(
m
*
Collateralize
)
GetCollBalance
()
int64
{
if
m
!=
nil
{
return
m
.
CollBalance
}
return
0
}
// 借出记录
type
BorrowRecord
struct
{
AccountAddr
string
`protobuf:"bytes,1,opt,name=accountAddr,proto3" json:"accountAddr,omitempty"`
...
...
@@ -1201,6 +1209,7 @@ type RepCollateralizeCurrentInfo struct {
Balance
int64
`protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`
Period
int64
`protobuf:"varint,8,opt,name=period,proto3" json:"period,omitempty"`
CollateralizeId
string
`protobuf:"bytes,9,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
CollBalance
int64
`protobuf:"varint,10,opt,name=collBalance,proto3" json:"collBalance,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -1294,6 +1303,13 @@ func (m *RepCollateralizeCurrentInfo) GetCollateralizeId() string {
return
""
}
func
(
m
*
RepCollateralizeCurrentInfo
)
GetCollBalance
()
int64
{
if
m
!=
nil
{
return
m
.
CollBalance
}
return
0
}
// 根据ID列表查询多期放贷信息
type
ReqCollateralizeInfos
struct
{
CollateralizeIds
[]
string
`protobuf:"bytes,1,rep,name=collateralizeIds,proto3" json:"collateralizeIds,omitempty"`
...
...
@@ -1872,81 +1888,82 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"collateralize.proto"
,
fileDescriptor_a988fb4a61381972
)
}
var
fileDescriptor_a988fb4a61381972
=
[]
byte
{
// 1206 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xdc
,
0x58
,
0x6d
,
0x6b
,
0xdc
,
0x46
,
0x10
,
0x8e
,
0xa4
,
0x7b
,
0xf1
,
0xcd
,
0xd9
,
0x4e
,
0xb2
,
0x76
,
0x5d
,
0xd5
,
0x35
,
0xe6
,
0x10
,
0x85
,
0x1e
,
0x7d
,
0x31
,
0xd4
,
0x09
,
0xa5
,
0xa1
,
0x50
,
0x6a
,
0x5f
,
0x12
,
0x7c
,
0x90
,
0x42
,
0x50
,
0xd3
,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,
0x8b
,
0x77
,
0x62
,
0x24
,
0xac
,
0x55
,
0x8c
,
0x41
,
0xa3
,
0x62
,
0xe8
,
0x43
,
0xe3
,
0xb0
,
0x31
,
0x34
,
0x2e
,
0x06
,
0xf8
,
0xeb
,
0xcd
,
0xa3
,
0x7f
,
0x02
,
0x00
,
0x00
,
0xff
,
0xff
,
0xa1
,
0x50
,
0x87
,
0x0f
,
0xd4
,
0x11
,
0x00
,
0x00
,
}
plugin/dapp/issuance/executor/issuancedb.go
View file @
020ed969
...
...
@@ -837,6 +837,10 @@ func pricePolicy(feed *pty.IssuanceFeed) float32 {
totalVolume
+=
volume
}
if
totalVolume
==
0
{
clog
.
Error
(
"issuance price feed volume empty"
)
return
0
}
for
i
,
price
:=
range
feed
.
Price
{
totalPrice
+=
price
*
float32
(
float64
(
feed
.
Volume
[
i
])
/
float64
(
totalVolume
))
}
...
...
@@ -861,7 +865,7 @@ func (action *Action) IssuanceFeed(feed *pty.IssuanceFeed) (*types.Receipt, erro
}
price
:=
pricePolicy
(
feed
)
if
price
==
0
||
price
==
-
1
{
if
price
<=
0
{
clog
.
Error
(
"IssuancePriceFeed"
,
"price"
,
price
,
"err"
,
pty
.
ErrPriceInvalid
)
return
nil
,
pty
.
ErrPriceInvalid
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment