def send_notification(self, balance, tx_id): change = satoshi_to_btc(balance - self.last_balance) mondo_session = MondoSessionClient(mondo_client, self.account.token) bitmondo = BitMondoClient(mondo_session, self.account.account_id) if change > 0: bitmondo.incoming_payment(change, self.address, tx_id) else: bitmondo.outgoing_payment(-change, self.address, tx_id)
def send_notification(self, balance): change = satoshi_to_btc(balance - self.last_balance) emails.send_xpub_notification(self.xpub.user.email, self.xpub.xpub, self.wallet, change)