damus-io / damus

iOS nostr client
GNU General Public License v3.0
1.96k stars 289 forks source link

Zap relays I use each time I zap a profile #1143

Open alltheseas opened 1 year ago

alltheseas commented 1 year ago

user story

As a Damus user who zaps ~notes~ profiles, I would like a way to donate sats to the relays that I use each time I zap a ~note~ profile, so that I can provide value for value to relay operators.

acceptance criteria

  1. Damus user can optionally select to zap relay operators some amount in addition to zap they sent to a ~note~ profile
  2. Damus must check that relay operators have appropriate information in order to receive zaps
  3. If relay operators have not set up this information, zaps are proportionally allocated to the remaining relay operators with valid zap addresses

question What should be done about paid-only relay services like Wine?

See also snort "zap pools" implementation: https://damus.io/note164dhw0rmpjc7tjurv4336erka3x0kc84spel2hj758fqjpagw0yqdm6l7x

related

Zap paid relays in app ("top up" /refill model) https://github.com/damus-io/damus/issues/405 NWC https://github.com/damus-io/damus/issues/881

alltheseas commented 1 year ago

Zapping notes is verboten