@@ -14,17 +14,12 @@ import * as originLidoArmCapManagerAbi from '@abi/origin-lido-arm-cap-manager';
1414import { Arm , ArmDailyStat , ArmState , ArmSwap , ArmWithdrawalRequest , TraderateChanged } from '@model' ;
1515import { Block , Context , EvmBatchProcessor , Processor , blockFrequencyTracker , calculateAPY , logFilter } from '@originprotocol/squid-utils' ;
1616import { ensureExchangeRate } from '@shared/post-processors/exchange-rates' ;
17- import { Currency , mainnetCurrencies , MainnetCurrencySymbol } from '@shared/post-processors/exchange-rates/mainnetCurrencies' ;
17+ import { Currency } from '@shared/post-processors/exchange-rates/mainnetCurrencies' ;
1818import { createERC20Entry } from '@templates/erc20/erc20-entry' ;
1919import { createERC20EventTracker } from '@templates/erc20/erc20-event' ;
2020import { createEventProcessor } from '@templates/events/createEventProcessor'
2121import { traceFilter } from '@utils/traceFilter'
2222
23- const currencyToAddress = ( currency : Currency ) : string => {
24- if ( currency . startsWith ( '0x' ) ) return currency . toLowerCase ( )
25- return mainnetCurrencies [ currency as MainnetCurrencySymbol ] . toLowerCase ( )
26- }
27-
2823export const createOriginARMProcessors = ( {
2924 name,
3025 from,
@@ -473,11 +468,11 @@ export const createOriginARMProcessors = ({
473468 } ) ,
474469 createERC20Entry ( {
475470 from,
476- address : currencyToAddress ( token0 ) ,
471+ addressOrSymbol : token0 ,
477472 } ) ,
478473 createERC20Entry ( {
479474 from,
480- address : currencyToAddress ( token1 ) ,
475+ addressOrSymbol : token1 ,
481476 } ) ,
482477 ]
483478}
0 commit comments