fix tax calculation

remotes/1693045480750635534/spooky-22
atrc445 2021-09-21 21:44:47 +02:00
parent 0197432852
commit a8f3e3189d
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ def transfer_coins(v, username):
if amount < 100: return {"error": f"You have to gift at least 100 {app.config['COINS_NAME']}."}, 400
tax = math.ceil(amount*0.01)
v.coins -= amount-tax
v.coins -= amount
receiver.coins += amount-tax
tax_receiver.coins += tax
g.db.add(receiver)