Skip to content

Commit

Permalink
Remove FF_IMITATION_MAPPING (#2125)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv authored Nov 13, 2024
1 parent 5dd4899 commit 28e52ab
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/config/entities/__tests__/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ export default (): ReturnType<typeof configuration> => ({
zerionBalancesChainIds: ['137'],
debugLogs: false,
configHooksDebugLogs: false,
imitationMapping: false,
auth: false,
delegatesV2: false,
counterfactualBalances: false,
Expand Down
2 changes: 0 additions & 2 deletions src/config/entities/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,6 @@ export default () => ({
debugLogs: process.env.FF_DEBUG_LOGS?.toLowerCase() === 'true',
configHooksDebugLogs:
process.env.FF_CONFIG_HOOKS_DEBUG_LOGS?.toLowerCase() === 'true',
imitationMapping:
process.env.FF_IMITATION_MAPPING?.toLowerCase() === 'true',
auth: process.env.FF_AUTH?.toLowerCase() === 'true',
delegatesV2: process.env.FF_DELEGATES_V2?.toLowerCase() === 'true',
counterfactualBalances:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {

@Injectable()
export class TransactionsHistoryMapper {
private readonly isImitationMappingEnabled: boolean;
private readonly maxNestedTransfers: number;

constructor(
Expand All @@ -36,9 +35,6 @@ export class TransactionsHistoryMapper {
private readonly transferImitationMapper: TransferImitationMapper,
private readonly creationTransactionMapper: CreationTransactionMapper,
) {
this.isImitationMappingEnabled = this.configurationService.getOrThrow(
'features.imitationMapping',
);
this.maxNestedTransfers = this.configurationService.getOrThrow(
'mappings.history.maxNestedTransfers',
);
Expand Down Expand Up @@ -150,10 +146,6 @@ export class TransactionsHistoryMapper {
.filter(<T>(x: T): x is NonNullable<T> => x != null)
.flat();

if (!this.isImitationMappingEnabled) {
return transactionItems;
}

return this.transferImitationMapper.mapImitations({
transactions: transactionItems,
previousTransaction: args.previousTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ describe('Transactions History Controller (Unit) - Imitation Transactions', () =
},
features: {
...configuration().features,
imitationMapping: true,
improvedAddressPoisoning: true,
},
});
Expand Down

0 comments on commit 28e52ab

Please sign in to comment.