Skip to content

yield calculation and breakdown#29

Merged
aayusha59 merged 1 commit into
mainfrom
faq
Jan 18, 2026
Merged

yield calculation and breakdown#29
aayusha59 merged 1 commit into
mainfrom
faq

Conversation

@aayusha59
Copy link
Copy Markdown
Owner

@aayusha59 aayusha59 commented Jan 18, 2026

Summary by CodeRabbit

  • New Features

    • Yield-based profitability calculations with fixed 12% APY
    • Yield breakdown visualization showing profit component distribution
  • UI/UX Updates

    • Updated deposit modal display with revised payout outcomes
    • Redesigned educational example with deposit-focused scenario and loss scenario details

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
polyield Ready Ready Preview, Comment Jan 18, 2026 4:15pm
v0-skal-ventures-template-hm Ready Ready Preview, Comment Jan 18, 2026 4:15pm

@aayusha59 aayusha59 merged commit 26d7e5d into main Jan 18, 2026
3 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 18, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The changes migrate the deposit modal and educational content from an odds-based profitability model to a fixed 12% APY yield-based approach. Updated calculations compute estimatedYield as principal × APY × (daysUntilExpiry / 365), with potentialProfit set to twice the yield. Documentation and UI displays are aligned to reflect yield-centric outcomes.

Changes

Cohort / File(s) Summary
Yield calculation refactor
components/deposit-modal.tsx
Replaced odds-based payout logic with fixed 12% APY yield calculations. Computes daysUntilExpiry from marketExpiry (defaults to 30 days), then determines estimatedYield and sets potentialProfit to 2× the yield. Updates display values for stake, potential winnings, and max payout accordingly.
Documentation and example updates
components/how-it-works.tsx
Redesigned example panel from pool comparison to single $100 deposit scenario. Introduced "If You Lose" section emphasizing full refund. Added "Yield Breakdown" block detailing your yield, loser's yield, and total profit. Updated Flywheel copy to emphasize principal + yield distribution model.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 From odds and tables, now yields take flight,
Twelve percent APY shining bright,
Thirty days to compound our way,
Yield Breakdown dances on display,
Winners share what losers pay! 🌱

✨ Finishing touches
  • 📝 Generate docstrings

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant