chore_: unnecessary preferred chains input router parameters removed

This commit is contained in:
Sale Djenic 2024-06-14 12:42:44 +02:00 committed by Andrea Maria Piana
parent d942ad1a1f
commit e272a0d465
1 changed files with 0 additions and 5 deletions

View File

@ -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
}