Closed memoyil closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 4, 2024 1:02pm |
Latest commit: 50a6af2ccdcfc95a9013b039c16e3120dd216ae5
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
PR-Codex overview
This PR updates the
usePositionManagerName
hook to fetch position manager names based on the chain ID and the position manager data. It introduces a new query for fetching position managers and modifies the existing logic to use this data when retrieving the manager name.Detailed summary
fetchPositionManager
from@pancakeswap/position-managers
.useQuery
to fetchchainPositionManagers
usingfetchPositionManager
.useQuery
to usechainPositionManagers
for fetchingmanagerName
.chainId
andhash
).enabled
conditions to ensure queries run only when necessary.