mars-protocol / rover

Smart contracts for Rover
GNU General Public License v3.0
1 stars 1 forks source link

[HC] enable margin swap when from_coin.amount is 0 #186

Closed bobthebuidlr closed 1 year ago

bobthebuidlr commented 1 year ago

Currently swapping on margin is possible whenever the sellAsset ha snbo balance, as there is a check too early on in the swapping function. This PR removes that check and allows margin to be used properly again.