xvc
This commit is contained in:
parent
9307041a93
commit
81f2ac0cdc
1 changed files with 2 additions and 1 deletions
|
@ -240,7 +240,8 @@ def transfer_coins(v, username):
|
|||
if v.coins < amount: return {"error": f"You don't have enough coins."}, 400
|
||||
if amount < 100: return {"error": f"You have to gift at least 100 coins."}, 400
|
||||
|
||||
tax = math.ceil(amount*0.03)
|
||||
if not v.patron and not receiver.patron and not v.alts_patron and not receiver.alts_patron: tax = math.ceil(amount*0.03)
|
||||
else: tax = 0
|
||||
|
||||
log_message = f"@{v.username} has transferred {amount} coins to @{receiver.username}"
|
||||
send_repeatable_notification(TAX_NOTIF_ID, log_message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue