Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Conversation

@jdrskr
Copy link

@jdrskr jdrskr commented Feb 11, 2022

FIXES #63

Example
SOL/RAY pool state when fix was pushed:

1 SOL = 26.395159 RAY

image

50000 SOL to RAY on master branch:

image

Market Output: 50000 * 26.395159 = 1319757,95 RAY
Trade Output: 1111485,726994 RAY
Price Impact Displayed: 40.28%

50000 SOL to RAY after fix:

image

@vercel
Copy link

vercel bot commented Feb 11, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/raydium/raydium-ui/3BD6W6XRC3gACkBsMyQx7QC11G6Z
✅ Preview: https://raydium-ui-git-fork-jdrskr-fix-price-impact-raydium.vercel.app

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Price impact calculations are incorrect

1 participant