Documentation ¶
Overview ¶
Package quoter submits quotes to the RFQ API for which assets the relayer is willing to relay.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager submits quotes to the RFQ API. TODO: should be unexported.
func (*Manager) ShouldProcess ¶
ShouldProcess determines if a quote should be processed.
type Quoter ¶
type Quoter interface { // SubmitAllQuotes submits all quotes to the RFQ API. SubmitAllQuotes(ctx context.Context) (err error) // ShouldProcess determines if a quote should be processed. // We do this by either saving all quotes in-memory, and refreshing via GetSelfQuotes() through the API // The first comparison is does bridge transaction OriginChainID+TokenAddr match with a quote + DestChainID+DestTokenAddr, then we look to see if we have enough amount to relay it + if the price fits our bounds (based on that the Relayer is relaying the destination token for the origin) // validateQuote(BridgeEvent) ShouldProcess(ctx context.Context, quote reldb.QuoteRequest) bool }
Quoter submits quotes to the RFQ API.
Click to show internal directories.
Click to hide internal directories.