mirror of
https://github.com/vacp2p/staking-reward-streamer.git
synced 2026-01-06 19:53:52 -05:00
* refactor: migrate KarmaTiers to contiguous array-based tier management - Replaced mapping-based tier storage with a contiguous Tier[] array - Introduced batch update via updateTiers(), enforcing non-overlapping, gapless ranges - Removed individual tier operations (add, update, deactivate, activate) - Simplified tier resolution with linear lookup test: rewrite test suite for new KarmaTiers structure - Added tests for ownership, empty input, non-contiguous tiers, invalid names - Validated proper behavior for unlimited tiers (maxKarma = type(uint256).max) - Included edge case checks for getTierIdByKarmaBalance - Added event verification for TiersUpdated * ci: update python version to fix bug in certora --------- Co-authored-by: r4bbit <445106+0x-r4bbit@users.noreply.github.com>