Skip to content

feat: implement timelock batch ops, insurance claims, social recovery, AMM integration#411

Merged
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
Ebuka321:feat/issue-336-337-338-339
May 27, 2026
Merged

feat: implement timelock batch ops, insurance claims, social recovery, AMM integration#411
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
Ebuka321:feat/issue-336-337-338-339

Conversation

@Ebuka321
Copy link
Copy Markdown
Contributor

Summary

This PR implements features for 4 issues:

#339 - Time-lock Transaction Scheduling

  • Batch timelock operations allowing multiple proposal types in a single operation
  • Priority queue ordering for timelock operations (sorted by ready_at ascending)
  • Cleanup function for expired queue entries
  • New view functions: get_timelock_queue(), get_batch_timelock_operation(), clean_timelock_queue()

#338 - Automated Insurance Claims Processing

  • cancel_claim() - allows claimants to cancel their own pending claims
  • get_all_claim_ids() / get_all_claims() - full claim history iteration
  • Claims list tracking in storage for comprehensive analytics

#337 - Social Recovery for Wallet Access

  • Guardian designation with acceptance flow (propose_guardians + accept_guardian)
  • Recovery request with guardian threshold approvals (approve_recovery)
  • Challenge period with cancel option by original owner (cancel_recovery_by_owner)
  • Guardian rotation with existing guardian consent (rotate_guardians)
  • Emergency recovery timeout (90 days without activity triggers emergency mode)
  • View functions for guardians, recovery state, and activity tracking

#336 - AMM Integration for Liquidity Provision

  • LP token wrapping for lending pool deposits (wrap_deposit_to_lp / unwrap_lp_to_deposit)
  • Withdrawal buffer management (80/20 split between AMM and lending pool)
  • Automated liquidity allocation based on pool utilization (auto_rebalance_allocation)
  • LP fee collection and distribution tracking
  • Impermanent loss monitoring with price ratio alerts

Closes #336, Closes #337, Closes #338, Closes #339

…, AMM integration

- Add batch timelock operations with priority queue ordering (Smartdevs17#339)
- Add cancel_claim, get_all_claims for insurance claims history (Smartdevs17#338)
- Add guardian acceptance flow, cancel recovery by owner, guardian rotation,
  emergency recovery timeout (90 days) for institutional wallet (Smartdevs17#337)
- Add LP token wrapping, withdrawal buffer management (80/20 split),
  automated liquidity allocation, impermanent loss monitoring for AMM (Smartdevs17#336)
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

@Ebuka321 is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Ebuka321 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Smartdevs17 Smartdevs17 merged commit e1ba537 into Smartdevs17:main May 27, 2026
4 of 16 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

2 participants