Skip to content

feat(earns): sync smart exit invert price across pool price condition#3060

Open
tienkane wants to merge 1 commit intomainfrom
update/smart-exit-price-side
Open

feat(earns): sync smart exit invert price across pool price condition#3060
tienkane wants to merge 1 commit intomainfrom
update/smart-exit-price-side

Conversation

@tienkane
Copy link
Copy Markdown
Collaborator

Lift state from PoolPrice up to the SmartExit modal and thread it through Metrics → MetricSelect → PriceInput so the right-pane pool price condition (label, typed input, slider, and comparator ≥/≤) now inverts alongside the left-pane display.

PriceInput keeps the stored in the forward
(token0/token1) domain so the backend payload and Confirmation screen stay untouched, while and local state sit in
the display domain via / helpers.
is unchanged since it consumes the forward
condition. The debounced input commit uses a latest-ref pattern to avoid stale closures when toggles mid-debounce and to prevent parent re-renders from resetting the timer.

Lift  state from PoolPrice up to the SmartExit modal and
thread it through Metrics → MetricSelect → PriceInput so the right-pane
pool price condition (label, typed input, slider, and comparator ≥/≤)
now inverts alongside the left-pane display.

PriceInput keeps the stored  in the forward
(token0/token1) domain so the backend payload and Confirmation screen
stay untouched, while  and  local state sit in
the display domain via / helpers.
 is unchanged since it consumes the forward
condition. The debounced input commit uses a latest-ref pattern to
avoid stale closures when  toggles mid-debounce and to
prevent parent re-renders from resetting the timer.
@kyber-ci-bot
Copy link
Copy Markdown

Auto Deploy Pull Request

ADPR instance has been created!

Information

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.

2 participants