|
|
@@ -162,11 +162,15 @@ func (h *HistoryArbitrage) OnTick() {
|
|
|
h.pathList = GetFinalPathList(h.pathList)
|
|
|
// 根据利润排序
|
|
|
InsertionSort(h.pathList)
|
|
|
- for _, path := range h.pathList {
|
|
|
- if path.FeeTokenProfit.GreaterThan(MinProfit) {
|
|
|
- HistoryInfo(fmt.Sprintf("level=%+v, Sim=%+v, lpList=%+v", path.Level, path.Sim.ToJsonString(), path.LpHashList))
|
|
|
- }
|
|
|
- }
|
|
|
+ //for _, path := range h.pathList {
|
|
|
+ // if path.FeeTokenProfit.GreaterThan(MinProfit) {
|
|
|
+ // HistoryInfo(fmt.Sprintf("level=%+v, Sim=%+v, lpList=%+v", path.Level, path.Sim.ToJsonString(), path.LpHashList))
|
|
|
+ // for fmIndex, fm := range path.FmList {
|
|
|
+ // HistoryInfo(fmt.Sprintf("fm%v=%+v", fmIndex, fm))
|
|
|
+ // }
|
|
|
+ // HistoryInfo("")
|
|
|
+ // }
|
|
|
+ //}
|
|
|
// 发交易
|
|
|
// Gas War
|
|
|
// TODO 获取fee
|