up
This commit is contained in:
parent
113a3be9c9
commit
7acaae7f83
2 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,6 @@ export default class {
|
||||||
async createZapReceipt(log: PubLogger, invoice: UserReceivingInvoice) {
|
async createZapReceipt(log: PubLogger, invoice: UserReceivingInvoice) {
|
||||||
const zapInfo = invoice.zap_info
|
const zapInfo = invoice.zap_info
|
||||||
if (!zapInfo || !invoice.linkedApplication || !invoice.linkedApplication.nostr_public_key) {
|
if (!zapInfo || !invoice.linkedApplication || !invoice.linkedApplication.nostr_public_key) {
|
||||||
log(ERROR, "no zap info linked to payment")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const tags = [["p", zapInfo.pub], ["bolt11", invoice.invoice], ["description", zapInfo.description]]
|
const tags = [["p", zapInfo.pub], ["bolt11", invoice.invoice], ["description", zapInfo.description]]
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ export class RugPullTracker {
|
||||||
if (ready) {
|
if (ready) {
|
||||||
const balance = await this.liquidProvider.GetLatestBalance()
|
const balance = await this.liquidProvider.GetLatestBalance()
|
||||||
const pendingBalance = await this.liquidProvider.GetPendingBalance()
|
const pendingBalance = await this.liquidProvider.GetPendingBalance()
|
||||||
|
this.log({ pendingBalance })
|
||||||
const trackedBalance = balance + pendingBalance
|
const trackedBalance = balance + pendingBalance
|
||||||
if (!providerTracker) {
|
if (!providerTracker) {
|
||||||
this.log("starting to track provider", this.liquidProvider.GetProviderDestination())
|
this.log("starting to track provider", this.liquidProvider.GetProviderDestination())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue