moja-global/FLINT-UI

Feature Request: Implement a check to detect if the pool values are unchanged

Crystalsage opened this issue · 3 comments

Is your feature request related to a problem? Please describe.

Currently in the Point simulation, a user can run the simulation multiple times with the same pool values. We want a better way to handle this.

These kinds of checks will help us in GCBM simulation too, since the simulation times are longer there and we don't want to trigger a simulation with the same values.

Describe the solution you'd like.

The solution to this problem goes something like this:

  1. Check if the simulation is being ran for the first time.
  2. If yes then store the pool values in the store.
  3. Otherwise if no, then check the current state with the one stored in Step 2.
  4. If the simulation is ran with the same pool values then present a warning modal.

Describe alternatives you've considered

No response

Additional context.

  • This is a followup of the ideas discussed in PR #339
  • We can use an Ant design modal for the step 4.

I'd like to work on this.

@Crystalsage This looks awesome!