@retry                    # Retries until transaction succeeds
    def withdraw(self, amount):
        curr_balance = self.account_info.checkout("balance")
        if curr_balance.value < amount:
            raise InsufficientFunds("Insufficient Funds in your account",
                                    requested=amount,
                                    balance=curr_balance.value)
        new_balance = amount - curr_balance.value
        curr_balance.set(new_balance)
        curr_balance.commit()
        return amount
dataset/ETHPy150Open sparkslabs/guild/examples/blog/accounts-stm-2.py/Account.withdraw/swapped operands of `-`