Skip to content

Commit 58d3459

Browse files
tien7668NgoKimPhu
andauthored
remove clear from rfq set (#1248)
* remove clear from rfq set * . * hexutil.Encode Signed-off-by: Phu Ngo <12547020+NgoKimPhu@users.noreply.github.com> * hexutil import --------- Signed-off-by: Phu Ngo <12547020+NgoKimPhu@users.noreply.github.com> Co-authored-by: Phu Ngo <12547020+NgoKimPhu@users.noreply.github.com>
1 parent 0accf98 commit 58d3459

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/liquidity-source/clear/pools_list_updater.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/KyberNetwork/ethrpc"
99
"github.com/KyberNetwork/logger"
1010
"github.com/ethereum/go-ethereum/common"
11+
"github.com/ethereum/go-ethereum/common/hexutil"
1112
"github.com/goccy/go-json"
1213
"github.com/samber/lo"
1314

@@ -152,7 +153,7 @@ func (d *PoolsListUpdater) GetNewPools(ctx context.Context, metadataBytes []byte
152153
return entity.Pool{}
153154
}
154155
return entity.Pool{
155-
Address: poolAddress.Hex(),
156+
Address: hexutil.Encode(poolAddresses[i][:]),
156157
Exchange: d.config.DexID,
157158
Type: DexType,
158159
Reserves: lo.Map(tokens[i], func(_ common.Address, _ int) string {

pkg/valueobject/exchange.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,6 @@ var RFQSourceSet = map[Exchange]struct{}{
535535
ExchangePmm5: {},
536536
ExchangeSwaapV2: {},
537537
ExchangeUniswapLO: {},
538-
ExchangeClear: {},
539538
}
540539

541540
func IsRFQSource(exchange Exchange) bool {

0 commit comments

Comments
 (0)