Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* temp * add calculateSpotPositionFreeCollateralContribution * sdk: do binary search for max token swap * fix boundary conditions * fix edge case causing inf loop * try to add leverage * remove some console.logs * make leverage work for reducing position * make it work w small accounts * make initial max swap larger * add accountLeverageAfterSwap * dont throw error in getSpotTokenAmount * allow custom calcuateSwap fn and iteration limit * CHANGELOG
- Loading branch information