Commit 892b4f0
committed
fix(perps): honour route source and count each quote/abandon session
- position_close screen view now emits the route-provided source (reduce
exposure -> position_screen, order book -> order_book) instead of always
perp_asset_screen, falling back to the asset screen for direct entries.
- The trade-quote dedupe key now includes the amount and pay-token identity
so a retried failed quote with the same blocking alert (which carries no
payTotals) counts as a distinct attempt instead of being deduped away.
- The abandon-order tracker resets the caller's committed flag on each focus
so a commit from a prior session on a reused screen no longer suppresses
abandon tracking for the next one.1 parent 213e3f9 commit 892b4f0
6 files changed
Lines changed: 86 additions & 7 deletions
File tree
- app/components/UI/Perps
- Views
- PerpsClosePositionView
- PerpsOrderView
- hooks
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3374 | 3374 | | |
3375 | 3375 | | |
3376 | 3376 | | |
3377 | | - | |
| 3377 | + | |
3378 | 3378 | | |
3379 | 3379 | | |
3380 | 3380 | | |
| 3381 | + | |
3381 | 3382 | | |
3382 | 3383 | | |
3383 | 3384 | | |
| |||
3386 | 3387 | | |
3387 | 3388 | | |
3388 | 3389 | | |
| 3390 | + | |
3389 | 3391 | | |
3390 | 3392 | | |
3391 | 3393 | | |
3392 | 3394 | | |
3393 | 3395 | | |
3394 | 3396 | | |
3395 | 3397 | | |
3396 | | - | |
| 3398 | + | |
3397 | 3399 | | |
3398 | 3400 | | |
3399 | 3401 | | |
| 3402 | + | |
3400 | 3403 | | |
3401 | 3404 | | |
3402 | 3405 | | |
| |||
3405 | 3408 | | |
3406 | 3409 | | |
3407 | 3410 | | |
| 3411 | + | |
3408 | 3412 | | |
3409 | 3413 | | |
3410 | 3414 | | |
3411 | 3415 | | |
3412 | 3416 | | |
3413 | 3417 | | |
3414 | 3418 | | |
3415 | | - | |
| 3419 | + | |
3416 | 3420 | | |
3417 | 3421 | | |
3418 | 3422 | | |
3419 | 3423 | | |
3420 | 3424 | | |
3421 | 3425 | | |
3422 | 3426 | | |
| 3427 | + | |
| 3428 | + | |
3423 | 3429 | | |
3424 | 3430 | | |
3425 | 3431 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
| |||
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4536 | 4536 | | |
4537 | 4537 | | |
4538 | 4538 | | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
4539 | 4580 | | |
4540 | 4581 | | |
4541 | 4582 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
845 | 849 | | |
846 | 850 | | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
847 | 855 | | |
848 | 856 | | |
849 | 857 | | |
| |||
885 | 893 | | |
886 | 894 | | |
887 | 895 | | |
| 896 | + | |
| 897 | + | |
888 | 898 | | |
889 | 899 | | |
890 | 900 | | |
| |||
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
108 | 121 | | |
109 | 122 | | |
110 | 123 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments