Skip to content

Fix holding value calculation - #103

Open
rsahwe wants to merge 11 commits into
outpoot:mainfrom
rsahwe:main
Open

Fix holding value calculation#103
rsahwe wants to merge 11 commits into
outpoot:mainfrom
rsahwe:main

Conversation

@rsahwe

@rsahwe rsahwe commented Jun 25, 2025

Copy link
Copy Markdown

Missing: prestige sale, coin transfers and rug pull notification minimum

#90

This calculates the value of a holding through AMM sale instead of quantity * price

Currently waiting on #102 and on the question if coin transfers should calculate the value the same way.

rsahwe added 2 commits June 25, 2025 22:43
Missing: prestige sale, coin transfers and rug pull notification minimum
@rsahwe

rsahwe commented Jun 27, 2025

Copy link
Copy Markdown
Author

If not then this is ready

@rsahwe
rsahwe marked this pull request as ready for review June 27, 2025 18:53
@rsahwe

rsahwe commented Jul 4, 2025

Copy link
Copy Markdown
Author

When is this reviewed? @face-hh

@InternetBowser670

Copy link
Copy Markdown

When is this reviewed? @face-hh

He isn't super active 🤷

@InternetBowser670 InternetBowser670 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM 👍

@rsahwe

rsahwe commented Jul 10, 2025

Copy link
Copy Markdown
Author

So will this be merged or not?

@face-hh

face-hh commented Jul 15, 2025

Copy link
Copy Markdown
Member

The code is repeating, it would be better to have a function in lib/ to use. There's also other places where this has to be fixed.

@rsahwe

rsahwe commented Jul 15, 2025

Copy link
Copy Markdown
Author

Now the question is if transfers should use this (also prestige still needs to be fixed #102)

@rsahwe

rsahwe commented Jul 15, 2025

Copy link
Copy Markdown
Author

I am just going to include transfers in this

@rsahwe

rsahwe commented Jul 15, 2025

Copy link
Copy Markdown
Author

The client side for coin transfers is still not updated (and since the AMMSell values are lower this is a problem).
Also the leaderboard uses SQL calculations and is also wrong.

@rsahwe

rsahwe commented Jul 15, 2025

Copy link
Copy Markdown
Author

I would appreciate it if you fix this instead since I don't know much about this kind of server/client interaction with svelte.

@InternetBowser670 InternetBowser670 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

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.

3 participants