-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 🐛 Fix the pool tvl display when amount > 1B #10896
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in file name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
<Text color="warning" as="span"> | ||
{t('TVL and APR data may not be reflected correctly due to technical limitation, please refer to')}{' '} | ||
<TextLink target="_blank" href={link}> | ||
{t('this link')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'info page'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
return null | ||
} | ||
// const pairAddress = Pair.getAddress(token0.wrapped, token1.wrapped) | ||
const link = `https://pancakeswap.finance/info/v3/pairs/${id}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could be v2/SS and could be different chain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
1. fix links for ss and v2 2. fix text 3. fix typo
|
||
const version = `${protocol === Protocol.V3 ? '/v3/' : ''}` | ||
const stableSwap = `${protocol === Protocol.STABLE ? '?type=stableSwap' : ''}` | ||
const link = `https://pancakeswap.finance/info/${version}${chain}/pairs/${id}${stableSwap}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better use relative link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
PR-Codex overview
This PR introduces a new component,
PoolTvlWarning
, to display warnings about TVL and APR data accuracy in thePoolInfo
view. It also updates localization strings to include a new warning message.Detailed summary
PoolTvlWarning
component inPoolInfo.tsx
.PoolTvlWarning
into thePoolInfo
layout.translations.json
to include: