Files
Ricardo Guilherme Schmidt 7d2e4a810d refactor: migrate KarmaTiers to contiguous array-based tier management (#228)
* 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>
2025-07-28 10:39:49 -03:00
..