Skip to content

Apy sources#209

Open
OluRemiFour wants to merge 2 commits into
Dgetsylver:mainfrom
OluRemiFour:apy-sources
Open

Apy sources#209
OluRemiFour wants to merge 2 commits into
Dgetsylver:mainfrom
OluRemiFour:apy-sources

Conversation

@OluRemiFour
Copy link
Copy Markdown
Contributor

Close: #35

Summary

I have successfully completed the implementation of the Net APY Decomposition Donut Chart. Below is a summary of the accomplishments:

HTML Additions: Added donut chart containers to both the leverage preview (Order Panel) and the active Position details grid within frontend/index.html.
CSS Styling: Added responsive layout and color styles inside frontend/src/style.css using theme variables and custom styling for negative drag (e.g. half-opaque red and yellow slices).
Decomposition Math & SVG Path Calculations: Added getApyDecomposition() and renderNetApyPieChart() helpers in frontend/src/main.ts that proportionally scale all APR/compounded APY slices and dynamically draw arc paths so the components algebraic sum equals the displayed headline Net APY exactly.
Consistency: Updated all Net APY dashboard displays to subtract the dynamic 0.01 * leverage transaction/slippage drag, ensuring complete visual unity across cards, previews, and overview tables.
Validation: Built the production client bundle (npm run build) and typechecked (npm run typecheck) successfully with no new errors!

Related Issue

Closes #35

Checks

  • I read the contribution guide.
  • I kept this pull request scoped to the linked issue.
  • I ran the relevant local checks or explained why they were skipped.
  • For Drips wave issues, I claimed the issue before opening this pull request.

Notes for Reviewers

@OluRemiFour
Copy link
Copy Markdown
Contributor Author

Done, Close: #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

B8: APY-sources pie chart

1 participant