We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93ff05 commit 2bdef96Copy full SHA for 2bdef96
src/components/transactions/Swap/errors/shared/SupplyCapBlockingGuard.tsx
@@ -13,7 +13,7 @@ import { isProtocolSwapState } from '../../types/state.types';
13
import { SupplyCapBlockingError } from './SupplyCapBlockingError';
14
15
export const hasSupplyCapBlocking = (state: SwapState) => {
16
- if (!isProtocolSwapState(state) || state.swapType === SwapType.RepayWithCollateral) return false;
+ if (!isProtocolSwapState(state) || state.swapType !== SwapType.CollateralSwap) return false;
17
const reserve = state.isInvertedSwap
18
? state.sourceReserve?.reserve
19
: state.destinationReserve?.reserve;
0 commit comments