Skip to content

fix: update APR calculation to use virtualXtReserve and adjust half l…#31

Merged
EvanWang-TKSpring merged 1 commit into
devfrom
fix/order_apy&half_calculation
May 27, 2026
Merged

fix: update APR calculation to use virtualXtReserve and adjust half l…#31
EvanWang-TKSpring merged 1 commit into
devfrom
fix/order_apy&half_calculation

Conversation

@EvanWang-TKSpring
Copy link
Copy Markdown
Collaborator

  1. Fix the issue of half-liquidation collateral value judgement.
  2. Fix the issue that TermMaxOrderV2 apr() view function using incorrect on-chain balance but not virtual xt reserve.

@immunefi-magnus
Copy link
Copy Markdown

immunefi-magnus Bot commented May 21, 2026

🛡️ Immunefi PR Reviews

We’ve assigned 1 code reviewer(s) to this PR.

They’ll begin the review shortly and leave feedback directly in the pull request.

This review is based on the current state of your pull request. If you make changes after the review starts, they won’t be reflected here. To ensure the review includes your latest updates, you’ll need to open a new pull request.

Copy link
Copy Markdown

@immunefi-magnus immunefi-magnus Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The security review for this PR has been completed. No critical security issues were identified. Full details are available here: https://docs.google.com/document/d/14l__KYbhqiSwjLqsuMh7w7oV5FiwwhscxLdYUpaxtgw/edit?tab=t.6e8eu035xxnx

  • WAL

@EvanWang-TKSpring EvanWang-TKSpring force-pushed the fix/order_apy&half_calculation branch from eee49a5 to 66f7942 Compare May 27, 2026 05:11
@EvanWang-TKSpring EvanWang-TKSpring merged commit 3440193 into dev May 27, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant