@@ -4,16 +4,13 @@ import { CurrencyLogo, CustomMenu } from 'components';
44import RangeBadge from 'components/v3/Badge/RangeBadge' ;
55import { useActiveWeb3React } from 'hooks' ;
66import { useICHIPosition } from 'hooks/useICHIData' ;
7- import { useDefiEdgePosition } from 'hooks/v3/useDefiedgeStrategyData' ;
87import { useGammaPosition } from 'hooks/v3/useGammaData' ;
98import { usePool } from 'hooks/v3/usePools' ;
109import { useSteerPosition } from 'hooks/v3/useSteerData' ;
1110import {
1211 useGetMerklRewards ,
1312 useV3PositionsFromPool ,
1413} from 'hooks/v3/useV3Farms' ;
15- import IncreaseDefiedgeLiquidityModal from 'pages/PoolsPage/v3/MyDefiedgePoolsV3/IncreaseDefiedgeLiquidityModal' ;
16- import WithdrawDefiedgeLiquidityModal from 'pages/PoolsPage/v3/MyDefiedgePoolsV3/WithdrawDefiedgeLiquidityModal' ;
1714import IncreaseGammaLiquidityModal from 'pages/PoolsPage/v3/MyGammaPoolsV3/IncreaseGammaLiquidityModal' ;
1815import WithdrawGammaLiquidityModal from 'pages/PoolsPage/v3/MyGammaPoolsV3/WithdrawGammaLiquidityModal' ;
1916import IncreaseICHILiquidityModal from 'pages/PoolsPage/v3/MyICHIPools/IncreaseICHILiquidityModal' ;
@@ -50,7 +47,6 @@ export const MerklPairFarmCardDetails: React.FC<Props> = ({ farm }) => {
5047 const farmType = farm . label . split ( ' ' ) [ 0 ] ;
5148 const isICHI = ! ! farm . label . includes ( 'Ichi' ) ;
5249 const isGamma = ! ! farm . label . includes ( 'Gamma' ) ;
53- const isDefiEdge = ! ! farm . label . includes ( 'DefiEdge' ) ;
5450 const isQuickswap = farm . label . toLowerCase ( ) . includes ( 'quickswap' ) ;
5551 const isSteer = ! ! farm . label . includes ( 'Steer' ) ;
5652
@@ -64,14 +60,6 @@ export const MerklPairFarmCardDetails: React.FC<Props> = ({ farm }) => {
6460 farm ?. token0 ,
6561 farm ?. token1 ,
6662 ) ;
67- const {
68- loading : loadingDefiEdge ,
69- data : defiEdgePosition ,
70- } = useDefiEdgePosition (
71- isDefiEdge ? farm . almAddress : undefined ,
72- farm ?. token0 ,
73- farm ?. token1 ,
74- ) ;
7563 const { loading : loadingSteer , data : steerPosition } = useSteerPosition (
7664 isSteer ? farm . almAddress : undefined ,
7765 ) ;
@@ -136,8 +124,6 @@ export const MerklPairFarmCardDetails: React.FC<Props> = ({ farm }) => {
136124 ? loadingICHI
137125 : isGamma
138126 ? loadingGamma
139- : isDefiEdge
140- ? loadingDefiEdge
141127 : isQuickswap
142128 ? loadingQS
143129 : isSteer
@@ -150,9 +136,6 @@ export const MerklPairFarmCardDetails: React.FC<Props> = ({ farm }) => {
150136 if ( isGamma ) {
151137 return gammaPosition ?. balance0 ?? 0 ;
152138 }
153- if ( isDefiEdge ) {
154- return defiEdgePosition ?. balance0 ?? 0 ;
155- }
156139 if ( isQuickswap ) {
157140 return Number ( qsPosition ?. amount0 . toExact ( ) ?? 0 ) ;
158141 }
@@ -163,12 +146,10 @@ export const MerklPairFarmCardDetails: React.FC<Props> = ({ farm }) => {
163146 } , [
164147 isICHI ,
165148 isGamma ,
166- isDefiEdge ,
167149 isQuickswap ,
168150 isSteer ,
169151 ichiPosition ?. token0Balance ,
170152 gammaPosition ?. balance0 ,
171- defiEdgePosition ?. balance0 ,
172153 qsPosition ?. amount0 ,
173154 steerPosition ?. token0BalanceWallet ,
174155 ] ) ;
@@ -180,9 +161,6 @@ export const MerklPairFarmCardDetails: React.FC<Props> = ({ farm }) => {
180161 if ( isGamma ) {
181162 return gammaPosition ?. balance1 ?? 0 ;
182163 }
183- if ( isDefiEdge ) {
184- return defiEdgePosition ?. balance1 ?? 0 ;
185- }
186164 if ( isQuickswap ) {
187165 return Number ( qsPosition ?. amount1 . toExact ( ) ?? 0 ) ;
188166 }
@@ -193,12 +171,10 @@ export const MerklPairFarmCardDetails: React.FC<Props> = ({ farm }) => {
193171 } , [
194172 isICHI ,
195173 isGamma ,
196- isDefiEdge ,
197174 isQuickswap ,
198175 isSteer ,
199176 ichiPosition ?. token1Balance ,
200177 gammaPosition ?. balance1 ,
201- defiEdgePosition ?. balance1 ,
202178 qsPosition ?. amount1 ,
203179 steerPosition ?. token1BalanceWallet ,
204180 ] ) ;
@@ -303,20 +279,6 @@ export const MerklPairFarmCardDetails: React.FC<Props> = ({ farm }) => {
303279 position = { gammaPosition }
304280 />
305281 ) }
306- { defiEdgePosition && openAdd && (
307- < IncreaseDefiedgeLiquidityModal
308- open = { openAdd }
309- onClose = { ( ) => setOpenAdd ( false ) }
310- position = { defiEdgePosition }
311- />
312- ) }
313- { defiEdgePosition && openWithdraw && (
314- < WithdrawDefiedgeLiquidityModal
315- open = { openWithdraw }
316- onClose = { ( ) => setOpenWithdraw ( false ) }
317- position = { defiEdgePosition }
318- />
319- ) }
320282 { steerPosition && openAdd && (
321283 < IncreaseSteerLiquidityModal
322284 open = { openAdd }
0 commit comments