Releases: Juglipaff/fair-reward-distributor
Releases · Juglipaff/fair-reward-distributor
Release list
v2.0.0
Immutable
release. Only release title and notes can be modified.
2.0.0 (2026-07-06)
⚠ BREAKING CHANGES
_preStake/_preWithdraw/_preDistributeare removed._stake,_withdraw,_distributenow acceptuint128liquidity directly, so consumers must narrow (e.g. viaSafeCast.toUint128) at the external boundary.InsufficientStakeis renamed toInsufficientLiquidityand now carries the rawuint256.
Features
- remove pre-hooks; internal API now takes uint128 directly (d05708a)
Documentation
- assorted README + CONTRIBUTING polish (f14814b)
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.1
Fixed
- Dropped
remappings.txtfrom 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 nestedremappings.txtfrom 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/contractsthrough standardnode_moduleslookup.
Full Changelog: v1.0.0...v1.0.1
v1.0.0
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
Immutable
release. Only release title and notes can be modified.