pancake-frontend
pancake-frontend copied to clipboard
feat: Dont fetch farms in pools public data for prices and use wallet and info api instead
PR-Codex overview
The focus of this PR is to optimize fetching active farms and token prices for pools data.
Detailed summary
- Removed
fetchFarmsPublicDataAsync
import - Renamed
getCurrencyUsdPrice
togetCurrencyListUsdPrice
- Added
getLivePoolsConfig
import - Updated fetching active farms logic
- Added
getInfoTokenPrice
function - Improved pools data fetching efficiency
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}