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

refactor: Remove token name from prediction variables and use generic

Open memoyil opened this issue 6 months ago • 2 comments


PR-Codex overview

This PR updates the prediction feature to use tokens instead of BNB for calculations and display.

Detailed summary

  • Replaced BNB with Token in prediction calculations and display
  • Updated functions and components to reflect token changes
  • Renamed variables and functions for clarity

The following files were skipped due to too many changes: apps/web/src/state/predictions/cakeTransformers.ts, apps/web/src/views/Predictions/components/History/BetResult.tsx, apps/web/src/views/Predictions/components/History/AIPredictions/AIBetResult.tsx, apps/web/src/__tests__/state/predictions/helpers.test.ts, apps/web/src/views/Predictions/components/History/PnlTab/PnlTab.tsx

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar Aug 21 '24 09:08 memoyil