Best trade (#20)
* First test for the best trade router * Share the array in the recursion * Comment * Add comparator methods and more tests * Fix the equalTo method on the fraction * add a todo, rename `n` * Best trade exact out, more tests * Faster sorted insert * Comment fix * Handle insufficient reserves and input amount errors * Test improvements, export best trade options * Improvements to fraction, make inputOutputAmount reusable * Make comparator more reusable
Showing
test/fraction.test.ts
0 → 100644
test/trade.test.ts
0 → 100644
Please register or sign in to comment