File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
components/transactions/Swap/errors/shared
modules/reserve-overview/graphs Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { isProtocolSwapState } from '../../types/state.types';
1313import { SupplyCapBlockingError } from './SupplyCapBlockingError' ;
1414
1515export const hasSupplyCapBlocking = ( state : SwapState ) => {
16- if ( ! isProtocolSwapState ( state ) || state . swapType === SwapType . RepayWithCollateral ) return false ;
16+ if ( ! isProtocolSwapState ( state ) || state . swapType !== SwapType . CollateralSwap ) return false ;
1717 const reserve = state . isInvertedSwap
1818 ? state . sourceReserve ?. reserve
1919 : state . destinationReserve ?. reserve ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const InterestRateModelGraphContainer = ({
2121 reserve,
2222} : InteresetRateModelGraphContainerProps ) : JSX . Element => {
2323 const { reserves : reservesLegacy } = useAppDataContext ( ) ;
24+
2425 const reserveData = reservesLegacy . find (
2526 ( r ) => r . underlyingAsset . toLowerCase ( ) === reserve . underlyingToken . address . toLowerCase ( )
2627 ) ;
You can’t perform that action at this time.
0 commit comments