Skip to content

Commit

Permalink
chore(cleanup): Remove earn_stablecoin_config dynamic config (#6305)
Browse files Browse the repository at this point in the history
### Description

Title

### Test plan

CI

### Related issues

- Part of ACT-1443

### Backwards compatibility

Yes
### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- N/A
  • Loading branch information
finnian0826 authored Dec 6, 2024
1 parent 6f6416d commit c81521e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
13 changes: 0 additions & 13 deletions src/statsig/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,6 @@ export const DynamicConfigs = {
rewardReminderDate: new Date(0).toISOString(),
},
},
[StatsigDynamicConfigs.EARN_STABLECOIN_CONFIG]: {
configName: StatsigDynamicConfigs.EARN_STABLECOIN_CONFIG,
defaultValues: {
providerName: 'Aave',
providerLogoUrl: '',
providerTermsAndConditionsUrl: '',
depositGasPadding: 0,
approveGasPadding: 0,
withdrawGasPadding: 0,
rewardsGasPadding: 0,
moreAavePoolsUrl: '',
},
},
[StatsigDynamicConfigs.APP_CONFIG]: {
configName: StatsigDynamicConfigs.APP_CONFIG,
defaultValues: {
Expand Down
1 change: 0 additions & 1 deletion src/statsig/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export enum StatsigDynamicConfigs {
CICO_TOKEN_INFO = 'cico_token_info',
WALLET_JUMPSTART_CONFIG = 'wallet_jumpstart_config',
NFT_CELEBRATION_CONFIG = 'nft_celebration_config',
EARN_STABLECOIN_CONFIG = 'earn_stablecoin_config',
APP_CONFIG = 'app_config',
EARN_CONFIG = 'earn_config',
}
Expand Down
15 changes: 0 additions & 15 deletions src/transactions/feed/TransactionDetailsScreen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { navigate } from 'src/navigator/NavigationService'
import { Screens } from 'src/navigator/Screens'
import { RootState } from 'src/redux/reducers'
import { NETWORK_NAMES } from 'src/shared/conts'
import { getDynamicConfigParams } from 'src/statsig'
import { StatsigDynamicConfigs } from 'src/statsig/types'
import TransactionDetailsScreen from 'src/transactions/feed/TransactionDetailsScreen'
import {
ClaimReward,
Expand Down Expand Up @@ -61,7 +59,6 @@ import {
} from 'test/values'

jest.mock('src/analytics/AppAnalytics')
jest.mock('src/statsig')

const mockAddress = '0x8C3b8Af721384BB3479915C72CEe32053DeFca4E'
const mockName = 'Hello World'
Expand Down Expand Up @@ -461,18 +458,6 @@ describe('TransactionDetailsScreen', () => {
describe('Earn', () => {
beforeEach(() => {
jest.clearAllMocks()
jest.mocked(getDynamicConfigParams).mockImplementation(({ configName, defaultValues }) => {
switch (configName) {
case StatsigDynamicConfigs.EARN_STABLECOIN_CONFIG:
return {
providerName: 'Aave',
providerLogoUrl: 'logoUrl',
providerTermsAndConditionsUrl: 'termsUrl',
}
default:
return defaultValues
}
})
})

it(`renders check status action for pending ${TokenTransactionTypeV2.EarnClaimReward} transaction`, () => {
Expand Down

0 comments on commit c81521e

Please sign in to comment.