πSmart Contract Overview
π§ Smart Contract Architecture
DegenDapp is not just an ideaβit's a fully on-chain, modular, and transparent launch ecosystem. Our architecture is powered by a suite of interconnected smart contracts, each serving a distinct and auditable purpose.
Hereβs a comprehensive breakdown of the contracts that power our protocol:
π 1. DegenDapp Token (DGD
)
DGD
)The native token of the DegenDapp ecosystem β minted and distributed entirely through a fairlaunch process.
πͺ Max Supply: 1,000,000,000 DGD (fixed cap)
π« No pre-mint, no vesting, no admin unlocks
π Fully transferable upon claim
$DGD exists only when the community earns it β and not a second before.
π Use Cases (Post Fairlaunch):
Staking & creator rewards
Meme token launch incentives
Governance
Potential IDO allocations and protocol upgrades in the future
All emission and utility will be governed by smart contract logic, with no centralized control.
π§± 2. Token Factory & Custom Token
Allows users to instantly create custom ERC20 tokens with:
Pre-minted 1 billion supply
Auto-distribution to token sale contract
Bound to staking and sale systems on deployment
βοΈ Use Case: Zero-code token deployment with embedded platform integrations.
πΈ 3. Token Sale Manager
Manages the full sale lifecycle, including:
Setting softcap, hardcap, duration
Accepting BNB contributions
Automatic refund if softcap not met
Adding liquidity to PancakeSwap via
RouterV3
Rewarding creators with randomized DGD bonus (1,000β10,000 DGD)
π§ Use Case: Decentralized launch logic, LP automation, and fundraising transparency.
π¦ 4. DGD Staking Engine
Tier-based staking with three reward layers:
π« Bronze
15 days
15%
15%
π₯ Silver
30 days
20%
30%
π₯ Gold
60 days
30%
55%
Also supports:
Multi-token reward tracking
Tiered reward distribution from new token launches
On-demand unstaking and reward claiming
π Use Case: Incentivize long-term holders and reward ecosystem-wide participation.
π 5. Creator Reward Distributor
Automatically delivers a random reward of 1,000β10,000 DGD to token creators who complete a successful sale.
One-time reward per project
Permissionless, verifiable, and anti-spam protected
π² Use Case: Boost creator motivation through chance-based gamified incentives.
π° 6. Testnet Faucet
Supports testnet users by distributing:
9,999 DGD (testnet) once per wallet
Ensures smooth onboarding and testing flow for developers
π§ͺ Use Case: Developer adoption and UI/UX testing without real funds.
π Visual Overview: Contract Interaction Flow
+-------------------+ creates +------------------------+
| Token Creator | ----------------> | TokenFactory |
+-------------------+ +------------------------+
|
| deploys
v
+------------------------+
| CustomToken (ERC20) |
+------------------------+
|
| sale token assigned to
v
+------------------------+
| TokenSaleManager |
+------------------------+
| | |
| | |
| adds LP sends rewards
| | |
+-----------------+ | v v
invests BNB | Buyer Wallet | -->| PancakeSwap |-----> Creator
------------> +-----------------+ | | receives
\-----> Staking Contract DGD + tokens
Last updated