Revenue System Specification
Overview
Architecture
┌─────────────────────────────────────────────────────────────────────────────┐
│ Revenue Distribution System │
│ │
│ ┌──────────────────┐ FXRP fees ┌─────────────────────────┐ │
│ │ ShXRPVault │ ─────────────────────────► │ RevenueRouter │ │
│ │ (ERC-4626) │ │ (FXRP input) │ │
│ │ 0.2% deposit fee │ │ │ │
│ │ 0.2% withdraw fee│ │ ┌───────────────────┐ │ │
│ └──────────────────┘ │ │ 50% → Burn │ │ │
│ │ │ FXRP → SHIELD │ │ │
│ │ │ → burn() │ │ │
│ ┌──────────────────┐ │ ├───────────────────┤ │ │
│ │ BuybackBurn │ ◄───wFLR (external) │ │ 40% → Boost │ │ │
│ │ (wFLR input) │ │ │ Direct FXRP to │ │ │
│ │ │ │ │ StakingBoost │ │ │
│ │ wFLR → SHIELD │ │ ├───────────────────┤ │ │
│ │ → burn() │ │ │ 10% → Reserves │ │ │
│ └──────────────────┘ │ │ Owner withdraw │ │ │
│ │ └───────────────────┘ │ │
│ └─────────────────────────┘ │
│ │
│ ┌─────────────────────┐ │
│ │ StakingBoost │ │
│ │ ─────────────────── │ │
│ │ Receives FXRP │ │
│ │ Distributes pro- │ │
│ │ rata to stakers │ │
│ └─────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘BuybackBurn Contract
Purpose
Constructor Parameters
Key Functions
Function
Access
Description
Security Features
Flow
RevenueRouter Contract
Purpose
Constructor Parameters
Key Functions
Function
Access
Description
Security Features
Distribution Flow
Configuration Parameters
BuybackBurn
Parameter
Default
Range
Description
RevenueRouter
Parameter
Default
Range
Description
Events
BuybackBurn Events
RevenueRouter Events
Custom Errors
Test Coverage
BuybackBurn Tests (21 tests)
RevenueRouter Tests (30 tests)
Security Audit Notes
Addressed Vulnerabilities
Slither Results
Deployment Checklist
BuybackBurn
RevenueRouter
Integration with ShXRPVault
Last updated