Optimization Flow
How 1-Click Works
The full meaning of the dashboard CTA `Boost My Yield Now` and what the product does after that click.
CTA
Boost My Yield Now
Intent
Fastest low-friction optimization run
Output
Recommendation + proof receipt
What `Boost My Yield Now` means
This button is the dashboard shortcut for the default optimization request: optimize the current portfolio for better yield with low risk.
It intentionally hides most of the prompt complexity so the user can see the full system loop without visiting the more detailed Boost page.
The 1-click pipeline
- 1
Read the current wallet snapshot
The app builds a portfolio map from the active wallet state. If a valid wallet is present, the provider and portfolio context refresh from the portfolio API.
- 2
Generate the optimization snapshot
The optimization engine currently runs in deterministic local snapshot without external compute. It returns projected APY, gain estimate, recommendation, and supporting reasoning text.
- 3
Stream the recommendation
The UI then streams narrative text using deterministic in-app narrative fallback when available, or falls back to the in-app deterministic narrative.
- 4
Store the proof package
After the narrative stream, the client posts the decision payload to `/api/0g/store`, which tries to upload the JSON proof package and capture the storage transaction metadata.
- 5
Surface proof everywhere
The latest result card, proof modal, and History page all read the stored record so the same run can be inspected in multiple places.
What changes on screen after the click
- The dashboard CTA switches into an optimizing state.
- The right-side agent surfaces update with live progress and recommendation text.
- The latest proof row starts showing the tx hash, storage identifier, and optional ProofRegistry details once available.
- History becomes the persistent review surface for later verification or demo replay.
Default optimization intent
textOptimize my portfolio for best yield with low risk