stackernews / stacker.news

Internet communities that pay you Bitcoin
https://stacker.news
MIT License
403 stars 105 forks source link

Sats forwarded to anon don't go to rewards #1232

Open ekzyis opened 2 weeks ago

ekzyis commented 2 weeks ago

Description

If sats are forwarded to @anon, the sats don't go to rewards like anon zaps but increase the balance of anon.

Steps to Reproduce

  1. Create item and forward 100% sats to anon
  2. Zap item with 100 sats item (can be anon)
  3. Check /rewards
  4. Rewards increased by 5 sats via fees and rewards via anon's stack didn't change at all[^1]
  5. Running SELECT id, msats, "stackedMsats" FROM users WHERE id = 27 reveals that 90 sats went to anon's balance

[^1]: 5 sats go to territory founder as revenue since all subs in seed.sql have "rewardsPct" set to 50

Expected behavior

Rewards increased by 5 sats via fees and by 90 sats via anon's stack

Additional context

Reported by @0xbitcoiner here.

ekzyis commented 2 weeks ago

Blocked because we wait for #1195