You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
198 lines
6.4 KiB
198 lines
6.4 KiB
|
3 months ago
|
# How PoWHD Pyramid Contracts Work
|
||
|
|
|
||
|
|
## Overview
|
||
|
|
PoWHD (Proof of Weak Hands 3D) contracts are sophisticated pyramid schemes that operate on Ethereum. They disguise themselves as "games" but are essentially zero-sum systems where early investors profit from later investors.
|
||
|
|
|
||
|
|
## Key Mechanisms
|
||
|
|
|
||
|
|
### 1. Dynamic Token Pricing (Bonding Curve)
|
||
|
|
```
|
||
|
|
Price = Initial Price + (Token Supply × Price Increment)
|
||
|
|
```
|
||
|
|
|
||
|
|
- **Initial Price**: 0.0000001 ETH (very low to attract initial buyers)
|
||
|
|
- **Price Increment**: 0.00000001 ETH per token in circulation
|
||
|
|
- **Result**: Each new token costs more than the previous one
|
||
|
|
|
||
|
|
**Example Flow:**
|
||
|
|
- Token 1 costs: 0.0000001 ETH
|
||
|
|
- Token 2 costs: 0.0000001 + 0.00000001 = 0.0000002 ETH
|
||
|
|
- Token 1000 costs: 0.0000001 + (1000 × 0.00000001) = 0.0000101 ETH
|
||
|
|
|
||
|
|
### 2. Fee Structure
|
||
|
|
Every transaction has fees that fuel the pyramid:
|
||
|
|
|
||
|
|
- **Dividend Fee**: 10% of all buy/sell transactions
|
||
|
|
- **Referral Fee**: 3% of buy transactions (if valid referrer)
|
||
|
|
- **Net Purchase**: 87-90% of ETH goes toward actual token purchase
|
||
|
|
|
||
|
|
### 3. Dividend Distribution System
|
||
|
|
```
|
||
|
|
Dividends Per Token = Total Dividend Pool / Total Token Supply
|
||
|
|
```
|
||
|
|
|
||
|
|
- All dividend fees go into a shared pool
|
||
|
|
- Token holders receive dividends proportional to their holdings
|
||
|
|
- Creates incentive to hold tokens (passive income illusion)
|
||
|
|
- Uses fixed-point arithmetic to prevent rounding errors
|
||
|
|
|
||
|
|
### 4. Referral Network (MLM Component)
|
||
|
|
```solidity
|
||
|
|
// Referrer must hold minimum 100 tokens to be valid
|
||
|
|
if(_referredBy != address(0) && tokenBalanceLedger_[_referredBy] >= 100e18) {
|
||
|
|
referralBalance_[_referredBy] += _referralBonus;
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
- Referrers get 3% of their referees' purchases
|
||
|
|
- Must hold minimum tokens to be eligible referrer
|
||
|
|
- Creates multi-level marketing incentive structure
|
||
|
|
|
||
|
|
### 5. Mathematical Formulas
|
||
|
|
|
||
|
|
#### ETH to Tokens Conversion
|
||
|
|
The contract uses a quadratic formula to calculate tokens received:
|
||
|
|
|
||
|
|
```
|
||
|
|
tokensReceived = (√(initial² + 2×increment×eth + increment²×supply² + 2×increment×initial×supply) - initial) / increment - supply
|
||
|
|
```
|
||
|
|
|
||
|
|
#### Tokens to ETH Conversion
|
||
|
|
```
|
||
|
|
ethReceived = ((initial + increment×supply/1e18) - increment) × (tokens - 1e18) - (increment × (tokens² - tokens)/1e18) / 2
|
||
|
|
```
|
||
|
|
|
||
|
|
## The Pyramid Structure
|
||
|
|
|
||
|
|
### Why It's a Pyramid
|
||
|
|
1. **Early investors profit from later investors**: Dividends come from new money, not productive activity
|
||
|
|
2. **Exponentially increasing costs**: Later buyers pay much more per token
|
||
|
|
3. **Zero-sum game**: Total ETH out can never exceed total ETH in (minus gas)
|
||
|
|
4. **Collapse inevitable**: When new money stops flowing in, the system collapses
|
||
|
|
|
||
|
|
### The Psychology
|
||
|
|
- **"Weak Hands"**: Name mocks people who sell early
|
||
|
|
- **"Strong Hands"**: Glorifies holding despite losses
|
||
|
|
- **"Dividends"**: Makes it feel like investment returns
|
||
|
|
- **"Referrals"**: Turns users into recruiters
|
||
|
|
- **"Exit scam protection"**: No admin can steal funds (but pyramid can still collapse)
|
||
|
|
|
||
|
|
## Key Functions Explained
|
||
|
|
|
||
|
|
### `buy()` Function
|
||
|
|
1. Takes user's ETH payment
|
||
|
|
2. Deducts 10% dividend fee
|
||
|
|
3. Deducts 3% referral fee (if valid referrer)
|
||
|
|
4. Uses remaining 87% to calculate tokens via bonding curve
|
||
|
|
5. Distributes dividend fee among all token holders
|
||
|
|
6. Updates user's token balance and dividend tracking
|
||
|
|
|
||
|
|
### `sell()` Function
|
||
|
|
1. Burns user's tokens
|
||
|
|
2. Calculates ETH value via reverse bonding curve
|
||
|
|
3. Deducts 10% dividend fee
|
||
|
|
4. Sends remaining 90% to user
|
||
|
|
5. Distributes fee among remaining token holders
|
||
|
|
|
||
|
|
### `reinvest()` Function
|
||
|
|
- Automatically converts accumulated dividends back into tokens
|
||
|
|
- No additional fees (dividends already taxed)
|
||
|
|
- Compounds holdings for user
|
||
|
|
|
||
|
|
### `withdraw()` Function
|
||
|
|
- Allows users to withdraw accumulated dividends
|
||
|
|
- Includes both dividend share and referral bonuses
|
||
|
|
- Direct ETH transfer to user
|
||
|
|
|
||
|
|
## Red Flags / Warning Signs
|
||
|
|
|
||
|
|
### 1. Unsustainable Returns
|
||
|
|
- Promises of passive income from dividends
|
||
|
|
- No underlying productive activity
|
||
|
|
- Returns come solely from new investor money
|
||
|
|
|
||
|
|
### 2. Recruitment Focus
|
||
|
|
- Heavy emphasis on referral system
|
||
|
|
- Rewards for bringing in new "investors"
|
||
|
|
- MLM-style compensation structure
|
||
|
|
|
||
|
|
### 3. Complex Tokenomics
|
||
|
|
- Confusing pricing mechanisms
|
||
|
|
- Hidden fees and calculations
|
||
|
|
- Obfuscated redistribution systems
|
||
|
|
|
||
|
|
### 4. Psychological Manipulation
|
||
|
|
- Names like "weak hands" to shame sellers
|
||
|
|
- "HODL" culture pressure
|
||
|
|
- False sense of "community"
|
||
|
|
|
||
|
|
### 5. "Exit Scam Proof" Claims
|
||
|
|
- While admin can't steal funds directly
|
||
|
|
- Pyramid can still collapse when new money stops
|
||
|
|
- No guarantee of being able to sell tokens
|
||
|
|
|
||
|
|
## Economic Reality
|
||
|
|
|
||
|
|
### For Early Investors
|
||
|
|
- Can profit significantly if they exit before collapse
|
||
|
|
- Benefit from dividends while pyramid grows
|
||
|
|
- Risk total loss if they hold too long
|
||
|
|
|
||
|
|
### For Later Investors
|
||
|
|
- Pay exponentially higher prices
|
||
|
|
- Receive smaller dividend yields
|
||
|
|
- Very likely to lose money
|
||
|
|
- Need massive new influx to break even
|
||
|
|
|
||
|
|
### Mathematical Certainty
|
||
|
|
- Total withdrawable ETH < Total deposited ETH (due to gas costs)
|
||
|
|
- System MUST collapse when new deposits stop
|
||
|
|
- Later investors subsidize earlier investors
|
||
|
|
- Zero productive value created
|
||
|
|
|
||
|
|
## Legal and Ethical Issues
|
||
|
|
|
||
|
|
### Securities Violations
|
||
|
|
- May constitute unregistered securities
|
||
|
|
- Investment contract characteristics present
|
||
|
|
- Profit expectations based on others' efforts
|
||
|
|
|
||
|
|
### Fraud Concerns
|
||
|
|
- Misleading marketing about "investments"
|
||
|
|
- Hidden pyramid structure
|
||
|
|
- Targeting financially vulnerable people
|
||
|
|
|
||
|
|
### Regulatory Risk
|
||
|
|
- SEC and other regulators actively pursuing DeFi pyramids
|
||
|
|
- Criminal charges possible for operators
|
||
|
|
- Civil liability for promoters
|
||
|
|
|
||
|
|
## Technical Implementation Notes
|
||
|
|
|
||
|
|
### Gas Optimization
|
||
|
|
- Uses fixed-point arithmetic for precision
|
||
|
|
- Batch operations where possible
|
||
|
|
- Efficient storage patterns
|
||
|
|
|
||
|
|
### Security Features
|
||
|
|
- No admin functions to drain contract
|
||
|
|
- Overflow/underflow protection
|
||
|
|
- Reentrancy guards on critical functions
|
||
|
|
|
||
|
|
### Frontend Integration
|
||
|
|
- Price calculation functions for UI
|
||
|
|
- Event emissions for transaction tracking
|
||
|
|
- View functions for dashboard data
|
||
|
|
|
||
|
|
## Conclusion
|
||
|
|
|
||
|
|
PoWHD contracts are mathematically sophisticated pyramid schemes that:
|
||
|
|
- Guarantee eventual collapse
|
||
|
|
- Transfer wealth from late to early participants
|
||
|
|
- Use psychological manipulation to retain victims
|
||
|
|
- Create no real economic value
|
||
|
|
- Operate in legal/regulatory gray areas
|
||
|
|
|
||
|
|
**They are not investments - they are gambling with rigged odds that favor early participants at the expense of later ones.**
|
||
|
|
|
||
|
|
Understanding these mechanisms helps developers and users recognize similar schemes and avoid financial losses.
|