pancake-frontend
pancake-frontend copied to clipboard
feat: Add position details to stableswap/v2 pool detail page
PR-Codex overview
This PR updates the file structure and imports in the project to optimize code organization and reusability.
Detailed summary
- Moved
useTotalPriceUSD
to a commonhooks
directory for reuse. - Updated import paths for
useTotalPriceUSD
in multiple files. - Modified
displayApr
function to useformatAmount
for consistency. - Updated tooltip message in various components to reflect a 24-hour timeframe.
- Refactored
useLPApr
to use Jotai for state management. - Updated translations in
translations.json
file. - Improved handling of total TVL USD calculation in
MyPositions
component. - Added new imports and refactored code in multiple files for consistency.
The following files were skipped due to too many changes:
apps/web/src/pages/v2/pair/[[...currency]].tsx
,apps/web/src/pages/stable/[address].tsx
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}