• Moody Salem's avatar
    Best trade (#20) · 22453c0c
    Moody Salem authored
    * 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
    22453c0c
trade.test.ts 5.57 KB