Merge pull request #707 from ripple/fix/filter-source-amount

FIX: Filtering source_amount pathfind correctly
This commit is contained in:
Alan Cohen
2016-03-21 14:48:37 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ function filterSourceFundsLowPaths(pathfind: PathFind,
paths.alternatives = _.filter(paths.alternatives, alt => {
return alt.source_amount &&
pathfind.source.amount &&
alt.source_amount.value === pathfind.source.amount.value;
new BigNumber(alt.source_amount.value).eq(pathfind.source.amount.value);
});
}
return paths;

View File

@@ -3,7 +3,7 @@
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"amount": {
"currency": "USD",
"value": "5"
"value": "5.00"
}
},
"destination": {