Gamified Yield. Sustainable Sponsorship. Pure Alchemy.
Alchemy Guild redefines DeFi by turning boring liquidity provision into an immersive RPG. Instead of just depositing funds, players Mint, Craft, and Stake elemental NFTs. The protocol handles the complex financial engineering (Uniswap V3) in the background, while users enjoy a gasless, gamified experience.
- 🛡️ Account Abstraction (ERC-4337): Users sign intents, and our Paymaster pays the gas. Experience a frictionless "web2-like" journey.
- 💰 Real Yield: All rewards are paid in USDC, generated from real trading fees on Uniswap V3. No inflationary governance tokens.
- ♻️ Sustainable Sponsorship: A closed-loop economy where protocol taxes (10%) verify and recycle USDC back into ETH to fund user gas fees forever.
- 🔥 Deflationary Crafting: Burn 3 lower-tier NFTs to create 1 higher-tier NFT. This permanently reduces supply and increases the yield share for remaining players.
- 🤖 Autonomous Agents:
- Volume Bot: Simulates market activity to generate organic yield.
- Tax Recycler: Converts collected taxes into gas fuel.
- Vault Manager: Auto-rebalances liquidity positions to stay in range.
graph TD
User((User)) -->|Sign Intent| SA[Smart Account]
SA -->|UserOp| Bundler
Bundler -->|Verify & Pay| PM[Alchemy Paymaster]
PM -->|Execute| EN[ElementNFT]
PM -->|Execute| YV[YieldVault]
subgraph "On-Chain Economy"
EN -->|Stake NFT| YV
YV -->|Provide Liquidity| Uni[Uniswap V3 Pool]
Uni -->|Trading Fees| YV
YV -->|90% Yield| User
YV -->|10% Tax| PM
end
subgraph "Automation Layer"
Bot1[Volume Bot] -->|Swap| Uni
Bot1 -->|Trigger Rebalance| YV
Bot2[Tax Recycler] -->|Convert USDC->ETH| PM
end
| Contract | Address (Sepolia) | Description |
|---|---|---|
| ElementNFT | 0xF15e4954... |
ERC-721 Collection. Handles Minting & Tier logic. |
| YieldVault | 0xFff8e4da... |
The "Bank". Holds funds, manages Uniswap Position, distributes yield. |
| Paymaster | 0x353A1d77... |
Verifying Paymaster. Sponsors gas for game actions. |
| Alchemist | 0x8f392cee... |
Crafting Logic. Burns 3 -> Mints 1. |
Purchase Tier 1 (Lead) Elements for 0.002 ETH.
- Logic: The user's ETH is immediately wrapped to WETH and deposited into the Yield Vault to boost the liquidity pool.
Combine elements to increase their rarity and staking weight.
- Recipe: 3x Tier
NElements = 1x TierN+1Element. - Cost:
0.002 ETH(Protocol Fee -> Liquidity).
| Tier | Name | Weight | Multiplier |
|---|---|---|---|
| 1 | Lead | 10 | 1x |
| 2 | Silver | 30 | 3x |
| 3 | Gold | 100 | 10x |
Lock your NFTs in the Vault. The Vault calculates your share of the pool's trading fees based on your total Staking Weight versus the Global Weight.
- Node.js 18+
- Sepolia ETH (for manual bot funding)
- A browser with MetaMask (optional, for signing)
# Clone the repository
git clone https://github.com/tmalone1250/alchemy-guild.git
cd alchemy-guild
# Install dependencies
npm install
# Setup Environment
cp .env.example .env
# Fill in VITE_PIMLICO_API_KEY, VITE_INFURA_RPC_URL, PRIVATE_KEYnpm run devWe include a suite of scripts to verify the on-chain state:
# Check Bot Status
npx tsx volume-bot.ts
# Run Tax Recycler
npx tsx recycle-paymaster-tax.ts
# Verify NFT Valuation
npx node scripts/diagnostics/check-nft-value.cjs- Framework: React + Vite (TypeScript)
- Styling: TailwindCSS + Shadcn/UI
- Web3: Wagmi v2 + Viem + TanStack Query
- Auth: Reown AppKit
- SDK: Permissionless.js
- Provider: Pimlico (Bundler & Paymaster)
- Standard: ERC-4337
- Language: Solidity 0.8.26
- Framework: Foundry (Forge)
- Libraries: OpenZeppelin, Uniswap V3 Core/Periphery
This project is licensed under the MIT License - see the LICENSE file for details.




