atomiclabs / atomiclabs/hyperdex

clicking MAX in buy section populates too high Amount field

Open
#630 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
151
Forks
55
PR merge metrics
No merged PRs in 30d

Description

When clicking the MAX button, next to where the user can specify the amount to buy, the field is populated based on the current balance of the user's `rel` coin.

This is confusing, because there are not always enough orders in the orderbook to fulfill that amount of `rel` coins.

![image](https://user-images.githubusercontent.com/10341677/69067689-d57b9280-0a23-11ea-8903-95fd31c0c5c5.png)

As a user, i would expect that `MAX` button to populate field with the maximum amount of `base` that the orderbook allows to buy; in this case `39.12439778`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.