Skip to content
polydash-labsPublic

Latest commit

 

History

106 Commits

Folders and files

Repository files navigation

Polydash logo

Polydash

Polydash builds Polypad, a token launchpad on Robinhood Chain (chain ID 4663), with staking pools, creator contracts, and read-only AI agents.

CI HEY Research MIT Solidity Foundry

Polypad · Docs · Website · X @Polydash_ · Telegram · Contracts · Brand kit

Polydash banner

Polypad (polypad.family) is the launchpad. The company site is dasheco.xyz. This repository is the source for the staking contracts, the Polypad creator contracts, the launchpad package, and the Poly Agent and PolyCTO code.

Projects that launch on Polypad go through @Bevor_io pre-launch checks and have a doxxed lead. The on-chain createLaunch call itself is permissionless. See docs/AGENTS_LAUNCH.md.

The contracts in this repository are unaudited. An outside review is planned. Verification on Sourcify and the automated scans in CI are not a review.

Architecture

flowchart TB
  subgraph launchpad [Polypad launchpad]
    Factory[PolydashFactory]
    Launch[PolydashLaunch clones]
    Commit[Commit vault]
    Hook[PolydashHook]
    Factory -->|createLaunch| Launch
    Commit -->|commitment window| Launch
    Launch -->|graduation| Hook
    Hook --> V4[Uniswap V4 PoolManager]
  end

  subgraph staking [Staking]
    SF[StakingFactory V2]
    Pools[Staking pools]
    SF -->|createPool| Pools
  end

  subgraph creators [Creator contracts]
    NftStake[NFT staking]
    Vest[Creator vesting]
    Bond[Creator bonds]
    Gate[Gated mints]
    Treas[Treasury rules]
    Floor[Floor vault]
    Fund[Tokenized funds]
  end

  subgraph buybacks [POLYDASH buybacks]
    Buyback[Buyback vault]
    Rewards[Rewards pool]
    Buyback -->|staker share| Rewards
    Buyback -->|burn share| Dead[Burn address]
  end

  Launch --> creators
  Factory -.->|fee share| Buyback
  Vest -.->|optional stake| Pools
  Agents[Poly Agent and PolyCTO] -. read only .-> launchpad
  Agents -. read only .-> staking
Loading

Staking v1 behaviour, roles, and fees are written up in docs/ARCHITECTURE.md. Creator-module design is in docs/CREATOR_CONTRACTS.md. Launchpad design is in polypad/contracts/docs/ARCHITECTURE.md.

Features and modules

Area What it does Where
Polypad launchpad Commitment window, bonding curve, graduation into a Uniswap V4 pool. Current creator fee cap is 5%. An earlier factory used a 2% cap; its launches stay listed. polypad/
Staking V2 Permissionless reward pools. Creator-chosen claim fee of 1–5%, of which 30% goes to the platform. Reward math uses 1e36 scaling with a carried remainder. src/v2/
Staking V1 Legacy factory. Do not use it for new pools. src/PolydashStakingFactory.sol
NFT staking Stake ERC-721s for an ERC-20 reward over a fixed window, with optional loyalty and set boosts. src/nftstaking/
Creator vesting Ownerless cliff and linear vesting. A vault can stake locked tokens in a V2 pool. src/vesting/
Creator bonds ETH bond that a launch creator posts against a floor token balance. src/bond/
Gated mints NFT collections with an optional token-holder phase. src/gatedmint/
Treasury rules Per-token treasury. Operator tasks run only inside published rules and a timelock. src/treasury/
Floor vault Fixed-price NFT collections whose mint share funds an ETH and launch-token vault. src/floorvault/
Tokenized funds Phase 1a raise, Phase 2 invest and swap through an allowlist, and Phase 3 strategy templates with a high-water-mark fee, a manager stake lock, and a drawdown brake. Live at polypad.family/funds. Addresses in docs/DEPLOYMENTS.md. src/fund/
Buybacks Capped POLYDASH buys from a fee share: 62.5% burned, 37.5% to stakers. src/buyback/
Poly Agent Read-only staking monitor: pool sizes, reward rates, inflows and outflows. agents/poly-agent/
PolyCTO Read-only multi-role agent for a launch: community, marketing drafts, token stats, and a heuristic source scan. The scan is not a review. agents/polycto/
Agent launch API Validates createLaunch parameters, simulates the call with eth_call, and returns an unsigned transaction. Non-custodial. polypad/web/app/api/agents/v1 · docs/AGENTS_API.md
Polypad MCP Tools an external agent can call to validate or prepare a launch. agents/polypad-mcp

Reward rates reported by Poly Agent are token-denominated snapshots. They are not a promised return.

V1 warning. The v1 reward accumulator uses 1e18 precision. With a 6-decimal reward token and a large 18-decimal stake supply, an update can round to zero and those rewards are lost. New pools should use StakingFactory V2. See src/v2/README.md.

Deployed .sol sources under src/ and polypad/contracts/src/ match the verified deployments and are not edited in place. forge fmt ignores src/**/*.sol so formatting cannot change the metadata hash.

Repository layout

├── src/                  # Staking, creator contracts, floor vault, buybacks
├── test/                 # Foundry unit, fuzz, invariant, and fork tests
├── script/               # Deploy script, V2 bytecode check, secret scan
├── polypad/              # Launchpad sources, ABIs, deployments, web app
├── agents/poly-agent/    # Poly Agent
├── agents/polycto/       # PolyCTO
├── agents/polypad-mcp/   # MCP tools for the agent launch API
├── deployments/          # Robinhood Chain address manifest
├── docs/                 # Public docs index, launch flow, agent API, risk
├── assets/               # Logo and banner
├── tokenlist/            # Uniswap-schema POLYDASH token list
├── lib/                  # openzeppelin-contracts v5.0.2, forge-std, v4-core (submodules)
└── .github/              # CI, Dependabot, issue and PR templates

A map of the docs is in docs/README.md.

Quickstart

Requirements: Foundry (forge 1.x) and Git.

git clone --recursive https://github.com/polydash-labs/Polydash.git
cd Polydash
git submodule update --init --recursive
forge build
forge test

Agents (Python 3.10+), from the repo root:

python -m venv .venv && . .venv/bin/activate
pip install -r agents/poly-agent/requirements.txt -r agents/polycto/requirements.txt
pip install ruff pytest
ruff check agents script
pytest

Each agent has its own .env.example. Copy it to .env inside that directory and fill it in locally. Do not commit .env.

Build and test

forge fmt --check          # src/**/*.sol is ignored on purpose
forge build --sizes
forge test -vvv
forge coverage --ir-minimum --no-match-coverage "test|script"

CI uses FOUNDRY_PROFILE=ci (5,000 fuzz runs). The default profile uses 1,000.

Fork tests read Robinhood Chain state and do not broadcast:

FORK_RPC=https://rpc.mainnet.chain.robinhood.com FOUNDRY_PROFILE=fork forge test --match-path "test/fork/*"

They skip themselves when FORK_RPC is unset. The CI fork job is allowed to fail when the public RPC is unavailable.

Compiler settings are per module in foundry.toml:

Modules solc EVM
Staking v1, staking V2, NFT staking, vesting, bonds, gated mints, treasury, tokenized funds 0.8.24 (pragma) paris
Floor vault, buybacks, Polypad launchpad 0.8.26 (pragma) cancun

Optimizer 200 runs, via_ir = true. Floor vault and buybacks link Uniswap v4-core v4.0.0.

Launchpad package, from polypad/contracts:

./install-deps.sh
forge build
forge test

The web app: cd polypad/web && cp .env.example .env.local && yarn install && yarn dev.

Web unit tests, from polypad/web: corepack enable && corepack prepare yarn@4.9.2 --activate && yarn install --immutable && yarn test.

Deploy

script/Deploy.s.sol deploys a staking factory. Copy .env.example to .env, fill it in locally, and prefer a hardware wallet or encrypted keystore (--account) over a raw key.

forge script script/Deploy.s.sol --rpc-url robinhood --broadcast

script/DeployFundFactory.s.sol deployed FundFactory for the Phase 1a tokenized-fund raise. It requires PRIVATE_KEY and FEE_RECIPIENT on the machine that signs. createFund deploys each FundVault and FundNFT. The live Phase 1a factory is 0x6c0094BA60DaA0467Daf81f4D576d74DD3a08878. Commands and Sourcify status are in src/fund/README.md. Phase 2 and Phase 3 addresses, creation transactions, and Blockscout links are in docs/DEPLOYMENTS.md. script/DeployFundFactoryInvest.s.sol reverts unless CONFIRM_FUND_PHASE2_DEPLOY=yes. Not audited. Not financial advice.

The Polypad launchpad deploy script in polypad/contracts/script/Deploy.s.sol refuses chain ID 4663 unless MAINNET and I_HAVE_WRITTEN_APPROVAL_AND_AUDIT are both set. That guard is a script check. It is not a statement that a review has been completed. The live addresses below were already deployed; their sources are in this repository where noted.

Deployed contracts

Robinhood Chain, chain ID 4663. The machine-readable list, with the file each address was taken from, is deployments/robinhood-chain.json. How to read it: docs/DEPLOYMENTS.md. The public page is polypad.family/contracts.

Explorer links use robinhoodchain.blockscout.com. "Match" means Sourcify matched creation and runtime bytecode.

Contract Address Source
POLYDASH token 0x319525528f42167eF7fC18b77b889958080568e4 Clanker deployment. Not in this repository.
PolydashFactory (current) 0xfDfD0A095966c8B56639f7eAa13f4B0188Fc08c2 Sourcify · polypad/
PolydashLaunch (current implementation) 0x2e0026da8f2E151f63A4313aCD1a579172D9D2Ad Sourcify · polypad/
PolydashHook (current) 0x4d3066bBfF889023def912D2fDe36c44357fA0cC Sourcify · polypad/
PolydashCommitVault (current) 0xF013bF17D511E2f65D0dA4Bd320948646F567Ae4 Sourcify
PolydashFactory (earlier) 0x2C84cFCD8d283EF750E09Fbed735d67F67845dB2 Sourcify · polypad/
PolydashLaunch (earlier implementation) 0xef7684268f13bc06cb02755642ceabef422b8b70 Sourcify · polypad/
PolydashHook (earlier) 0x04990E6671C98e1B43034E52366Af11396d960CC Sourcify · polypad/
PolydashCommitVault (earlier) 0x8f125c9ec7acd52b9cd39f2a7441085559d84104 Sourcify · polypad/deployments.json
PolypadNFTFactory 0x297c232F2EBCbB4e3Cd0b97167a971fF795EDdDd Sourcify. Source not in this repo.
PolypadCurveFactory 0x8bdb1d8Db9aeC18bB464F719d5Bd97cFf8F1Ee94 Sourcify. Source not in this repo.
PolypadNFTMarket 0x4Ff1d0E3Aa767C05b2D9983e14dDbC243CB0120A Sourcify. Source not in this repo.
PolypadTokenLink 0xCD96D8e10a82b41A08342c03a176c20336bD0b38 Sourcify. Listed previously as NFT token rewards. Source not in this repo.
StakingFactory V2 0x904b8F5d95B593b5F4a6Dbb116b58e1d5CBe93f0 Exact match. Blockscout · Sourcify · src/v2/
StakingFactory V1 (legacy) 0x0aAEa47d2e7303EC5a809062eafa59e7F011D857 src/. Not yet verified on the explorer.
NftStakingFactory 0x827b9BB6a176D13Ea7E05b8e5891c8040cb822B1 Sourcify exact match · src/nftstaking/
CreatorVestingFactory 0xbbF618395E6C7ac0E9AC6dBEC26BA8cd160d7022 Sourcify exact match · src/vesting/
CreatorBondFactory 0x876170251e30F99E27119AF0e90648A88D508f97 Sourcify exact match · src/bond/
TreasuryRulesFactory 0x2A06dafEd9A5CaBC7693683E24025f96D7AF656f Sourcify exact match · src/treasury/
TreasuryRules implementation 0x77Ef2141D3d79e2D2b9a094D2C6d2aab826D4ccb Sourcify exact match
PolypadGatedNFTFactory 0x64727D49FB9F8E669C0759B9b8e8f1bd6c99325d Sourcify exact match · src/gatedmint/
PolypadTokenFloorFactory 0xdD149A1a76363BaAaFEF97c3E8d8cfdD2E7A277c Sourcify match · src/floorvault/
PolypadTokenFloorCollection implementation 0xFa23E496f7244d1674fA8bE5C42556bd054140EA Sourcify match
PolydashBuybackVault 0x35Ad6AC64fb53ED7154b6e6E0Ef84C6E12d7B193 Sourcify match · src/buyback/
PolydashRewardsPool 0x608d106Bb58A804fcd45823e0C6087801dee2aCa Sourcify match · src/buyback/
FundFactory 0x6c0094BA60DaA0467Daf81f4D576d74DD3a08878 Sourcify exact match · src/fund/

V2 pools are deployed with new from the verified pool source. Two example pools are in src/v2/README.md: 0xB2BBc1752FAa5BCfC67571819af30CE2AaF58518 and 0x0F50043E172B8652bb786C4F14f30c415E5760AB. They are not the full set.

FundVault and FundNFT are created per fund by createFund on FundFactory. Phase 1a is a raise that mints ERC-721 units. Phase 2 and Phase 3 are deployed on Robinhood Chain and listed in docs/DEPLOYMENTS.md: FundSwapFacet 0xA2620b14d1A39d4afbEAA4b87a7E7871050b50a0, UniswapV3RouterAdapter 0xA5187f8e56Dd0784624D833CEE3bF6f2Aa5E7581, FundAllowlist 0x7A42Dc64f77711EA20d163eFB1B9FaCCC2cA2c19, FundFactoryInvest 0xd3c6ae470c25989cC8d2876c1855fB570B98894E, StrategyTemplate 0xb2a958a9779E02764dE006C8aeEbc36174E2E3Ba, FundSwapFacetPhase3 0x40Ef3ae910A46aDDC14f45F0983060161884f045, and FundFactoryPhase3 0xb9BA453677A6b2C49290CfD4D0713502Ec6bF82B. Sourcify exact match. The site is polypad.family/funds. Not audited. Not financial advice.

Security

  • The contracts are unaudited. An outside review is planned. Security-scanned with Bevor. Not a formal audit. Scans are not audits. Not financial advice.
  • Source is public here and on Sourcify where the table says so.
  • CI runs Foundry tests and an advisory Slither job. Slither findings are not a review, and a green run does not remove risk.
  • Staking has a small self-hosted bug bounty. Scope, amounts, and rules are in SECURITY.md.

Report vulnerabilities to jon@dasheco.xyz with the subject "Security report", or open a private GitHub security advisory. Do not file public issues for vulnerabilities. Test only on a local fork.

Areas an outside review of staking would focus on are listed in docs/AUDIT_SCOPE.md.

Roadmap

Shipped in this repository: the Polypad launchpad on Robinhood Chain, staking pools, creator contracts, the floor vault, POLYDASH buybacks, Poly Agent, and PolyCTO.

Agent launch rails are in the repository. docs/AGENTS_API.md is the HTTP API that validates parameters, simulates createLaunch with eth_call, and returns an unsigned transaction. agents/polypad-mcp exposes those steps as MCP tools. docs/AGENTS_LAUNCH.md is the same factory call built in the operator's own wallet. Polypad does not take custody of keys. Poly Agent and PolyCTO do not sign transactions. The public docs index is docs/README.md, and the website serves it at /docs.

Brand

Logos, colors, and naming: polypad.family/brand. Use "Polydash" for the company, "Polypad" for the launchpad, and "POLYDASH" for the token ticker. The Uniswap-schema token list is tokenlist/polydash.tokenlist.json; raw URL after merge: https://raw.githubusercontent.com/polydash-labs/Polydash/main/tokenlist/polydash.tokenlist.json.

Contributing

See CONTRIBUTING.md and the Code of Conduct.

Disclaimer

Using these contracts can result in loss of funds. See the risk disclosure. This repository is not financial advice. The contracts are unaudited.

License

MIT © 2026 Polydash

Releases

Packages

Contributors

Languages