Skip to content

Estimated liquidity pool staking asset calculated amount wrong? #3702

@grctest

Description

@grctest

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions