Skip to content

Standardize stored values such that on event, values update (to ensure no hard refresh is required) #136

@R-K-H

Description

@R-K-H

Is your feature request related to a problem? Please describe.
The current setup of the dApp is one that requires various values which on chain interaction can update those values and merit either a storage or update to state such that the components display said values after action succeeds or fails. We have this for several places, but it's not consistent throughout the application and as such requires hard refresh to update states.

Describe the solution you'd like
I'd like to identify which state changes with which events and make requests or update that state directly such that a user does not required a hard refresh. This ensures a smooth usable platform with expected interactions delivering on result.

Describe alternatives you've considered
Just let everyone hard refresh, but this isn't following any standard, modern user interface design.

Additional context
When you mint a token (p/fUSDC, p/fMETA) the balance doesn't change on success or even after some time. We COULD manually update this from the value or make an RPC request, but these data values need to be updated when an order is placed, when an order is cancelled, when an order is closed is claimed etc.

It may make sense to setup a storage context so we know what functions need to call what when updated in a centralized location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions