Skip to content

Conversation

@0xtechdean
Copy link
Contributor

Summary

  • Move syncRedeem from requestUnallocate to completeUnallocate, eliminating async flow and proportional distribution
  • Each user now gets exactly their pending amount via direct syncRedeem call during completion
  • Add rescueTokens function for owner to recover surplus tokens from the contract
  • Remove obsolete async flow tests and fix remaining test coverage

Changes

  • AlephAVS.sol: Simplified unallocation logic, added rescueTokens function
  • Tests: Updated to reflect sync-only behavior, removed 10 obsolete proportional distribution tests

Bytecode

  • Reduced by ~700 bytes (now 23,750 bytes with 826 byte margin)

Test plan

  • All 210 tests passing
  • forge fmt applied
  • Bytecode size verified within limits

Move syncRedeem from requestUnallocate to completeUnallocate, eliminating
async flow and proportional distribution. Each user now gets exactly their
pending amount via direct syncRedeem call during completion.

- Remove async flow logic and proportional distribution
- Add rescueTokens function for owner to recover surplus tokens
- Update tests to reflect new sync-only behavior
- Remove obsolete skip_test_ functions that tested old async flow
- Reduce bytecode by ~700 bytes (now 23,750 bytes with 826 margin)
@0xtechdean 0xtechdean force-pushed the sync-unallocate-flow branch from cc20da7 to 2c24ef0 Compare January 28, 2026 10:01
@0xtechdean 0xtechdean merged commit 1fb70cd into main Jan 28, 2026
2 checks passed
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.

2 participants