DynamiFi
Real-time social finance platform powered by Reactive Smart Contracts that instantly values content and rewards engagement.
Created on 15th March 2025
•
DynamiFi
Real-time social finance platform powered by Reactive Smart Contracts that instantly values content and rewards engagement.
The problem DynamiFi solves
Traditional social media platforms create billions in value from user-generated content, but creators receive minimal compensation for their contributions. Existing SocialFi solutions attempt to address this by introducing tokens, but they fail to create a meaningful connection between engagement and financial reward.
DynamiFi solves three critical problems in the creator economy:
-
Delayed Value Recognition: Current platforms have significant delays between content creation and monetization. Creators often wait weeks or months to see financial returns, creating a disconnected experience. DynamiFi provides instant financial feedback by valuing content in real-time.
-
Static Reward Mechanisms: Traditional monetization methods use simplistic models (likes = money) that don't account for engagement quality, timing, or user reputation. DynamiFi introduces a dynamic Social Value Oracle that calculates content value based on multiple engagement factors.
-
Misaligned Incentives: Current platforms reward quantity over quality and incentivize clickbait. DynamiFi's content-specific token pools ensure high-quality content receives proportionally higher rewards, while reputation-weighted engagement ensures that valuable interactions have greater impact.
By leveraging Reactive Smart Contracts, DynamiFi creates a living economic layer that directly translates social value into financial rewards without delays or manual intervention. This approach not only provides fairer compensation to creators but also enhances the quality of content and interactions across the platform.
User Interaction and Data Flow
The DynamiFi user experience is designed to be intuitive while showcasing the power of Reactive Smart Contracts:
1. Content Creation
- Users create posts with text or media content
- Content is stored on IPFS with a reference saved on-chain
- Each post automatically generates its own token pool, initialized with a small amount of DFI tokens
- Content creators immediately see their post in the platform feed
2. Engagement
- Reactions: Users can react to posts with five different reaction types (LIKE, LOVE, INSIGHTFUL, INNOVATIVE, VALUABLE), each carrying different weight in the valuation algorithm
- Comments: Users leave comments which are quality-scored based on length and user reputation
- Donations: Users can directly donate DFI tokens to content they value
3. Real-time Rewards
- As engagement occurs, the content's value updates instantly
- The content creator receives micro-rewards in real-time rather than waiting for periodic payouts
- Early supporters also receive proportional rewards from the content pool
- Users see their token balance increase with notifications for each reward
4. Reputation Building
- Each positive interaction increases a user's reputation score
- Higher reputation grants more impact when engaging with content
- Creating trending content provides significant reputation boosts
- Reputation levels are visibly displayed on user profiles
5. Content Discovery
- The platform highlights trending content based on the engagement-to-time ratio
- Content with high-quality engagement rises in visibility
- Users can filter content by trending status, engagement type, or value
Data Flow:
- User actions trigger smart contract events (PostCreated, ReactionAdded, etc.)
- The ReactiveEventMonitor tracks these events in real-time
- Events trigger the content valuation algorithm in the DynamiFi contract
- Rewards are automatically distributed based on the updated valuation
- NotificationService alerts users of rewa
The project architecture and development process
Project Architecture
DynamiFi consists of three primary smart contracts working together:
-
DynamiFi.sol (Core Contract)
- Extends ERC20 token functionality for the platform token
- Manages posts, reactions, comments, and donations
- Implements the dynamic content valuation algorithm
- Handles content-specific token pools and reward distribution
- Features reputation tracking and trending detection
-
ReactiveEventMonitor.sol
- Leverages Reactive Smart Contracts to monitor on-chain events
- Tracks platform analytics (active users, total posts, reward distribution)
- Triggers notifications for significant events
- Updates trending content lists in real-time
-
NotificationService.sol
- Receives callbacks from the ReactiveEventMonitor
- Manages user notification preferences
- Stores notification history for retrieval
- Tracks read/unread status for notifications
Core Components
Social Value Oracle (SVO)
The heart of DynamiFi is its real-time content valuation algorithm that considers:
- Engagement quality (weighted by reaction type and comment quality)
- User reputation (higher-reputation users have more impact)
- Time factors (recency of engagement and content age)
- Financial support (donations)
The algorithm produces an engagement score that determines content value and trending status.
Content-Specific Token Pools
Each post creates its own micro-economy through a dedicated token pool:
- Pools are initialized with a small amount of tokens
- Engagement with content draws from this pool for rewards
- Early supporters receive proportionally larger rewards
- Viral content triggers special bonus distributions
Reputation System
The platform tracks user reputation based on contribution quality:
- Creating valuable content increases reputation
- Receiving reactions and comments boosts reputation
- Donations provide reputation gains
Product Integrations
Product Integrations
DynamiFi integrates several key technologies to enable real-time social finance:
1. Reactive Network
- Real-time monitoring of on-chain events without polling
- Autonomous execution of reward distributions
- Cross-contract communication for notifications
function react(LogRecord calldata log) external vmOnly { if (log._contract == dynamifiContract && log.topic_0 == REACTION_ADDED_TOPIC) { _handleReactionAdded(log); } }
2. IPFS/Arweave for Content Storage
- Content stored on decentralized networks with on-chain references
- Reduces blockchain storage costs while preserving content integrity
function createPost(uint256 postId, string calldata caption, string calldata contentURI) external { posts[postId].contentURI = contentURI; // IPFS/Arweave link }
3. ERC-20 Token Standard
- Native DFI token for platform rewards and engagement
- Compatible with existing wallets and exchanges
4. Callback Proxy System
- Secure cross-contract notifications
- Authentication for received callbacks
function notifyReward(address sender, address recipient, uint256 postId, uint256 amount) external authorizedSenderOnly { // Process reward notification }
Future Integrations
- Chainlink Price Feeds: For stable dollar-denominated valuations
- The Graph: Enhanced analytics and querying capabilities
Key differentiators and uniqueness of the project
Key differentiators and uniqueness of the project
DynamiFi revolutionizes SocialFi through five key innovations:
-
Real-Time Value Recognition: Content value updates instantly with each interaction, while competitors use periodic assessments or manual claims.
-
Dynamic Content Valuation: Our Social Value Oracle (SVO) evaluates engagement quality, user reputation, and time factors, replacing the simplistic "1 like = X tokens" models used elsewhere.
-
Content-Specific Token Pools: Each post creates its own micro-economy, unlike platforms that distribute from global allocations where quality content gets diluted.
-
Reputation-Weighted Engagement: Actions from reputable users carry more weight, creating a quality flywheel that competitors' one-user-one-vote systems lack.
-
Reactive Architecture: Autonomous smart contracts monitor and respond to events without user intervention, eliminating the friction of manual claiming.
Our analysis of competitors revealed three common limitations: zero-sum reward pools that favor certain posting times, manual claim requirements that disconnect social actions from rewards, and equal valuation of all engagement that incentivizes quantity over quality.
DynamiFi solves these problems with an autonomous system that instantly rewards quality engagement, creating a more natural and fair creator economy.
Trade-offs and shortcuts while building
Building DynamiFi for a hackathon environment required several strategic trade-offs and optimizations:
1. Simplified Trending Algorithm
Trade-off: The trending detection algorithm uses a straightforward engagement-to-time ratio rather than more sophisticated approaches.
- Why: More complex algorithms would require extensive testing and tuning
- Future Improvement: Implement machine learning-assisted trending detection that considers velocity changes and engagement patterns
2. Limited Content Types
Trade-off: The current implementation only supports basic post structures with text and media links.
- Why: Adding support for diverse content types would increase contract complexity
- Future Improvement: Extend with modular content type handlers for specialized formats (polls, articles, videos)
3. On-Chain Comment Storage
Trade-off: Comment content is stored directly on-chain, increasing gas costs for comment creation.
- Why: On-chain storage simplifies the architecture for demonstration purposes
- Future Improvement: Move comment content to IPFS with only hash references on-chain
4. Fixed Reaction Types
Trade-off: Reaction types are hardcoded rather than dynamically configurable.
- Why: Fixed types simplify implementation and frontend integration
- Future Improvement: Create a governance-controlled reaction system that can evolve
5. Basic Reputation System
Trade-off: The reputation system uses simple accumulation without decay or advanced mechanics.
- Why: Complex reputation systems require extensive testing to balance properly
- Future Improvement: Implement time-based decay, specialized reputation domains, and sybil resistance
Additional Features
DynamiFi was created specifically for this hackathon, built from the ground up to showcase the power of Reactive Smart Contracts in social finance. The core components developed during the hackathon include:
-
Dynamic Content Valuation System
- Real-time engagement score calculation
- Time-weighted content relevance
- Reputation-based impact scaling
- Trending content detection
-
Content-Specific Token Pools
- Automated pool initialization per post
- Engagement-triggered reward distribution
- Early supporter incentive mechanisms
- Virality bonus distribution
-
Reactive Monitoring Architecture
- Event-driven value updates
- Cross-contract notification system
- Analytics tracking without user transactions
- Autonomous trending content promotion
-
Reputation System
- Quality-based reputation accumulation
- Context-aware reputation impact
- Verification mechanism for trusted users
- Reputation display and leaderboards
-
Notification Services
- User preference management
- Real-time engagement alerts
- Reward distribution notifications
- Trending content announcements
Tracks Applied (2)
Innovative ways to leverage Reactive Smart Contracts (RSCs)
Reactive Network
Incorporate Reactive Smart Contracts (RSCs) in your applications
Reactive Network
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
