diff --git a/shop/models.py b/shop/models.py index 63ad293..98e6a97 100644 --- a/shop/models.py +++ b/shop/models.py @@ -416,11 +416,11 @@ def send_to(self, address, ammount): self.get_balance() - ammount) errors.append('Not enough funds!') else: - if self.get_balance() - ammount - 1 >= 0: - cm.settxfee(1) + if self.get_balance() - ammount - 0.1 >= 0: + cm.settxfee(0.1) try: cm.sendtoaddress(address, ammount) - self.redeemed += ammount + 1 + self.redeemed += ammount + 0.1 self.save() except JSONRPCException: errors.append("Invalid ammount")