πŸ›‘οΈ PPT - Smart Token Market Router

Smart Token Market Router - Ethereum Mainnet

Wallet not connected

πŸ“‘ Keeper Activity (live)

Statuschecking…
Last auto-buyβ€”
Last nudgeβ€”
Last dampener sellβ€”
Keeper gasβ€”
Automator cyclesβ€”

Source: keeper feed on pg-pendefi-be Β· auto-refresh 30s Β· full log in the πŸ“‘ Recent Events tab

πŸ€– Smart Token Router Automator V4

Automator ContractNot deployed yet — set address below
πŸ’° Manager Contract Balances
USDC
WETH
PC
ETH (native)
🏦 Executor Balances (harvestable)
USDC Executor - USDC
USDC Executor - PC
ETH Executor - WETH
ETH Executor - PC

πŸ”‘ Setup & Role Management

Set the Automator contract address, then grant/revoke DEFAULT_ADMIN_ROLE on both dampeners.

πŸ’΅ USDC Dampener V3.1

DEFAULT_ADMIN_ROLE: checking...
Old V4.0 (0x3d7D): checking...

πŸ’Ž ETH Dampener V5

DEFAULT_ADMIN_ROLE: checking...
Old V4.0 (0x3d7D): checking...

🌾 Harvest (Pull from Dampeners)

Withdraw accumulated USDC/WETH from dampener contracts into the Automator.

πŸ’΅ Harvest USDC

πŸ’Ž Harvest WETH

⚑ Swap (Buy/Sell PC)

Execute swaps using the Automator's held balance. Routes through the TreasuryRouter with dampener stabilization.

πŸ›‘οΈ Safety Caps (V4)

Max Harvest
β€”
USDC Cooldown
β€”
β€”
WETH Cooldown
β€”
β€”
Max Buy USDC
β€”
Max Buy WETH
β€”
Sells Enabled
β€”

πŸ“¦ Deposit PC to Dampeners

Send accumulated PC back to dampener contracts to refuel their sell inventory. Keeper or Owner.

Default target:

πŸ“¦ Default Deposit

πŸ’΅ β†’ USDC Dampener

πŸ’Ž β†’ ETH Dampener

πŸ’‘ Deposited PC becomes sell inventory for the dampeners. The flywheel: harvest β†’ buy PC β†’ deposit β†’ dampener sells into pumps β†’ repeat.

πŸ’Έ Withdraw from Automator

Pull tokens from the Automator contract to your wallet. Owner only.

πŸ“š How It Works

πŸ›‘οΈ The Three Lines of Defense

PPT protects $PC price through three automated systems that work together:

1. Dampeners (USDC V3.1 + ETH V5) β€” Sell Into Pumps

When PC price rises above the trigger ($center + heat band), the dampener sells PC from its inventory into the pool, absorbing buy pressure and accumulating USDC/WETH. This prevents unsustainable price spikes.

  • Center price: The target equilibrium (currently $45)
  • Heat band: How far above center before selling kicks in (currently 5% = trigger at $47.25)
  • Gap close (ETH only): When PC/USDC and PC/ETH pools diverge >0.5%, sells PC into the expensive pool to equalize

2. Nudge β€” Buy Support During Quiet Periods

When the market goes quiet (no sells for 1-2 hours), the keeper uses accumulated USDC/WETH to buy PC back, gently pushing price up. This creates a sustainable cycle:

Pump β†’ Sell PC β†’ Earn USDC/WETH β†’ Quiet period β†’ Buy PC back β†’ Price support β†’ Repeat

  • SafeMax ceiling: Nudge won't buy if price is already near the sell trigger β€” prevents pushing into the sell zone
  • Fixed-size buys: Each nudge buys up to the max amount (25 USDC / 0.01 WETH), same size every time
  • Cooldown: Minimum 1 hour between nudges
  • Self-sustaining: The USDC/WETH earned from dampener sells funds the nudge buys

3. ETH Tracker Vault β€” Correlation Ratchet

Tracks ETH/USD price movements independently from PC price. When ETH moves significantly, the tracker adjusts PC's position to maintain correlation:

  • ETH pumps β‰₯ 0.83%: Sells PC (80% of the move), because ETH rising means PC should follow via natural arb
  • ETH drops β‰₯ 0.83%: Buys PC (20% of the move), providing support during ETH weakness
  • Anchor auto-ratchets: After each trade, the anchor updates to current ETH/USD β€” so it only fires on NEW moves

🚨 Black Swan Pyramid (Escalating Buy Support)

If ETH drops hard, the tracker escalates its buy aggressiveness through 4 tiers:

ETH DropBuy %Max TradeResponse
Normal (β‰₯0.83%)20%0.15% of poolGentle support
β‰₯5%30%0.20% of poolModerate support
β‰₯10%50%0.30% of poolStrong support
β‰₯20%70%0.40% of poolHeavy support
β‰₯30%90%0.50% of poolMaximum defense

⚑ Smart Token Market Router

Public-facing swap interface: buy or sell PC through USDC or ETH pools. The router automatically stabilizes price post-swap if it crosses the heat band β€” so large buys get absorbed without creating arb opportunities for bots.

Dual mode: Split buys/sells across both pools proportionally by TVL, minimizing slippage and price impact.

Why use this over Uniswap directly? Swapping through the router avoids overpaying β€” it caps your buy at the stabilization threshold, so you don't push price into bot territory and lose value to arbitrage.

πŸ€– Smart Token Router Automator V4

The Automator wraps both dampener executors behind a single contract, enabling one-click treasury operations and a closed-loop PC flywheel from the dashboard.

Architecture

Your Admin Wallet (owner)
    β†“ calls
SmartTokenRouterAutomatorV4 (0x0e34…c6e)
    β”œβ”€β”€ harvests from β†’ USDC Executor V3.1
    β”œβ”€β”€ harvests from β†’ ETH Dampener V5
    β””── routes swaps via β†’ TreasuryRouter V4
                            β”œβ”€β”€ PC/USDC Pool
                            β””── PC/ETH Pool

What It Does

  • Harvest: Pull accumulated USDC and WETH from the two dampener executors into one contract. The dampeners earn these from selling PC into pumps β€” the Automator collects the profits.
  • Deposit PC: Send accumulated PC back into the dampener contracts to refuel their sell inventory. Supports targeted deposit to USDC-side, ETH-side, or 50/50 split (default). Owner can change the default target.
  • Swap: Buy or sell PC using the harvested USDC/WETH. Routes through the TreasuryRouter so dampener stabilization still fires automatically. Supports single-pool or dual-pool atomic swaps.
  • Withdraw: Pull any token (USDC, WETH, PC) from the Automator to your wallet, or sweep everything at once.

Typical Workflow

  1. Harvest Both β€” pulls USDC from V3.1 + WETH from V5 into the Automator (capped, separate cooldowns)
  2. Deposit PC β€” sends accumulated PC back to dampeners (default 50/50 split, configurable)
  3. Dual Buy PC β€” uses both USDC and WETH to buy PC across both pools atomically
  4. Wait β€” PC price rises naturally or via nudge, dampeners sell again, accumulating more USDC/WETH
  5. Repeat β€” harvest β†’ buy β†’ wait β†’ harvest (closed-loop flywheel)

Dampeners sell PC β†’ Earn USDC/WETH β†’ Harvest β†’ Buy PC back cheaper β†’ Dampeners sell again β†’ Repeat

Security

  • Owner-only: Only the admin wallet (0xF60f...8F58) can call any function
  • Additive roles: The Automator needs DEFAULT_ADMIN_ROLE on both dampeners to harvest, but your admin wallet keeps its existing role β€” you can still withdraw directly from the dampeners anytime
  • No custody risk: Funds sit in the Automator (not a third party). You can sweep everything to your wallet with one click.
  • Closed-loop flywheel: Harvest β†’ Buy PC β†’ Deposit to dampeners β†’ Dampeners sell into pumps β†’ Repeat. The PC deposit feature (V3) closes the loop.
  • Reentrancy protected: All state-changing functions use OpenZeppelin's ReentrancyGuard

πŸ“‘ Recent Events

Every on-chain action the keeper takes, newest first. Colors match the defense system in the πŸ“š How It Works tab.

● Dampener β€” sell into pumps ● Nudge β€” buy support ● Automator β€” flywheel buy ● ETH Tracker β€” correlation ratchet
loading…

Source: keeper feed on pg-pendefi-be Β· auto-refresh 30s

πŸ“œ Development History

83 commits Β· 9 days Β· 11 contract deployments Β· May 12-20, 2026

πŸ“… Day 1 - May 12: Foundation

Solidity contracts, test suite, first mainnet deployment.

  • Initial HeatDampener V1 - reference Solidity + Foundry setup
  • Full test suite: 4 sanity + 18 must-revert tests (all passing)
  • Keeper bot - standalone Node.js, PM2 managed, structured logging
  • ETH mainnet deployment - TWAP oracle, deploy script, Flashbots keeper
  • Role management: deployer β†’ temp admin β†’ transfer β†’ renounce

Deployed: V1 Executor 0x45Cd...505E1b Β· TWAP Oracle 0x9D01...39c

πŸ“… Day 2 - May 13: V2 β†’ V3 + ETH Side

Rapid iteration - executor redesign, ETH pool support, admin dashboard.

  • ExecutorV2 - removed external vault, USDC stays in contract
  • Nudge buy-back - recycles USDC into gentle price support during quiet periods
  • V3 Autonomous Executor - merged sell + nudge into one contract
  • Randomized sell delay (2-10 min) to prevent timing prediction
  • v1.5 ETH-side dampener - full build with TWAP
  • ETHSideDampenerV4 - spot-only, USD floor, no TWAP
  • Admin frontend panel - withdraw, pause, oracle update

Deployed: V2 0x441D...192A4b Β· V3 USDC 0xa682...227272 Β· ETH V3 0xf790...C513 Β· ETH V4 0x1811...cEB

πŸ“… Day 3 - May 14: Treasury Router + 0% Slippage

On-chain router for atomic swap+dampener. Slippage innovation.

  • TreasuryRouter - atomic swap + dampener in one TX
  • grantRole buttons in admin panel + client-side dampener estimates
  • 0% slippage - exact quote or revert. Sandwich attackers pay LP fees, making MEV unprofitable
  • Keeper auto-size gap close + removed TWAP pre-check

πŸ“… Day 4 - May 15: V3.1 + Tracker Vault + Dashboard

TWAP fully removed. ETH correlation tracking. Major dashboard overhaul.

  • V3.1 USDC Executor - pure spot-based, zero warm-up, zero snapshot gas
  • ETHTrackerVault - asymmetric ratchet for ETH/USD correlation dampening
  • Black Swan Pyramid: escalating buy tiers (20%β†’90%) as ETH drops increase
  • Tracker vault deposit cards (PC + WETH with wrap helper)
  • Treasury router UX - wallet balance cap + bidirectional rates
  • 3-tab dashboard layout (after multiple layout attempts + reverts)
  • MAX buttons + unwrap WETH + dampener preview with POST-SWAP price
  • Comprehensive README + operating guide updates

Deployed: USDC V3.1 0xE6E6...832C Β· ETH V5 0xEfA5...46a7 Β· Tracker 0x0401...2ED0 Β· Router V3 0xe5dD...0A

πŸ“… Days 5-6 - May 18: Arb Advisory + Oscillator Research

Cross-pool arbitrage analysis. Oscillator keeper experiments on mainnet.

  • Arb threshold advisory panel - shows when cross-pool divergence creates arb opportunity
  • Correct arb P&L accounting for 100% LP owner
  • Treasury UI warns about GAP_OVERSHOOT before execution
  • Oscillator experiments: buyβ†’sell profit cycle testing (Phase A/B, documented)

πŸ“… Day 7 - May 19: Dual Pool Ops + Public Launch

Buy/sell across both pools. Admin/public separation. Production deploy.

  • Binary-search closeGap to prevent GAP_OVERSHOOT
  • Dual buy mode - buy both pools atomically, auto-fill by TVL ratio
  • Dual sell mode - split PC across pools with auto-quote
  • Post-TX breakdown panel with etherscan links
  • Tracker vault integrated into keeper-dual
  • Admin parameter panel on dashboard
  • "How It Works" documentation section
  • Access control: admin-only everything except Smart Token Market Router
  • MAX buttons for dual buy/sell + red over-balance warning
  • Full system audit + production deploy

πŸ“… Day 8 - May 20: TreasuryRouter V4

Atomic single-TX dual operations.

  • TreasuryRouter V4 - native dualBuyPC / dualSellPC functions
  • Both pools in one atomic TX - if either leg fails, everything reverts
  • Replaced 2-leg sequential approach with single contract call

Deployed: Router V4 0x173E...8A53

πŸ“Š Contract Evolution

USDC Side

VersionAddressStatusKey Feature
V10x45Cd...505E1bβ›” DrainedTWAP oracle, external vault
V20x441D...192A4bβ›” DrainedNo vault, USDC in contract
V30xa682...227272β›” DrainedAutonomous sell + nudge
V3.10xE6E6...832Cβœ… ActivePure spot, zero warm-up

ETH Side

VersionAddressStatusKey Feature
V30xf790...C513β›” DrainedTWAP-based
V40x1811...cEBβ›” DrainedSpot + USD floor
V50xEfA5...46a7βœ… ActiveGapClose + nudge + USD floor

Infrastructure

ContractAddressStatus
ETH Tracker Vault0x0401...2ED0βœ… Active
Treasury Router V30xe5dD...0ASuperseded
Treasury Router V40x173E...8A53βœ… Active
TWAP Oracle0x9D01...39cUnused (V3.1+ spot-only)

πŸ—οΈ Architecture Milestones

  1. May 12 - V1 deployed. Single USDC dampener with TWAP oracle.
  2. May 13 - V2 eliminates vault. V3 adds nudge. ETH V4 drops TWAP for spot.
  3. May 14 - Treasury Router enables atomic swap+dampener. 0% slippage innovation.
  4. May 15 - V3.1 removes all TWAP. Tracker Vault adds ETH correlation. Stable 3-tab dashboard.
  5. May 18 - Oscillator experiments. Arb advisory panel.
  6. May 19 - Dual buy/sell. Admin/public separation. Production deploy.
  7. May 20 - Router V4 - atomic single-TX dual operations.

83 commits Β· 9 active days Β· 11 contract deployments Β· 7 deprecated contracts