bitshares / bitshares/bitshares-ui

[0.75] Prevent BTS balance button from spending all BTS

Open
#2,697 12 comments 1 reaction 0 assignees View on GitHub
[1b] User Story [2] Good First Issue [3] Enhancement [5a] Tiny [7] Estimated
Dominant language
JavaScript
Stars
520
Forks
575
Avg merge
12h 7m
Merged PRs (30d)
5

Description

**Is your feature request related to a problem? Please describe.**
By clicking the BTS balance link all BTS are inserted for trade and no BTS are left for paying fees.

**Describe the solution you'd like**
The number, which is inserted to the trading form should be reduced by 10 time of the actual transaction fee, to have enough for paying fees.

**Additional context**
We already have this in the margin trading for max collateral.

![Spending](https://user-images.githubusercontent.com/40874087/57989161-fb38d680-7a96-11e9-95d1-7a33ab3782d0.png)

Contributor guide

Open the contributing guide

Research direction

Compare the existing margin-trading max-collateral behavior, then trace the BTS balance link and trading form that insert the amount. The change is done when using the balance leaves enough BTS for fees by reducing the inserted amount by ten times the actual transaction fee.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
blockchain, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.