Change TradeInfo .proto's price & volume fields to string

This commit is contained in:
ghubstan 2022-02-19 15:06:42 -03:00
parent 1a3622b9ec
commit 3b22aeeb98
No known key found for this signature in database
GPG key ID: E35592D6800A861E

View file

@ -601,7 +601,9 @@ message TradeInfo {
string depositTxId = 10;
string payoutTxId = 11;
uint64 tradeAmountAsLong = 12;
uint64 tradePrice = 13;
// For fiat trades: the fiat price for 1 BTC to 4 decimal places, e.g., 41000.50 EUR is "41000.5000".
// For altcoin trades: the altcoin price for 1 BTC to 8 decimal places, e.g., 0.5 BTC is "0.50000000".
string tradePrice = 13;
string tradingPeerNodeAddress = 14;
string state = 15;
string phase = 16;
@ -614,7 +616,8 @@ message TradeInfo {
bool isWithdrawn = 23;
string contractAsJson = 24;
ContractInfo contract = 25;
uint64 tradeVolume = 26;
// The volume of currency traded for BTC.
string tradeVolume = 26;
BsqSwapTradeInfo bsqSwapTradeInfo = 28;
// Needed by open/closed/failed trade list items.
string closingStatus = 29;