Skip to content

Small bug in pool swap code #3

@grctest

Description

@grctest

When you enter a quantity far in excess of the available funds, the xbts app pool swap UI will cease calculating the amount you'll receive in return.

For example, in the reference wallet if you try to swap far in excess of the total pool liquidity you'll get an exponentially worse deal the closer you get to 100%+, however it'll always allow you to swap a crazy amount in return for 100% of the other side.

When I enter a high enough number, the amount I will receive in the pool swap decreases then turns into a negative number, instead of hitting the max swappable, and just calculating a worse price as you enter too much.

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