Feat/curve simulator how it works - #70
Conversation
…d matching logic and ETH/USDC example
…ng lifecycle timeline
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: ASSERTIVE Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@aniket866 , have implemented the Dynamic Curve Simulator directly under the How It Works section as you suggested in #68! |
…nd add animate-curve-pulse
|
One more fix: After match the curves should stop movincg futher also keep the range of buy and sell to also consider -ve slope for both |
Description
Closes #68
This PR implements the interactive Dynamic Curve Simulator in the How It Works section as requested by @aniket866, addressing the matching calculation issue in the starter snippet and providing a concrete example-based walkthrough.
Key Features & Fixes
1. Fixed Curve Matching Condition
currentBuyPrice <= currentSellPrice ? false : true) caused the badge to prematurely declare matching from2. Interactive SVG Visualizer
PriceCurve.sol.#10B981) for Buy Bid.#3B82F6) for Sell Ask.#FFC517) indicating the crossing point.3. Real-World Walkthrough (ETH / USDC)
Quality Gates Passed
npx tsc --noEmit— 0 errorsnpm run lint— 0 errorsnpm run build— Production build succeeds with all static routes optimizedconsole.logstatements added