Skip to content

Commit e0dba9e

Browse files
authored
improve(HubPoolClient): Avoid loading rate model if paymentChain == originChain (#1011)
1 parent 1136e5c commit e0dba9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clients/HubPoolClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ export class HubPoolClient extends BaseAbstractClient {
438438
const { originChainId, paymentChainId, inputAmount, quoteTimestamp } = deposit;
439439
const quoteBlock = quoteBlocks[quoteTimestamp];
440440

441-
if (paymentChainId === undefined) {
441+
if (paymentChainId === undefined || paymentChainId === originChainId) {
442442
return { quoteBlock, realizedLpFeePct: bnZero };
443443
}
444444

0 commit comments

Comments
 (0)