diff --git a/.github/workflows/macstadium-tests.yml b/.github/workflows/macstadium-tests.yml index 4748f7b8df8..b56860eb6de 100644 --- a/.github/workflows/macstadium-tests.yml +++ b/.github/workflows/macstadium-tests.yml @@ -1,5 +1,9 @@ name: iOS e2e tests -on: [pull_request, workflow_dispatch] +on: + pull_request: + # prevent running on draft PRs + types: [opened, synchronize, reopened, ready_for_review] + workflow_dispatch: jobs: # Job to install dependencies diff --git a/e2e/parallel/4_discoverSheetFlow.spec.ts b/e2e/parallel/4_discoverSheetFlow.spec.ts index 5af4b8abd7c..56e5dadf4a1 100644 --- a/e2e/parallel/4_discoverSheetFlow.spec.ts +++ b/e2e/parallel/4_discoverSheetFlow.spec.ts @@ -84,8 +84,8 @@ describe('Discover Screen Flow', () => { await delayTime('long'); await checkIfVisible('favorites-0'); await checkIfVisible('verified-1'); - await checkIfExists('profiles-2'); - await checkIfExists('highLiquidity-3'); + // await checkIfExists('profiles-2'); + // await checkIfExists('highLiquidity-3'); }); it.skip('Should search and open Profile Sheet for rainbowwallet.eth', async () => { diff --git a/src/__swaps__/utils/swaps.ts b/src/__swaps__/utils/swaps.ts index 4d9ec3982ea..e15608724af 100644 --- a/src/__swaps__/utils/swaps.ts +++ b/src/__swaps__/utils/swaps.ts @@ -46,6 +46,8 @@ import { IS_APK_BUILD } from 'react-native-dotenv'; // eslint-disable-next-line @typescript-eslint/no-unused-vars import isTestFlight from '@/helpers/isTestFlight'; +const DEFAULT_SLIPPAGE_BIPS = 500; + // /---- 🎨 Color functions 🎨 ----/ // // export const opacity = (color: string, opacity: number): string => { @@ -356,7 +358,7 @@ export const getDefaultSlippage = (chainId: ChainId, config: RainbowConfig) => { const amount = +( (config.default_slippage_bips_chainId as unknown as { [key: number]: number })[chainId] || DEFAULT_CONFIG.default_slippage_bips_chainId[chainId] || - 200 + DEFAULT_SLIPPAGE_BIPS ); return slippageInBipsToString(amount); @@ -367,7 +369,7 @@ export const getDefaultSlippageWorklet = (chainId: ChainId, config: RainbowConfi const amount = +( (config.default_slippage_bips_chainId as unknown as { [key: number]: number })[chainId] || DEFAULT_CONFIG.default_slippage_bips_chainId[chainId] || - 200 + DEFAULT_SLIPPAGE_BIPS ); return slippageInBipsToStringWorklet(amount); diff --git a/src/model/remoteConfig.ts b/src/model/remoteConfig.ts index 5d0075bfe0a..5c89f95e090 100644 --- a/src/model/remoteConfig.ts +++ b/src/model/remoteConfig.ts @@ -63,37 +63,37 @@ export interface RainbowConfig extends Record<string, string | boolean | number> export const DEFAULT_CONFIG: RainbowConfig = { default_slippage_bips: JSON.stringify({ - apechain: 200, - arbitrum: 200, - avalanche: 200, - base: 200, + apechain: 500, + arbitrum: 500, + avalanche: 500, + base: 500, bsc: 200, - blast: 200, - degen: 200, - gnosis: 200, - gravity: 200, - ink: 200, - linea: 200, + blast: 500, + degen: 500, + gnosis: 500, + gravity: 500, + ink: 500, + linea: 500, mainnet: 100, - optimism: 200, + optimism: 500, polygon: 200, - sanko: 200, - scroll: 200, - zksync: 200, - zora: 200, + sanko: 500, + scroll: 500, + zksync: 500, + zora: 500, }), default_slippage_bips_chainId: JSON.stringify({ - '33139': 200, - '42161': 200, - '43114': 200, - '8453': 200, - '81457': 200, + '33139': 500, + '42161': 500, + '43114': 500, + '8453': 500, + '81457': 500, '56': 200, - '666666666': 200, + '666666666': 500, '1': 100, - '10': 200, + '10': 500, '137': 200, - '7777777': 200, + '7777777': 500, }), f2c_enabled: true, op_nft_network: 'op-mainnet',