Description:
To ensure stability and prevent unnecessary load on the relayer ("spamming"), the front-end must move away from aggressive polling and instead implement a more efficient, event-driven or structured request sequence.
Requirements:
Sequential Request Logic: Instead of continuous polling to check state changes, implement an event based relayer query mechanism.
Utilize Local Storage: Reduce data-fetching requests by leveraging the order details already stored in the user's local storage to prepopulate and update requests locally before sending them to the relayer.
Status-Based Updates: Ensure the UI updates based on the direct response of these "hot" requests rather than waiting for the next polling cycle to refresh the state.