pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

feat: Add position details to stableswap/v2 pool detail page

Open memoyil opened this issue 5 months ago • 4 comments


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 common hooks directory for reuse.
  • Updated import paths for useTotalPriceUSD in multiple files.
  • Modified displayApr function to use formatAmount 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}

memoyil avatar Sep 05 '24 10:09 memoyil