Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program: bound-quote-reserve-divisor #1371

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xbigz
Copy link
Member

@0xbigz 0xbigz commented Dec 11, 2024

No description provided.

@@ -507,6 +513,7 @@ pub fn calculate_spread_reserves(
.amm
.quote_asset_reserve
.safe_sub(quote_asset_reserve_delta.unsigned_abs())?
.max(1)
Copy link
Member

Choose a reason for hiding this comment

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

dont need max/min in the other branch?

Copy link
Member Author

@0xbigz 0xbigz Dec 12, 2024

Choose a reason for hiding this comment

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

i think the way the spread math works, you just need to bound for percentage spread on shorts

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.

2 participants