zetamarkets / sdk

SDK for accessing the Zeta program
Other
84 stars 29 forks source link

Better estimated PnL calc #256

Closed filipzeta closed 1 year ago

filipzeta commented 1 year ago

Improve getMaxTradeSize() by using a binary search approach to simulate the best state after it executes. Also improve comments on functions to include descriptions on precision and whether things are signed/unsigned.