Description: Build a Soroban contract for YieldForge to calculate and distribute yields (e.g., from trading fees or lending interest) to staked users based on their pool share.
Tasks:
Write a Rust contract to track pool performance and distribute yields.
Implement yield calculation (e.g., proportional to stake, fixed 5% APY for testing).
Test distribution with sample data (e.g., 100 USDC stake).
Acceptance Criteria:
Contract calculates yields based on user stake and pool performance.
Yields are distributed to users on testnet (e.g., via stablecoin payments).
Distribution events are verifiable via Horizon API.
Description: Build a Soroban contract for YieldForge to calculate and distribute yields (e.g., from trading fees or lending interest) to staked users based on their pool share.
Tasks:
Write a Rust contract to track pool performance and distribute yields.
Implement yield calculation (e.g., proportional to stake, fixed 5% APY for testing).
Test distribution with sample data (e.g., 100 USDC stake).
Acceptance Criteria:
Contract calculates yields based on user stake and pool performance.
Yields are distributed to users on testnet (e.g., via stablecoin payments).
Distribution events are verifiable via Horizon API.