Feat: Admin-Approved Duration Extensions with Limits, Fees, Events, and History Tracking#127
Merged
Conversation
…contract, including handling for extension limits, reasons, and fees.
…id contract, providing functionalities for extending market durations, validating extensions, handling fees, and tracking extension history and statistics.
…act, including duration extension, validation, fee handling, event emission, and statistics retrieval.
…ctify Hybrid contract, including validation logic and default settings for extension management.
…y importing ExtensionStats from types and removing unused imports for cleaner code.
…y Hybrid contract to ensure proper evaluation of maximum extensions.
…d contract to ensure accurate evaluation of maximum extensions.
…s.rs by adjusting line breaks and indentation for function parameters and comments.
…act by improving code formatting, adding whitespace for readability, and ensuring consistent style across error definitions and helper functions.
… Predictify Hybrid contract by adjusting whitespace, aligning function parameters, and enhancing overall structure for better maintainability.
…ictify Hybrid contract by reordering imports and aligning function parameters for enhanced clarity and maintainability.
…Predictify Hybrid contract by reordering imports, aligning function parameters, and improving whitespace for better maintainability.
…Predictify Hybrid contract by reordering imports, aligning function parameters, and enhancing whitespace for better maintainability.
…dictify Hybrid contract by reordering imports, improving whitespace, and aligning function parameters for better maintainability.
…edictify Hybrid contract by reordering imports, enhancing whitespace, and aligning function parameters for better maintainability.
…redictify Hybrid contract by aligning function parameters, improving whitespace, and reordering imports for better maintainability.
Contributor
|
LGTM! @Jagadeeshftw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
📋 Basic Information
Type of Change
Please select the type of change this PR introduces:
Related Issues
Closes #62
Priority Level
📝 Detailed Description
What does this PR do?
This PR introduces a comprehensive market extension system for the Predictify Hybrid contract. It allows market admins to extend the duration of a market under controlled and validated conditions, with fee handling, event logging, and extension history tracking. The following features are included:
Why is this change needed?
Currently, market duration is fixed at creation, with no way to extend it if more time is needed for proper resolution. This feature is essential for:
How was this tested?
cargo build).Alternative Solutions Considered
🏗️ Smart Contract Specific
Contract Changes
Please check all that apply:
Oracle Integration
Market Resolution Logic
Security Considerations
🧪 Testing
Test Coverage
Test Results
Manual Testing Steps
cargo build(no errors)📚 Documentation
Documentation Updates
Breaking Changes
Breaking Changes:
Migration Guide:
🔍 Code Quality
Code Review Checklist
Performance Impact
Security Review
🚀 Deployment & Integration
Deployment Notes
Integration Points
📊 Impact Assessment
User Impact
Business Impact
✅ Final Checklist
Pre-Submission
Review Readiness
📸 Screenshots (if applicable)
🔗 Additional Resources
💬 Notes for Reviewers
Please pay special attention to:
Questions for reviewers:
Thank you for your contribution to Predictify! 🚀