[Contract] Yield Farming Vault with Auto-Compounding
🚀 Feature Overview
Create a smart vault that accepts user deposits, stakes them in third-party protocols, harvests rewards, and automatically reinvests (compounds) them to maximize APY.
This is a complex, MVP-critical feature designed to elevate the smart contract architecture and expand the educational modules of the Web3 Student Lab platform.
🛠️ Implementation Requirements
- Build the
harvest function with flash-bot/front-running protection.\n- Calculate fair share drops for users entering/exiting the vault.\n- Implement robust error handling if the external protocol fails.
🔧 Technical Specifications
- Language/Environment: Rust / Soroban (or Solidity if specifically bridging).
- Adherence to strict architectural boundaries and gas optimization.
- High test coverage requirements (>90% unit testing in Rust).
- Prevent common vectors: Reentrancy, Integer Overflow/Underflow, and Oracle Manipulation.
✅ Acceptance Criteria
🎓 Difficulty Level
Advanced - Requires deep understanding of Web3 security, cryptography, and smart contract design patterns.
⏱️ Timeline
ETA: 3-5 days
🏷️ Labels
contract, defi, architecture
Note to Contributors: Break down work into smaller PRs for easier review, focusing on core logic first before adding complex modifiers.
[Contract] Yield Farming Vault with Auto-Compounding
🚀 Feature Overview
Create a smart vault that accepts user deposits, stakes them in third-party protocols, harvests rewards, and automatically reinvests (compounds) them to maximize APY.
This is a complex, MVP-critical feature designed to elevate the smart contract architecture and expand the educational modules of the Web3 Student Lab platform.
🛠️ Implementation Requirements
harvestfunction with flash-bot/front-running protection.\n- Calculate fair share drops for users entering/exiting the vault.\n- Implement robust error handling if the external protocol fails.🔧 Technical Specifications
✅ Acceptance Criteria
🎓 Difficulty Level
Advanced - Requires deep understanding of Web3 security, cryptography, and smart contract design patterns.
⏱️ Timeline
ETA: 3-5 days
🏷️ Labels
contract, defi, architecture
Note to Contributors: Break down work into smaller PRs for easier review, focusing on core logic first before adding complex modifiers.