Fix bugs in pathfinding with XRP as the source currency