Skip to content

Commit 4d03eed

Browse files
committed
fix prevent incorrect IBC token registration due to a race condition
1 parent 5b7e576 commit 4d03eed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/extension/src/stores/ui-config/ibc-swap.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,12 @@ export class IBCSwapConfig {
196196
);
197197

198198
if (this._lastAmountOutMinimalDenom) {
199-
return modularChainInfoImpl.forceFindCurrency(
199+
const currency = modularChainInfoImpl.findCurrency(
200200
this._lastAmountOutMinimalDenom
201201
);
202+
if (currency) {
203+
return currency;
204+
}
202205
}
203206

204207
return modularChainInfoImpl.getCurrencies()[0];

0 commit comments

Comments
 (0)