ekzyis
f43a522a87
Run social poster only in prod ( #2077 )
2025-04-07 16:51:33 -05:00
k00b
fb8c95c0ba
let OP get full referral and add comments to social poster
2025-03-26 15:20:33 -05:00
k00b
71fdd873c5
Revert "stop posting to the wrong nostr account"
...
This reverts commit 2136c1a11f4bba6fac5bed1b734ec650466d074e.
2025-03-26 12:36:55 -05:00
k00b
2136c1a11f
stop posting to the wrong nostr account
2025-03-26 12:34:40 -05:00
ekzyis
e29c6b4842
Refactor reminder push notifications ( #2026 )
...
* Refactor reminder push notifications
items should always exist and if not, we can just immediately fail imo
* Use same text for reminders in /notifications
2025-03-26 10:59:27 -05:00
Keyan
8a6b825659
automated social posting ( #2022 )
...
* social posting without message selection
* message formatting and scheduled job
* small cleanup
2025-03-25 18:32:30 -05:00
ekzyis
b54268a88f
normalized wallet logs ( #1826 )
...
* Add invoiceId, withdrawalId to wallet logs
* Truncate wallet logs
* Fix extra db dips per log line
* Fix leak of invoice for sender
2025-03-22 17:31:10 -05:00
k00b
5164258df8
remove independence threshold
2025-03-20 19:18:56 -05:00
k00b
4f17615291
fix expireBoost boolean condition
2025-03-19 11:48:36 -05:00
k00b
0e4b467b3c
make expire boost exclude unpaid invoices
2025-03-19 11:44:35 -05:00
k00b
344c23ed5c
use max zap creation
2025-03-17 20:03:05 -05:00
Keyan
b672d015e2
territory specific trust ( #1965 )
...
* territory specific trust
* functional parity with master
* revert back to materialized view for ranking
* update query for populating subWeightedVotes
* fix anon hot comments
* fix zap denormalization, change weightedComments to be for zaps, order updates of ancestors to prevent deadlocks
* reduce weight of comment zaps for hot score
* do zap ancestor updates together
* initialize trust in new/unpopular territories
* simplify denormalization of zap/downzaps
* recompute all scores
2025-03-15 08:11:33 -05:00
k00b
d3e5af40ec
fix trust after mathjs upgrade
2025-03-05 07:26:59 -06:00
ekzyis
fca5193beb
Fix autowithdrawal error handling ( #1908 )
...
* Fix autowithdrawal error message
* Fix no error thrown if autowithdrawal failed
2025-02-14 20:55:17 -06:00
ekzyis
5e85147578
Fix receiver fallback on caller error ( #1907 )
...
* Rename to createUserInvoice
* Fix no receiver fallback on wrap, direct or autowithdrawal error
* Fix missing error logs for direct payments
2025-02-14 20:01:14 -06:00
soxa
1afadbdf3b
enhance: referral notifications with source ( #1862 )
...
* wip: referral notification shows source of referral
* simpler approach for source info gathering
* fix territory representation; fix fragment field
* cleanup; fix UI
* better margin approach
* hotfix: null check
* add support for comments
* use Union to represent ReferralSource; clarify with switch statements
* cleanup: compact switch statement on Referral resolver
* wip use refereeLanding
* add comments; cleanup
* hotfix: backwards compatibility for Earnings calculation
* small copy and semantics changes
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-02-11 20:02:04 -06:00
k00b
89187db1ea
fix failing jobs
2025-02-01 15:36:48 -06:00
k00b
965e482ea3
stimulus to 50k
2025-01-28 10:57:45 -06:00
k00b
d688e9fce8
automate daily rewards
2025-01-13 19:59:05 -06:00
k00b
5c1129c98f
update bounty bots
2025-01-13 17:47:42 -06:00
Keyan
146b60278c
cowboy credits (aka nov-5 (aka jan-3)) ( #1678 )
...
* wip adding cowboy credits
* invite gift paid action
* remove balance limit
* remove p2p zap withdrawal notifications
* credits typedefs
* squash migrations
* remove wallet limit stuff
* CCs in item detail
* comments with meCredits
* begin including CCs in item stats/notifications
* buy credits ui/mutation
* fix old /settings/wallets paths
* bios don't get sats
* fix settings
* make invites work with credits
* restore migration from master
* inform backend of send wallets on zap
* satistics header
* default receive options to true and squash migrations
* fix paidAction query
* add nav for credits
* fix forever stacked count
* ek suggested fixes
* fix lint
* fix freebies wrt CCs
* add back disable freebies
* trigger cowboy hat job on CC depletion
* fix meMsats+meMcredits
* Update api/paidAction/README.md
Co-authored-by: ekzyis <ek@stacker.news>
* remove expireBoost migration that doesn't work
---------
Co-authored-by: ekzyis <ek@stacker.news>
2025-01-03 10:33:07 -06:00
Riccardo Balbo
e4ca2d6e07
Refine #1739 and fix regression causing nostr crossposts and login to not work ( #1740 )
...
* Refine #1739 and fix regression causing crossposts and login to not work
* use temp nostr instance for signing
2024-12-19 08:27:45 -06:00
Keyan
6d4dfddae8
improve rewards ( #1731 )
...
* don't bias to early zapping so much
* untested rewards/leaderboard changes
* fix cln dep for payments
* make zap proportion scale using quad root
* fix for missing proportion on hidden users
* improve rewards cutoff criteria
* Update api/resolvers/user.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update api/typeDefs/user.js
Co-authored-by: ekzyis <ek@stacker.news>
* improve switch readability
* small increase in min zap
* refresh materialized views on migration
---------
Co-authored-by: ekzyis <ek@stacker.news>
2024-12-18 10:12:11 -06:00
Riccardo Balbo
d73f6323ff
NDK ( #1590 )
...
* ndk
* fix: remove duplicated zap note event template
* don't init Nip07 signer by default
* Update wallets/nwc/server.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* nwc protocol parsing workaround
* WebSocket polyfill for worker
* increase nwc timeout
* remove NDKNip46Signer type
* fix type annotation
* move eslint-disable camelcase to the top
* pass event args to the constructor
* fix error handling
* Update wallets/nwc/index.js
Co-authored-by: ekzyis <ek@stacker.news>
* Fix type annotation
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-12-13 13:28:36 -06:00
Keyan
6918bcb452
Merge pull request #1714 from stackernews/1704-fix-exposed-routing-fees
...
Don't expose p2p zap receivers to routing fees
2024-12-11 15:47:57 -06:00
k00b
98fae6c9ae
prioritize payment reliability
2024-12-11 15:38:38 -06:00
ekzyis
c9439c33c6
Don't expose p2p zap receivers to routing fees
2024-12-11 20:55:43 +01:00
Keyan
713227b255
invite paid action ( #1681 )
2024-12-04 12:10:30 -06:00
Keyan
0bff478d39
direct receives and send paid action ( #1650 )
...
* direct receives and send paid action
* remove withdrawl->invoiceForward has many relationship
* fix formatMsats implicit type expectations
* ui + dropping direct payment bolt11s
* squash migrations
* fix bolt11 dropping and improve paid action wallet logging
* remove redundant sender id
* fix redirect when funding account over threshold
* better logging
2024-11-27 07:39:05 -06:00
ekzyis
923ddb74ca
Use invoice.cancelledAt to determine if invoice expired or was canceled by user ( #1631 )
...
* Set and resolve invoice.cancelledAt
* Don't close modal if invoice expired
2024-11-22 08:25:20 -06:00
ekzyis
82fead60f1
Fix mentions for pessimistic actions ( #1615 )
...
* Fix mentions for pessimistic actions
* (item)mentions should use tx not models
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-19 19:28:21 -06:00
ekzyis
bcd229af93
Fix 'Cannot mix BigInt and other types' on zaps ( #1609 )
...
* Fix 'Cannot mix BigInt and other types' on zaps
* Also add sybilFeePercent to context in worker
* add paymentMethod to context
---------
Co-authored-by: k00b <k00b@stacker.news>
2024-11-19 09:31:26 -06:00
Riccardo Balbo
9c55f1ebe2
Implement deposit as receive paidAction ( #1570 )
...
* lnurlp paid action
* lnurlp has 10% sybil fee
* fix merge issue
* Update pages/settings/index.js
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
* fix notifications
* fix destructure
* pass lud18Data to lnurlp action
* minor cleanup
* truncate invoice description to permitted length
* remove redundant targetUserId
* lnurlp paidAction -> receive paidAction
* remove redundant user query
* improve determining if peer is invoiceable
* fix inconsistent relative imports
* prevent paying self-proxied invoices and better held invoice cancellation
* make gun/horse streak zap specific
* unique withdrawal hash should apply to confirmed payments too
* prevent receive from exceeding wallet limits
* notifications
* fix notifications & enhance invoice/withdrawl page
* notification indicator, proxy receive based on threshold, refinements
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-15 18:38:14 -06:00
ekzyis
b7fc0e0e74
Fix fee added to received amount ( #1582 )
2024-11-12 19:50:15 -06:00
Keyan
a44d0daf09
paid action payment methods as an array ( #1584 )
...
* introduce fee credits & allow paid actions to specify payment method priority
* fix merge issue
* express supported paid action payment methods as an array
* log force payment method skipping methods
* fix stuff
* immutable context
* immutable paidAction context and other fixes
---------
Co-authored-by: Riccardo Balbo <riccardo0blb@gmail.com>
2024-11-12 19:00:51 -06:00
k00b
cb8cce77f0
don't let args overwrite withdrawal/deposit checking params
2024-11-12 08:50:54 -06:00
Riccardo Balbo
18700b4201
configurable sybil fee ( #1577 )
...
* configurable sybil fee
* document getSybilFeePercent
* fixes
* remove null check
* refine at the margins
---------
Co-authored-by: k00b <k00b@stacker.news>
2024-11-11 16:59:52 -06:00
ekzyis
72e2d19433
supercharged wallet logs ( #1516 )
...
* Inject wallet logger interface
* Include method in NWC logs
* Fix wrong page total
* Poll for new logs every second
* Fix overlapping pagination
* Remove unused total
* Better logs for incoming payments
* Use _setLogs instead of wrapper
* Remove inconsistent receive log
* Remove console.log from wallet logger on server
* Fix missing 'wallet detached' log
* Fix confirm_withdrawl code
* Remove duplicate autowithdrawal log
* Add context to log
* Add more context
* Better table styling
* Move CSS for wallet logs into one file
* remove unused logNav class
* rename classes
* Align key with second column
* Fix TypeError if context empty
* Check content-type header before calling res.json()
* Fix duplicate 'failed to create invoice'
* Parse details from LND error
* Fix invalid DOM property 'colspan'
* P2P zap logs with context
* Remove unnecessary withdrawal error log
* the code assignment was broken anyway
* we already log withdrawal errors using .catch on payViaPaymentRequest
* Don't show outgoing fee to receiver to avoid confusion
* Fix typo in comment
* Log if invoice was canceled by payer
* Automatically populate context from bolt11
* Fix missing context
* Fix wrap errors not logged
* Only log cancel if client canceled
* Remove unused imports
* Log withdrawal/forward success/error in payment flow
* Fix boss not passed to checkInvoice
* Fix TypeError
* Fix database timeouts caused by logger
The logger shares the same connection pool with any currently running transaction.
This means that we enter a classic deadlock when we await logger calls: the logger call is waiting for a connection but the currently running transaction is waiting for the logger call to finish before it can release a connection.
* Fix cache returning undefined
* Fix typo in comment
* Add padding-right to key in log context
* Always use 'incoming payment failed:'
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-11-08 13:26:40 -06:00
Keyan
d117549348
fix lightning module resolution ( #1551 )
...
* fix tsx usage
* Revert "Revert "Merge pull request #1521 from riccardobl/tordev""
This reverts commit 4cc3780eca1f1390bdd331f0e418b9a7efd4347e.
* lightning module resolution
* fix our one test
2024-11-07 09:03:54 -06:00
k00b
4cc3780eca
Revert "Merge pull request #1521 from riccardobl/tordev"
...
This reverts commit 3112fc30d8b476c3682d6dc717bf0c83b50286a6, reversing
changes made to 803daed2dfe7171d317e9bf4bf02ed6a0962822c.
2024-11-05 20:08:33 -06:00
Riccardo Balbo
5924de6172
Merge branch 'master' into tordev
2024-11-02 11:43:59 +01:00
k00b
a73ac8896e
fix territory revenue attribution for one founder and multiple terrtories
2024-11-01 13:38:04 -05:00
Riccardo Balbo
96e1f86bca
use patched authenticatedLndGrpc instead of privoxy to handle non onion grpc traffic
2024-10-26 20:06:22 +02:00
ekzyis
c97ce2627b
Rename to autoWithdrawMaxFeeTotal
2024-10-20 15:14:31 +02:00
ekzyis
596d67fc68
Add max base fee setting
2024-10-20 15:14:31 +02:00
k00b
01580d9ee8
delete primage when invoice is deleted
2024-10-19 09:51:24 -05:00
k00b
bcd8adae45
fix interval in sql template
2024-10-18 20:20:45 -05:00
Keyan
245419185f
wallet streaks ( #1468 )
...
* wallet streaks backend
* notifications and badges
* reuseable streak fragment
* squash migrations
* push notifications
* update cowboy notification setting label text
2024-10-11 19:14:18 -05:00
ekzyis
7eaaa7ce44
Fix sub?.removeAllListeners is not a function ( #1469 )
2024-10-09 20:13:53 -05:00
k00b
8c0cafa3ec
bump nodejs version
2024-10-08 15:23:27 -05:00