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

Estimated liquidity pool staking asset calculated amount wrong? #3702

Open
grctest opened this issue Feb 24, 2024 · 0 comments
Open

Estimated liquidity pool staking asset calculated amount wrong? #3702

grctest opened this issue Feb 24, 2024 · 0 comments

Comments

@grctest
Copy link
Contributor

grctest commented Feb 24, 2024

Describe the bug

I tried staking approx 50k BTS and 400 EOS, the estimated share asset amount in return was calculated as around 37 BTWTY.BTSEOSLP

After staking, my balance of this share pool asset is closer to 49.5K BTWTY.BTSEOSLP, significantly more than the 37 quoted earlier.

To Reproduce

Stake BTWTY.EOS and BTS in the BTWTY.BTSEOSLP liquidity pool.

Compare estimated pool share amount to actual received pool share amount.

Expected behavior

The estimated pool share amount shown in the UI should be correct.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
Windows 11, light client 230907.

Additional context
Similar implementation: https://github.com/BTS-CM/astro-ui/blob/main/src/components/PoolStake.jsx#L965

Astro implementation may also be outputing an inaccurate value.

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

No branches or pull requests

1 participant