Skip to content

Commit

Permalink
feat: support exclude market makers on hashflow-v3 (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
lehainam-dev authored Oct 3, 2024
1 parent fe1606a commit ca796e8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/liquidity-source/hashflow-v3/rfq.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (
const rfqDefaultChainType = "evm"

type Config struct {
DexID string `json:"dexId"`
HTTP HTTPClientConfig `mapstructure:"http" json:"http"`
DexID string `json:"dexId"`
ExcludeMarketMakers []string `mapstructure:"excludeMarketMakers" json:"excludeMarketMakers"`
HTTP HTTPClientConfig `mapstructure:"http" json:"http"`
}

type IClient interface {
Expand Down Expand Up @@ -62,8 +63,10 @@ func (h *RFQHandler) RFQ(ctx context.Context, params pool.RFQParams) (*pool.RFQR
Trader: params.RFQRecipient,
EffectiveTrader: params.Recipient,

// Intentionally exclude market makers to have higher chance to successfully RFQ
// Intentionally not specific marketMakers field to have higher chance to successfully RFQ
// MarketMakers: []string{swapInfo.MarketMaker},

ExcludeMarketMakers: h.config.ExcludeMarketMakers,
},
},
})
Expand Down

0 comments on commit ca796e8

Please sign in to comment.