Commit 38119f4b authored by pengjun's avatar pengjun

#627 fix double types of issuance & collateralize

parent 38154040
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
package executor package executor
import ( import (
"math"
"github.com/33cn/chain33/common/db/table" "github.com/33cn/chain33/common/db/table"
"github.com/33cn/chain33/account" "github.com/33cn/chain33/account"
...@@ -30,11 +28,11 @@ const ( ...@@ -30,11 +28,11 @@ const (
const ( const (
Coin = types.Coin // 1e8 Coin = types.Coin // 1e8
DefaultDebtCeiling = 10000 * Coin // 默认借贷限额 DefaultDebtCeiling = 10000 * Coin // 默认借贷限额
DefaultLiquidationRatio = 0.4 // 默认质押比 DefaultLiquidationRatio = 0.4 * 1e4 // 默认质押比
DefaultStabilityFeeRation = 0.08 // 默认稳定费 DefaultStabilityFeeRation = 0.08 * 1e4 // 默认稳定费
DefaultPeriod = 3600 * 24 * 365 // 默认合约限期 DefaultPeriod = 3600 * 24 * 365 // 默认合约限期
DefaultTotalBalance = 0 // 默认放贷总额 DefaultTotalBalance = 0 // 默认放贷总额
PriceWarningRate = 1.3 // 价格提前预警率 PriceWarningRate = 1.3 * 1e4 // 价格提前预警率
ExpireWarningTime = 3600 * 24 * 10 // 提前10天超时预警 ExpireWarningTime = 3600 * 24 * 10 // 提前10天超时预警
) )
...@@ -215,8 +213,8 @@ func (action *Action) GetIndex() int64 { ...@@ -215,8 +213,8 @@ func (action *Action) GetIndex() int64 {
return action.height*types.MaxTxsPerBlock + int64(action.index) return action.height*types.MaxTxsPerBlock + int64(action.index)
} }
func getLatestLiquidationPrice(coll *pty.Collateralize) float64 { func getLatestLiquidationPrice(coll *pty.Collateralize) int64 {
var latest float64 var latest int64
for _, collRecord := range coll.BorrowRecords { for _, collRecord := range coll.BorrowRecords {
if collRecord.LiquidationPrice > latest { if collRecord.LiquidationPrice > latest {
latest = collRecord.LiquidationPrice latest = collRecord.LiquidationPrice
...@@ -250,8 +248,8 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ ...@@ -250,8 +248,8 @@ func (action *Action) CollateralizeManage(manage *pty.CollateralizeManage) (*typ
} }
// 配置借贷参数 // 配置借贷参数
if manage.DebtCeiling < 0 || manage.LiquidationRatio < 0 || manage.LiquidationRatio >= 1 || if manage.DebtCeiling < 0 || manage.LiquidationRatio < 0 || manage.LiquidationRatio >= 10000 ||
manage.StabilityFeeRatio < 0 || manage.StabilityFeeRatio >= 1 { manage.StabilityFeeRatio < 0 || manage.StabilityFeeRatio >= 10000 {
return nil, pty.ErrRiskParam return nil, pty.ErrRiskParam
} }
...@@ -464,28 +462,24 @@ func (action *Action) CollateralizeCreate(create *pty.CollateralizeCreate) (*typ ...@@ -464,28 +462,24 @@ func (action *Action) CollateralizeCreate(create *pty.CollateralizeCreate) (*typ
} }
// 根据最近抵押物价格计算需要冻结的BTY数量 // 根据最近抵押物价格计算需要冻结的BTY数量
func getBtyNumToFrozen(value int64, price float64, ratio float64) (int64, error) { func getBtyNumToFrozen(value int64, price int64, ratio int64) (int64, error) {
if price == 0 { if price == 0 {
clog.Error("Bty price should greate to 0") clog.Error("Bty price should greate to 0")
return 0, pty.ErrPriceInvalid return 0, pty.ErrPriceInvalid
} }
valueReal := float64(value) / 1e8 btyValue := (value * 1e4) / (price * ratio)
btyValue := valueReal / (price * ratio) return btyValue * 1e4, nil
return int64(math.Trunc((btyValue+0.0000001)*1e4)) * 1e4, nil
} }
// 计算清算价格 // 计算清算价格
// value:借出ccny数量, colValue:抵押物数量, price:抵押物价格 // value:借出ccny数量, colValue:抵押物数量, price:抵押物价格
func calcLiquidationPrice(value int64, colValue int64) float64 { func calcLiquidationPrice(value int64, colValue int64) int64 {
liquidationRation := float64(value) / float64(colValue) return (value *pty.CollateralizePreLiquidationRatio) / colValue
liquidationPrice := math.Trunc(liquidationRation*pty.CollateralizePreLiquidationRatio*1e4) / 1e4
return liquidationPrice
} }
// 获取最近抵押物价格 // 获取最近抵押物价格
func getLatestPrice(db dbm.KV) (float64, error) { func getLatestPrice(db dbm.KV) (int64, error) {
data, err := db.Get(PriceKey()) data, err := db.Get(PriceKey())
if err != nil { if err != nil {
clog.Error("getLatestPrice", "get", err) clog.Error("getLatestPrice", "get", err)
...@@ -621,7 +615,7 @@ func (action *Action) CollateralizeBorrow(borrow *pty.CollateralizeBorrow) (*typ ...@@ -621,7 +615,7 @@ func (action *Action) CollateralizeBorrow(borrow *pty.CollateralizeBorrow) (*typ
borrowRecord.StartTime = action.blocktime borrowRecord.StartTime = action.blocktime
borrowRecord.CollateralPrice = lastPrice borrowRecord.CollateralPrice = lastPrice
borrowRecord.DebtValue = borrow.GetValue() borrowRecord.DebtValue = borrow.GetValue()
borrowRecord.LiquidationPrice = math.Trunc(coll.LiquidationRatio*lastPrice*pty.CollateralizePreLiquidationRatio*1e4) / 1e4 borrowRecord.LiquidationPrice = (coll.LiquidationRatio*lastPrice*pty.CollateralizePreLiquidationRatio)/1e8
borrowRecord.Status = pty.CollateralizeUserStatusCreate borrowRecord.Status = pty.CollateralizeUserStatusCreate
borrowRecord.ExpireTime = action.blocktime + coll.Period borrowRecord.ExpireTime = action.blocktime + coll.Period
...@@ -684,8 +678,8 @@ func (action *Action) CollateralizeRepay(repay *pty.CollateralizeRepay) (*types. ...@@ -684,8 +678,8 @@ func (action *Action) CollateralizeRepay(repay *pty.CollateralizeRepay) (*types.
} }
// 借贷金额+利息 // 借贷金额+利息
fee := (float64(borrowRecord.DebtValue) / 1e8) * coll.StabilityFeeRatio fee := (borrowRecord.DebtValue * coll.StabilityFeeRatio)/1e4
realRepay := borrowRecord.DebtValue + int64(math.Trunc((fee+0.0000001)*1e4))*1e4 realRepay := borrowRecord.DebtValue + fee
// 检查 // 检查
if !action.CheckExecTokenAccount(action.fromaddr, realRepay, false) { if !action.CheckExecTokenAccount(action.fromaddr, realRepay, false) {
...@@ -899,12 +893,12 @@ func getGuarantorAddr(db dbm.KV) (string, error) { ...@@ -899,12 +893,12 @@ func getGuarantorAddr(db dbm.KV) (string, error) {
} }
// 系统清算 // 系统清算
func (action *Action) systemLiquidation(coll *pty.Collateralize, price float64) (*types.Receipt, error) { func (action *Action) systemLiquidation(coll *pty.Collateralize, price int64) (*types.Receipt, error) {
var logs []*types.ReceiptLog var logs []*types.ReceiptLog
var kv []*types.KeyValue var kv []*types.KeyValue
for index, borrowRecord := range coll.BorrowRecords { for index, borrowRecord := range coll.BorrowRecords {
if borrowRecord.LiquidationPrice*PriceWarningRate < price { if (borrowRecord.LiquidationPrice*PriceWarningRate)/1e4 < price {
if borrowRecord.Status == pty.CollateralizeUserStatusWarning { if borrowRecord.Status == pty.CollateralizeUserStatusWarning {
borrowRecord.PreStatus = borrowRecord.Status borrowRecord.PreStatus = borrowRecord.Status
borrowRecord.Status = pty.CollateralizeUserStatusCreate borrowRecord.Status = pty.CollateralizeUserStatusCreate
...@@ -1013,8 +1007,8 @@ func (action *Action) expireLiquidation(coll *pty.Collateralize) (*types.Receipt ...@@ -1013,8 +1007,8 @@ func (action *Action) expireLiquidation(coll *pty.Collateralize) (*types.Receipt
} }
// 价格计算策略 // 价格计算策略
func pricePolicy(feed *pty.CollateralizeFeed) float64 { func pricePolicy(feed *pty.CollateralizeFeed) int64 {
var totalPrice float64 var totalPrice int64
var totalVolume int64 var totalVolume int64
for _, volume := range feed.Volume { for _, volume := range feed.Volume {
totalVolume += volume totalVolume += volume
...@@ -1026,7 +1020,7 @@ func pricePolicy(feed *pty.CollateralizeFeed) float64 { ...@@ -1026,7 +1020,7 @@ func pricePolicy(feed *pty.CollateralizeFeed) float64 {
} }
for i, price := range feed.Price { for i, price := range feed.Price {
totalPrice += price * (float64(feed.Volume[i]) / float64(totalVolume)) totalPrice += (price * feed.Volume[i]) / totalVolume
} }
return totalPrice return totalPrice
......
...@@ -7,14 +7,14 @@ message Collateralize { ...@@ -7,14 +7,14 @@ message Collateralize {
string collateralizeId = 1; //放贷ID,一期放贷对应一个ID string collateralizeId = 1; //放贷ID,一期放贷对应一个ID
int64 totalBalance = 2; //当期放贷的总金额(ccny) int64 totalBalance = 2; //当期放贷的总金额(ccny)
int64 debtCeiling = 3; //单用户可借出的限额(ccny) int64 debtCeiling = 3; //单用户可借出的限额(ccny)
double liquidationRatio = 4; //清算比例 int64 liquidationRatio = 4; //清算比例
double stabilityFeeRatio = 5; //稳定费率 int64 stabilityFeeRatio = 5; //稳定费率
string createAddr = 6; //创建人地址 string createAddr = 6; //创建人地址
int64 balance = 7; //放贷剩余金额(ccny) int64 balance = 7; //放贷剩余金额(ccny)
repeated BorrowRecord borrowRecords = 8; //借贷记录 repeated BorrowRecord borrowRecords = 8; //借贷记录
repeated BorrowRecord InvalidRecords = 9; //失效的借贷记录 repeated BorrowRecord InvalidRecords = 9; //失效的借贷记录
int32 status = 10;//当期借贷的状态,是否关闭 int32 status = 10;//当期借贷的状态,是否关闭
double latestLiquidationPrice = 11;//最高清算价格 int64 latestLiquidationPrice = 11;//最高清算价格
int64 period = 12;//借贷最大期限 int64 period = 12;//借贷最大期限
int64 latestExpireTime = 13;//最近超期时间 int64 latestExpireTime = 13;//最近超期时间
int64 collBalance = 14;//抵押bty int64 collBalance = 14;//抵押bty
...@@ -26,9 +26,9 @@ message BorrowRecord { ...@@ -26,9 +26,9 @@ message BorrowRecord {
string accountAddr = 1; //借贷人地址 string accountAddr = 1; //借贷人地址
int64 startTime = 2; //借贷时间 int64 startTime = 2; //借贷时间
int64 collateralValue = 3; //抵押物价值(bty) int64 collateralValue = 3; //抵押物价值(bty)
double collateralPrice = 4; //抵押物价格 int64 collateralPrice = 4; //抵押物价格
int64 debtValue = 5; //债务价值(ccny) int64 debtValue = 5; //债务价值(ccny)
double liquidationPrice = 6; //抵押物清算价格 int64 liquidationPrice = 6; //抵押物清算价格
int32 status = 7; //抵押状态,是否被清算 int32 status = 7; //抵押状态,是否被清算
int64 liquidateTime = 8; //清算时间 int64 liquidateTime = 8; //清算时间
int64 expireTime = 9; //超时清算时间 int64 expireTime = 9; //超时清算时间
...@@ -40,9 +40,9 @@ message BorrowRecord { ...@@ -40,9 +40,9 @@ message BorrowRecord {
// 资产价格记录 // 资产价格记录
message AssetPriceRecord { message AssetPriceRecord {
int64 recordTime = 1; //价格记录时间 int64 recordTime = 1; //价格记录时间
double btyPrice = 2; //bty价格 int64 btyPrice = 2; //bty价格
double btcPrice = 3; //btc价格 int64 btcPrice = 3; //btc价格
double ethPrice = 4; //eth价格 int64 ethPrice = 4; //eth价格
} }
// action // action
...@@ -61,8 +61,8 @@ message CollateralizeAction { ...@@ -61,8 +61,8 @@ message CollateralizeAction {
message CollateralizeManage { message CollateralizeManage {
int64 debtCeiling = 1; //单用户可借出的限额(ccny) int64 debtCeiling = 1; //单用户可借出的限额(ccny)
double liquidationRatio = 2; //清算比例 int64 liquidationRatio = 2; //清算比例
double stabilityFeeRatio = 3; //稳定费 int64 stabilityFeeRatio = 3; //稳定费
int64 period = 4; //合约期限 int64 period = 4; //合约期限
int64 totalBalance = 5; //放贷总量 int64 totalBalance = 5; //放贷总量
int64 currentTime = 6; //设置时间 int64 currentTime = 6; //设置时间
...@@ -98,7 +98,7 @@ message CollateralizeAppend { ...@@ -98,7 +98,7 @@ message CollateralizeAppend {
// 喂价 // 喂价
message CollateralizeFeed { message CollateralizeFeed {
int32 collType = 1; //抵押物价格类型(1,bty,2,btc,3,eth...) int32 collType = 1; //抵押物价格类型(1,bty,2,btc,3,eth...)
repeated double price = 2; //喂价 repeated int64 price = 2; //喂价
repeated int64 volume = 3; //成交量 repeated int64 volume = 3; //成交量
} }
...@@ -131,8 +131,8 @@ message RepCollateralizeCurrentInfo { ...@@ -131,8 +131,8 @@ message RepCollateralizeCurrentInfo {
int32 status = 1;//当期借贷的状态,是否关闭 int32 status = 1;//当期借贷的状态,是否关闭
int64 totalBalance = 2; //当期可借贷的总金额(ccny) int64 totalBalance = 2; //当期可借贷的总金额(ccny)
int64 debtCeiling = 3; //单用户可借出的限额(ccny) int64 debtCeiling = 3; //单用户可借出的限额(ccny)
double liquidationRatio = 4; //清算比例 int64 liquidationRatio = 4; //清算比例
double stabilityFeeRatio = 5; //稳定费 int64 stabilityFeeRatio = 5; //稳定费
string createAddr = 6; //创建人地址 string createAddr = 6; //创建人地址
int64 balance = 7; //剩余可借贷金额(ccny) int64 balance = 7; //剩余可借贷金额(ccny)
int64 period = 8; //合约期限 int64 period = 8; //合约期限
...@@ -192,7 +192,7 @@ message RepCollateralizeRecords { ...@@ -192,7 +192,7 @@ message RepCollateralizeRecords {
// 精确查找借贷记录 // 精确查找借贷记录
message ReqCollateralizeRecord { message ReqCollateralizeRecord {
string collateralizeId = 1; string collateralizeId = 1;
string recordId = 2; string recordId = 2;
} }
// 返回借贷记录 // 返回借贷记录
...@@ -203,8 +203,8 @@ message RepCollateralizeRecord { ...@@ -203,8 +203,8 @@ message RepCollateralizeRecord {
// 返回放贷配置 // 返回放贷配置
message RepCollateralizeConfig { message RepCollateralizeConfig {
int64 debtCeiling = 1; //单用户可借出的限额(ccny) int64 debtCeiling = 1; //单用户可借出的限额(ccny)
double liquidationRatio = 2; //清算比例 int64 liquidationRatio = 2; //清算比例
double stabilityFeeRatio = 3; //稳定费 int64 stabilityFeeRatio = 3; //稳定费
int64 period = 4; //合约期限 int64 period = 4; //合约期限
int64 totalBalance = 5; //放贷总量 int64 totalBalance = 5; //放贷总量
int64 balance = 6; //剩余放贷额度 int64 balance = 6; //剩余放贷额度
...@@ -213,5 +213,5 @@ message RepCollateralizeConfig { ...@@ -213,5 +213,5 @@ message RepCollateralizeConfig {
// 返回最新抵押物价格 // 返回最新抵押物价格
message RepCollateralizePrice { message RepCollateralizePrice {
double price = 1; //当前抵押物最新价格 int64 price = 1; //当前抵押物最新价格
} }
\ No newline at end of file
## 借贷合约表结构 ## 借贷合约表结构
###放贷表coller表结构 ### 放贷表coller表结构
字段名称|类型|说明 字段名称|类型|说明
---|---|--- ---|---|---
collateralizeId|string|放贷ID,主键 collateralizeId|string|放贷ID,主键
...@@ -8,14 +8,14 @@ accountAddr|string|大户地址 ...@@ -8,14 +8,14 @@ accountAddr|string|大户地址
recordId|string|借贷ID recordId|string|借贷ID
status|int32|放贷状态(1:已放贷 2:已收回) status|int32|放贷状态(1:已放贷 2:已收回)
###放贷表coller表索引 ### 放贷表coller表索引
索引名|说明 索引名|说明
---|--- ---|---
status|根据放贷状态查询放贷ID status|根据放贷状态查询放贷ID
addr|根据大户地址查询放贷ID addr|根据大户地址查询放贷ID
addr_status|根据放贷状态和大户地址查询放贷ID addr_status|根据放贷状态和大户地址查询放贷ID
###借贷表borrow表结构 ### 借贷表borrow表结构
字段名称|类型|说明 字段名称|类型|说明
---|---|--- ---|---|---
recordId|string|借贷ID,主键 recordId|string|借贷ID,主键
...@@ -23,7 +23,7 @@ collateralizeId|string|放贷ID ...@@ -23,7 +23,7 @@ collateralizeId|string|放贷ID
accountAddr|string|用户地址 accountAddr|string|用户地址
status|int32|借贷状态(1:已发行 2:价格清算告警 3:价格清算 4:超时清算告警 5:超时清算 6:已清算) status|int32|借贷状态(1:已发行 2:价格清算告警 3:价格清算 4:超时清算告警 5:超时清算 6:已清算)
###放贷表borrow表索引 ### 放贷表borrow表索引
索引名|说明 索引名|说明
---|--- ---|---
status|根据借贷状态查询借贷ID status|根据借贷状态查询借贷ID
......
...@@ -270,9 +270,13 @@ func CreateRawCollateralizeFeedTx(cfg *types.Chain33Config, parm *CollateralizeF ...@@ -270,9 +270,13 @@ func CreateRawCollateralizeFeedTx(cfg *types.Chain33Config, parm *CollateralizeF
} }
v := &CollateralizeFeed{ v := &CollateralizeFeed{
Price: parm.Price,
Volume: parm.Volume, Volume: parm.Volume,
} }
for _, r := range parm.Price {
v.Price = append(v.Price, int64(math.Trunc(r*1e4)))
}
feed := &CollateralizeAction{ feed := &CollateralizeAction{
Ty: CollateralizeActionFeed, Ty: CollateralizeActionFeed,
Value: &CollateralizeAction_Feed{v}, Value: &CollateralizeAction_Feed{v},
...@@ -330,8 +334,8 @@ func CreateRawCollateralizeManageTx(cfg *types.Chain33Config, parm *Collateraliz ...@@ -330,8 +334,8 @@ func CreateRawCollateralizeManageTx(cfg *types.Chain33Config, parm *Collateraliz
v := &CollateralizeManage{ v := &CollateralizeManage{
DebtCeiling: int64(math.Trunc((parm.DebtCeiling+0.0000001)*1e4)) * 1e4, DebtCeiling: int64(math.Trunc((parm.DebtCeiling+0.0000001)*1e4)) * 1e4,
LiquidationRatio: parm.LiquidationRatio, LiquidationRatio: int64(math.Trunc((parm.LiquidationRatio+0.0000001)*1e4)),
StabilityFeeRatio: parm.StabilityFeeRatio, StabilityFeeRatio: int64(math.Trunc((parm.StabilityFeeRatio+0.0000001)*1e4)),
Period: parm.Period, Period: parm.Period,
TotalBalance: int64(math.Trunc((parm.TotalBalance+0.0000001)*1e4)) * 1e4, TotalBalance: int64(math.Trunc((parm.TotalBalance+0.0000001)*1e4)) * 1e4,
} }
......
...@@ -5,9 +5,7 @@ package types ...@@ -5,9 +5,7 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
math "math" math "math"
) )
...@@ -20,21 +18,21 @@ var _ = math.Inf ...@@ -20,21 +18,21 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 放贷信息 // 放贷信息
type Collateralize struct { type Collateralize struct {
CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"` CollateralizeId string `protobuf:"bytes,1,opt,name=collateralizeId,proto3" json:"collateralizeId,omitempty"`
TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
DebtCeiling int64 `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"` DebtCeiling int64 `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
LiquidationRatio float64 `protobuf:"fixed64,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"` LiquidationRatio int64 `protobuf:"varint,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`
StabilityFeeRatio float64 `protobuf:"fixed64,5,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"` StabilityFeeRatio int64 `protobuf:"varint,5,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"`
CreateAddr string `protobuf:"bytes,6,opt,name=createAddr,proto3" json:"createAddr,omitempty"` CreateAddr string `protobuf:"bytes,6,opt,name=createAddr,proto3" json:"createAddr,omitempty"`
Balance int64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"` Balance int64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`
BorrowRecords []*BorrowRecord `protobuf:"bytes,8,rep,name=borrowRecords,proto3" json:"borrowRecords,omitempty"` BorrowRecords []*BorrowRecord `protobuf:"bytes,8,rep,name=borrowRecords,proto3" json:"borrowRecords,omitempty"`
InvalidRecords []*BorrowRecord `protobuf:"bytes,9,rep,name=InvalidRecords,proto3" json:"InvalidRecords,omitempty"` InvalidRecords []*BorrowRecord `protobuf:"bytes,9,rep,name=InvalidRecords,proto3" json:"InvalidRecords,omitempty"`
Status int32 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`
LatestLiquidationPrice float64 `protobuf:"fixed64,11,opt,name=latestLiquidationPrice,proto3" json:"latestLiquidationPrice,omitempty"` LatestLiquidationPrice int64 `protobuf:"varint,11,opt,name=latestLiquidationPrice,proto3" json:"latestLiquidationPrice,omitempty"`
Period int64 `protobuf:"varint,12,opt,name=period,proto3" json:"period,omitempty"` Period int64 `protobuf:"varint,12,opt,name=period,proto3" json:"period,omitempty"`
LatestExpireTime int64 `protobuf:"varint,13,opt,name=latestExpireTime,proto3" json:"latestExpireTime,omitempty"` LatestExpireTime int64 `protobuf:"varint,13,opt,name=latestExpireTime,proto3" json:"latestExpireTime,omitempty"`
CollBalance int64 `protobuf:"varint,14,opt,name=collBalance,proto3" json:"collBalance,omitempty"` CollBalance int64 `protobuf:"varint,14,opt,name=collBalance,proto3" json:"collBalance,omitempty"`
...@@ -48,16 +46,17 @@ func (m *Collateralize) Reset() { *m = Collateralize{} } ...@@ -48,16 +46,17 @@ func (m *Collateralize) Reset() { *m = Collateralize{} }
func (m *Collateralize) String() string { return proto.CompactTextString(m) } func (m *Collateralize) String() string { return proto.CompactTextString(m) }
func (*Collateralize) ProtoMessage() {} func (*Collateralize) ProtoMessage() {}
func (*Collateralize) Descriptor() ([]byte, []int) { func (*Collateralize) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{0} return fileDescriptor_a988fb4a61381972, []int{0}
} }
func (m *Collateralize) XXX_Unmarshal(b []byte) error { func (m *Collateralize) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Collateralize.Unmarshal(m, b) return xxx_messageInfo_Collateralize.Unmarshal(m, b)
} }
func (m *Collateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Collateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Collateralize.Marshal(b, m, deterministic) return xxx_messageInfo_Collateralize.Marshal(b, m, deterministic)
} }
func (dst *Collateralize) XXX_Merge(src proto.Message) { func (m *Collateralize) XXX_Merge(src proto.Message) {
xxx_messageInfo_Collateralize.Merge(dst, src) xxx_messageInfo_Collateralize.Merge(m, src)
} }
func (m *Collateralize) XXX_Size() int { func (m *Collateralize) XXX_Size() int {
return xxx_messageInfo_Collateralize.Size(m) return xxx_messageInfo_Collateralize.Size(m)
...@@ -89,14 +88,14 @@ func (m *Collateralize) GetDebtCeiling() int64 { ...@@ -89,14 +88,14 @@ func (m *Collateralize) GetDebtCeiling() int64 {
return 0 return 0
} }
func (m *Collateralize) GetLiquidationRatio() float64 { func (m *Collateralize) GetLiquidationRatio() int64 {
if m != nil { if m != nil {
return m.LiquidationRatio return m.LiquidationRatio
} }
return 0 return 0
} }
func (m *Collateralize) GetStabilityFeeRatio() float64 { func (m *Collateralize) GetStabilityFeeRatio() int64 {
if m != nil { if m != nil {
return m.StabilityFeeRatio return m.StabilityFeeRatio
} }
...@@ -138,7 +137,7 @@ func (m *Collateralize) GetStatus() int32 { ...@@ -138,7 +137,7 @@ func (m *Collateralize) GetStatus() int32 {
return 0 return 0
} }
func (m *Collateralize) GetLatestLiquidationPrice() float64 { func (m *Collateralize) GetLatestLiquidationPrice() int64 {
if m != nil { if m != nil {
return m.LatestLiquidationPrice return m.LatestLiquidationPrice
} }
...@@ -178,9 +177,9 @@ type BorrowRecord struct { ...@@ -178,9 +177,9 @@ type BorrowRecord struct {
AccountAddr string `protobuf:"bytes,1,opt,name=accountAddr,proto3" json:"accountAddr,omitempty"` AccountAddr string `protobuf:"bytes,1,opt,name=accountAddr,proto3" json:"accountAddr,omitempty"`
StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"` StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
CollateralValue int64 `protobuf:"varint,3,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"` CollateralValue int64 `protobuf:"varint,3,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"`
CollateralPrice float64 `protobuf:"fixed64,4,opt,name=collateralPrice,proto3" json:"collateralPrice,omitempty"` CollateralPrice int64 `protobuf:"varint,4,opt,name=collateralPrice,proto3" json:"collateralPrice,omitempty"`
DebtValue int64 `protobuf:"varint,5,opt,name=debtValue,proto3" json:"debtValue,omitempty"` DebtValue int64 `protobuf:"varint,5,opt,name=debtValue,proto3" json:"debtValue,omitempty"`
LiquidationPrice float64 `protobuf:"fixed64,6,opt,name=liquidationPrice,proto3" json:"liquidationPrice,omitempty"` LiquidationPrice int64 `protobuf:"varint,6,opt,name=liquidationPrice,proto3" json:"liquidationPrice,omitempty"`
Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
LiquidateTime int64 `protobuf:"varint,8,opt,name=liquidateTime,proto3" json:"liquidateTime,omitempty"` LiquidateTime int64 `protobuf:"varint,8,opt,name=liquidateTime,proto3" json:"liquidateTime,omitempty"`
ExpireTime int64 `protobuf:"varint,9,opt,name=expireTime,proto3" json:"expireTime,omitempty"` ExpireTime int64 `protobuf:"varint,9,opt,name=expireTime,proto3" json:"expireTime,omitempty"`
...@@ -196,16 +195,17 @@ func (m *BorrowRecord) Reset() { *m = BorrowRecord{} } ...@@ -196,16 +195,17 @@ func (m *BorrowRecord) Reset() { *m = BorrowRecord{} }
func (m *BorrowRecord) String() string { return proto.CompactTextString(m) } func (m *BorrowRecord) String() string { return proto.CompactTextString(m) }
func (*BorrowRecord) ProtoMessage() {} func (*BorrowRecord) ProtoMessage() {}
func (*BorrowRecord) Descriptor() ([]byte, []int) { func (*BorrowRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{1} return fileDescriptor_a988fb4a61381972, []int{1}
} }
func (m *BorrowRecord) XXX_Unmarshal(b []byte) error { func (m *BorrowRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BorrowRecord.Unmarshal(m, b) return xxx_messageInfo_BorrowRecord.Unmarshal(m, b)
} }
func (m *BorrowRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *BorrowRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BorrowRecord.Marshal(b, m, deterministic) return xxx_messageInfo_BorrowRecord.Marshal(b, m, deterministic)
} }
func (dst *BorrowRecord) XXX_Merge(src proto.Message) { func (m *BorrowRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_BorrowRecord.Merge(dst, src) xxx_messageInfo_BorrowRecord.Merge(m, src)
} }
func (m *BorrowRecord) XXX_Size() int { func (m *BorrowRecord) XXX_Size() int {
return xxx_messageInfo_BorrowRecord.Size(m) return xxx_messageInfo_BorrowRecord.Size(m)
...@@ -237,7 +237,7 @@ func (m *BorrowRecord) GetCollateralValue() int64 { ...@@ -237,7 +237,7 @@ func (m *BorrowRecord) GetCollateralValue() int64 {
return 0 return 0
} }
func (m *BorrowRecord) GetCollateralPrice() float64 { func (m *BorrowRecord) GetCollateralPrice() int64 {
if m != nil { if m != nil {
return m.CollateralPrice return m.CollateralPrice
} }
...@@ -251,7 +251,7 @@ func (m *BorrowRecord) GetDebtValue() int64 { ...@@ -251,7 +251,7 @@ func (m *BorrowRecord) GetDebtValue() int64 {
return 0 return 0
} }
func (m *BorrowRecord) GetLiquidationPrice() float64 { func (m *BorrowRecord) GetLiquidationPrice() int64 {
if m != nil { if m != nil {
return m.LiquidationPrice return m.LiquidationPrice
} }
...@@ -303,9 +303,9 @@ func (m *BorrowRecord) GetCollateralizeId() string { ...@@ -303,9 +303,9 @@ func (m *BorrowRecord) GetCollateralizeId() string {
// 资产价格记录 // 资产价格记录
type AssetPriceRecord struct { type AssetPriceRecord struct {
RecordTime int64 `protobuf:"varint,1,opt,name=recordTime,proto3" json:"recordTime,omitempty"` RecordTime int64 `protobuf:"varint,1,opt,name=recordTime,proto3" json:"recordTime,omitempty"`
BtyPrice float64 `protobuf:"fixed64,2,opt,name=btyPrice,proto3" json:"btyPrice,omitempty"` BtyPrice int64 `protobuf:"varint,2,opt,name=btyPrice,proto3" json:"btyPrice,omitempty"`
BtcPrice float64 `protobuf:"fixed64,3,opt,name=btcPrice,proto3" json:"btcPrice,omitempty"` BtcPrice int64 `protobuf:"varint,3,opt,name=btcPrice,proto3" json:"btcPrice,omitempty"`
EthPrice float64 `protobuf:"fixed64,4,opt,name=ethPrice,proto3" json:"ethPrice,omitempty"` EthPrice int64 `protobuf:"varint,4,opt,name=ethPrice,proto3" json:"ethPrice,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:"-"`
...@@ -315,16 +315,17 @@ func (m *AssetPriceRecord) Reset() { *m = AssetPriceRecord{} } ...@@ -315,16 +315,17 @@ func (m *AssetPriceRecord) Reset() { *m = AssetPriceRecord{} }
func (m *AssetPriceRecord) String() string { return proto.CompactTextString(m) } func (m *AssetPriceRecord) String() string { return proto.CompactTextString(m) }
func (*AssetPriceRecord) ProtoMessage() {} func (*AssetPriceRecord) ProtoMessage() {}
func (*AssetPriceRecord) Descriptor() ([]byte, []int) { func (*AssetPriceRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{2} return fileDescriptor_a988fb4a61381972, []int{2}
} }
func (m *AssetPriceRecord) XXX_Unmarshal(b []byte) error { func (m *AssetPriceRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AssetPriceRecord.Unmarshal(m, b) return xxx_messageInfo_AssetPriceRecord.Unmarshal(m, b)
} }
func (m *AssetPriceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *AssetPriceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AssetPriceRecord.Marshal(b, m, deterministic) return xxx_messageInfo_AssetPriceRecord.Marshal(b, m, deterministic)
} }
func (dst *AssetPriceRecord) XXX_Merge(src proto.Message) { func (m *AssetPriceRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_AssetPriceRecord.Merge(dst, src) xxx_messageInfo_AssetPriceRecord.Merge(m, src)
} }
func (m *AssetPriceRecord) XXX_Size() int { func (m *AssetPriceRecord) XXX_Size() int {
return xxx_messageInfo_AssetPriceRecord.Size(m) return xxx_messageInfo_AssetPriceRecord.Size(m)
...@@ -342,21 +343,21 @@ func (m *AssetPriceRecord) GetRecordTime() int64 { ...@@ -342,21 +343,21 @@ func (m *AssetPriceRecord) GetRecordTime() int64 {
return 0 return 0
} }
func (m *AssetPriceRecord) GetBtyPrice() float64 { func (m *AssetPriceRecord) GetBtyPrice() int64 {
if m != nil { if m != nil {
return m.BtyPrice return m.BtyPrice
} }
return 0 return 0
} }
func (m *AssetPriceRecord) GetBtcPrice() float64 { func (m *AssetPriceRecord) GetBtcPrice() int64 {
if m != nil { if m != nil {
return m.BtcPrice return m.BtcPrice
} }
return 0 return 0
} }
func (m *AssetPriceRecord) GetEthPrice() float64 { func (m *AssetPriceRecord) GetEthPrice() int64 {
if m != nil { if m != nil {
return m.EthPrice return m.EthPrice
} }
...@@ -384,16 +385,17 @@ func (m *CollateralizeAction) Reset() { *m = CollateralizeAction{} } ...@@ -384,16 +385,17 @@ func (m *CollateralizeAction) Reset() { *m = CollateralizeAction{} }
func (m *CollateralizeAction) String() string { return proto.CompactTextString(m) } func (m *CollateralizeAction) String() string { return proto.CompactTextString(m) }
func (*CollateralizeAction) ProtoMessage() {} func (*CollateralizeAction) ProtoMessage() {}
func (*CollateralizeAction) Descriptor() ([]byte, []int) { func (*CollateralizeAction) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{3} return fileDescriptor_a988fb4a61381972, []int{3}
} }
func (m *CollateralizeAction) XXX_Unmarshal(b []byte) error { func (m *CollateralizeAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeAction.Unmarshal(m, b) return xxx_messageInfo_CollateralizeAction.Unmarshal(m, b)
} }
func (m *CollateralizeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeAction.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeAction.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeAction) XXX_Merge(src proto.Message) { func (m *CollateralizeAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeAction.Merge(dst, src) xxx_messageInfo_CollateralizeAction.Merge(m, src)
} }
func (m *CollateralizeAction) XXX_Size() int { func (m *CollateralizeAction) XXX_Size() int {
return xxx_messageInfo_CollateralizeAction.Size(m) return xxx_messageInfo_CollateralizeAction.Size(m)
...@@ -513,9 +515,9 @@ func (m *CollateralizeAction) GetTy() int32 { ...@@ -513,9 +515,9 @@ func (m *CollateralizeAction) GetTy() int32 {
return 0 return 0
} }
// XXX_OneofFuncs is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*CollateralizeAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { func (*CollateralizeAction) XXX_OneofWrappers() []interface{} {
return _CollateralizeAction_OneofMarshaler, _CollateralizeAction_OneofUnmarshaler, _CollateralizeAction_OneofSizer, []interface{}{ return []interface{}{
(*CollateralizeAction_Create)(nil), (*CollateralizeAction_Create)(nil),
(*CollateralizeAction_Borrow)(nil), (*CollateralizeAction_Borrow)(nil),
(*CollateralizeAction_Repay)(nil), (*CollateralizeAction_Repay)(nil),
...@@ -526,166 +528,10 @@ func (*CollateralizeAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.B ...@@ -526,166 +528,10 @@ func (*CollateralizeAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.B
} }
} }
func _CollateralizeAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*CollateralizeAction)
// value
switch x := m.Value.(type) {
case *CollateralizeAction_Create:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Create); err != nil {
return err
}
case *CollateralizeAction_Borrow:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Borrow); err != nil {
return err
}
case *CollateralizeAction_Repay:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Repay); err != nil {
return err
}
case *CollateralizeAction_Append:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Append); err != nil {
return err
}
case *CollateralizeAction_Feed:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Feed); err != nil {
return err
}
case *CollateralizeAction_Retrieve:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Retrieve); err != nil {
return err
}
case *CollateralizeAction_Manage:
b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Manage); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("CollateralizeAction.Value has unexpected type %T", x)
}
return nil
}
func _CollateralizeAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*CollateralizeAction)
switch tag {
case 1: // value.create
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeCreate)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Create{msg}
return true, err
case 2: // value.borrow
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeBorrow)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Borrow{msg}
return true, err
case 3: // value.repay
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeRepay)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Repay{msg}
return true, err
case 4: // value.append
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeAppend)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Append{msg}
return true, err
case 5: // value.feed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeFeed)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Feed{msg}
return true, err
case 6: // value.retrieve
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeRetrieve)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Retrieve{msg}
return true, err
case 7: // value.manage
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeManage)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Manage{msg}
return true, err
default:
return false, nil
}
}
func _CollateralizeAction_OneofSizer(msg proto.Message) (n int) {
m := msg.(*CollateralizeAction)
// value
switch x := m.Value.(type) {
case *CollateralizeAction_Create:
s := proto.Size(x.Create)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Borrow:
s := proto.Size(x.Borrow)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Repay:
s := proto.Size(x.Repay)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Append:
s := proto.Size(x.Append)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Feed:
s := proto.Size(x.Feed)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Retrieve:
s := proto.Size(x.Retrieve)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Manage:
s := proto.Size(x.Manage)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type CollateralizeManage struct { type CollateralizeManage struct {
DebtCeiling int64 `protobuf:"varint,1,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"` DebtCeiling int64 `protobuf:"varint,1,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
LiquidationRatio float64 `protobuf:"fixed64,2,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"` LiquidationRatio int64 `protobuf:"varint,2,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`
StabilityFeeRatio float64 `protobuf:"fixed64,3,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"` StabilityFeeRatio int64 `protobuf:"varint,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"`
TotalBalance int64 `protobuf:"varint,5,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` TotalBalance int64 `protobuf:"varint,5,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
CurrentTime int64 `protobuf:"varint,6,opt,name=currentTime,proto3" json:"currentTime,omitempty"` CurrentTime int64 `protobuf:"varint,6,opt,name=currentTime,proto3" json:"currentTime,omitempty"`
...@@ -698,16 +544,17 @@ func (m *CollateralizeManage) Reset() { *m = CollateralizeManage{} } ...@@ -698,16 +544,17 @@ func (m *CollateralizeManage) Reset() { *m = CollateralizeManage{} }
func (m *CollateralizeManage) String() string { return proto.CompactTextString(m) } func (m *CollateralizeManage) String() string { return proto.CompactTextString(m) }
func (*CollateralizeManage) ProtoMessage() {} func (*CollateralizeManage) ProtoMessage() {}
func (*CollateralizeManage) Descriptor() ([]byte, []int) { func (*CollateralizeManage) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{4} return fileDescriptor_a988fb4a61381972, []int{4}
} }
func (m *CollateralizeManage) XXX_Unmarshal(b []byte) error { func (m *CollateralizeManage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeManage.Unmarshal(m, b) return xxx_messageInfo_CollateralizeManage.Unmarshal(m, b)
} }
func (m *CollateralizeManage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeManage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeManage.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeManage.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeManage) XXX_Merge(src proto.Message) { func (m *CollateralizeManage) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeManage.Merge(dst, src) xxx_messageInfo_CollateralizeManage.Merge(m, src)
} }
func (m *CollateralizeManage) XXX_Size() int { func (m *CollateralizeManage) XXX_Size() int {
return xxx_messageInfo_CollateralizeManage.Size(m) return xxx_messageInfo_CollateralizeManage.Size(m)
...@@ -725,14 +572,14 @@ func (m *CollateralizeManage) GetDebtCeiling() int64 { ...@@ -725,14 +572,14 @@ func (m *CollateralizeManage) GetDebtCeiling() int64 {
return 0 return 0
} }
func (m *CollateralizeManage) GetLiquidationRatio() float64 { func (m *CollateralizeManage) GetLiquidationRatio() int64 {
if m != nil { if m != nil {
return m.LiquidationRatio return m.LiquidationRatio
} }
return 0 return 0
} }
func (m *CollateralizeManage) GetStabilityFeeRatio() float64 { func (m *CollateralizeManage) GetStabilityFeeRatio() int64 {
if m != nil { if m != nil {
return m.StabilityFeeRatio return m.StabilityFeeRatio
} }
...@@ -771,16 +618,17 @@ func (m *CollateralizeAddr) Reset() { *m = CollateralizeAddr{} } ...@@ -771,16 +618,17 @@ func (m *CollateralizeAddr) Reset() { *m = CollateralizeAddr{} }
func (m *CollateralizeAddr) String() string { return proto.CompactTextString(m) } func (m *CollateralizeAddr) String() string { return proto.CompactTextString(m) }
func (*CollateralizeAddr) ProtoMessage() {} func (*CollateralizeAddr) ProtoMessage() {}
func (*CollateralizeAddr) Descriptor() ([]byte, []int) { func (*CollateralizeAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{5} return fileDescriptor_a988fb4a61381972, []int{5}
} }
func (m *CollateralizeAddr) XXX_Unmarshal(b []byte) error { func (m *CollateralizeAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeAddr.Unmarshal(m, b) return xxx_messageInfo_CollateralizeAddr.Unmarshal(m, b)
} }
func (m *CollateralizeAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeAddr.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeAddr.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeAddr) XXX_Merge(src proto.Message) { func (m *CollateralizeAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeAddr.Merge(dst, src) xxx_messageInfo_CollateralizeAddr.Merge(m, src)
} }
func (m *CollateralizeAddr) XXX_Size() int { func (m *CollateralizeAddr) XXX_Size() int {
return xxx_messageInfo_CollateralizeAddr.Size(m) return xxx_messageInfo_CollateralizeAddr.Size(m)
...@@ -810,16 +658,17 @@ func (m *CollateralizeCreate) Reset() { *m = CollateralizeCreate{} } ...@@ -810,16 +658,17 @@ func (m *CollateralizeCreate) Reset() { *m = CollateralizeCreate{} }
func (m *CollateralizeCreate) String() string { return proto.CompactTextString(m) } func (m *CollateralizeCreate) String() string { return proto.CompactTextString(m) }
func (*CollateralizeCreate) ProtoMessage() {} func (*CollateralizeCreate) ProtoMessage() {}
func (*CollateralizeCreate) Descriptor() ([]byte, []int) { func (*CollateralizeCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{6} return fileDescriptor_a988fb4a61381972, []int{6}
} }
func (m *CollateralizeCreate) XXX_Unmarshal(b []byte) error { func (m *CollateralizeCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeCreate.Unmarshal(m, b) return xxx_messageInfo_CollateralizeCreate.Unmarshal(m, b)
} }
func (m *CollateralizeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeCreate.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeCreate.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeCreate) XXX_Merge(src proto.Message) { func (m *CollateralizeCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeCreate.Merge(dst, src) xxx_messageInfo_CollateralizeCreate.Merge(m, src)
} }
func (m *CollateralizeCreate) XXX_Size() int { func (m *CollateralizeCreate) XXX_Size() int {
return xxx_messageInfo_CollateralizeCreate.Size(m) return xxx_messageInfo_CollateralizeCreate.Size(m)
...@@ -850,16 +699,17 @@ func (m *CollateralizeBorrow) Reset() { *m = CollateralizeBorrow{} } ...@@ -850,16 +699,17 @@ func (m *CollateralizeBorrow) Reset() { *m = CollateralizeBorrow{} }
func (m *CollateralizeBorrow) String() string { return proto.CompactTextString(m) } func (m *CollateralizeBorrow) String() string { return proto.CompactTextString(m) }
func (*CollateralizeBorrow) ProtoMessage() {} func (*CollateralizeBorrow) ProtoMessage() {}
func (*CollateralizeBorrow) Descriptor() ([]byte, []int) { func (*CollateralizeBorrow) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{7} return fileDescriptor_a988fb4a61381972, []int{7}
} }
func (m *CollateralizeBorrow) XXX_Unmarshal(b []byte) error { func (m *CollateralizeBorrow) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeBorrow.Unmarshal(m, b) return xxx_messageInfo_CollateralizeBorrow.Unmarshal(m, b)
} }
func (m *CollateralizeBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeBorrow.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeBorrow.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeBorrow) XXX_Merge(src proto.Message) { func (m *CollateralizeBorrow) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeBorrow.Merge(dst, src) xxx_messageInfo_CollateralizeBorrow.Merge(m, src)
} }
func (m *CollateralizeBorrow) XXX_Size() int { func (m *CollateralizeBorrow) XXX_Size() int {
return xxx_messageInfo_CollateralizeBorrow.Size(m) return xxx_messageInfo_CollateralizeBorrow.Size(m)
...@@ -897,16 +747,17 @@ func (m *CollateralizeRepay) Reset() { *m = CollateralizeRepay{} } ...@@ -897,16 +747,17 @@ func (m *CollateralizeRepay) Reset() { *m = CollateralizeRepay{} }
func (m *CollateralizeRepay) String() string { return proto.CompactTextString(m) } func (m *CollateralizeRepay) String() string { return proto.CompactTextString(m) }
func (*CollateralizeRepay) ProtoMessage() {} func (*CollateralizeRepay) ProtoMessage() {}
func (*CollateralizeRepay) Descriptor() ([]byte, []int) { func (*CollateralizeRepay) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{8} return fileDescriptor_a988fb4a61381972, []int{8}
} }
func (m *CollateralizeRepay) XXX_Unmarshal(b []byte) error { func (m *CollateralizeRepay) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeRepay.Unmarshal(m, b) return xxx_messageInfo_CollateralizeRepay.Unmarshal(m, b)
} }
func (m *CollateralizeRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeRepay.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeRepay.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeRepay) XXX_Merge(src proto.Message) { func (m *CollateralizeRepay) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeRepay.Merge(dst, src) xxx_messageInfo_CollateralizeRepay.Merge(m, src)
} }
func (m *CollateralizeRepay) XXX_Size() int { func (m *CollateralizeRepay) XXX_Size() int {
return xxx_messageInfo_CollateralizeRepay.Size(m) return xxx_messageInfo_CollateralizeRepay.Size(m)
...@@ -945,16 +796,17 @@ func (m *CollateralizeAppend) Reset() { *m = CollateralizeAppend{} } ...@@ -945,16 +796,17 @@ func (m *CollateralizeAppend) Reset() { *m = CollateralizeAppend{} }
func (m *CollateralizeAppend) String() string { return proto.CompactTextString(m) } func (m *CollateralizeAppend) String() string { return proto.CompactTextString(m) }
func (*CollateralizeAppend) ProtoMessage() {} func (*CollateralizeAppend) ProtoMessage() {}
func (*CollateralizeAppend) Descriptor() ([]byte, []int) { func (*CollateralizeAppend) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{9} return fileDescriptor_a988fb4a61381972, []int{9}
} }
func (m *CollateralizeAppend) XXX_Unmarshal(b []byte) error { func (m *CollateralizeAppend) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeAppend.Unmarshal(m, b) return xxx_messageInfo_CollateralizeAppend.Unmarshal(m, b)
} }
func (m *CollateralizeAppend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeAppend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeAppend.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeAppend.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeAppend) XXX_Merge(src proto.Message) { func (m *CollateralizeAppend) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeAppend.Merge(dst, src) xxx_messageInfo_CollateralizeAppend.Merge(m, src)
} }
func (m *CollateralizeAppend) XXX_Size() int { func (m *CollateralizeAppend) XXX_Size() int {
return xxx_messageInfo_CollateralizeAppend.Size(m) return xxx_messageInfo_CollateralizeAppend.Size(m)
...@@ -988,28 +840,29 @@ func (m *CollateralizeAppend) GetCollateralValue() int64 { ...@@ -988,28 +840,29 @@ func (m *CollateralizeAppend) GetCollateralValue() int64 {
// 喂价 // 喂价
type CollateralizeFeed struct { type CollateralizeFeed struct {
CollType int32 `protobuf:"varint,1,opt,name=collType,proto3" json:"collType,omitempty"` CollType int32 `protobuf:"varint,1,opt,name=collType,proto3" json:"collType,omitempty"`
Price []float64 `protobuf:"fixed64,2,rep,packed,name=price,proto3" json:"price,omitempty"` Price []int64 `protobuf:"varint,2,rep,packed,name=price,proto3" json:"price,omitempty"`
Volume []int64 `protobuf:"varint,3,rep,packed,name=volume,proto3" json:"volume,omitempty"` Volume []int64 `protobuf:"varint,3,rep,packed,name=volume,proto3" json:"volume,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:"-"`
} }
func (m *CollateralizeFeed) Reset() { *m = CollateralizeFeed{} } func (m *CollateralizeFeed) Reset() { *m = CollateralizeFeed{} }
func (m *CollateralizeFeed) String() string { return proto.CompactTextString(m) } func (m *CollateralizeFeed) String() string { return proto.CompactTextString(m) }
func (*CollateralizeFeed) ProtoMessage() {} func (*CollateralizeFeed) ProtoMessage() {}
func (*CollateralizeFeed) Descriptor() ([]byte, []int) { func (*CollateralizeFeed) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{10} return fileDescriptor_a988fb4a61381972, []int{10}
} }
func (m *CollateralizeFeed) XXX_Unmarshal(b []byte) error { func (m *CollateralizeFeed) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeFeed.Unmarshal(m, b) return xxx_messageInfo_CollateralizeFeed.Unmarshal(m, b)
} }
func (m *CollateralizeFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeFeed.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeFeed.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeFeed) XXX_Merge(src proto.Message) { func (m *CollateralizeFeed) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeFeed.Merge(dst, src) xxx_messageInfo_CollateralizeFeed.Merge(m, src)
} }
func (m *CollateralizeFeed) XXX_Size() int { func (m *CollateralizeFeed) XXX_Size() int {
return xxx_messageInfo_CollateralizeFeed.Size(m) return xxx_messageInfo_CollateralizeFeed.Size(m)
...@@ -1027,7 +880,7 @@ func (m *CollateralizeFeed) GetCollType() int32 { ...@@ -1027,7 +880,7 @@ func (m *CollateralizeFeed) GetCollType() int32 {
return 0 return 0
} }
func (m *CollateralizeFeed) GetPrice() []float64 { func (m *CollateralizeFeed) GetPrice() []int64 {
if m != nil { if m != nil {
return m.Price return m.Price
} }
...@@ -1054,16 +907,17 @@ func (m *CollateralizeRetrieve) Reset() { *m = CollateralizeRetrieve{} } ...@@ -1054,16 +907,17 @@ func (m *CollateralizeRetrieve) Reset() { *m = CollateralizeRetrieve{} }
func (m *CollateralizeRetrieve) String() string { return proto.CompactTextString(m) } func (m *CollateralizeRetrieve) String() string { return proto.CompactTextString(m) }
func (*CollateralizeRetrieve) ProtoMessage() {} func (*CollateralizeRetrieve) ProtoMessage() {}
func (*CollateralizeRetrieve) Descriptor() ([]byte, []int) { func (*CollateralizeRetrieve) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{11} return fileDescriptor_a988fb4a61381972, []int{11}
} }
func (m *CollateralizeRetrieve) XXX_Unmarshal(b []byte) error { func (m *CollateralizeRetrieve) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeRetrieve.Unmarshal(m, b) return xxx_messageInfo_CollateralizeRetrieve.Unmarshal(m, b)
} }
func (m *CollateralizeRetrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeRetrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeRetrieve.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeRetrieve.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeRetrieve) XXX_Merge(src proto.Message) { func (m *CollateralizeRetrieve) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeRetrieve.Merge(dst, src) xxx_messageInfo_CollateralizeRetrieve.Merge(m, src)
} }
func (m *CollateralizeRetrieve) XXX_Size() int { func (m *CollateralizeRetrieve) XXX_Size() int {
return xxx_messageInfo_CollateralizeRetrieve.Size(m) return xxx_messageInfo_CollateralizeRetrieve.Size(m)
...@@ -1103,16 +957,17 @@ func (m *ReceiptCollateralize) Reset() { *m = ReceiptCollateralize{} } ...@@ -1103,16 +957,17 @@ func (m *ReceiptCollateralize) Reset() { *m = ReceiptCollateralize{} }
func (m *ReceiptCollateralize) String() string { return proto.CompactTextString(m) } func (m *ReceiptCollateralize) String() string { return proto.CompactTextString(m) }
func (*ReceiptCollateralize) ProtoMessage() {} func (*ReceiptCollateralize) ProtoMessage() {}
func (*ReceiptCollateralize) Descriptor() ([]byte, []int) { func (*ReceiptCollateralize) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{12} return fileDescriptor_a988fb4a61381972, []int{12}
} }
func (m *ReceiptCollateralize) XXX_Unmarshal(b []byte) error { func (m *ReceiptCollateralize) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptCollateralize.Unmarshal(m, b) return xxx_messageInfo_ReceiptCollateralize.Unmarshal(m, b)
} }
func (m *ReceiptCollateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReceiptCollateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptCollateralize.Marshal(b, m, deterministic) return xxx_messageInfo_ReceiptCollateralize.Marshal(b, m, deterministic)
} }
func (dst *ReceiptCollateralize) XXX_Merge(src proto.Message) { func (m *ReceiptCollateralize) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptCollateralize.Merge(dst, src) xxx_messageInfo_ReceiptCollateralize.Merge(m, src)
} }
func (m *ReceiptCollateralize) XXX_Size() int { func (m *ReceiptCollateralize) XXX_Size() int {
return xxx_messageInfo_ReceiptCollateralize.Size(m) return xxx_messageInfo_ReceiptCollateralize.Size(m)
...@@ -1163,16 +1018,17 @@ func (m *CollateralizeRecords) Reset() { *m = CollateralizeRecords{} } ...@@ -1163,16 +1018,17 @@ func (m *CollateralizeRecords) Reset() { *m = CollateralizeRecords{} }
func (m *CollateralizeRecords) String() string { return proto.CompactTextString(m) } func (m *CollateralizeRecords) String() string { return proto.CompactTextString(m) }
func (*CollateralizeRecords) ProtoMessage() {} func (*CollateralizeRecords) ProtoMessage() {}
func (*CollateralizeRecords) Descriptor() ([]byte, []int) { func (*CollateralizeRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{13} return fileDescriptor_a988fb4a61381972, []int{13}
} }
func (m *CollateralizeRecords) XXX_Unmarshal(b []byte) error { func (m *CollateralizeRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeRecords.Unmarshal(m, b) return xxx_messageInfo_CollateralizeRecords.Unmarshal(m, b)
} }
func (m *CollateralizeRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeRecords.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeRecords.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeRecords) XXX_Merge(src proto.Message) { func (m *CollateralizeRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeRecords.Merge(dst, src) xxx_messageInfo_CollateralizeRecords.Merge(m, src)
} }
func (m *CollateralizeRecords) XXX_Size() int { func (m *CollateralizeRecords) XXX_Size() int {
return xxx_messageInfo_CollateralizeRecords.Size(m) return xxx_messageInfo_CollateralizeRecords.Size(m)
...@@ -1202,16 +1058,17 @@ func (m *ReqCollateralizeInfo) Reset() { *m = ReqCollateralizeInfo{} } ...@@ -1202,16 +1058,17 @@ func (m *ReqCollateralizeInfo) Reset() { *m = ReqCollateralizeInfo{} }
func (m *ReqCollateralizeInfo) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeInfo) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeInfo) ProtoMessage() {} func (*ReqCollateralizeInfo) ProtoMessage() {}
func (*ReqCollateralizeInfo) Descriptor() ([]byte, []int) { func (*ReqCollateralizeInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{14} return fileDescriptor_a988fb4a61381972, []int{14}
} }
func (m *ReqCollateralizeInfo) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeInfo.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeInfo.Unmarshal(m, b)
} }
func (m *ReqCollateralizeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeInfo.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeInfo.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeInfo) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeInfo.Merge(dst, src) xxx_messageInfo_ReqCollateralizeInfo.Merge(m, src)
} }
func (m *ReqCollateralizeInfo) XXX_Size() int { func (m *ReqCollateralizeInfo) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeInfo.Size(m) return xxx_messageInfo_ReqCollateralizeInfo.Size(m)
...@@ -1234,8 +1091,8 @@ type RepCollateralizeCurrentInfo struct { ...@@ -1234,8 +1091,8 @@ type RepCollateralizeCurrentInfo struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
DebtCeiling int64 `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"` DebtCeiling int64 `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
LiquidationRatio float64 `protobuf:"fixed64,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"` LiquidationRatio int64 `protobuf:"varint,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`
StabilityFeeRatio float64 `protobuf:"fixed64,5,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"` StabilityFeeRatio int64 `protobuf:"varint,5,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"`
CreateAddr string `protobuf:"bytes,6,opt,name=createAddr,proto3" json:"createAddr,omitempty"` CreateAddr string `protobuf:"bytes,6,opt,name=createAddr,proto3" json:"createAddr,omitempty"`
Balance int64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"` Balance int64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`
Period int64 `protobuf:"varint,8,opt,name=period,proto3" json:"period,omitempty"` Period int64 `protobuf:"varint,8,opt,name=period,proto3" json:"period,omitempty"`
...@@ -1251,16 +1108,17 @@ func (m *RepCollateralizeCurrentInfo) Reset() { *m = RepCollateralizeCur ...@@ -1251,16 +1108,17 @@ func (m *RepCollateralizeCurrentInfo) Reset() { *m = RepCollateralizeCur
func (m *RepCollateralizeCurrentInfo) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeCurrentInfo) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeCurrentInfo) ProtoMessage() {} func (*RepCollateralizeCurrentInfo) ProtoMessage() {}
func (*RepCollateralizeCurrentInfo) Descriptor() ([]byte, []int) { func (*RepCollateralizeCurrentInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{15} return fileDescriptor_a988fb4a61381972, []int{15}
} }
func (m *RepCollateralizeCurrentInfo) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeCurrentInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeCurrentInfo.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeCurrentInfo.Unmarshal(m, b)
} }
func (m *RepCollateralizeCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeCurrentInfo.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeCurrentInfo.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeCurrentInfo) XXX_Merge(src proto.Message) { func (m *RepCollateralizeCurrentInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeCurrentInfo.Merge(dst, src) xxx_messageInfo_RepCollateralizeCurrentInfo.Merge(m, src)
} }
func (m *RepCollateralizeCurrentInfo) XXX_Size() int { func (m *RepCollateralizeCurrentInfo) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeCurrentInfo.Size(m) return xxx_messageInfo_RepCollateralizeCurrentInfo.Size(m)
...@@ -1292,14 +1150,14 @@ func (m *RepCollateralizeCurrentInfo) GetDebtCeiling() int64 { ...@@ -1292,14 +1150,14 @@ func (m *RepCollateralizeCurrentInfo) GetDebtCeiling() int64 {
return 0 return 0
} }
func (m *RepCollateralizeCurrentInfo) GetLiquidationRatio() float64 { func (m *RepCollateralizeCurrentInfo) GetLiquidationRatio() int64 {
if m != nil { if m != nil {
return m.LiquidationRatio return m.LiquidationRatio
} }
return 0 return 0
} }
func (m *RepCollateralizeCurrentInfo) GetStabilityFeeRatio() float64 { func (m *RepCollateralizeCurrentInfo) GetStabilityFeeRatio() int64 {
if m != nil { if m != nil {
return m.StabilityFeeRatio return m.StabilityFeeRatio
} }
...@@ -1360,16 +1218,17 @@ func (m *ReqCollateralizeInfos) Reset() { *m = ReqCollateralizeInfos{} } ...@@ -1360,16 +1218,17 @@ func (m *ReqCollateralizeInfos) Reset() { *m = ReqCollateralizeInfos{} }
func (m *ReqCollateralizeInfos) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeInfos) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeInfos) ProtoMessage() {} func (*ReqCollateralizeInfos) ProtoMessage() {}
func (*ReqCollateralizeInfos) Descriptor() ([]byte, []int) { func (*ReqCollateralizeInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{16} return fileDescriptor_a988fb4a61381972, []int{16}
} }
func (m *ReqCollateralizeInfos) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeInfos.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeInfos.Unmarshal(m, b)
} }
func (m *ReqCollateralizeInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeInfos.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeInfos.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeInfos) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeInfos.Merge(dst, src) xxx_messageInfo_ReqCollateralizeInfos.Merge(m, src)
} }
func (m *ReqCollateralizeInfos) XXX_Size() int { func (m *ReqCollateralizeInfos) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeInfos.Size(m) return xxx_messageInfo_ReqCollateralizeInfos.Size(m)
...@@ -1399,16 +1258,17 @@ func (m *RepCollateralizeCurrentInfos) Reset() { *m = RepCollateralizeCu ...@@ -1399,16 +1258,17 @@ func (m *RepCollateralizeCurrentInfos) Reset() { *m = RepCollateralizeCu
func (m *RepCollateralizeCurrentInfos) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeCurrentInfos) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeCurrentInfos) ProtoMessage() {} func (*RepCollateralizeCurrentInfos) ProtoMessage() {}
func (*RepCollateralizeCurrentInfos) Descriptor() ([]byte, []int) { func (*RepCollateralizeCurrentInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{17} return fileDescriptor_a988fb4a61381972, []int{17}
} }
func (m *RepCollateralizeCurrentInfos) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeCurrentInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeCurrentInfos.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeCurrentInfos.Unmarshal(m, b)
} }
func (m *RepCollateralizeCurrentInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeCurrentInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeCurrentInfos.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeCurrentInfos.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeCurrentInfos) XXX_Merge(src proto.Message) { func (m *RepCollateralizeCurrentInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeCurrentInfos.Merge(dst, src) xxx_messageInfo_RepCollateralizeCurrentInfos.Merge(m, src)
} }
func (m *RepCollateralizeCurrentInfos) XXX_Size() int { func (m *RepCollateralizeCurrentInfos) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeCurrentInfos.Size(m) return xxx_messageInfo_RepCollateralizeCurrentInfos.Size(m)
...@@ -1439,16 +1299,17 @@ func (m *ReqCollateralizeByStatus) Reset() { *m = ReqCollateralizeByStat ...@@ -1439,16 +1299,17 @@ func (m *ReqCollateralizeByStatus) Reset() { *m = ReqCollateralizeByStat
func (m *ReqCollateralizeByStatus) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeByStatus) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeByStatus) ProtoMessage() {} func (*ReqCollateralizeByStatus) ProtoMessage() {}
func (*ReqCollateralizeByStatus) Descriptor() ([]byte, []int) { func (*ReqCollateralizeByStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{18} return fileDescriptor_a988fb4a61381972, []int{18}
} }
func (m *ReqCollateralizeByStatus) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeByStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeByStatus.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeByStatus.Unmarshal(m, b)
} }
func (m *ReqCollateralizeByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeByStatus.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeByStatus.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeByStatus) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeByStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeByStatus.Merge(dst, src) xxx_messageInfo_ReqCollateralizeByStatus.Merge(m, src)
} }
func (m *ReqCollateralizeByStatus) XXX_Size() int { func (m *ReqCollateralizeByStatus) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeByStatus.Size(m) return xxx_messageInfo_ReqCollateralizeByStatus.Size(m)
...@@ -1487,16 +1348,17 @@ func (m *ReqCollateralizeByAddr) Reset() { *m = ReqCollateralizeByAddr{} ...@@ -1487,16 +1348,17 @@ func (m *ReqCollateralizeByAddr) Reset() { *m = ReqCollateralizeByAddr{}
func (m *ReqCollateralizeByAddr) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeByAddr) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeByAddr) ProtoMessage() {} func (*ReqCollateralizeByAddr) ProtoMessage() {}
func (*ReqCollateralizeByAddr) Descriptor() ([]byte, []int) { func (*ReqCollateralizeByAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{19} return fileDescriptor_a988fb4a61381972, []int{19}
} }
func (m *ReqCollateralizeByAddr) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeByAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeByAddr.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeByAddr.Unmarshal(m, b)
} }
func (m *ReqCollateralizeByAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeByAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeByAddr.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeByAddr.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeByAddr) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeByAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeByAddr.Merge(dst, src) xxx_messageInfo_ReqCollateralizeByAddr.Merge(m, src)
} }
func (m *ReqCollateralizeByAddr) XXX_Size() int { func (m *ReqCollateralizeByAddr) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeByAddr.Size(m) return xxx_messageInfo_ReqCollateralizeByAddr.Size(m)
...@@ -1540,16 +1402,17 @@ func (m *RepCollateralizeIDs) Reset() { *m = RepCollateralizeIDs{} } ...@@ -1540,16 +1402,17 @@ func (m *RepCollateralizeIDs) Reset() { *m = RepCollateralizeIDs{} }
func (m *RepCollateralizeIDs) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeIDs) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeIDs) ProtoMessage() {} func (*RepCollateralizeIDs) ProtoMessage() {}
func (*RepCollateralizeIDs) Descriptor() ([]byte, []int) { func (*RepCollateralizeIDs) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{20} return fileDescriptor_a988fb4a61381972, []int{20}
} }
func (m *RepCollateralizeIDs) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeIDs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeIDs.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeIDs.Unmarshal(m, b)
} }
func (m *RepCollateralizeIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeIDs.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeIDs.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeIDs) XXX_Merge(src proto.Message) { func (m *RepCollateralizeIDs) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeIDs.Merge(dst, src) xxx_messageInfo_RepCollateralizeIDs.Merge(m, src)
} }
func (m *RepCollateralizeIDs) XXX_Size() int { func (m *RepCollateralizeIDs) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeIDs.Size(m) return xxx_messageInfo_RepCollateralizeIDs.Size(m)
...@@ -1582,16 +1445,17 @@ func (m *ReqCollateralizeRecordByAddr) Reset() { *m = ReqCollateralizeRe ...@@ -1582,16 +1445,17 @@ func (m *ReqCollateralizeRecordByAddr) Reset() { *m = ReqCollateralizeRe
func (m *ReqCollateralizeRecordByAddr) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeRecordByAddr) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeRecordByAddr) ProtoMessage() {} func (*ReqCollateralizeRecordByAddr) ProtoMessage() {}
func (*ReqCollateralizeRecordByAddr) Descriptor() ([]byte, []int) { func (*ReqCollateralizeRecordByAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{21} return fileDescriptor_a988fb4a61381972, []int{21}
} }
func (m *ReqCollateralizeRecordByAddr) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeRecordByAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeRecordByAddr.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeRecordByAddr.Unmarshal(m, b)
} }
func (m *ReqCollateralizeRecordByAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeRecordByAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeRecordByAddr.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeRecordByAddr.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeRecordByAddr) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeRecordByAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeRecordByAddr.Merge(dst, src) xxx_messageInfo_ReqCollateralizeRecordByAddr.Merge(m, src)
} }
func (m *ReqCollateralizeRecordByAddr) XXX_Size() int { func (m *ReqCollateralizeRecordByAddr) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeRecordByAddr.Size(m) return xxx_messageInfo_ReqCollateralizeRecordByAddr.Size(m)
...@@ -1644,16 +1508,17 @@ func (m *ReqCollateralizeRecordByStatus) Reset() { *m = ReqCollateralize ...@@ -1644,16 +1508,17 @@ func (m *ReqCollateralizeRecordByStatus) Reset() { *m = ReqCollateralize
func (m *ReqCollateralizeRecordByStatus) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeRecordByStatus) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeRecordByStatus) ProtoMessage() {} func (*ReqCollateralizeRecordByStatus) ProtoMessage() {}
func (*ReqCollateralizeRecordByStatus) Descriptor() ([]byte, []int) { func (*ReqCollateralizeRecordByStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{22} return fileDescriptor_a988fb4a61381972, []int{22}
} }
func (m *ReqCollateralizeRecordByStatus) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeRecordByStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeRecordByStatus.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeRecordByStatus.Unmarshal(m, b)
} }
func (m *ReqCollateralizeRecordByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeRecordByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeRecordByStatus.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeRecordByStatus.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeRecordByStatus) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeRecordByStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeRecordByStatus.Merge(dst, src) xxx_messageInfo_ReqCollateralizeRecordByStatus.Merge(m, src)
} }
func (m *ReqCollateralizeRecordByStatus) XXX_Size() int { func (m *ReqCollateralizeRecordByStatus) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeRecordByStatus.Size(m) return xxx_messageInfo_ReqCollateralizeRecordByStatus.Size(m)
...@@ -1697,16 +1562,17 @@ func (m *RepCollateralizeRecords) Reset() { *m = RepCollateralizeRecords ...@@ -1697,16 +1562,17 @@ func (m *RepCollateralizeRecords) Reset() { *m = RepCollateralizeRecords
func (m *RepCollateralizeRecords) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeRecords) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeRecords) ProtoMessage() {} func (*RepCollateralizeRecords) ProtoMessage() {}
func (*RepCollateralizeRecords) Descriptor() ([]byte, []int) { func (*RepCollateralizeRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{23} return fileDescriptor_a988fb4a61381972, []int{23}
} }
func (m *RepCollateralizeRecords) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeRecords.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeRecords.Unmarshal(m, b)
} }
func (m *RepCollateralizeRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeRecords.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeRecords.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeRecords) XXX_Merge(src proto.Message) { func (m *RepCollateralizeRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeRecords.Merge(dst, src) xxx_messageInfo_RepCollateralizeRecords.Merge(m, src)
} }
func (m *RepCollateralizeRecords) XXX_Size() int { func (m *RepCollateralizeRecords) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeRecords.Size(m) return xxx_messageInfo_RepCollateralizeRecords.Size(m)
...@@ -1737,16 +1603,17 @@ func (m *ReqCollateralizeRecord) Reset() { *m = ReqCollateralizeRecord{} ...@@ -1737,16 +1603,17 @@ func (m *ReqCollateralizeRecord) Reset() { *m = ReqCollateralizeRecord{}
func (m *ReqCollateralizeRecord) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeRecord) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeRecord) ProtoMessage() {} func (*ReqCollateralizeRecord) ProtoMessage() {}
func (*ReqCollateralizeRecord) Descriptor() ([]byte, []int) { func (*ReqCollateralizeRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{24} return fileDescriptor_a988fb4a61381972, []int{24}
} }
func (m *ReqCollateralizeRecord) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeRecord.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeRecord.Unmarshal(m, b)
} }
func (m *ReqCollateralizeRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeRecord.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeRecord.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeRecord) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeRecord.Merge(dst, src) xxx_messageInfo_ReqCollateralizeRecord.Merge(m, src)
} }
func (m *ReqCollateralizeRecord) XXX_Size() int { func (m *ReqCollateralizeRecord) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeRecord.Size(m) return xxx_messageInfo_ReqCollateralizeRecord.Size(m)
...@@ -1783,16 +1650,17 @@ func (m *RepCollateralizeRecord) Reset() { *m = RepCollateralizeRecord{} ...@@ -1783,16 +1650,17 @@ func (m *RepCollateralizeRecord) Reset() { *m = RepCollateralizeRecord{}
func (m *RepCollateralizeRecord) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeRecord) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeRecord) ProtoMessage() {} func (*RepCollateralizeRecord) ProtoMessage() {}
func (*RepCollateralizeRecord) Descriptor() ([]byte, []int) { func (*RepCollateralizeRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{25} return fileDescriptor_a988fb4a61381972, []int{25}
} }
func (m *RepCollateralizeRecord) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeRecord.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeRecord.Unmarshal(m, b)
} }
func (m *RepCollateralizeRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeRecord.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeRecord.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeRecord) XXX_Merge(src proto.Message) { func (m *RepCollateralizeRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeRecord.Merge(dst, src) xxx_messageInfo_RepCollateralizeRecord.Merge(m, src)
} }
func (m *RepCollateralizeRecord) XXX_Size() int { func (m *RepCollateralizeRecord) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeRecord.Size(m) return xxx_messageInfo_RepCollateralizeRecord.Size(m)
...@@ -1813,8 +1681,8 @@ func (m *RepCollateralizeRecord) GetRecord() *BorrowRecord { ...@@ -1813,8 +1681,8 @@ func (m *RepCollateralizeRecord) GetRecord() *BorrowRecord {
// 返回放贷配置 // 返回放贷配置
type RepCollateralizeConfig struct { type RepCollateralizeConfig struct {
DebtCeiling int64 `protobuf:"varint,1,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"` DebtCeiling int64 `protobuf:"varint,1,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
LiquidationRatio float64 `protobuf:"fixed64,2,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"` LiquidationRatio int64 `protobuf:"varint,2,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`
StabilityFeeRatio float64 `protobuf:"fixed64,3,opt,name=stabilityFeeRatio,proto3" json:"stabilityFeeRatio,omitempty"` StabilityFeeRatio int64 `protobuf:"varint,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"`
TotalBalance int64 `protobuf:"varint,5,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` TotalBalance int64 `protobuf:"varint,5,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
Balance int64 `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"` Balance int64 `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"`
...@@ -1828,16 +1696,17 @@ func (m *RepCollateralizeConfig) Reset() { *m = RepCollateralizeConfig{} ...@@ -1828,16 +1696,17 @@ func (m *RepCollateralizeConfig) Reset() { *m = RepCollateralizeConfig{}
func (m *RepCollateralizeConfig) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeConfig) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeConfig) ProtoMessage() {} func (*RepCollateralizeConfig) ProtoMessage() {}
func (*RepCollateralizeConfig) Descriptor() ([]byte, []int) { func (*RepCollateralizeConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{26} return fileDescriptor_a988fb4a61381972, []int{26}
} }
func (m *RepCollateralizeConfig) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeConfig.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeConfig.Unmarshal(m, b)
} }
func (m *RepCollateralizeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeConfig.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeConfig.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeConfig) XXX_Merge(src proto.Message) { func (m *RepCollateralizeConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeConfig.Merge(dst, src) xxx_messageInfo_RepCollateralizeConfig.Merge(m, src)
} }
func (m *RepCollateralizeConfig) XXX_Size() int { func (m *RepCollateralizeConfig) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeConfig.Size(m) return xxx_messageInfo_RepCollateralizeConfig.Size(m)
...@@ -1855,14 +1724,14 @@ func (m *RepCollateralizeConfig) GetDebtCeiling() int64 { ...@@ -1855,14 +1724,14 @@ func (m *RepCollateralizeConfig) GetDebtCeiling() int64 {
return 0 return 0
} }
func (m *RepCollateralizeConfig) GetLiquidationRatio() float64 { func (m *RepCollateralizeConfig) GetLiquidationRatio() int64 {
if m != nil { if m != nil {
return m.LiquidationRatio return m.LiquidationRatio
} }
return 0 return 0
} }
func (m *RepCollateralizeConfig) GetStabilityFeeRatio() float64 { func (m *RepCollateralizeConfig) GetStabilityFeeRatio() int64 {
if m != nil { if m != nil {
return m.StabilityFeeRatio return m.StabilityFeeRatio
} }
...@@ -1899,7 +1768,7 @@ func (m *RepCollateralizeConfig) GetCurrentTime() int64 { ...@@ -1899,7 +1768,7 @@ func (m *RepCollateralizeConfig) GetCurrentTime() int64 {
// 返回最新抵押物价格 // 返回最新抵押物价格
type RepCollateralizePrice struct { type RepCollateralizePrice struct {
Price float64 `protobuf:"fixed64,1,opt,name=price,proto3" json:"price,omitempty"` Price int64 `protobuf:"varint,1,opt,name=price,proto3" json:"price,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:"-"`
...@@ -1909,16 +1778,17 @@ func (m *RepCollateralizePrice) Reset() { *m = RepCollateralizePrice{} } ...@@ -1909,16 +1778,17 @@ func (m *RepCollateralizePrice) Reset() { *m = RepCollateralizePrice{} }
func (m *RepCollateralizePrice) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizePrice) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizePrice) ProtoMessage() {} func (*RepCollateralizePrice) ProtoMessage() {}
func (*RepCollateralizePrice) Descriptor() ([]byte, []int) { func (*RepCollateralizePrice) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_8df09badc6e8384c, []int{27} return fileDescriptor_a988fb4a61381972, []int{27}
} }
func (m *RepCollateralizePrice) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizePrice) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizePrice.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizePrice.Unmarshal(m, b)
} }
func (m *RepCollateralizePrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizePrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizePrice.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizePrice.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizePrice) XXX_Merge(src proto.Message) { func (m *RepCollateralizePrice) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizePrice.Merge(dst, src) xxx_messageInfo_RepCollateralizePrice.Merge(m, src)
} }
func (m *RepCollateralizePrice) XXX_Size() int { func (m *RepCollateralizePrice) XXX_Size() int {
return xxx_messageInfo_RepCollateralizePrice.Size(m) return xxx_messageInfo_RepCollateralizePrice.Size(m)
...@@ -1929,7 +1799,7 @@ func (m *RepCollateralizePrice) XXX_DiscardUnknown() { ...@@ -1929,7 +1799,7 @@ func (m *RepCollateralizePrice) XXX_DiscardUnknown() {
var xxx_messageInfo_RepCollateralizePrice proto.InternalMessageInfo var xxx_messageInfo_RepCollateralizePrice proto.InternalMessageInfo
func (m *RepCollateralizePrice) GetPrice() float64 { func (m *RepCollateralizePrice) GetPrice() int64 {
if m != nil { if m != nil {
return m.Price return m.Price
} }
...@@ -1967,84 +1837,83 @@ func init() { ...@@ -1967,84 +1837,83 @@ func init() {
proto.RegisterType((*RepCollateralizePrice)(nil), "types.RepCollateralizePrice") proto.RegisterType((*RepCollateralizePrice)(nil), "types.RepCollateralizePrice")
} }
func init() { proto.RegisterFile("collateralize.proto", fileDescriptor_collateralize_8df09badc6e8384c) } func init() { proto.RegisterFile("collateralize.proto", fileDescriptor_a988fb4a61381972) }
var fileDescriptor_collateralize_8df09badc6e8384c = []byte{ var fileDescriptor_a988fb4a61381972 = []byte{
// 1203 bytes of a gzipped FileDescriptorProto // 1197 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0x4d, 0x6f, 0xe4, 0x44, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x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0x6b, 0x6c, 0xea, 0x42, 0xc1, 0xbe, 0xa9, 0xd7, 0x58, 0x0d, 0xce, 0x2f,
0xf5, 0x1c, 0xab, 0xc6, 0xf9, 0xe5, 0xbc, 0xa6, 0x4f, 0xd0, 0x7f, 0x13, 0x53, 0xf2, 0x3a, 0xf4, 0xe7, 0x35, 0x7d, 0x22, 0xe2, 0x37, 0x65, 0x4a, 0x5e, 0x87, 0x3e, 0xa2, 0xd4, 0x30, 0xdc, 0x98,
0x25, 0x4a, 0x35, 0xc3, 0x8d, 0x3c, 0x15, 0x84, 0xfe, 0xd2, 0xa9, 0xfb, 0x39, 0x8d, 0xe7, 0x17, 0xa7, 0x82, 0xd0, 0x5f, 0x3a, 0xf5, 0x38, 0x93, 0x78, 0x7e, 0x11, 0x5e, 0xfe, 0x6b, 0x87, 0xb5,
0xe1, 0xe5, 0xbf, 0xb6, 0x59, 0xab, 0x28, 0x60, 0x5f, 0x57, 0x40, 0xa3, 0x8d, 0x1b, 0xd4, 0xdb, 0x8a, 0x02, 0xf6, 0x75, 0x05, 0x34, 0xc6, 0xb8, 0x41, 0x7d, 0x8c, 0x7b, 0x28, 0x44, 0x48, 0x67,
0xb8, 0x87, 0x28, 0x42, 0x7a, 0x34, 0xe4, 0x7f, 0x25, 0x45, 0x0f, 0x60, 0x09, 0xca, 0x72, 0x30, 0x03, 0xff, 0x57, 0x52, 0xcc, 0x00, 0x48, 0x03, 0x2e, 0x66, 0x7d, 0xf9, 0x97, 0x93, 0x47, 0x7f,
0xeb, 0x8b, 0x5f, 0x4e, 0x1e, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xbb, 0xef, 0x9f, 0x50, 0x07, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x5a, 0x9f, 0x55, 0x50, 0x11, 0x00, 0x00,
0x11, 0x00, 0x00,
} }
...@@ -27,7 +27,7 @@ const ( ...@@ -27,7 +27,7 @@ const (
const ( const (
CollateralizeX = "collateralize" CollateralizeX = "collateralize"
CCNYTokenName = "CCNY" CCNYTokenName = "CCNY"
CollateralizePreLiquidationRatio = 1.1 //TODO 预清算比例,抵押物价值跌到借出ccny价值110%的时候开始清算 CollateralizePreLiquidationRatio = 1.1 * 1e4 //TODO 预清算比例,抵押物价值跌到借出ccny价值110%的时候开始清算
) )
//Collateralize status //Collateralize status
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
package executor package executor
import ( import (
"math"
"github.com/33cn/chain33/account" "github.com/33cn/chain33/account"
"github.com/33cn/chain33/common" "github.com/33cn/chain33/common"
dbm "github.com/33cn/chain33/common/db" dbm "github.com/33cn/chain33/common/db"
...@@ -27,9 +25,9 @@ const ( ...@@ -27,9 +25,9 @@ const (
const ( const (
Coin = types.Coin // 1e8 Coin = types.Coin // 1e8
DefaultDebtCeiling = 100000 * Coin // 默认借贷限额 DefaultDebtCeiling = 100000 * Coin // 默认借贷限额
DefaultLiquidationRatio = 0.25 // 默认质押比 DefaultLiquidationRatio = 0.25 * 1e4 // 默认质押比
DefaultPeriod = 3600 * 24 * 365 // 默认合约限期 DefaultPeriod = 3600 * 24 * 365 // 默认合约限期
PriceWarningRate = 1.3 // 价格提前预警率 PriceWarningRate = 1.3 * 1e4 // 价格提前预警率
ExpireWarningTime = 3600 * 24 * 10 // 提前10天超时预警 ExpireWarningTime = 3600 * 24 * 10 // 提前10天超时预警
) )
...@@ -266,8 +264,8 @@ func (action *Action) GetIndex() int64 { ...@@ -266,8 +264,8 @@ func (action *Action) GetIndex() int64 {
return action.height*types.MaxTxsPerBlock + int64(action.index) return action.height*types.MaxTxsPerBlock + int64(action.index)
} }
func getLatestLiquidationPrice(issu *pty.Issuance) float64 { func getLatestLiquidationPrice(issu *pty.Issuance) int64 {
var latest float64 var latest int64
for _, collRecord := range issu.DebtRecords { for _, collRecord := range issu.DebtRecords {
if collRecord.LiquidationPrice > latest { if collRecord.LiquidationPrice > latest {
latest = collRecord.LiquidationPrice latest = collRecord.LiquidationPrice
...@@ -431,19 +429,18 @@ func (action *Action) IssuanceCreate(create *pty.IssuanceCreate) (*types.Receipt ...@@ -431,19 +429,18 @@ func (action *Action) IssuanceCreate(create *pty.IssuanceCreate) (*types.Receipt
} }
// 根据最近抵押物价格计算需要冻结的BTY数量 // 根据最近抵押物价格计算需要冻结的BTY数量
func getBtyNumToFrozen(value int64, price float64, ratio float64) (int64, error) { func getBtyNumToFrozen(value int64, price int64, ratio int64) (int64, error) {
if price == 0 { if price == 0 {
clog.Error("Bty price should greate to 0") clog.Error("Bty price should greate to 0")
return 0, pty.ErrPriceInvalid return 0, pty.ErrPriceInvalid
} }
valueReal := float64(value) / 1e8 btyValue := (value * 1e4) / (price * ratio)
btyValue := valueReal / (price * ratio) return btyValue * 1e4, nil
return int64(math.Trunc((btyValue+0.0000001)*1e4)) * 1e4, nil
} }
// 获取最近抵押物价格 // 获取最近抵押物价格
func getLatestPrice(db dbm.KV) (float64, error) { func getLatestPrice(db dbm.KV) (int64, error) {
data, err := db.Get(PriceKey()) data, err := db.Get(PriceKey())
if err != nil { if err != nil {
clog.Error("getLatestPrice", "get", err) clog.Error("getLatestPrice", "get", err)
...@@ -584,7 +581,7 @@ func (action *Action) IssuanceDebt(debt *pty.IssuanceDebt) (*types.Receipt, erro ...@@ -584,7 +581,7 @@ func (action *Action) IssuanceDebt(debt *pty.IssuanceDebt) (*types.Receipt, erro
debtRecord.StartTime = action.blocktime debtRecord.StartTime = action.blocktime
debtRecord.CollateralPrice = lastPrice debtRecord.CollateralPrice = lastPrice
debtRecord.DebtValue = debt.Value debtRecord.DebtValue = debt.Value
debtRecord.LiquidationPrice = math.Trunc(issu.LiquidationRatio*lastPrice*pty.IssuancePreLiquidationRatio*1e4) / 1e4 debtRecord.LiquidationPrice = (issu.LiquidationRatio*lastPrice*pty.IssuancePreLiquidationRatio) / 1e8
debtRecord.Status = pty.IssuanceUserStatusCreate debtRecord.Status = pty.IssuanceUserStatusCreate
debtRecord.ExpireTime = action.blocktime + issu.Period debtRecord.ExpireTime = action.blocktime + issu.Period
...@@ -702,12 +699,12 @@ func (action *Action) IssuanceRepay(repay *pty.IssuanceRepay) (*types.Receipt, e ...@@ -702,12 +699,12 @@ func (action *Action) IssuanceRepay(repay *pty.IssuanceRepay) (*types.Receipt, e
} }
// 系统清算 // 系统清算
func (action *Action) systemLiquidation(issu *pty.Issuance, price float64) (*types.Receipt, error) { func (action *Action) systemLiquidation(issu *pty.Issuance, price int64) (*types.Receipt, error) {
var logs []*types.ReceiptLog var logs []*types.ReceiptLog
var kv []*types.KeyValue var kv []*types.KeyValue
for index, debtRecord := range issu.DebtRecords { for index, debtRecord := range issu.DebtRecords {
if debtRecord.LiquidationPrice*PriceWarningRate < price { if (debtRecord.LiquidationPrice*PriceWarningRate)/1e4 < price {
if debtRecord.Status == pty.IssuanceUserStatusWarning { if debtRecord.Status == pty.IssuanceUserStatusWarning {
debtRecord.PreStatus = debtRecord.Status debtRecord.PreStatus = debtRecord.Status
debtRecord.Status = pty.IssuanceUserStatusCreate debtRecord.Status = pty.IssuanceUserStatusCreate
...@@ -814,8 +811,8 @@ func (action *Action) expireLiquidation(issu *pty.Issuance) (*types.Receipt, err ...@@ -814,8 +811,8 @@ func (action *Action) expireLiquidation(issu *pty.Issuance) (*types.Receipt, err
} }
// 价格计算策略 // 价格计算策略
func pricePolicy(feed *pty.IssuanceFeed) float64 { func pricePolicy(feed *pty.IssuanceFeed) int64 {
var totalPrice float64 var totalPrice int64
var totalVolume int64 var totalVolume int64
for _, volume := range feed.Volume { for _, volume := range feed.Volume {
totalVolume += volume totalVolume += volume
...@@ -826,7 +823,7 @@ func pricePolicy(feed *pty.IssuanceFeed) float64 { ...@@ -826,7 +823,7 @@ func pricePolicy(feed *pty.IssuanceFeed) float64 {
return 0 return 0
} }
for i, price := range feed.Price { for i, price := range feed.Price {
totalPrice += price * (float64(feed.Volume[i]) / float64(totalVolume)) totalPrice += (price * feed.Volume[i]) / totalVolume
} }
return totalPrice return totalPrice
......
...@@ -7,13 +7,13 @@ message Issuance { ...@@ -7,13 +7,13 @@ message Issuance {
string issuanceId = 1; //发行ID,一期发行对应一个ID string issuanceId = 1; //发行ID,一期发行对应一个ID
int64 totalBalance = 2; //当期发行的总金额(ccny) int64 totalBalance = 2; //当期发行的总金额(ccny)
int64 debtCeiling = 3; //单用户可借出的限额(ccny) int64 debtCeiling = 3; //单用户可借出的限额(ccny)
double liquidationRatio = 4; //清算比例 int64 liquidationRatio = 4; //清算比例
int64 collateralValue = 5; //抵押物总数量(bty) int64 collateralValue = 5; //抵押物总数量(bty)
int64 debtValue = 6; //产生的ccny数量 int64 debtValue = 6; //产生的ccny数量
repeated DebtRecord debtRecords = 7; //大户抵押记录 repeated DebtRecord debtRecords = 7; //大户抵押记录
repeated DebtRecord invalidRecords = 8; //大户抵押记录 repeated DebtRecord invalidRecords = 8; //大户抵押记录
int32 status = 9; //当期发行的状态,是否关闭 int32 status = 9; //当期发行的状态,是否关闭
double latestLiquidationPrice = 10;//最高清算价格 int64 latestLiquidationPrice = 10;//最高清算价格
int64 period = 11;//发行最大期限 int64 period = 11;//发行最大期限
int64 latestExpireTime = 12;//最近超期时间 int64 latestExpireTime = 12;//最近超期时间
int64 createTime = 13;//创建时间 int64 createTime = 13;//创建时间
...@@ -26,9 +26,9 @@ message DebtRecord { ...@@ -26,9 +26,9 @@ message DebtRecord {
string accountAddr = 1; //抵押人地址 string accountAddr = 1; //抵押人地址
int64 startTime = 2; //抵押时间 int64 startTime = 2; //抵押时间
int64 collateralValue = 3; //抵押物价值(bty) int64 collateralValue = 3; //抵押物价值(bty)
double collateralPrice = 4; //抵押物价格 int64 collateralPrice = 4; //抵押物价格
int64 debtValue = 5; //债务价值(ccny) int64 debtValue = 5; //债务价值(ccny)
double liquidationPrice = 6; //抵押物清算价格 int64 liquidationPrice = 6; //抵押物清算价格
int32 status = 7; //抵押状态,是否被清算 int32 status = 7; //抵押状态,是否被清算
int64 liquidateTime = 8; //清算时间 int64 liquidateTime = 8; //清算时间
int64 expireTime = 9; //超时清算时间 int64 expireTime = 9; //超时清算时间
...@@ -40,7 +40,7 @@ message DebtRecord { ...@@ -40,7 +40,7 @@ message DebtRecord {
// 资产价格记录 // 资产价格记录
message IssuanceAssetPriceRecord { message IssuanceAssetPriceRecord {
int64 recordTime = 1; //价格记录时间 int64 recordTime = 1; //价格记录时间
double btyPrice = 2; //bty价格 int64 btyPrice = 2; //bty价格
} }
// action // action
...@@ -64,7 +64,7 @@ message IssuanceManage { ...@@ -64,7 +64,7 @@ message IssuanceManage {
message IssuanceCreate { message IssuanceCreate {
int64 totalBalance = 1; //发行总金额 int64 totalBalance = 1; //发行总金额
int64 debtCeiling = 2; //单用户可借出的限额(ccny) int64 debtCeiling = 2; //单用户可借出的限额(ccny)
double liquidationRatio = 3; //清算比例 int64 liquidationRatio = 3; //清算比例
int64 period = 4; //发行最大期限 int64 period = 4; //发行最大期限
} }
...@@ -83,7 +83,7 @@ message IssuanceRepay { ...@@ -83,7 +83,7 @@ message IssuanceRepay {
// 喂价 // 喂价
message IssuanceFeed { message IssuanceFeed {
int32 collType = 1; //抵押物价格类型(1,bty,2,btc,3,eth...) int32 collType = 1; //抵押物价格类型(1,bty,2,btc,3,eth...)
repeated double price = 2; //喂价 repeated int64 price = 2; //喂价
repeated int64 volume = 3; //成交量 repeated int64 volume = 3; //成交量
} }
...@@ -121,7 +121,7 @@ message RepIssuanceCurrentInfo { ...@@ -121,7 +121,7 @@ message RepIssuanceCurrentInfo {
int32 status = 1; //当期发行的状态,是否关闭 int32 status = 1; //当期发行的状态,是否关闭
int64 totalBalance = 2; //当期发行总金额(ccny) int64 totalBalance = 2; //当期发行总金额(ccny)
int64 debtCeiling = 3; //单用户可借出的限额(ccny) int64 debtCeiling = 3; //单用户可借出的限额(ccny)
double liquidationRatio = 4; //清算比例 int64 liquidationRatio = 4; //清算比例
int64 balance = 5; //剩余可借贷金额(ccny) int64 balance = 5; //剩余可借贷金额(ccny)
int64 collateralValue = 6; //抵押物总数量(bty) int64 collateralValue = 6; //抵押物总数量(bty)
int64 debtValue = 7; //产生的ccny数量 int64 debtValue = 7; //产生的ccny数量
...@@ -171,5 +171,5 @@ message RepIssuanceDebtInfo { ...@@ -171,5 +171,5 @@ message RepIssuanceDebtInfo {
// 返回最新抵押物价格 // 返回最新抵押物价格
message RepIssuancePrice { message RepIssuancePrice {
double price = 1; //当前抵押物最新价格 int64 price = 1; //当前抵押物最新价格
} }
\ No newline at end of file
##发行合约表结构 ## 发行合约表结构
###总发行表issuer表结构 ### 总发行表issuer表结构
字段名称|类型|说明 字段名称|类型|说明
---|---|--- ---|---|---
issuanceId|string|总发行ID,主键 issuanceId|string|总发行ID,主键
status|int32|发行状态(1:已发行 2:已下线) status|int32|发行状态(1:已发行 2:已下线)
###总发行表issuer表索引 ### 总发行表issuer表索引
索引名|说明 索引名|说明
---|--- ---|---
status|根据发行状态查询总发行ID status|根据发行状态查询总发行ID
###大户发行表debt表结构 ### 大户发行表debt表结构
字段名称|类型|说明 字段名称|类型|说明
---|---|--- ---|---|---
debtId|string|大户发行ID,主键 debtId|string|大户发行ID,主键
...@@ -19,7 +19,7 @@ issuanceId|string|总发行ID ...@@ -19,7 +19,7 @@ issuanceId|string|总发行ID
accountAddr|string|用户地址 accountAddr|string|用户地址
status|int32|发行状态(1:已发行 2:价格清算告警 3:价格清算 4:超时清算告警 5:超时清算 6:关闭) status|int32|发行状态(1:已发行 2:价格清算告警 3:价格清算 4:超时清算告警 5:超时清算 6:关闭)
###大户发行表debt表索引 ### 大户发行表debt表索引
索引名|说明 索引名|说明
---|--- ---|---
status|根据大户发行状态查询大户发行ID status|根据大户发行状态查询大户发行ID
......
...@@ -146,7 +146,7 @@ func CreateRawIssuanceCreateTx(cfg *types.Chain33Config, parm *IssuanceCreateTx) ...@@ -146,7 +146,7 @@ func CreateRawIssuanceCreateTx(cfg *types.Chain33Config, parm *IssuanceCreateTx)
v := &IssuanceCreate{ v := &IssuanceCreate{
TotalBalance: int64(math.Trunc((parm.TotalBalance+0.0000001)*1e4)) * 1e4, TotalBalance: int64(math.Trunc((parm.TotalBalance+0.0000001)*1e4)) * 1e4,
DebtCeiling: int64(math.Trunc((parm.DebtCeiling+0.0000001)*1e4)) * 1e4, DebtCeiling: int64(math.Trunc((parm.DebtCeiling+0.0000001)*1e4)) * 1e4,
LiquidationRatio: parm.LiquidationRatio, LiquidationRatio: int64(math.Trunc((parm.LiquidationRatio+0.0000001)*1e4)),
Period: parm.Period, Period: parm.Period,
} }
create := &IssuanceAction{ create := &IssuanceAction{
...@@ -233,9 +233,12 @@ func CreateRawIssuanceFeedTx(cfg *types.Chain33Config, parm *IssuanceFeedTx) (*t ...@@ -233,9 +233,12 @@ func CreateRawIssuanceFeedTx(cfg *types.Chain33Config, parm *IssuanceFeedTx) (*t
} }
v := &IssuanceFeed{ v := &IssuanceFeed{
Price: parm.Price,
Volume: parm.Volume, Volume: parm.Volume,
} }
for _, r := range parm.Price {
v.Price = append(v.Price, int64(math.Trunc(r*1e4)))
}
feed := &IssuanceAction{ feed := &IssuanceAction{
Ty: IssuanceActionFeed, Ty: IssuanceActionFeed,
Value: &IssuanceAction_Feed{v}, Value: &IssuanceAction_Feed{v},
......
...@@ -5,9 +5,7 @@ package types ...@@ -5,9 +5,7 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
math "math" math "math"
) )
...@@ -20,20 +18,20 @@ var _ = math.Inf ...@@ -20,20 +18,20 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 发行信息 // 发行信息
type Issuance struct { type Issuance struct {
IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"` IssuanceId string `protobuf:"bytes,1,opt,name=issuanceId,proto3" json:"issuanceId,omitempty"`
TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
DebtCeiling int64 `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"` DebtCeiling int64 `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
LiquidationRatio float64 `protobuf:"fixed64,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"` LiquidationRatio int64 `protobuf:"varint,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`
CollateralValue int64 `protobuf:"varint,5,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"` CollateralValue int64 `protobuf:"varint,5,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"`
DebtValue int64 `protobuf:"varint,6,opt,name=debtValue,proto3" json:"debtValue,omitempty"` DebtValue int64 `protobuf:"varint,6,opt,name=debtValue,proto3" json:"debtValue,omitempty"`
DebtRecords []*DebtRecord `protobuf:"bytes,7,rep,name=debtRecords,proto3" json:"debtRecords,omitempty"` DebtRecords []*DebtRecord `protobuf:"bytes,7,rep,name=debtRecords,proto3" json:"debtRecords,omitempty"`
InvalidRecords []*DebtRecord `protobuf:"bytes,8,rep,name=invalidRecords,proto3" json:"invalidRecords,omitempty"` InvalidRecords []*DebtRecord `protobuf:"bytes,8,rep,name=invalidRecords,proto3" json:"invalidRecords,omitempty"`
Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"`
LatestLiquidationPrice float64 `protobuf:"fixed64,10,opt,name=latestLiquidationPrice,proto3" json:"latestLiquidationPrice,omitempty"` LatestLiquidationPrice int64 `protobuf:"varint,10,opt,name=latestLiquidationPrice,proto3" json:"latestLiquidationPrice,omitempty"`
Period int64 `protobuf:"varint,11,opt,name=period,proto3" json:"period,omitempty"` Period int64 `protobuf:"varint,11,opt,name=period,proto3" json:"period,omitempty"`
LatestExpireTime int64 `protobuf:"varint,12,opt,name=latestExpireTime,proto3" json:"latestExpireTime,omitempty"` LatestExpireTime int64 `protobuf:"varint,12,opt,name=latestExpireTime,proto3" json:"latestExpireTime,omitempty"`
CreateTime int64 `protobuf:"varint,13,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,13,opt,name=createTime,proto3" json:"createTime,omitempty"`
...@@ -48,16 +46,17 @@ func (m *Issuance) Reset() { *m = Issuance{} } ...@@ -48,16 +46,17 @@ func (m *Issuance) Reset() { *m = Issuance{} }
func (m *Issuance) String() string { return proto.CompactTextString(m) } func (m *Issuance) String() string { return proto.CompactTextString(m) }
func (*Issuance) ProtoMessage() {} func (*Issuance) ProtoMessage() {}
func (*Issuance) Descriptor() ([]byte, []int) { func (*Issuance) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{0} return fileDescriptor_7110f4228953d675, []int{0}
} }
func (m *Issuance) XXX_Unmarshal(b []byte) error { func (m *Issuance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Issuance.Unmarshal(m, b) return xxx_messageInfo_Issuance.Unmarshal(m, b)
} }
func (m *Issuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Issuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Issuance.Marshal(b, m, deterministic) return xxx_messageInfo_Issuance.Marshal(b, m, deterministic)
} }
func (dst *Issuance) XXX_Merge(src proto.Message) { func (m *Issuance) XXX_Merge(src proto.Message) {
xxx_messageInfo_Issuance.Merge(dst, src) xxx_messageInfo_Issuance.Merge(m, src)
} }
func (m *Issuance) XXX_Size() int { func (m *Issuance) XXX_Size() int {
return xxx_messageInfo_Issuance.Size(m) return xxx_messageInfo_Issuance.Size(m)
...@@ -89,7 +88,7 @@ func (m *Issuance) GetDebtCeiling() int64 { ...@@ -89,7 +88,7 @@ func (m *Issuance) GetDebtCeiling() int64 {
return 0 return 0
} }
func (m *Issuance) GetLiquidationRatio() float64 { func (m *Issuance) GetLiquidationRatio() int64 {
if m != nil { if m != nil {
return m.LiquidationRatio return m.LiquidationRatio
} }
...@@ -131,7 +130,7 @@ func (m *Issuance) GetStatus() int32 { ...@@ -131,7 +130,7 @@ func (m *Issuance) GetStatus() int32 {
return 0 return 0
} }
func (m *Issuance) GetLatestLiquidationPrice() float64 { func (m *Issuance) GetLatestLiquidationPrice() int64 {
if m != nil { if m != nil {
return m.LatestLiquidationPrice return m.LatestLiquidationPrice
} }
...@@ -178,9 +177,9 @@ type DebtRecord struct { ...@@ -178,9 +177,9 @@ type DebtRecord struct {
AccountAddr string `protobuf:"bytes,1,opt,name=accountAddr,proto3" json:"accountAddr,omitempty"` AccountAddr string `protobuf:"bytes,1,opt,name=accountAddr,proto3" json:"accountAddr,omitempty"`
StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"` StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
CollateralValue int64 `protobuf:"varint,3,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"` CollateralValue int64 `protobuf:"varint,3,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"`
CollateralPrice float64 `protobuf:"fixed64,4,opt,name=collateralPrice,proto3" json:"collateralPrice,omitempty"` CollateralPrice int64 `protobuf:"varint,4,opt,name=collateralPrice,proto3" json:"collateralPrice,omitempty"`
DebtValue int64 `protobuf:"varint,5,opt,name=debtValue,proto3" json:"debtValue,omitempty"` DebtValue int64 `protobuf:"varint,5,opt,name=debtValue,proto3" json:"debtValue,omitempty"`
LiquidationPrice float64 `protobuf:"fixed64,6,opt,name=liquidationPrice,proto3" json:"liquidationPrice,omitempty"` LiquidationPrice int64 `protobuf:"varint,6,opt,name=liquidationPrice,proto3" json:"liquidationPrice,omitempty"`
Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
LiquidateTime int64 `protobuf:"varint,8,opt,name=liquidateTime,proto3" json:"liquidateTime,omitempty"` LiquidateTime int64 `protobuf:"varint,8,opt,name=liquidateTime,proto3" json:"liquidateTime,omitempty"`
ExpireTime int64 `protobuf:"varint,9,opt,name=expireTime,proto3" json:"expireTime,omitempty"` ExpireTime int64 `protobuf:"varint,9,opt,name=expireTime,proto3" json:"expireTime,omitempty"`
...@@ -196,16 +195,17 @@ func (m *DebtRecord) Reset() { *m = DebtRecord{} } ...@@ -196,16 +195,17 @@ func (m *DebtRecord) Reset() { *m = DebtRecord{} }
func (m *DebtRecord) String() string { return proto.CompactTextString(m) } func (m *DebtRecord) String() string { return proto.CompactTextString(m) }
func (*DebtRecord) ProtoMessage() {} func (*DebtRecord) ProtoMessage() {}
func (*DebtRecord) Descriptor() ([]byte, []int) { func (*DebtRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{1} return fileDescriptor_7110f4228953d675, []int{1}
} }
func (m *DebtRecord) XXX_Unmarshal(b []byte) error { func (m *DebtRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebtRecord.Unmarshal(m, b) return xxx_messageInfo_DebtRecord.Unmarshal(m, b)
} }
func (m *DebtRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *DebtRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebtRecord.Marshal(b, m, deterministic) return xxx_messageInfo_DebtRecord.Marshal(b, m, deterministic)
} }
func (dst *DebtRecord) XXX_Merge(src proto.Message) { func (m *DebtRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebtRecord.Merge(dst, src) xxx_messageInfo_DebtRecord.Merge(m, src)
} }
func (m *DebtRecord) XXX_Size() int { func (m *DebtRecord) XXX_Size() int {
return xxx_messageInfo_DebtRecord.Size(m) return xxx_messageInfo_DebtRecord.Size(m)
...@@ -237,7 +237,7 @@ func (m *DebtRecord) GetCollateralValue() int64 { ...@@ -237,7 +237,7 @@ func (m *DebtRecord) GetCollateralValue() int64 {
return 0 return 0
} }
func (m *DebtRecord) GetCollateralPrice() float64 { func (m *DebtRecord) GetCollateralPrice() int64 {
if m != nil { if m != nil {
return m.CollateralPrice return m.CollateralPrice
} }
...@@ -251,7 +251,7 @@ func (m *DebtRecord) GetDebtValue() int64 { ...@@ -251,7 +251,7 @@ func (m *DebtRecord) GetDebtValue() int64 {
return 0 return 0
} }
func (m *DebtRecord) GetLiquidationPrice() float64 { func (m *DebtRecord) GetLiquidationPrice() int64 {
if m != nil { if m != nil {
return m.LiquidationPrice return m.LiquidationPrice
} }
...@@ -303,7 +303,7 @@ func (m *DebtRecord) GetIssuId() string { ...@@ -303,7 +303,7 @@ func (m *DebtRecord) GetIssuId() string {
// 资产价格记录 // 资产价格记录
type IssuanceAssetPriceRecord struct { type IssuanceAssetPriceRecord struct {
RecordTime int64 `protobuf:"varint,1,opt,name=recordTime,proto3" json:"recordTime,omitempty"` RecordTime int64 `protobuf:"varint,1,opt,name=recordTime,proto3" json:"recordTime,omitempty"`
BtyPrice float64 `protobuf:"fixed64,2,opt,name=btyPrice,proto3" json:"btyPrice,omitempty"` BtyPrice int64 `protobuf:"varint,2,opt,name=btyPrice,proto3" json:"btyPrice,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:"-"`
...@@ -313,16 +313,17 @@ func (m *IssuanceAssetPriceRecord) Reset() { *m = IssuanceAssetPriceReco ...@@ -313,16 +313,17 @@ func (m *IssuanceAssetPriceRecord) Reset() { *m = IssuanceAssetPriceReco
func (m *IssuanceAssetPriceRecord) String() string { return proto.CompactTextString(m) } func (m *IssuanceAssetPriceRecord) String() string { return proto.CompactTextString(m) }
func (*IssuanceAssetPriceRecord) ProtoMessage() {} func (*IssuanceAssetPriceRecord) ProtoMessage() {}
func (*IssuanceAssetPriceRecord) Descriptor() ([]byte, []int) { func (*IssuanceAssetPriceRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{2} return fileDescriptor_7110f4228953d675, []int{2}
} }
func (m *IssuanceAssetPriceRecord) XXX_Unmarshal(b []byte) error { func (m *IssuanceAssetPriceRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceAssetPriceRecord.Unmarshal(m, b) return xxx_messageInfo_IssuanceAssetPriceRecord.Unmarshal(m, b)
} }
func (m *IssuanceAssetPriceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceAssetPriceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceAssetPriceRecord.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceAssetPriceRecord.Marshal(b, m, deterministic)
} }
func (dst *IssuanceAssetPriceRecord) XXX_Merge(src proto.Message) { func (m *IssuanceAssetPriceRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceAssetPriceRecord.Merge(dst, src) xxx_messageInfo_IssuanceAssetPriceRecord.Merge(m, src)
} }
func (m *IssuanceAssetPriceRecord) XXX_Size() int { func (m *IssuanceAssetPriceRecord) XXX_Size() int {
return xxx_messageInfo_IssuanceAssetPriceRecord.Size(m) return xxx_messageInfo_IssuanceAssetPriceRecord.Size(m)
...@@ -340,7 +341,7 @@ func (m *IssuanceAssetPriceRecord) GetRecordTime() int64 { ...@@ -340,7 +341,7 @@ func (m *IssuanceAssetPriceRecord) GetRecordTime() int64 {
return 0 return 0
} }
func (m *IssuanceAssetPriceRecord) GetBtyPrice() float64 { func (m *IssuanceAssetPriceRecord) GetBtyPrice() int64 {
if m != nil { if m != nil {
return m.BtyPrice return m.BtyPrice
} }
...@@ -367,16 +368,17 @@ func (m *IssuanceAction) Reset() { *m = IssuanceAction{} } ...@@ -367,16 +368,17 @@ func (m *IssuanceAction) Reset() { *m = IssuanceAction{} }
func (m *IssuanceAction) String() string { return proto.CompactTextString(m) } func (m *IssuanceAction) String() string { return proto.CompactTextString(m) }
func (*IssuanceAction) ProtoMessage() {} func (*IssuanceAction) ProtoMessage() {}
func (*IssuanceAction) Descriptor() ([]byte, []int) { func (*IssuanceAction) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{3} return fileDescriptor_7110f4228953d675, []int{3}
} }
func (m *IssuanceAction) XXX_Unmarshal(b []byte) error { func (m *IssuanceAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceAction.Unmarshal(m, b) return xxx_messageInfo_IssuanceAction.Unmarshal(m, b)
} }
func (m *IssuanceAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceAction.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceAction.Marshal(b, m, deterministic)
} }
func (dst *IssuanceAction) XXX_Merge(src proto.Message) { func (m *IssuanceAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceAction.Merge(dst, src) xxx_messageInfo_IssuanceAction.Merge(m, src)
} }
func (m *IssuanceAction) XXX_Size() int { func (m *IssuanceAction) XXX_Size() int {
return xxx_messageInfo_IssuanceAction.Size(m) return xxx_messageInfo_IssuanceAction.Size(m)
...@@ -483,9 +485,9 @@ func (m *IssuanceAction) GetTy() int32 { ...@@ -483,9 +485,9 @@ func (m *IssuanceAction) GetTy() int32 {
return 0 return 0
} }
// XXX_OneofFuncs is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*IssuanceAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { func (*IssuanceAction) XXX_OneofWrappers() []interface{} {
return _IssuanceAction_OneofMarshaler, _IssuanceAction_OneofUnmarshaler, _IssuanceAction_OneofSizer, []interface{}{ return []interface{}{
(*IssuanceAction_Create)(nil), (*IssuanceAction_Create)(nil),
(*IssuanceAction_Debt)(nil), (*IssuanceAction_Debt)(nil),
(*IssuanceAction_Repay)(nil), (*IssuanceAction_Repay)(nil),
...@@ -495,144 +497,6 @@ func (*IssuanceAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer ...@@ -495,144 +497,6 @@ func (*IssuanceAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer
} }
} }
func _IssuanceAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*IssuanceAction)
// value
switch x := m.Value.(type) {
case *IssuanceAction_Create:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Create); err != nil {
return err
}
case *IssuanceAction_Debt:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Debt); err != nil {
return err
}
case *IssuanceAction_Repay:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Repay); err != nil {
return err
}
case *IssuanceAction_Feed:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Feed); err != nil {
return err
}
case *IssuanceAction_Close:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Close); err != nil {
return err
}
case *IssuanceAction_Manage:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Manage); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("IssuanceAction.Value has unexpected type %T", x)
}
return nil
}
func _IssuanceAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*IssuanceAction)
switch tag {
case 1: // value.create
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceCreate)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Create{msg}
return true, err
case 2: // value.debt
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceDebt)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Debt{msg}
return true, err
case 3: // value.repay
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceRepay)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Repay{msg}
return true, err
case 4: // value.feed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceFeed)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Feed{msg}
return true, err
case 5: // value.close
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceClose)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Close{msg}
return true, err
case 6: // value.manage
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceManage)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Manage{msg}
return true, err
default:
return false, nil
}
}
func _IssuanceAction_OneofSizer(msg proto.Message) (n int) {
m := msg.(*IssuanceAction)
// value
switch x := m.Value.(type) {
case *IssuanceAction_Create:
s := proto.Size(x.Create)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Debt:
s := proto.Size(x.Debt)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Repay:
s := proto.Size(x.Repay)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Feed:
s := proto.Size(x.Feed)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Close:
s := proto.Size(x.Close)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Manage:
s := proto.Size(x.Manage)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type IssuanceManage struct { type IssuanceManage 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:"-"`
...@@ -644,16 +508,17 @@ func (m *IssuanceManage) Reset() { *m = IssuanceManage{} } ...@@ -644,16 +508,17 @@ func (m *IssuanceManage) Reset() { *m = IssuanceManage{} }
func (m *IssuanceManage) String() string { return proto.CompactTextString(m) } func (m *IssuanceManage) String() string { return proto.CompactTextString(m) }
func (*IssuanceManage) ProtoMessage() {} func (*IssuanceManage) ProtoMessage() {}
func (*IssuanceManage) Descriptor() ([]byte, []int) { func (*IssuanceManage) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{4} return fileDescriptor_7110f4228953d675, []int{4}
} }
func (m *IssuanceManage) XXX_Unmarshal(b []byte) error { func (m *IssuanceManage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceManage.Unmarshal(m, b) return xxx_messageInfo_IssuanceManage.Unmarshal(m, b)
} }
func (m *IssuanceManage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceManage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceManage.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceManage.Marshal(b, m, deterministic)
} }
func (dst *IssuanceManage) XXX_Merge(src proto.Message) { func (m *IssuanceManage) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceManage.Merge(dst, src) xxx_messageInfo_IssuanceManage.Merge(m, src)
} }
func (m *IssuanceManage) XXX_Size() int { func (m *IssuanceManage) XXX_Size() int {
return xxx_messageInfo_IssuanceManage.Size(m) return xxx_messageInfo_IssuanceManage.Size(m)
...@@ -675,7 +540,7 @@ func (m *IssuanceManage) GetSuperAddrs() []string { ...@@ -675,7 +540,7 @@ func (m *IssuanceManage) GetSuperAddrs() []string {
type IssuanceCreate struct { type IssuanceCreate struct {
TotalBalance int64 `protobuf:"varint,1,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` TotalBalance int64 `protobuf:"varint,1,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
DebtCeiling int64 `protobuf:"varint,2,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"` DebtCeiling int64 `protobuf:"varint,2,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
LiquidationRatio float64 `protobuf:"fixed64,3,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"` LiquidationRatio int64 `protobuf:"varint,3,opt,name=liquidationRatio,proto3" json:"liquidationRatio,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -686,16 +551,17 @@ func (m *IssuanceCreate) Reset() { *m = IssuanceCreate{} } ...@@ -686,16 +551,17 @@ func (m *IssuanceCreate) Reset() { *m = IssuanceCreate{} }
func (m *IssuanceCreate) String() string { return proto.CompactTextString(m) } func (m *IssuanceCreate) String() string { return proto.CompactTextString(m) }
func (*IssuanceCreate) ProtoMessage() {} func (*IssuanceCreate) ProtoMessage() {}
func (*IssuanceCreate) Descriptor() ([]byte, []int) { func (*IssuanceCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{5} return fileDescriptor_7110f4228953d675, []int{5}
} }
func (m *IssuanceCreate) XXX_Unmarshal(b []byte) error { func (m *IssuanceCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceCreate.Unmarshal(m, b) return xxx_messageInfo_IssuanceCreate.Unmarshal(m, b)
} }
func (m *IssuanceCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceCreate.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceCreate.Marshal(b, m, deterministic)
} }
func (dst *IssuanceCreate) XXX_Merge(src proto.Message) { func (m *IssuanceCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceCreate.Merge(dst, src) xxx_messageInfo_IssuanceCreate.Merge(m, src)
} }
func (m *IssuanceCreate) XXX_Size() int { func (m *IssuanceCreate) XXX_Size() int {
return xxx_messageInfo_IssuanceCreate.Size(m) return xxx_messageInfo_IssuanceCreate.Size(m)
...@@ -720,7 +586,7 @@ func (m *IssuanceCreate) GetDebtCeiling() int64 { ...@@ -720,7 +586,7 @@ func (m *IssuanceCreate) GetDebtCeiling() int64 {
return 0 return 0
} }
func (m *IssuanceCreate) GetLiquidationRatio() float64 { func (m *IssuanceCreate) GetLiquidationRatio() int64 {
if m != nil { if m != nil {
return m.LiquidationRatio return m.LiquidationRatio
} }
...@@ -747,16 +613,17 @@ func (m *IssuanceDebt) Reset() { *m = IssuanceDebt{} } ...@@ -747,16 +613,17 @@ func (m *IssuanceDebt) Reset() { *m = IssuanceDebt{} }
func (m *IssuanceDebt) String() string { return proto.CompactTextString(m) } func (m *IssuanceDebt) String() string { return proto.CompactTextString(m) }
func (*IssuanceDebt) ProtoMessage() {} func (*IssuanceDebt) ProtoMessage() {}
func (*IssuanceDebt) Descriptor() ([]byte, []int) { func (*IssuanceDebt) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{6} return fileDescriptor_7110f4228953d675, []int{6}
} }
func (m *IssuanceDebt) XXX_Unmarshal(b []byte) error { func (m *IssuanceDebt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceDebt.Unmarshal(m, b) return xxx_messageInfo_IssuanceDebt.Unmarshal(m, b)
} }
func (m *IssuanceDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceDebt.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceDebt.Marshal(b, m, deterministic)
} }
func (dst *IssuanceDebt) XXX_Merge(src proto.Message) { func (m *IssuanceDebt) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceDebt.Merge(dst, src) xxx_messageInfo_IssuanceDebt.Merge(m, src)
} }
func (m *IssuanceDebt) XXX_Size() int { func (m *IssuanceDebt) XXX_Size() int {
return xxx_messageInfo_IssuanceDebt.Size(m) return xxx_messageInfo_IssuanceDebt.Size(m)
...@@ -794,16 +661,17 @@ func (m *IssuanceRepay) Reset() { *m = IssuanceRepay{} } ...@@ -794,16 +661,17 @@ func (m *IssuanceRepay) Reset() { *m = IssuanceRepay{} }
func (m *IssuanceRepay) String() string { return proto.CompactTextString(m) } func (m *IssuanceRepay) String() string { return proto.CompactTextString(m) }
func (*IssuanceRepay) ProtoMessage() {} func (*IssuanceRepay) ProtoMessage() {}
func (*IssuanceRepay) Descriptor() ([]byte, []int) { func (*IssuanceRepay) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{7} return fileDescriptor_7110f4228953d675, []int{7}
} }
func (m *IssuanceRepay) XXX_Unmarshal(b []byte) error { func (m *IssuanceRepay) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceRepay.Unmarshal(m, b) return xxx_messageInfo_IssuanceRepay.Unmarshal(m, b)
} }
func (m *IssuanceRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceRepay.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceRepay.Marshal(b, m, deterministic)
} }
func (dst *IssuanceRepay) XXX_Merge(src proto.Message) { func (m *IssuanceRepay) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceRepay.Merge(dst, src) xxx_messageInfo_IssuanceRepay.Merge(m, src)
} }
func (m *IssuanceRepay) XXX_Size() int { func (m *IssuanceRepay) XXX_Size() int {
return xxx_messageInfo_IssuanceRepay.Size(m) return xxx_messageInfo_IssuanceRepay.Size(m)
...@@ -830,28 +698,29 @@ func (m *IssuanceRepay) GetDebtId() string { ...@@ -830,28 +698,29 @@ func (m *IssuanceRepay) GetDebtId() string {
// 喂价 // 喂价
type IssuanceFeed struct { type IssuanceFeed struct {
CollType int32 `protobuf:"varint,1,opt,name=collType,proto3" json:"collType,omitempty"` CollType int32 `protobuf:"varint,1,opt,name=collType,proto3" json:"collType,omitempty"`
Price []float64 `protobuf:"fixed64,2,rep,packed,name=price,proto3" json:"price,omitempty"` Price []int64 `protobuf:"varint,2,rep,packed,name=price,proto3" json:"price,omitempty"`
Volume []int64 `protobuf:"varint,3,rep,packed,name=volume,proto3" json:"volume,omitempty"` Volume []int64 `protobuf:"varint,3,rep,packed,name=volume,proto3" json:"volume,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:"-"`
} }
func (m *IssuanceFeed) Reset() { *m = IssuanceFeed{} } func (m *IssuanceFeed) Reset() { *m = IssuanceFeed{} }
func (m *IssuanceFeed) String() string { return proto.CompactTextString(m) } func (m *IssuanceFeed) String() string { return proto.CompactTextString(m) }
func (*IssuanceFeed) ProtoMessage() {} func (*IssuanceFeed) ProtoMessage() {}
func (*IssuanceFeed) Descriptor() ([]byte, []int) { func (*IssuanceFeed) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{8} return fileDescriptor_7110f4228953d675, []int{8}
} }
func (m *IssuanceFeed) XXX_Unmarshal(b []byte) error { func (m *IssuanceFeed) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceFeed.Unmarshal(m, b) return xxx_messageInfo_IssuanceFeed.Unmarshal(m, b)
} }
func (m *IssuanceFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceFeed.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceFeed.Marshal(b, m, deterministic)
} }
func (dst *IssuanceFeed) XXX_Merge(src proto.Message) { func (m *IssuanceFeed) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceFeed.Merge(dst, src) xxx_messageInfo_IssuanceFeed.Merge(m, src)
} }
func (m *IssuanceFeed) XXX_Size() int { func (m *IssuanceFeed) XXX_Size() int {
return xxx_messageInfo_IssuanceFeed.Size(m) return xxx_messageInfo_IssuanceFeed.Size(m)
...@@ -869,7 +738,7 @@ func (m *IssuanceFeed) GetCollType() int32 { ...@@ -869,7 +738,7 @@ func (m *IssuanceFeed) GetCollType() int32 {
return 0 return 0
} }
func (m *IssuanceFeed) GetPrice() []float64 { func (m *IssuanceFeed) GetPrice() []int64 {
if m != nil { if m != nil {
return m.Price return m.Price
} }
...@@ -895,16 +764,17 @@ func (m *IssuanceClose) Reset() { *m = IssuanceClose{} } ...@@ -895,16 +764,17 @@ func (m *IssuanceClose) Reset() { *m = IssuanceClose{} }
func (m *IssuanceClose) String() string { return proto.CompactTextString(m) } func (m *IssuanceClose) String() string { return proto.CompactTextString(m) }
func (*IssuanceClose) ProtoMessage() {} func (*IssuanceClose) ProtoMessage() {}
func (*IssuanceClose) Descriptor() ([]byte, []int) { func (*IssuanceClose) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{9} return fileDescriptor_7110f4228953d675, []int{9}
} }
func (m *IssuanceClose) XXX_Unmarshal(b []byte) error { func (m *IssuanceClose) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceClose.Unmarshal(m, b) return xxx_messageInfo_IssuanceClose.Unmarshal(m, b)
} }
func (m *IssuanceClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceClose.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceClose.Marshal(b, m, deterministic)
} }
func (dst *IssuanceClose) XXX_Merge(src proto.Message) { func (m *IssuanceClose) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceClose.Merge(dst, src) xxx_messageInfo_IssuanceClose.Merge(m, src)
} }
func (m *IssuanceClose) XXX_Size() int { func (m *IssuanceClose) XXX_Size() int {
return xxx_messageInfo_IssuanceClose.Size(m) return xxx_messageInfo_IssuanceClose.Size(m)
...@@ -937,16 +807,17 @@ func (m *ReceiptIssuance) Reset() { *m = ReceiptIssuance{} } ...@@ -937,16 +807,17 @@ func (m *ReceiptIssuance) Reset() { *m = ReceiptIssuance{} }
func (m *ReceiptIssuance) String() string { return proto.CompactTextString(m) } func (m *ReceiptIssuance) String() string { return proto.CompactTextString(m) }
func (*ReceiptIssuance) ProtoMessage() {} func (*ReceiptIssuance) ProtoMessage() {}
func (*ReceiptIssuance) Descriptor() ([]byte, []int) { func (*ReceiptIssuance) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{10} return fileDescriptor_7110f4228953d675, []int{10}
} }
func (m *ReceiptIssuance) XXX_Unmarshal(b []byte) error { func (m *ReceiptIssuance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptIssuance.Unmarshal(m, b) return xxx_messageInfo_ReceiptIssuance.Unmarshal(m, b)
} }
func (m *ReceiptIssuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReceiptIssuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptIssuance.Marshal(b, m, deterministic) return xxx_messageInfo_ReceiptIssuance.Marshal(b, m, deterministic)
} }
func (dst *ReceiptIssuance) XXX_Merge(src proto.Message) { func (m *ReceiptIssuance) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptIssuance.Merge(dst, src) xxx_messageInfo_ReceiptIssuance.Merge(m, src)
} }
func (m *ReceiptIssuance) XXX_Size() int { func (m *ReceiptIssuance) XXX_Size() int {
return xxx_messageInfo_ReceiptIssuance.Size(m) return xxx_messageInfo_ReceiptIssuance.Size(m)
...@@ -998,16 +869,17 @@ func (m *ReceiptIssuanceID) Reset() { *m = ReceiptIssuanceID{} } ...@@ -998,16 +869,17 @@ func (m *ReceiptIssuanceID) Reset() { *m = ReceiptIssuanceID{} }
func (m *ReceiptIssuanceID) String() string { return proto.CompactTextString(m) } func (m *ReceiptIssuanceID) String() string { return proto.CompactTextString(m) }
func (*ReceiptIssuanceID) ProtoMessage() {} func (*ReceiptIssuanceID) ProtoMessage() {}
func (*ReceiptIssuanceID) Descriptor() ([]byte, []int) { func (*ReceiptIssuanceID) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{11} return fileDescriptor_7110f4228953d675, []int{11}
} }
func (m *ReceiptIssuanceID) XXX_Unmarshal(b []byte) error { func (m *ReceiptIssuanceID) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptIssuanceID.Unmarshal(m, b) return xxx_messageInfo_ReceiptIssuanceID.Unmarshal(m, b)
} }
func (m *ReceiptIssuanceID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReceiptIssuanceID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptIssuanceID.Marshal(b, m, deterministic) return xxx_messageInfo_ReceiptIssuanceID.Marshal(b, m, deterministic)
} }
func (dst *ReceiptIssuanceID) XXX_Merge(src proto.Message) { func (m *ReceiptIssuanceID) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptIssuanceID.Merge(dst, src) xxx_messageInfo_ReceiptIssuanceID.Merge(m, src)
} }
func (m *ReceiptIssuanceID) XXX_Size() int { func (m *ReceiptIssuanceID) XXX_Size() int {
return xxx_messageInfo_ReceiptIssuanceID.Size(m) return xxx_messageInfo_ReceiptIssuanceID.Size(m)
...@@ -1044,16 +916,17 @@ func (m *IssuanceRecords) Reset() { *m = IssuanceRecords{} } ...@@ -1044,16 +916,17 @@ func (m *IssuanceRecords) Reset() { *m = IssuanceRecords{} }
func (m *IssuanceRecords) String() string { return proto.CompactTextString(m) } func (m *IssuanceRecords) String() string { return proto.CompactTextString(m) }
func (*IssuanceRecords) ProtoMessage() {} func (*IssuanceRecords) ProtoMessage() {}
func (*IssuanceRecords) Descriptor() ([]byte, []int) { func (*IssuanceRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{12} return fileDescriptor_7110f4228953d675, []int{12}
} }
func (m *IssuanceRecords) XXX_Unmarshal(b []byte) error { func (m *IssuanceRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceRecords.Unmarshal(m, b) return xxx_messageInfo_IssuanceRecords.Unmarshal(m, b)
} }
func (m *IssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceRecords.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceRecords.Marshal(b, m, deterministic)
} }
func (dst *IssuanceRecords) XXX_Merge(src proto.Message) { func (m *IssuanceRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceRecords.Merge(dst, src) xxx_messageInfo_IssuanceRecords.Merge(m, src)
} }
func (m *IssuanceRecords) XXX_Size() int { func (m *IssuanceRecords) XXX_Size() int {
return xxx_messageInfo_IssuanceRecords.Size(m) return xxx_messageInfo_IssuanceRecords.Size(m)
...@@ -1083,16 +956,17 @@ func (m *ReqIssuanceInfo) Reset() { *m = ReqIssuanceInfo{} } ...@@ -1083,16 +956,17 @@ func (m *ReqIssuanceInfo) Reset() { *m = ReqIssuanceInfo{} }
func (m *ReqIssuanceInfo) String() string { return proto.CompactTextString(m) } func (m *ReqIssuanceInfo) String() string { return proto.CompactTextString(m) }
func (*ReqIssuanceInfo) ProtoMessage() {} func (*ReqIssuanceInfo) ProtoMessage() {}
func (*ReqIssuanceInfo) Descriptor() ([]byte, []int) { func (*ReqIssuanceInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{13} return fileDescriptor_7110f4228953d675, []int{13}
} }
func (m *ReqIssuanceInfo) XXX_Unmarshal(b []byte) error { func (m *ReqIssuanceInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqIssuanceInfo.Unmarshal(m, b) return xxx_messageInfo_ReqIssuanceInfo.Unmarshal(m, b)
} }
func (m *ReqIssuanceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqIssuanceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqIssuanceInfo.Marshal(b, m, deterministic) return xxx_messageInfo_ReqIssuanceInfo.Marshal(b, m, deterministic)
} }
func (dst *ReqIssuanceInfo) XXX_Merge(src proto.Message) { func (m *ReqIssuanceInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqIssuanceInfo.Merge(dst, src) xxx_messageInfo_ReqIssuanceInfo.Merge(m, src)
} }
func (m *ReqIssuanceInfo) XXX_Size() int { func (m *ReqIssuanceInfo) XXX_Size() int {
return xxx_messageInfo_ReqIssuanceInfo.Size(m) return xxx_messageInfo_ReqIssuanceInfo.Size(m)
...@@ -1115,7 +989,7 @@ type RepIssuanceCurrentInfo struct { ...@@ -1115,7 +989,7 @@ type RepIssuanceCurrentInfo struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"` TotalBalance int64 `protobuf:"varint,2,opt,name=totalBalance,proto3" json:"totalBalance,omitempty"`
DebtCeiling int64 `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"` DebtCeiling int64 `protobuf:"varint,3,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
LiquidationRatio float64 `protobuf:"fixed64,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"` LiquidationRatio int64 `protobuf:"varint,4,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`
Balance int64 `protobuf:"varint,5,opt,name=balance,proto3" json:"balance,omitempty"` Balance int64 `protobuf:"varint,5,opt,name=balance,proto3" json:"balance,omitempty"`
CollateralValue int64 `protobuf:"varint,6,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"` CollateralValue int64 `protobuf:"varint,6,opt,name=collateralValue,proto3" json:"collateralValue,omitempty"`
DebtValue int64 `protobuf:"varint,7,opt,name=debtValue,proto3" json:"debtValue,omitempty"` DebtValue int64 `protobuf:"varint,7,opt,name=debtValue,proto3" json:"debtValue,omitempty"`
...@@ -1131,16 +1005,17 @@ func (m *RepIssuanceCurrentInfo) Reset() { *m = RepIssuanceCurrentInfo{} ...@@ -1131,16 +1005,17 @@ func (m *RepIssuanceCurrentInfo) Reset() { *m = RepIssuanceCurrentInfo{}
func (m *RepIssuanceCurrentInfo) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceCurrentInfo) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceCurrentInfo) ProtoMessage() {} func (*RepIssuanceCurrentInfo) ProtoMessage() {}
func (*RepIssuanceCurrentInfo) Descriptor() ([]byte, []int) { func (*RepIssuanceCurrentInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{14} return fileDescriptor_7110f4228953d675, []int{14}
} }
func (m *RepIssuanceCurrentInfo) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceCurrentInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceCurrentInfo.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceCurrentInfo.Unmarshal(m, b)
} }
func (m *RepIssuanceCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceCurrentInfo.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceCurrentInfo.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceCurrentInfo) XXX_Merge(src proto.Message) { func (m *RepIssuanceCurrentInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceCurrentInfo.Merge(dst, src) xxx_messageInfo_RepIssuanceCurrentInfo.Merge(m, src)
} }
func (m *RepIssuanceCurrentInfo) XXX_Size() int { func (m *RepIssuanceCurrentInfo) XXX_Size() int {
return xxx_messageInfo_RepIssuanceCurrentInfo.Size(m) return xxx_messageInfo_RepIssuanceCurrentInfo.Size(m)
...@@ -1172,7 +1047,7 @@ func (m *RepIssuanceCurrentInfo) GetDebtCeiling() int64 { ...@@ -1172,7 +1047,7 @@ func (m *RepIssuanceCurrentInfo) GetDebtCeiling() int64 {
return 0 return 0
} }
func (m *RepIssuanceCurrentInfo) GetLiquidationRatio() float64 { func (m *RepIssuanceCurrentInfo) GetLiquidationRatio() int64 {
if m != nil { if m != nil {
return m.LiquidationRatio return m.LiquidationRatio
} }
...@@ -1233,16 +1108,17 @@ func (m *ReqIssuanceInfos) Reset() { *m = ReqIssuanceInfos{} } ...@@ -1233,16 +1108,17 @@ func (m *ReqIssuanceInfos) Reset() { *m = ReqIssuanceInfos{} }
func (m *ReqIssuanceInfos) String() string { return proto.CompactTextString(m) } func (m *ReqIssuanceInfos) String() string { return proto.CompactTextString(m) }
func (*ReqIssuanceInfos) ProtoMessage() {} func (*ReqIssuanceInfos) ProtoMessage() {}
func (*ReqIssuanceInfos) Descriptor() ([]byte, []int) { func (*ReqIssuanceInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{15} return fileDescriptor_7110f4228953d675, []int{15}
} }
func (m *ReqIssuanceInfos) XXX_Unmarshal(b []byte) error { func (m *ReqIssuanceInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqIssuanceInfos.Unmarshal(m, b) return xxx_messageInfo_ReqIssuanceInfos.Unmarshal(m, b)
} }
func (m *ReqIssuanceInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqIssuanceInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqIssuanceInfos.Marshal(b, m, deterministic) return xxx_messageInfo_ReqIssuanceInfos.Marshal(b, m, deterministic)
} }
func (dst *ReqIssuanceInfos) XXX_Merge(src proto.Message) { func (m *ReqIssuanceInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqIssuanceInfos.Merge(dst, src) xxx_messageInfo_ReqIssuanceInfos.Merge(m, src)
} }
func (m *ReqIssuanceInfos) XXX_Size() int { func (m *ReqIssuanceInfos) XXX_Size() int {
return xxx_messageInfo_ReqIssuanceInfos.Size(m) return xxx_messageInfo_ReqIssuanceInfos.Size(m)
...@@ -1272,16 +1148,17 @@ func (m *RepIssuanceCurrentInfos) Reset() { *m = RepIssuanceCurrentInfos ...@@ -1272,16 +1148,17 @@ func (m *RepIssuanceCurrentInfos) Reset() { *m = RepIssuanceCurrentInfos
func (m *RepIssuanceCurrentInfos) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceCurrentInfos) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceCurrentInfos) ProtoMessage() {} func (*RepIssuanceCurrentInfos) ProtoMessage() {}
func (*RepIssuanceCurrentInfos) Descriptor() ([]byte, []int) { func (*RepIssuanceCurrentInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{16} return fileDescriptor_7110f4228953d675, []int{16}
} }
func (m *RepIssuanceCurrentInfos) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceCurrentInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceCurrentInfos.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceCurrentInfos.Unmarshal(m, b)
} }
func (m *RepIssuanceCurrentInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceCurrentInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceCurrentInfos.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceCurrentInfos.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceCurrentInfos) XXX_Merge(src proto.Message) { func (m *RepIssuanceCurrentInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceCurrentInfos.Merge(dst, src) xxx_messageInfo_RepIssuanceCurrentInfos.Merge(m, src)
} }
func (m *RepIssuanceCurrentInfos) XXX_Size() int { func (m *RepIssuanceCurrentInfos) XXX_Size() int {
return xxx_messageInfo_RepIssuanceCurrentInfos.Size(m) return xxx_messageInfo_RepIssuanceCurrentInfos.Size(m)
...@@ -1312,16 +1189,17 @@ func (m *ReqIssuanceByStatus) Reset() { *m = ReqIssuanceByStatus{} } ...@@ -1312,16 +1189,17 @@ func (m *ReqIssuanceByStatus) Reset() { *m = ReqIssuanceByStatus{} }
func (m *ReqIssuanceByStatus) String() string { return proto.CompactTextString(m) } func (m *ReqIssuanceByStatus) String() string { return proto.CompactTextString(m) }
func (*ReqIssuanceByStatus) ProtoMessage() {} func (*ReqIssuanceByStatus) ProtoMessage() {}
func (*ReqIssuanceByStatus) Descriptor() ([]byte, []int) { func (*ReqIssuanceByStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{17} return fileDescriptor_7110f4228953d675, []int{17}
} }
func (m *ReqIssuanceByStatus) XXX_Unmarshal(b []byte) error { func (m *ReqIssuanceByStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqIssuanceByStatus.Unmarshal(m, b) return xxx_messageInfo_ReqIssuanceByStatus.Unmarshal(m, b)
} }
func (m *ReqIssuanceByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqIssuanceByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqIssuanceByStatus.Marshal(b, m, deterministic) return xxx_messageInfo_ReqIssuanceByStatus.Marshal(b, m, deterministic)
} }
func (dst *ReqIssuanceByStatus) XXX_Merge(src proto.Message) { func (m *ReqIssuanceByStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqIssuanceByStatus.Merge(dst, src) xxx_messageInfo_ReqIssuanceByStatus.Merge(m, src)
} }
func (m *ReqIssuanceByStatus) XXX_Size() int { func (m *ReqIssuanceByStatus) XXX_Size() int {
return xxx_messageInfo_ReqIssuanceByStatus.Size(m) return xxx_messageInfo_ReqIssuanceByStatus.Size(m)
...@@ -1358,16 +1236,17 @@ func (m *RepIssuanceIDs) Reset() { *m = RepIssuanceIDs{} } ...@@ -1358,16 +1236,17 @@ func (m *RepIssuanceIDs) Reset() { *m = RepIssuanceIDs{} }
func (m *RepIssuanceIDs) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceIDs) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceIDs) ProtoMessage() {} func (*RepIssuanceIDs) ProtoMessage() {}
func (*RepIssuanceIDs) Descriptor() ([]byte, []int) { func (*RepIssuanceIDs) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{18} return fileDescriptor_7110f4228953d675, []int{18}
} }
func (m *RepIssuanceIDs) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceIDs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceIDs.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceIDs.Unmarshal(m, b)
} }
func (m *RepIssuanceIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceIDs.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceIDs.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceIDs) XXX_Merge(src proto.Message) { func (m *RepIssuanceIDs) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceIDs.Merge(dst, src) xxx_messageInfo_RepIssuanceIDs.Merge(m, src)
} }
func (m *RepIssuanceIDs) XXX_Size() int { func (m *RepIssuanceIDs) XXX_Size() int {
return xxx_messageInfo_RepIssuanceIDs.Size(m) return xxx_messageInfo_RepIssuanceIDs.Size(m)
...@@ -1400,16 +1279,17 @@ func (m *ReqIssuanceRecords) Reset() { *m = ReqIssuanceRecords{} } ...@@ -1400,16 +1279,17 @@ func (m *ReqIssuanceRecords) Reset() { *m = ReqIssuanceRecords{} }
func (m *ReqIssuanceRecords) String() string { return proto.CompactTextString(m) } func (m *ReqIssuanceRecords) String() string { return proto.CompactTextString(m) }
func (*ReqIssuanceRecords) ProtoMessage() {} func (*ReqIssuanceRecords) ProtoMessage() {}
func (*ReqIssuanceRecords) Descriptor() ([]byte, []int) { func (*ReqIssuanceRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{19} return fileDescriptor_7110f4228953d675, []int{19}
} }
func (m *ReqIssuanceRecords) XXX_Unmarshal(b []byte) error { func (m *ReqIssuanceRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqIssuanceRecords.Unmarshal(m, b) return xxx_messageInfo_ReqIssuanceRecords.Unmarshal(m, b)
} }
func (m *ReqIssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqIssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqIssuanceRecords.Marshal(b, m, deterministic) return xxx_messageInfo_ReqIssuanceRecords.Marshal(b, m, deterministic)
} }
func (dst *ReqIssuanceRecords) XXX_Merge(src proto.Message) { func (m *ReqIssuanceRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqIssuanceRecords.Merge(dst, src) xxx_messageInfo_ReqIssuanceRecords.Merge(m, src)
} }
func (m *ReqIssuanceRecords) XXX_Size() int { func (m *ReqIssuanceRecords) XXX_Size() int {
return xxx_messageInfo_ReqIssuanceRecords.Size(m) return xxx_messageInfo_ReqIssuanceRecords.Size(m)
...@@ -1460,16 +1340,17 @@ func (m *RepIssuanceRecords) Reset() { *m = RepIssuanceRecords{} } ...@@ -1460,16 +1340,17 @@ func (m *RepIssuanceRecords) Reset() { *m = RepIssuanceRecords{} }
func (m *RepIssuanceRecords) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceRecords) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceRecords) ProtoMessage() {} func (*RepIssuanceRecords) ProtoMessage() {}
func (*RepIssuanceRecords) Descriptor() ([]byte, []int) { func (*RepIssuanceRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{20} return fileDescriptor_7110f4228953d675, []int{20}
} }
func (m *RepIssuanceRecords) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceRecords.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceRecords.Unmarshal(m, b)
} }
func (m *RepIssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceRecords.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceRecords.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceRecords) XXX_Merge(src proto.Message) { func (m *RepIssuanceRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceRecords.Merge(dst, src) xxx_messageInfo_RepIssuanceRecords.Merge(m, src)
} }
func (m *RepIssuanceRecords) XXX_Size() int { func (m *RepIssuanceRecords) XXX_Size() int {
return xxx_messageInfo_RepIssuanceRecords.Size(m) return xxx_messageInfo_RepIssuanceRecords.Size(m)
...@@ -1499,16 +1380,17 @@ func (m *RepIssuanceDebtInfo) Reset() { *m = RepIssuanceDebtInfo{} } ...@@ -1499,16 +1380,17 @@ func (m *RepIssuanceDebtInfo) Reset() { *m = RepIssuanceDebtInfo{} }
func (m *RepIssuanceDebtInfo) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceDebtInfo) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceDebtInfo) ProtoMessage() {} func (*RepIssuanceDebtInfo) ProtoMessage() {}
func (*RepIssuanceDebtInfo) Descriptor() ([]byte, []int) { func (*RepIssuanceDebtInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{21} return fileDescriptor_7110f4228953d675, []int{21}
} }
func (m *RepIssuanceDebtInfo) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceDebtInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceDebtInfo.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceDebtInfo.Unmarshal(m, b)
} }
func (m *RepIssuanceDebtInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceDebtInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceDebtInfo.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceDebtInfo.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceDebtInfo) XXX_Merge(src proto.Message) { func (m *RepIssuanceDebtInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceDebtInfo.Merge(dst, src) xxx_messageInfo_RepIssuanceDebtInfo.Merge(m, src)
} }
func (m *RepIssuanceDebtInfo) XXX_Size() int { func (m *RepIssuanceDebtInfo) XXX_Size() int {
return xxx_messageInfo_RepIssuanceDebtInfo.Size(m) return xxx_messageInfo_RepIssuanceDebtInfo.Size(m)
...@@ -1528,7 +1410,7 @@ func (m *RepIssuanceDebtInfo) GetRecord() *DebtRecord { ...@@ -1528,7 +1410,7 @@ func (m *RepIssuanceDebtInfo) GetRecord() *DebtRecord {
// 返回最新抵押物价格 // 返回最新抵押物价格
type RepIssuancePrice struct { type RepIssuancePrice struct {
Price float64 `protobuf:"fixed64,1,opt,name=price,proto3" json:"price,omitempty"` Price int64 `protobuf:"varint,1,opt,name=price,proto3" json:"price,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:"-"`
...@@ -1538,16 +1420,17 @@ func (m *RepIssuancePrice) Reset() { *m = RepIssuancePrice{} } ...@@ -1538,16 +1420,17 @@ func (m *RepIssuancePrice) Reset() { *m = RepIssuancePrice{} }
func (m *RepIssuancePrice) String() string { return proto.CompactTextString(m) } func (m *RepIssuancePrice) String() string { return proto.CompactTextString(m) }
func (*RepIssuancePrice) ProtoMessage() {} func (*RepIssuancePrice) ProtoMessage() {}
func (*RepIssuancePrice) Descriptor() ([]byte, []int) { func (*RepIssuancePrice) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_40720e0041940428, []int{22} return fileDescriptor_7110f4228953d675, []int{22}
} }
func (m *RepIssuancePrice) XXX_Unmarshal(b []byte) error { func (m *RepIssuancePrice) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuancePrice.Unmarshal(m, b) return xxx_messageInfo_RepIssuancePrice.Unmarshal(m, b)
} }
func (m *RepIssuancePrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuancePrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuancePrice.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuancePrice.Marshal(b, m, deterministic)
} }
func (dst *RepIssuancePrice) XXX_Merge(src proto.Message) { func (m *RepIssuancePrice) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuancePrice.Merge(dst, src) xxx_messageInfo_RepIssuancePrice.Merge(m, src)
} }
func (m *RepIssuancePrice) XXX_Size() int { func (m *RepIssuancePrice) XXX_Size() int {
return xxx_messageInfo_RepIssuancePrice.Size(m) return xxx_messageInfo_RepIssuancePrice.Size(m)
...@@ -1558,7 +1441,7 @@ func (m *RepIssuancePrice) XXX_DiscardUnknown() { ...@@ -1558,7 +1441,7 @@ func (m *RepIssuancePrice) XXX_DiscardUnknown() {
var xxx_messageInfo_RepIssuancePrice proto.InternalMessageInfo var xxx_messageInfo_RepIssuancePrice proto.InternalMessageInfo
func (m *RepIssuancePrice) GetPrice() float64 { func (m *RepIssuancePrice) GetPrice() int64 {
if m != nil { if m != nil {
return m.Price return m.Price
} }
...@@ -1591,73 +1474,73 @@ func init() { ...@@ -1591,73 +1474,73 @@ func init() {
proto.RegisterType((*RepIssuancePrice)(nil), "types.RepIssuancePrice") proto.RegisterType((*RepIssuancePrice)(nil), "types.RepIssuancePrice")
} }
func init() { proto.RegisterFile("issuance.proto", fileDescriptor_issuance_40720e0041940428) } func init() { proto.RegisterFile("issuance.proto", fileDescriptor_7110f4228953d675) }
var fileDescriptor_issuance_40720e0041940428 = []byte{ var fileDescriptor_7110f4228953d675 = []byte{
// 1031 bytes of a gzipped FileDescriptorProto // 1026 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6e, 0xdb, 0x46, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6e, 0xe3, 0x36,
0x10, 0x36, 0x49, 0x51, 0xb2, 0x46, 0xb6, 0xec, 0x6c, 0x52, 0x97, 0x28, 0xda, 0x40, 0x58, 0xf4, 0x10, 0x8e, 0x24, 0xcb, 0x3f, 0xe3, 0xc4, 0xc9, 0x72, 0xb7, 0xa9, 0x50,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a, 0xd2, 0x96, 0x17, 0x9b, 0xaa, 0x94, 0xbf, 0xad, 0x28, 0x83, 0x4e, 0x94, 0xa6, 0x4c, 0x7b, 0x9d, 0xfe, 0x74,
0xe9, 0xa0, 0xd5, 0x9f, 0x2e, 0xf0, 0xe6, 0xbc, 0x7b, 0xf3, 0x97, 0xdd, 0x22, 0xda, 0xf2, 0x99, 0x89, 0x37, 0x97, 0xee, 0xcd, 0x5f, 0xba, 0x45, 0xb4, 0xe5, 0x33, 0xb3, 0xad, 0x9f, 0xef, 0x31,
0x59, 0xd7, 0xcf, 0xf7, 0x98, 0xaf, 0xbc, 0xd9, 0x74, 0xa9, 0x10, 0x9e, 0xc1, 0x50, 0x23, 0xcc, 0x5f, 0xa5, 0xdd, 0x74, 0x65, 0x21, 0x3c, 0x83, 0xbe, 0x42, 0xe8, 0x21, 0xbc, 0xc5, 0x85, 0x06,
0x10, 0xde, 0xe2, 0xc2, 0x00, 0xf8, 0x1c, 0x79, 0xaf, 0x3d, 0xe8, 0x4f, 0x9b, 0xba, 0x19, 0x3a, 0xd0, 0x19, 0xf2, 0xde, 0x7a, 0x50, 0x9f, 0x36, 0x6d, 0x33, 0x54, 0xa3, 0x44, 0x2d, 0x6e, 0xfb,
0x24, 0x6f, 0xbd, 0xb8, 0x19, 0xd2, 0x3f, 0x0c, 0xe7, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x7f, 0xf2, 0x1f, 0x86, 0x8b, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x58, 0x59, 0x7e, 0xaa, 0x42, 0x0c,
0x53, 0x25, 0x23, 0x42, 0x0c, 0x00, 0x00, 0x00, 0x00,
} }
...@@ -25,7 +25,7 @@ const ( ...@@ -25,7 +25,7 @@ const (
const ( const (
IssuanceX = "issuance" IssuanceX = "issuance"
CCNYTokenName = "CCNY" CCNYTokenName = "CCNY"
IssuancePreLiquidationRatio = 1.1 //TODO 预清算比例,抵押物价值跌到借出ccny价值110%的时候开始清算 IssuancePreLiquidationRatio = 11000 //TODO 预清算比例,抵押物价值跌到借出ccny价值110%的时候开始清算
) )
//Issuance status //Issuance status
......
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