zetamarkets / sdk

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

Round priority fees #294

Closed filipzeta closed 10 months ago

filipzeta commented 10 months ago

Saw some errors like The number 262.5 cannot be converted to a BigInt because it is not an integer because we had decimal prio fees. This PR adds rounding to both the auto fee we fetch and also the fee we actually send, in case someone puts a decimal fee manually.