Skip to content

Instantly share code, notes, and snippets.

@Semisol

Semisol/zappr.md Secret

Last active March 14, 2023 00:38
Show Gist options
  • Save Semisol/467288ad16561c4fce320d35feb6a188 to your computer and use it in GitHub Desktop.
Save Semisol/467288ad16561c4fce320d35feb6a188 to your computer and use it in GitHub Desktop.

how it works

all posts on paid and free relays will be processed by the bot.
any public keys seen will be added to the zap pool (like the bitcoin mempool) if they meet the following criteria:

  1. they have a NIP-05 and it is "credible"
    • credible providers are:
      • Paid providers
      • Self hosted
      • GitHub Pages
      • Stacker News
      • Alby
  2. they have an LN address
  3. they are not in the zap pool
  4. they were not zapped recently

anyone in the zap pool will be selected and zapped in total 4000 sat (plus some more).

selection algorithm

  • pick everyone from the zap pool, ordered by (weight DESC, pubkey ASC) until total sats > sats per cycle
    • this means that higher PoW pubkeys get priority if there are multiple with the same weight
  • if everyone has the same weight, drop 4 pubkeys from the pool, and add pubkeys with a different weight (ordered the same way) until total sats > sats per cycle
  • zap them

weight for selection

  • +1: base
  • +0.75: using a paid provider, self hosting or GitHub pages
  • +1: was not selected recently
  • +0.5: LN address supports zaps

amount zapped

  • +10 sat: base
  • +7 sat: using a paid provider, self hosting or GitHub pages
  • +15 sat: was not selected recently
  • +5 sat: LN address supports zaps
  • x1.4: multiplier
@peterzion45
Copy link

Can this be explained in a much simpler ways..and give examples/visuals for the non-english/non-technical/non-developer people.

@peterzion45
Copy link

And why can't i download that alby?
It ask for this fucking extension thing and it duck duck go/google/chrome and all these browsers would not let me?

@kiwiidb
Copy link

kiwiidb commented Feb 22, 2023

And why can't i download that alby? It ask for this fucking extension thing and it duck duck go/google/chrome and all these browsers would not let me?

Hey Peter, you can install Alby on https://getalby.com

@starbackr-dev
Copy link

Please include the following valid NIP-05 given out to Current App users.

getcurrent.io
current.tips
current.red
current.ninja
current.fyi

@peterzion45
Copy link

No you can't kiwidb...

@peterzion45
Copy link

500ef1fdb07f3ac3a9d6c660c27df6af03acf661ba8fb9d651914a5c87e5bdf9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment