Skip to content

Comments

Failing tests bugbot review#175

Closed
tansawit wants to merge 10 commits intomainfrom
cursor/failing-tests-bugbot-review-5218
Closed

Failing tests bugbot review#175
tansawit wants to merge 10 commits intomainfrom
cursor/failing-tests-bugbot-review-5218

Conversation

@tansawit
Copy link
Contributor

@tansawit tansawit commented Feb 23, 2026

Update CLAMM liquidity section labels from "Reward" to "Rewards" and "Total reward" to "Total rewards" for improved UI clarity.


Open in Web Open in Cursor 


Note

Medium Risk
Adds new financial math and valuation logic for CLAMM positions plus multiple new on-chain/indexer queries; incorrect calculations or mapping could misstate portfolio values or ranges.

Overview
Adds CLAMM liquidity support to the portfolio: the Initia liquidity aggregator now fetches CLAMM positions, pool info, claimable fees, and pending incentives, then computes per-position value/in-range status and surfaces them as dedicated CLAMM rows.

Introduces a new data/clamm math module (fixed-point, tick/sqrt-price math, liquidity/amount conversions) with Vitest coverage, and extends minity types to carry CLAMM row/position metadata.

Refactors liquidity data fetching by splitting pool/CLAMM concerns into initia-liquidity.pools.ts, initia-liquidity.clamm.ts, and initia-liquidity.query-keys.ts; updates useL1PositionsTotal to derive liquidity totals from useInitiaLiquidityPositions for consistency; and makes useDenoms optionally fail-soft (return empty denom on lookup errors) to avoid breaking CLAMM reward valuation.

Updates the Liquidity UI to render a CLAMM-specific collapsible breakdown (status dot, bounds, total rewards) and adjusts labels to “Rewards”/“Total rewards”, with accompanying CSS tweaks.

Written by Cursor Bugbot for commit 8f773ad. This will update automatically on new commits. Configure here.

@cursor
Copy link

cursor bot commented Feb 23, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link

coderabbitai bot commented Feb 23, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cursor/failing-tests-bugbot-review-5218

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 23, 2026

Deploying interwovenkit with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8f773ad
Status: ✅  Deploy successful!
Preview URL: https://e6c183e2.interwovenkit.pages.dev
Branch Preview URL: https://cursor-failing-tests-bugbot.interwovenkit.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 23, 2026

Deploying interwovenkit-staging with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8f773ad
Status: ✅  Deploy successful!
Preview URL: https://cf72f372.interwovenkit-staging.pages.dev
Branch Preview URL: https://cursor-failing-tests-bugbot.interwovenkit-staging.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 23, 2026

Deploying interwovenkit-testnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8f773ad
Status: ✅  Deploy successful!
Preview URL: https://a12f2c62.interwovenkit-testnet.pages.dev
Branch Preview URL: https://cursor-failing-tests-bugbot.interwovenkit-testnet.pages.dev

View logs

@tansawit tansawit closed this Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants