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

[ECO-2639] Fix price not getting calculated on first swap #494

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

CRBl69
Copy link
Collaborator

@CRBl69 CRBl69 commented Jan 2, 2025

Description

This PR fixes the price not getting calculated on first swap.

If no swap existed for a market, the calculation was assuming that the swap was
NOT starting in the bonding curve. This does not seem to be accurate, as the
first swap should be in the bonding curve. Switching startsInBondingCurve
from false to true for the first swap seems to fix this issue.

Addresses #488.

Testing

Register a market on testnet and try swapping.

Checklist

  • Did you check all checkboxes from the linked Linear task?

@CRBl69 CRBl69 requested review from xbtmatt and alnoki January 2, 2025 15:04
Copy link

vercel bot commented Jan 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
emojicoin-dot-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2025 3:06pm
emojicoin-dot-fun-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2025 3:06pm

@alnoki alnoki merged commit b5d784f into main Jan 2, 2025
7 checks passed
@alnoki alnoki deleted the ECO-2639 branch January 2, 2025 16:38
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