Skip to content

feat: defang skipped rounds penalty #303

Open
0xCardiE wants to merge 5 commits intomasterfrom
fix/skipped_rounds_adjustments
Open

feat: defang skipped rounds penalty #303
0xCardiE wants to merge 5 commits intomasterfrom
fix/skipped_rounds_adjustments

Conversation

@0xCardiE
Copy link
Contributor

Changes the skipped rounds price adjustment to use changeRate[1] (as if 1 player participated) instead of changeRate[0] (maximum penalty for no players).

…f max

Changes the skipped rounds price adjustment to use changeRate[1] (as if 1 player participated) instead of changeRate[0] (maximum penalty for no players).

Impact:
- 10 skipped rounds: +60.0% instead of +61.8% price increase
- More predictable and less aggressive price spiraling
- Still incentivizes participation but less punishing during network issues

This implements the 'defanged' approach suggested in code comments.
Adds comprehensive test to verify that skipped rounds now use changeRate[1]
(1 player rate) instead of changeRate[0] (maximum penalty).

Test demonstrates:
- With 3 skipped rounds, difference is ~0.06% (15 price units)
- New approach is less aggressive but still incentivizes participation
- Verifies contract behavior matches expected calculation
Updates test expectations to use increaseRate[1] instead of increaseRate[0]
for skipped rounds calculations, matching the defanged approach.

All 159 tests now pass with the new behavior.
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.

1 participant