HydroProtocol / hydro-scaffold-dex

A Decentralized Exchange Scaffold - launch a DEX in minutes
Apache License 2.0
197 stars 189 forks source link

change the sql of sell locked balance calculating #58

Closed zhihuizhilv closed 5 years ago

zhihuizhilv commented 5 years ago

The seller locked balance should be sum of available amount and pending amount, and not be sum of order amount.

zhihuizhilv commented 5 years ago

The caculation of baseTokenHugeAmount is wrong in method 'checkBalanceAllowancePriceAndAmount' of orders_service.go