|
|
@@ -20,8 +20,6 @@ const showPrices = function(context, task) {
|
|
|
const pair = token.exchange.pair
|
|
|
const OneInchPrice = token.OneInchPrice ? token.OneInchPrice : NaN
|
|
|
const BinancePrice = token.BinancePrice ? token.BinancePrice : NaN
|
|
|
- const PrevOneInchPrice = token.PrevOneInchPrice
|
|
|
- const PrevBinancePrice = token.PrevBinancePrice
|
|
|
const DiffPrice = token.DiffPrice
|
|
|
const percentage = NumKit.getSubFloat((DiffPrice / OneInchPrice) * 100, 2)
|
|
|
|
|
|
@@ -37,12 +35,6 @@ const showPrices = function(context, task) {
|
|
|
return percentage > PriceMonitorConfig.percentageLimit
|
|
|
})()
|
|
|
table.showLine(rows, isLogToFile ? fileLogger : undefined)
|
|
|
-
|
|
|
- // 上一帧的数据
|
|
|
- if (isLogToFile) {
|
|
|
- token.PrevOneInchPrice = token.OneInchPrice
|
|
|
- token.PrevBinancePrice = token.BinancePrice
|
|
|
- }
|
|
|
})
|
|
|
table.printEndLine(logger)
|
|
|
}
|