Skip to content

Releases: Juglipaff/fair-reward-distributor

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 06 Jul 07:57
Immutable release. Only release title and notes can be modified.
1aabcc9

2.0.0 (2026-07-06)

⚠ BREAKING CHANGES

  • _preStake / _preWithdraw / _preDistribute are removed. _stake, _withdraw, _distribute now accept uint128 liquidity directly, so consumers must narrow (e.g. via SafeCast.toUint128) at the external boundary. InsufficientStake is renamed to InsufficientLiquidity and now carries the raw uint256.

Features

  • remove pre-hooks; internal API now takes uint128 directly (d05708a)

Documentation

  • assorted README + CONTRIBUTING polish (f14814b)

v1.0.6

Choose a tag to compare

@github-actions github-actions released this 05 Jul 08:07
Immutable release. Only release title and notes can be modified.
db90029

1.0.6 (2026-07-05)

Bug Fixes

  • preserve per-user stakeAge across re-stake within a window (c2cd24c)

Documentation

  • fix stake-age sum rendering with MathJax (c84f337)
  • revert block-range MathJax on line 54 (5cc9ff3)
  • unify inline math to MathJax style (377aadf)
  • wrap remaining range expressions in MathJax (2cc1192)

v1.0.5

Choose a tag to compare

@github-actions github-actions released this 04 Jul 12:22
Immutable release. Only release title and notes can be modified.
be7da46

1.0.5 (2026-07-04)

Chores

v1.0.4

Choose a tag to compare

@github-actions github-actions released this 04 Jul 12:14
Immutable release. Only release title and notes can be modified.
4372e7c

1.0.4 (2026-07-04)

Chores

v1.0.3

Choose a tag to compare

@github-actions github-actions released this 04 Jul 11:47
Immutable release. Only release title and notes can be modified.
9d2f9c6

1.0.3 (2026-07-04)

Bug Fixes

  • pkg: drop remappings.txt from npm tarball (286ac8d)

Documentation

  • switch license badge to github source (d187df6)

v1.0.1

Choose a tag to compare

@Juglipaff Juglipaff released this 04 Jul 09:57
Immutable release. Only release title and notes can be modified.
286ac8d

Fixed

  • Dropped remappings.txt from the published npm tarball. It pointed @openzeppelin/=lib/openzeppelin-contracts/, a Foundry-only path that doesn't exist inside the npm package. Hardhat 3 respects nested remappings.txt from installed packages and failed to resolve OpenZeppelin imports as a result. Foundry consumers who install via git submodule are unaffected; npm/Hardhat consumers now resolve @openzeppelin/contracts through standard node_modules lookup.

Full Changelog: v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@Juglipaff Juglipaff released this 04 Jul 09:07
Immutable release. Only release title and notes can be modified.
1f25d4f

Initial public release.

Constant-gas, deposit-age-weighted, front-run-resistant on-chain reward distribution primitive for Solidity. O(1) per operation regardless of participant count or distribution history.

Algorithm derivation and correctness proof: https://juglipaff.github.io/Token-Distribution-Algorithm/

Install

Foundry:
```
forge install Juglipaff/fair-reward-distributor
```

npm:
```
npm install @juglipaff/fair-reward-distributor
```

Not audited

This code has not been audited. Do not deploy to production without an independent security review.

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 04 Jul 10:56
Immutable release. Only release title and notes can be modified.
9a6bbad

1.0.2 (2026-07-04)

Bug Fixes

  • pkg: drop remappings.txt from npm tarball (286ac8d)

Documentation

  • switch license badge to github source (d187df6)