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

Fix invested amount when claiming tokens #2591

Open
hieronx opened this issue Jan 21, 2025 · 0 comments
Open

Fix invested amount when claiming tokens #2591

hieronx opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@hieronx
Copy link
Contributor

hieronx commented Jan 21, 2025

When claiming tokens, the UI was showing in one investor's case:

Invested 529,377 USDC
Token amount 487,053 DYF1

It should have been

Invested 500,000 USDC
Token amount 487,053 DYF1

instead.

The token amount here is correct, that is based on vault.maxMint. The invested amount is incorrect, that is now maxMint * currentTokenPrice, but should be using vault.maxDeposit instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant