viabtc / viabtc_exchange_server

A trading engine with high-speed performance and real-time notification
MIT License
2.68k stars 1.48k forks source link

Fee #140

Open ah2020b opened 6 years ago

ah2020b commented 6 years ago

To where the paid fee goes? Any user? How to calculate paid fee by day or month? Any database table? Any user admin?

ohld commented 6 years ago

Fee goes nowhere. A user just receive less tokens than he or she asks (depending on fee amount). Thus, the amount of funds in circulation decreases, while the real tokens deposits remain unchanged.

ah2020b commented 6 years ago

Understood, but how to calculate the fee earned by exchange?

ohld commented 6 years ago

You can just subtract the amount of tokens that were deposited my users and the amount of tokens that circulating in your exchange.