Skip to content

Commit

Permalink
fix: updated small bnb btc max value as per updated docs (chrisleekr#346
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Alessandro Marchioro authored Oct 6, 2021
1 parent 7f58b8f commit 04b334a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/cronjob/trailingTradeHelper/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ const extendBalancesWithDustTransfer = async (_logger, rawAccountInfo) => {
}

// https://academy.binance.com/en/articles/converting-dust-on-binance
// In order to qualify the dust must have a value less than 0.0003BTC
// In order to qualify the dust must have a value less than 0.001BTC

balance.estimatedBTC = Number(
parseFloat(cachedLatestCandle.close) * parseFloat(balance.free)
).toFixed(8);

// If the estimated BTC is less than 0.0003, then set dust transfer
if (balance.estimatedBTC <= 0.0003) {
// If the estimated BTC is less than 0.001, then set dust transfer
if (balance.estimatedBTC <= 0.001) {
balance.canDustTransfer = true;
}

Expand Down
2 changes: 1 addition & 1 deletion public/js/DustTransferIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class DustTransferIcon extends React.Component {
</Modal.Header>
<Modal.Body>
<p className='d-block text-muted mb-2'>
You can convert balances with a valuation below 0.0003 BTC to BNB
You can convert balances with a valuation below 0.001 BTC to BNB
once every 6 hours. It is not currently possible to convert
delisted coins.
</p>
Expand Down

0 comments on commit 04b334a

Please sign in to comment.