Skip to content

Commit 94ad96d

Browse files
authored
Merge branch 'main' into refactor/actions-reserve-overview
2 parents cd6efe0 + aec8621 commit 94ad96d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/transactions/Swap/errors/shared/SupplyCapBlockingGuard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { isProtocolSwapState } from '../../types/state.types';
1313
import { SupplyCapBlockingError } from './SupplyCapBlockingError';
1414

1515
export 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;

src/modules/reserve-overview/graphs/InterestRateModelGraphContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)