Conversation
Collaborator
DuriSK
commented
Apr 17, 2026
- New Limit tab in swap with price, expiry, partial-fill controls
- Intent submission via Intent.submit_intent extrinsic
- Active intents displayed in Open Orders with cancel (Intent.remove_intent)
- Spot price sourced from spotPriceQuery for parity with market view
- formatCalcValue applied to all auto-calculated values for consistent decimals
- New Limit tab in swap with price, expiry, partial-fill controls - Intent submission via Intent.submit_intent extrinsic - Active intents displayed in Open Orders with cancel (Intent.remove_intent) - Spot price sourced from spotPriceQuery for parity with market view - formatCalcValue applied to all auto-calculated values for consistent decimals Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for testnet-hydra-app ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for hydration-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for edge-hydra-app ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Flip pill with explicit "1 SYMBOL =" label replaces the tiny direction arrow - Whole deviation % pill is clickable (no need to target the pencil icon) - Asset-direction flip preserves and swaps amounts (was clearing sell) - Last-touched amount is the anchor; price change recalcs the other side - Pill input ≤-100% silently rejected (was leaving form in inconsistent state) - Display value cached per direction so typed input isn't mangled by round-trips - formatCalcValue strips trailing zeros (80000.00 → 80000) - Summary section: human-readable sentence below the form Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
DCA submission: - useSubmitDcaOrder now builds Intent.submit_intent with Dca variant (matches runtime DcaParams: per-trade amount_in/amount_out, Permill slippage, Option<Balance> budget, u32 period in blocks). ERC20 A-tokens unwrapped to their underlying assetId. - useIntentOrdersData surfaces Dca intents alongside Swap (limit) intents in Open Orders, with OrderKind.Dca / DcaRolling based on budget. - OpenOrders cancel generalized: any row with intentId cancels via Intent.remove_intent; legacy DCA schedules still use DCA.terminate. - IntentDcaData type added in api/intents.ts (replaces the any-typed Dca variant). Limit order: - Price mirrors spot live (priceAnchor = "spot") until the user types a custom price or percentage, which flips it to "user". Clicking Spot resumes mirroring. Fixes the stale spot price bug where limit price froze at page-load spot. - userPct state preserves the exact percentage the user typed (avoids 15% redisplaying as 15.01% from round-trip rounding). - Pill edit lives inline in the pill container: numeric input next to a static "%" and the pencil icon. Remembers last-typed value; placeholder hides on focus; empty commit resets to spot. - Live recalc on every keystroke in the pill (no blur/Enter needed). - Flip button becomes icon-only (no "1 SYMBOL =" text). - Spot reset moved under the price row, right-aligned. - Lock pill gets blue accent styling when locked (matches active expiry pill) so the on/off state reads at a glance. - Expiry windows changed to 15min/30min/1h/1d/open — older 3d/10d exceeded runtime MaxAllowedIntentDuration and caused InvalidDeadline. - Summary section replaced by an always-visible warning banner: "Your order might not execute precisely at your specified limit price when the market reaches it" — sets expectations for intent-based orders. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
