-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Merkl tag on farms #11103
fix: Merkl tag on farms #11103
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Skipped Deployments
|
|
apps/web/src/hooks/useMerkl.tsx
Outdated
return hasLiveDistribution | ||
}) | ||
const hasLive = pools | ||
.filter((pool) => isAddressEqual(pool.identifier, poolAddress)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adds filter to check only for the given pool
apps/web/src/hooks/useMerkl.tsx
Outdated
const unclaimed = BigInt(amount || 0) - BigInt(claimed || 0) | ||
return unclaimed > 0 | ||
}) | ||
const rewardAddresses = pools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is used for to show rewards for the given pool only
@@ -35,9 +35,15 @@ const fetchAllMerklConfig = async (): Promise<any[]> => { | |||
|
|||
const parseMerklConfig = (merklConfigResponse: any[]): MerklConfigPool[] => { | |||
return merklConfigResponse | |||
.sort((a, b) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to avoid updates without any changes
aa41f2a
to
d45866a
Compare
Hi @memoyil, Sir, could you take a look at the conflict and rebase it? thanks🙏 |
c08daee
to
4db068a
Compare
Done 👍 |
PR-Codex overview
This PR primarily focuses on enhancing the
Merkl
integration by updating components, adjusting filtering logic, and modifying the data structure in themerklPools
configuration. It also introduces a newMerklTag
component to the UI.Detailed summary
MerklSection
to includepoolAddress
andchainId
.lmPool
againstzeroAddress
inuseLmPoolLiquidity
.name
tosymbol
in various places.merklPools
JSON configuration to include new pools and chain IDs.MerklTag
inPoolV2Page
for better UI representation.useMerkl
for fetching and filtering Merkl data.