feat: track zappool payout activity

This commit is contained in:
2023-12-10 17:35:18 +00:00
parent 91709c88be
commit d2cec4909c
2 changed files with 7 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import { UserCache } from "@/Cache";
import { LNURL, ExternalStore, unixNow } from "@snort/shared";
import { Toastore } from "@/Toaster";
import { LNWallet, WalletInvoiceState, Wallets } from "@/Wallet";
import { bech32ToHex, getDisplayName } from "@/SnortUtils";
import { bech32ToHex, getDisplayName, trackEvent } from "@/SnortUtils";
import { SnortPubKey } from "@/Const";
export enum ZapPoolRecipientType {
@ -168,6 +168,7 @@ class ZapPool extends ExternalStore<Array<ZapPoolRecipient>> {
if (wallet.canAutoLogin()) {
await wallet.login();
}
trackEvent("ZapPool:Automatic")
await this.payout(wallet);
}
}