Feat/social copy lending#543
Merged
Smartdevs17 merged 3 commits intoJun 26, 2026
Merged
Conversation
added 2 commits
June 25, 2026 13:46
…, and credit delegation Implements four new DeFi features across API and contracts: - Social Trading: leaderboard, copy-trading with proportional allocation, profit sharing, follow/unfollow, privacy opt-out - Push Notifications: multi-channel engine (email/telegram/discord/push), rate limiting, template rendering, delivery tracking - Decentralized Dispute Resolution: filing, evidence, juror voting, majority resolution, appeal system - Credit Delegation: credit lines with draws, repayments, default claims, limit adjustment, transfer All new code passes typecheck, all 50 tests pass, and all 3 Soroban contracts compile successfully.
- Fix husky prepare script in root and api/package.json (husky || true) to prevent CI install failure - Add missing workspace scripts (test:all, build:all, install:all) for workspace validation step - Fix dispute-resolution contract: replace Option<VoteChoice> with u32 to avoid Soroban #[contracttype] nested enum issue - Remove unused JUROR_STAKE constant and fix clippy len_zero warning
|
Someone is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@ExcelDsigN-tech 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! 🚀 |
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.
Implement social trading copy-lending, cross-channel health notifications, decentralized dispute resolution, and customizable credit delegation
Closes #511, Closes #512, Closes #514, Closes #515
Overview
This pull request introduces significant protocol expansions centered around user autonomy, advanced financial primitives, multi-channel alerting infrastructure, and decentralized governance. It delivers an end-to-end social copy-lending architecture, an asynchronous notification system to mitigate liquidation blind spots, an on-chain dispute resolution engine to settle contested liquidation events, and a secure peer-to-peer credit delegation framework.
All features have been successfully developed on an isolated feature branch, and all necessary continuous integration (CI) compliance checks, test runners, and static analysis sweeps have passed.
Feature Summary
Technical Implementation
contracts/copy-lending/andservices/social-trading/to track leaderboard statistics (APY, total returns, risk profiles). Implemented automation to symmetrically mirror and rebalance follower liquidity allocations whenever an opted-in leader updates their structural portfolio, ensuring minimum entry criteria and computing profit-share percentages automatically.services/notification-engine/alongside a dedicated Redis/RabbitMQ message queue to handle multi-threaded processing. Built channel connectors for email, Telegram, Discord, and Web3 wallet push updates. Embedded adaptive rate-limiting parameters (maximum 1 alert per 5 minutes per user per variant) and comprehensive tracking schema (sent, delivered, read).contracts/dispute-resolution/facilitating sequential 24-hour filing, 48-hour evidence submission, and 24-hour juror voting blocks. Implemented a verifiable random function (VRF) mechanics for juror pool selection from the staker contract, requiring a 66% consensus threshold to resolve collateral distributions or position restorations.contracts/credit-delegation/enabling custom non-pooled debt positions. Integrated safe calculation curves governing interest accumulation, maturity bounds, early repayments, and default liquidation rights over delegate collateral pools.Test Coverage
Checklists