diff --git a/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListItem.tsx b/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListItem.tsx index 5d39be3eee..1560bfeadd 100644 --- a/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListItem.tsx +++ b/src/modules/dashboard/lists/SuppliedPositionsList/SuppliedPositionsListItem.tsx @@ -24,7 +24,7 @@ export const SuppliedPositionsListItem = ({ underlyingAsset, }: DashboardReserve) => { const { user } = useAppDataContext(); - const { isIsolated, aIncentivesData, isFrozen, isActive } = reserve; + const { isIsolated, aIncentivesData, isFrozen, isActive, isPaused } = reserve; const { currentMarketData, currentMarket } = useProtocolDataContext(); const { openSupply, openWithdraw, openCollateralChange, openSwap } = useModalContext(); const { debtCeiling } = useAssetCaps(); @@ -38,9 +38,9 @@ export const SuppliedPositionsListItem = ({ user.isolatedReserve?.underlyingAsset === reserve.underlyingAsset || (reserve.isIsolated && user.totalCollateralMarketReferenceCurrency === '0')); - const disableSwap = !isActive || reserve.symbol == 'stETH'; - const disableWithdraw = !isActive; - const disableSupply = !isActive || isFrozen; + const disableSwap = !isActive || isPaused || reserve.symbol == 'stETH'; + const disableWithdraw = !isActive || isPaused; + const disableSupply = !isActive || isFrozen || isPaused; return ( { const currentMarketData = useRootStore((store) => store.currentMarketData); const currentMarket = useRootStore((store) => store.currentMarket); @@ -55,7 +56,8 @@ export const SupplyAssetsListItem = ({ const handleClose = () => { setAnchorEl(null); }; - const disableSupply = !isActive || isFreezed || Number(walletBalance) <= 0 || isMaxCapReached; + const disableSupply = + !isActive || isPaused || isFreezed || Number(walletBalance) <= 0 || isMaxCapReached; const onDetailsClick = () => { trackEvent(DASHBOARD.DETAILS_NAVIGATION, { diff --git a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsListMobileItem.tsx b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsListMobileItem.tsx index 6e2076bf9b..3350393079 100644 --- a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsListMobileItem.tsx +++ b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsListMobileItem.tsx @@ -30,6 +30,7 @@ export const SupplyAssetsListMobileItem = ({ isFreezed, underlyingAsset, detailsAddress, + isPaused, }: DashboardReserve) => { const { currentMarket } = useProtocolDataContext(); const { openSupply } = useModalContext(); @@ -38,7 +39,8 @@ export const SupplyAssetsListMobileItem = ({ const { supplyCap: supplyCapUsage } = useAssetCaps(); const isMaxCapReached = supplyCapUsage.isMaxed; - const disableSupply = !isActive || isFreezed || Number(walletBalance) <= 0 || isMaxCapReached; + const disableSupply = + !isActive || isPaused || isFreezed || Number(walletBalance) <= 0 || isMaxCapReached; return (