Skip to content

Commit

Permalink
fix: ambient pool issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
rick23p authored and creed-victor committed Jan 28, 2025
1 parent 1cc0e73 commit f5d5b8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export const AmbientMarketMaking: FC = () => {
const { value } = useCacheCall(
'mm',
chainId,
() => loadIndexer(chainId).pools.list(),
async () => {
return (await loadIndexer(chainId).pools.list()).sort((a, b) =>
a.base.symbol < b.base.symbol ? -1 : 1,
);
},
[chainId],
[],
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ export const BobClaimFeesModal: FC<BobClaimFeesModalProps> = ({
<SimpleTable className="mt-6">
<SimpleTableRow
label={t(pageTranslations.earnedToken, {
token: base,
token: base.symbol,
})}
value={<AmountRenderer value={feesBase} />}
/>
<SimpleTableRow
label={t(pageTranslations.earnedToken, {
token: quote,
token: quote.symbol,
})}
value={<AmountRenderer value={feesQuote} />}
/>
Expand Down

0 comments on commit f5d5b8c

Please sign in to comment.