Skip to content

Fix SecurityPool fee residue and REP bootstrap mint flow#498

Merged
KillariDev merged 5 commits into
mainfrom
t3code/fee-rounding-residue-fix
Jul 10, 2026
Merged

Fix SecurityPool fee residue and REP bootstrap mint flow#498
KillariDev merged 5 commits into
mainfrom
t3code/fee-rounding-residue-fix

Conversation

@KillariDev

Copy link
Copy Markdown
Collaborator

Summary

  • Fix SecurityPool fee accounting so rounding residue is carried forward instead of stranded across repeated collateral updates.
  • Remove the theoretical supply guard from ReputationToken.mint and move simulation bootstrap supply syncing to happen after minting.
  • Update fork migration coverage and simulation helpers to reflect the new fee-residue behavior and REP mint flow.
  • Refresh mainnet deployment addresses for the affected contracts.

Testing

  • Not run (PR content only; no validation executed in this session).

- Preserve fee and fee-index remainders across collateral updates
- Add fork migration coverage for repeated public collateral updates
- Refresh mainnet deployment addresses for SecurityPool components
…esidue-fix

# Conflicts:
#	docs/mainnet-deployment-addresses.json
- Distribute leftover whole wei at fee period end
- Update regression tests for fee settlement and stale-price errors
- Refresh mainnet deployment addresses
- clear stale fee remainders on allowance changes and zero-allowance gaps
- reconcile collateral after fee redemption to preserve pool balance
- add regression tests for handoff and zero-allowance accrual
@KillariDev KillariDev merged commit b42ec6c into main Jul 10, 2026
1 check passed
@KillariDev KillariDev deleted the t3code/fee-rounding-residue-fix branch July 10, 2026 21:25
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