chore_: unnecessary preferred chains input router parameters removed
This commit is contained in:
parent
d942ad1a1f
commit
e272a0d465
|
@ -42,7 +42,6 @@ type RouteInputParams struct {
|
|||
ToTokenID string `json:"toTokenID"`
|
||||
DisabledFromChainIDs []uint64 `json:"disabledFromChainIDs"`
|
||||
DisabledToChaindIDs []uint64 `json:"disabledToChaindIDs"`
|
||||
PreferedChainIDs []uint64 `json:"preferedChainIDs"`
|
||||
GasFeeMode GasFeeMode `json:"gasFeeMode" validate:"required"`
|
||||
FromLockedAmount map[uint64]*hexutil.Big `json:"fromLockedAmount"`
|
||||
TestnetMode bool `json:"testnetMode"`
|
||||
|
@ -470,10 +469,6 @@ func (r *Router) SuggestedRoutesV2(ctx context.Context, input *RouteInputParams)
|
|||
continue
|
||||
}
|
||||
|
||||
if len(input.PreferedChainIDs) > 0 && !containsNetworkChainID(dest, input.PreferedChainIDs) {
|
||||
continue
|
||||
}
|
||||
|
||||
if containsNetworkChainID(dest, input.DisabledToChaindIDs) {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue