Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
[FIX] fix send_max calculation using new ripple-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdarkdragon committed Aug 19, 2015
1 parent f771f46 commit b803a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/tabs/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ ExchangeTab.prototype.angular = function (module)
var alt = {};
alt.amount = Amount.from_json(raw.source_amount);
alt.rate = alt.amount.ratio_human(amount);
alt.send_max = alt.amount.product_human(Amount.from_json('1.01'));
alt.send_max = alt.amount.scale(1.01);
alt.paths = raw.paths_computed
? raw.paths_computed
: raw.paths_canonical;
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ SendTab.prototype.angular = function (module)
var slightlyInFuture = new Date(+new Date() + 5 * 60000);

alt.rate = alt.amount.ratio_human(amount, {reference_date: slightlyInFuture});
alt.send_max = alt.amount.product_human(Amount.from_json('1.01'));
alt.send_max = alt.amount.scale(1.01);
alt.paths = raw.paths_computed
? raw.paths_computed
: raw.paths_canonical;
Expand Down

0 comments on commit b803a92

Please # to comment.