Flywheel MiniApp

Flywheel enables trustless delegation of token-based tasks on World Chain

Flywheel MiniApp

Created At

ETHGlobal New Delhi

Project Description

Flywheel: Trustless Task Delegation on World Chain

Project Overview Flywheel is a decentralized protocol on World Chain that enables trustless delegation of token-based actions and reward farming to verified resolvers. It empowers requesters to delegate complex tasks—such as leveraged position management, yield optimization, or other farming strategies—to skilled resolvers who execute these tasks via World Chain mini-apps in exchange for a commission on profits. Flywheel goes beyond token-based delegation, allowing requesters to incentivize resolvers to farm for diverse rewards, such as TGE eligibility, fixed token payouts, or other side effects, maximizing the utility of World Chain mini-apps.

Core Features Flexible Task Delegation: Requesters can delegate a wide range of tasks, from token-based yield farming to non-token reward farming (e.g., TGE eligibility or time-based farming for fixed token payouts). Action Manager Factory Contract: A smart contract that allows requesters to deploy farming requests with specified delegation tokens and durations, enabling seamless task creation. Resolver Incentives: Resolvers execute tasks for a commission on profits. They lock stake tokens to ensure trust, preventing malicious behavior or absconding with delegated assets. Backend Monitoring: A backend service tracks resolver progress, ensuring transparency and accountability throughout the task lifecycle. Task Completion & Settlement: Upon task completion, resolvers return profits plus principal to requesters, reclaim their stake, and earn their commission, creating a win-win ecosystem. Scalable Use Cases: Flywheel supports diverse strategies, such as farming for 10 hours to earn fixed tokens or optimizing for rewards that exceed the cost of delegation, driving profitability for both parties.

How It Works Task Creation: Requesters deploy tasks via the Action Manager Factory Contract, specifying delegation tokens, task duration, and desired outcomes (e.g., yield, TGE eligibility). Resolver Participation: Verified resolvers pick up tasks, locking stake tokens to ensure commitment and trust. Task Execution: Resolvers execute tasks using World Chain mini-apps, with progress monitored by the backend service. Settlement: Upon completion, resolvers return principal and profits to requesters, reclaim their stake, and receive their commission.

Impact Flywheel enhances the World Chain ecosystem by: Boosting Onchain Activity: Encourages active participation in World Chain mini-apps through incentivized task execution. Automation for Requesters: Enables requesters to automate complex strategies without direct management, saving time and effort. Profit Opportunities for Resolvers: Empowers skilled resolvers to earn commissions by leveraging their expertise. Trustless Design: Stake-based incentives and transparent monitoring ensure security and reliability for all parties.

Technical Details Smart Contracts: Built on World Chain, leveraging the Action Manager Factory Contract for task deployment and management. Stake Mechanism: Resolvers lock stake tokens to participate, ensuring accountability and preventing malicious actions. Backend Integration: A monitoring service tracks task progress, providing real-time updates and ensuring fair settlement. Pyth Pull Oracles: Used to determine the required stake token amounts, ensuring fair and market-aligned staking requirements. Scalability: Designed to support a wide range of mini-apps and reward structures, making Flywheel adaptable to evolving World Chain use cases.

How it's Made

Flywheel’s architecture enables trustless task delegation on World Chain through smart contracts, oracle integration, and a modern web stack. Smart contracts, developed and tested with Foundry, include the Action Manager Factory Contract and Pyth pull oracle integration, deployed on World Chain mainnet. The factory contract allows verified users to create farming request contracts, specifying tokens (typically stablecoins), duration, outcomes, etc. Verified resolvers accept tasks by staking tokens, with amounts set by Pyth oracles to ensure fairness. A Node.js and MongoDB backend monitors resolver activity on World Chain mini-apps, issuing a cryptographic signature upon task completion to unlock stakes via the contract. Resolvers return delegated tokens and profits, minus their commission. The mini-app, built with World Chain Minikit, uses Next.js for the frontend, TypeScript for type safety, and MongoDB for task metadata storage. This combination of Foundry-tested contracts, Pyth oracles, and Minikit-based development ensures a secure, scalable system, supporting diverse tasks and driving engagement in World Chain’s ecosystem.

background image mobile

Join the mailing list

Get the latest news and updates