Skip to content

Conversation

@betterclever
Copy link
Collaborator

No description provided.

@betterclever betterclever requested a review from Copilot July 3, 2025 06:05

This comment was marked as resolved.

betterclever and others added 6 commits July 3, 2025 11:07
… DefunctPoolInfo and RefundBatchEntry structs to vault.rs - Add new ExecuteMsg variants: DefunctPool, ProcessRefundBatch - Add new QueryMsg variants: GetDefunctPoolInfo, IsUserRefunded - Add storage items: DEFUNCT_POOLS, REFUNDED_USERS - Add error types for defunct pool functionality - Add temporary stubs to contract.rs for compilation - All types compile successfully with tests passing Phase 1 Complete ✅
… - Add DefunctPool and ProcessRefundBatch execute functions - Add GetDefunctPoolInfo and IsUserRefunded query functions - Add defunct pool validation to all pool operations - Add comprehensive test suite with 14 integration tests - All 28 vault tests passing - Core functionality complete, missing only automated reward schedule validation
… Add validate_no_active_reward_schedules() function that queries multistaking contract for active reward schedules - Check common reward assets (uxprt, uatom, uusdc, uosmo) for active schedules - Validate no schedules are currently active (start_time <= current < end_time) - Return PoolHasActiveRewardSchedules error if active schedules found - Added validation call to execute_defunct_pool before processing - Added test_defunct_pool_with_active_reward_schedules test case - All 15 defunct pool tests passing, all 29 total vault tests passing - Critical safety feature prevents defuncting pools with active rewards
…dd V1_2 migration with configurable reward schedule validation assets - Add REWARD_SCHEDULE_VALIDATION_ASSETS storage for customizable asset list - Add PoolHasFutureRewardSchedules error type for future schedule validation - Update validate_no_active_reward_schedules to check both current and future schedules - Add migration handler to set default validation assets during upgrade - Add test for future schedule validation logic - All 16 defunct pool tests passing, all 30 total vault tests passing - Migration allows setting custom validation assets or uses sensible defaults - Future schedule validation prevents defuncting pools with upcoming rewards
@betterclever betterclever force-pushed the betterclever/pool-defunct branch from 04f8791 to 6df7e39 Compare July 3, 2025 07:07
@betterclever betterclever merged commit 5dbc950 into main Jul 3, 2025
1 check failed
@betterclever betterclever deleted the betterclever/pool-defunct branch July 3, 2025 15:32
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.

3 participants