Open Issues Need Help
View All on GitHubAI Summary: Enhance the existing PolicyManager v2 smart contract to improve subscription tracking. This involves adding functionality to retrieve subscription details (policy ID and timestamp) for a specific farmer using their FarmerID across seasons. A new function should be added to fetch all historical subscribers for a given policy ID and season. The solution must be compatible with the existing `resetSeasonState()` function and should consider emitting events for improved tracking.
AI Summary: Integrate an external ITreasury interface into the existing Solidity smart contract for a blockchain-based drought insurance platform. This involves creating a function to deposit premiums into the treasury contract instead of holding them within the PolicyManager contract, ensuring secure transfer and emitting a PremiumDeposited event for transparency. The ITreasury interface needs to be defined and implemented securely.
AI Summary: Implement seasonal support and upgradeability in a Solidity smart contract for a drought insurance platform. This involves adding season information (start/end dates) to policies, creating a `resetSeasonState()` function to clear data for new seasons, updating subscription logic to handle seasonal policies, and emitting a `SeasonReset` event. The goal is to make the insurance system more flexible and adaptable to different crop seasons.
AI Summary: Implement a new 'TMSeasonal' policy type in a blockchain-based drought insurance platform. This involves adding fields for season start, end, and subscription deadlines to the smart contract, validating subscriptions against these deadlines, and emitting a new event upon successful subscription. The goal is to allow farmers to purchase insurance policies aligned with specific planting and harvesting seasons.