Skip to content

Commit

Permalink
feat: re-enable PUBLIC_TRADE_ROUTE flag
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Nov 21, 2024
1 parent bd8ac25 commit e910ee5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env.app
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# feature flags
REACT_APP_FEATURE_CHATWOOT=true
REACT_APP_FEATURE_PUBLIC_TRADE_ROUTE=false

# mixpanel
REACT_APP_MIXPANEL_TOKEN=9d304465fc72224aead9e027e7c24356
Expand Down
2 changes: 1 addition & 1 deletion .env.base
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ REACT_APP_FEATURE_FOX_PAGE_FOX_FARMING_SECTION=true
REACT_APP_FEATURE_FOX_PAGE_GOVERNANCE=true
REACT_APP_FEATURE_PHANTOM_WALLET=true
REACT_APP_FEATURE_ZRX_PERMIT2=true
REACT_APP_FEATURE_PUBLIC_TRADE_ROUTE=true
REACT_APP_FEATURE_PUBLIC_TRADE_ROUTE=false
REACT_APP_FEATURE_THOR_FREE_FEES=true
REACT_APP_FEATURE_LIMIT_ORDERS=false

Expand Down
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# feature flags
REACT_APP_FEATURE_CHAINFLIP=true
REACT_APP_FEATURE_CHAINFLIP_DCA=false
REACT_APP_FEATURE_PUBLIC_TRADE_ROUTE=false
REACT_APP_FEATURE_PUBLIC_TRADE_ROUTE=true
REACT_APP_FEATURE_LIMIT_ORDERS=true

# logging
Expand Down
2 changes: 1 addition & 1 deletion .env.develop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# feature flags
REACT_APP_FEATURE_LIMIT_ORDERS=true
REACT_APP_FEATURE_PUBLIC_TRADE_ROUTE=false
REACT_APP_FEATURE_PUBLIC_TRADE_ROUTE=true
REACT_APP_FEATURE_CHAINFLIP=true
REACT_APP_FEATURE_CHAINFLIP_DCA=false

Expand Down
3 changes: 0 additions & 3 deletions src/state/apis/swapper/swapperApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ export const swapperApi = createApi({
}

const getQuoteResult = () => {
// Always get a trade rate if quoteOrRate === 'rate', which is passed if the PublicTradeRoute flag is on for the time being
// this is the sanest way for the time being, since we want to store rates exactly the same as quotes, and fetch a quote instead of a rate at pre-execution time
// when we wire this up fully. Going further, we may or may not want to change heuristics here.
if (quoteOrRate === 'rate')
return getTradeRates(
{
Expand Down

0 comments on commit e910ee5

Please sign in to comment.