|
|
@@ -3,7 +3,6 @@ package arbitrage
|
|
|
import (
|
|
|
"github.com/ethereum/go-ethereum/arbitrage/api"
|
|
|
"github.com/ethereum/go-ethereum/log"
|
|
|
- "github.com/ethereum/go-ethereum/params"
|
|
|
"github.com/shopspring/decimal"
|
|
|
)
|
|
|
|
|
|
@@ -280,24 +279,7 @@ func ParseLpListToLpHashList(lpList []api.V2Lp) []string {
|
|
|
}
|
|
|
|
|
|
func (h *HistoryArbitrage) GetLpList() []api.V2Lp {
|
|
|
- rst, err := h.javaApi.V2LpListByChainIdAndPaginate(api.V2LpListByChainIdAndPaginateRequest{
|
|
|
- ChainId: params.CoreChainConfig.ChainID.Uint64(),
|
|
|
- PageNumber: 1,
|
|
|
- PageSize: MaxLpLength,
|
|
|
- AuthObj: api.GenerateAuth(),
|
|
|
- })
|
|
|
-
|
|
|
- if err != nil {
|
|
|
- HistoryError("Get lp list error.", err.Error())
|
|
|
- return nil
|
|
|
- }
|
|
|
-
|
|
|
- if !rst.State {
|
|
|
- HistoryError("Get lp list java error.", err.Error())
|
|
|
- return nil
|
|
|
- }
|
|
|
-
|
|
|
- return rst.Data
|
|
|
+ return h.javaApi.GetAllV2LpList(V2LpPath)
|
|
|
}
|
|
|
|
|
|
func PutR0R1ToLpList(lpList []api.V2Lp, balanceMapping map[string][2]decimal.Decimal) {
|