chore: Remove unused PerpsController state#24251
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThis PR removes two deprecated state properties (
The changes are well-contained to the Perps feature. All related tests have been updated. The Since this is a state structure change in a controller (critical file pattern), it warrants running the SmokePerps tag to verify the Perpetuals trading feature still works correctly. The changes don't affect other features, so broader testing is not necessary. |
|



Description
Removes unused state code in PerpsController
Changelog
CHANGELOG entry: Removes dead state code from PerpsController
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TAT-2215
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Simplifies
PerpsControllerstate by removing unusedpositionsandconnectionStatus, aligning implementation and tests with actual data flow (positions come via provider callbacks; connection status not tracked in state).positionsandconnectionStatusfromPerpsControllerState, default state, and statemetadatadisconnect()usePerpsSelectortests to selectisTestnet,activeProvider, andwatchlistMarketsinstead of removed fieldspositions/connectionStatusinto stateWritten by Cursor Bugbot for commit 0613f25. This will update automatically on new commits. Configure here.