Commit 632575b 1 parent d8ed2aa commit 632575b Copy full SHA for 632575b
File tree 1 file changed +3
-2
lines changed
core/src/calleeFunctions/helpers
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ import { getCollateralConfigBySymbol } from '../../constants/COLLATERALS';
17
17
18
18
const EXCHANGE_RATE_CACHE = 20 * 1000 ;
19
19
20
- const getCalleeConfig = function ( collateral : CollateralConfig , marketId : string ) : RegularCalleeConfig {
21
- const marketData = collateral . exchanges [ marketId ] ;
20
+ const getCalleeConfig = function ( collateral : CollateralConfig , _marketId : string ) : RegularCalleeConfig {
21
+ // TODO: remove _marketId from the all uniswapV2 functions, since they have to always use 'Uniswap V2' config
22
+ const marketData = collateral . exchanges [ 'Uniswap V2' ] ;
22
23
const isUniswapTokenNonAutoRouted =
23
24
( marketData ?. callee === 'UniswapV2CalleeDai' || marketData ?. callee === 'UniswapV3Callee' ) &&
24
25
! ( 'automaticRouter' in marketData ) ;
You can’t perform that action at this time.
0 commit comments