3s3s / opentrade

OpenTrade - Open Source Cryptocurrency Exchange
MIT License
397 stars 401 forks source link

Calculation of transaction fees #238

Open LightBurdenOfficial opened 5 years ago

LightBurdenOfficial commented 5 years ago

I have a question as to how the exchanges are performed on the platform. I have noticed on test that only the user who is buying receives the discount rate on their balance. But the same case does not apply to who sells.

Should be: If I am buying I pay the% under the marketed amount. If I am selling I get a% discount on my final bill.

Thus, we would have an example:

PURCHASE: 1 COINX = 2 COINY % FEE I would pay on purchase: 2COINY +% FEE

SALE: 1 COINX = 2 COINY % FEE I would receive on sale: 2COINY -% FEE