zetamarkets / sdk

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

Bugfix getMaxTradeSize with leverage option #300

Closed filipzeta closed 9 months ago

filipzeta commented 9 months ago

Setting maxLeverage allowed an unintended override to the trade size buffer if you had open orders, just add a Math.min() to patch this