Skip to content

fix(reputation): recompute skips the insert when stats are unchanged - #684

Closed
yggdrasilworld wants to merge 2 commits into
MergeFi:mainfrom
yggdrasilworld:fix/reputation-recompute-584
Closed

yggdrasilworld wants to merge 2 commits into
MergeFi:mainfrom
yggdrasilworld:fix/reputation-recompute-584

Conversation

@yggdrasilworld

@yggdrasilworld yggdrasilworld commented Oct 14, 2026 •

Copy link
Copy Markdown

What

Every recompute inserted a snapshot — unthrottled, a user could append ~170k rows/day. Now returns the latest snapshot unchanged instead of inserting a duplicate.

Resolves #584 (with #583's controller-throttle)

Payment: Base USDC 0xD40Df5c27cEa7dd78A3c345401995c319589334e

recompute rode the 120/min default — a user could append ~170k snapshot
rows/day. @Throttle(long:10/hr) + computeAndSave returns the latest
snapshot unchanged instead of inserting a duplicate.

Resolves MergeFi#584
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

@yggdrasilworld is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

The shared base carried half-written merge artifacts: an orphaned
invokeOnLockedEscrow block in escrow.service.ts, duplicated returns plus
a dead parsePagination in sponsors.controller.ts, and missing
describe/it closers in github-webhooks.service.spec.ts. Aligned each
with the intended form so the branch typechecks and its specs load.
@yggdrasilworld
yggdrasilworld deleted the fix/reputation-recompute-584 branch October 19, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Regression on closed #284] POST /reputation/:userId/recompute still has no throttle, and every call appends a snapshot

1 participant