Revenue Configuration
Revenue sharing configurations in Reflex are centrally managed by the Reflex team to ensure security, consistency, and proper validation of all profit distribution mechanisms.
Overview
All MEV profits captured by Reflex are distributed according to predefined configurations that specify:
- Recipients: Addresses that will receive profit shares
- Percentages: How profits are split between recipients
- Validation: Ensuring all configurations are legitimate and secure
Default Configuration
Reflex provides a default revenue sharing configuration that works for most integrations:
- Protocol Fee: 80% to Reflex for infrastructure and development
- User Rewards: 20% back to traders/users
Custom Configuration Process
If you need a custom profit sharing structure different from the default, follow this process:
1. Contact Reflex
Reach out to the Reflex team with your requirements:
Required Information:
- Protocol name and description
- Desired revenue sharing structure
- Recipient addresses and their purposes
- Expected transaction volume
- Integration timeline
Contact Methods:
- Email: support@reflexmev.io
- Twitter/X: @ReflexMEV
2. Configuration Review
The Reflex team will review your request and validate:
- Address Security: All recipient addresses are properly verified
- Share Allocation: Percentages add up to 100% and are reasonable
- Compliance: Configuration meets protocol standards
- Technical Feasibility: Integration approach is sound
3. Receive Configuration ID
After approval, you'll receive:
// Example configuration details
const customConfig = {
configId: "0x1234567890abcdef...", // Your unique config ID
recipients: [
"0xProtocolTreasury...", // 40%
"0xUserRewardsPool...", // 50%
"0xValidatorTips..." // 10%
],
shares: [40, 50, 10],
description: "Custom protocol revenue sharing"
};
4. Implementation
Use your provided configId
in all Reflex integration calls:
// Smart Contract Integration
reflexRouter.triggerBackrun(
poolId,
backrunAmount,
zeroForOne,
profitRecipient,
customConfigId // Your provided config ID
);
// SDK Integration
const executeParams = {
target: "0xYourContract...",
value: 0n,
callData: "0x..."
};
const backrunParams = [{
triggerPoolId: "0xPool...",
swapAmountIn: "1000000000000000000",
token0In: true,
recipient: "0xUser...",
configId: customConfigId // Your provided config ID
}];
const result = await reflexSDK.backrunedExecute(
executeParams,
backrunParams
);
Configuration Examples
DEX Protocol Example
const dexConfig = {
recipients: [
"0xReflex...", // Reflex
"0xDEXTreasury...", // Protocol treasury
"0xLPRewardsPool...", // Liquidity provider rewards
],
shares: [70, 20, 10], // Percentages
description: "DEX protocol with LP rewards"
};
Aggregator Protocol Example
const aggregatorConfig = {
recipients: [
"0xReflex...", // Reflex
"0xUserCashback...", // Direct user cashback
"0xAggregatorTreasury...", // Protocol development
],
shares: [75, 15, 10],
description: "Aggregator with user cashback focus"
};
Wallet Integration Example
const walletConfig = {
recipients: [
"0xReflex...", // Reflex
"0xUserRewards...", // Direct user benefits
"0xWalletTreasury...", // Wallet development
],
shares: [70, 20, 10],
description: "Wallet integration with user focus"
};
Best Practices
Security Considerations
- Verify Addresses: Ensure all recipient addresses are correct and controlled by appropriate parties
- Test Configuration: Start with small amounts to verify profit distribution works correctly
- Monitor Distribution: Set up monitoring for profit distribution to detect any issues
- Regular Reviews: Periodically review your configuration to ensure it still meets your needs
Optimization Tips
- Minimize Recipients: Fewer recipients reduce gas costs for profit distribution
- Round Percentages: Use round numbers when possible to simplify calculations
- Cache Config ID: Store your config ID as an immutable variable to save gas
- Batch Operations: If possible, batch multiple operations with the same config
Compliance Guidelines
- Legal Review: Ensure your revenue sharing structure complies with local regulations
- Transparency: Be transparent with users about how MEV profits are shared
- Documentation: Keep clear documentation of your revenue sharing model
- Updates: Notify stakeholders of any changes to revenue distribution
Configuration Management
Updating Configurations
Configuration updates require:
- New Request: Submit a new configuration request to Reflex team
- Review Process: Updated configuration goes through the same review process
- New Config ID: You'll receive a new config ID for the updated configuration
- Migration: Update your contracts/SDK calls to use the new config ID
Configuration Lifecycle
- Active: Configuration is live and processing transactions
- Deprecated: Old configuration still works but is no longer recommended
- Sunset: Configuration will be disabled after a grace period
- Disabled: Configuration no longer accepts new transactions
Support
If you have questions about revenue configuration:
- Documentation: Check this documentation first
- Email Support: Contact support@reflexmev.io for assistance
- Twitter/X: Follow @ReflexMEV for updates
- Partnership Team: Contact partnerships team for enterprise needs
Next Steps:
- For smart contract integration, see Smart Contract Integration
- For SDK integration, see SDK Integration Guide
- For implementation details, check out Smart Contract Integration and SDK Integration