{"id":47901823,"url":"https://github.com/fielding/ripguard","last_synced_at":"2026-04-04T04:08:57.332Z","repository":{"id":343102555,"uuid":"1173978030","full_name":"fielding/ripguard","owner":"fielding","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-27T23:35:15.000Z","size":23501,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T02:00:00.756Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ripguard.xyz","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fielding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-06T00:13:51.000Z","updated_at":"2026-03-27T23:35:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fielding/ripguard","commit_stats":null,"previous_names":["fielding/ripguard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fielding/ripguard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fripguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fripguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fripguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fripguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fielding","download_url":"https://codeload.github.com/fielding/ripguard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fripguard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31387127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"online","status_checked_at":"2026-04-04T02:00:07.569Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T04:08:56.802Z","updated_at":"2026-04-04T04:08:57.326Z","avatar_url":"https://github.com/fielding.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RipGuard\n\nSelf-custodial profit locking on Base. Lock USDC into time-locked vaults so you can't panic-sell your gains.\n\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n\u003e **Built on [Sablier v2.0](https://docs.sablier.com) audited contracts. Non-custodial. Immutable locks.**\n=======\n\u003e Unaudited beta. Not an investment product. Use at your own risk.\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e testnet\n\n## What is this\n\nYou hit a 10x. You know you should take profit. You also know you'll \"let it ride\" and give it all back.\n\nRipGuard locks your USDC into [Sablier](https://sablier.com) Lockup streams on Base. Non-cancelable, non-custodial, immutable. Your future self can't touch it until the schedule says so.\n\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\nNo admin keys. No upgradeability. No fund custody. Just Sablier's battle-tested lockup protocol with a UI that makes it easy.\n=======\nNo custom contracts. No custody. No admin keys. Just Sablier's battle-tested lockup protocol with a UI that makes it easy.\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e testnet\n\n## How it works\n\n1. **Deposit** — Pick an amount of USDC and a lock schedule\n2. **Lock** — Approve USDC, then create a Sablier Lockup stream (non-cancelable)\n3. **Claim** — When the schedule unlocks, withdraw directly from Sablier\n\n### Presets\n\n| Preset | What it does |\n|--------|-------------|\n| Panic Lock 7D | Lump-sum cliff — locked for 7 days, then fully available |\n| Lock 30D | Linear vest over 30 days — drip unlocks daily |\n| Cliff 7D + Vest 90D | 7-day cliff, then linear unlock over 90 days |\n\nOr set a custom schedule.\n\n## Fees\n\n0.5% broker fee on each lock, routed to the RipGuard Audit Fund. The fee is passed through Sablier's native broker mechanism — no separate contract.\n\n## Architecture\n\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\nThe `RipGuardRouter` is a stateless, non-upgradeable wrapper around Sablier Lockup. It:\n\n- Pulls USDC from the user\n- Creates a non-cancelable Sablier Lockup Linear stream\n- Routes a 0.5% broker fee to the treasury via Sablier's native mechanism\n- Never holds funds beyond a single transaction\n- Has no admin functions, no owner, no pause\n\n**On-chain contracts (Base Mainnet):**\n\n- **RipGuardRouter**: [`packages/contracts/src/RipGuardRouter.sol`](packages/contracts/src/RipGuardRouter.sol)\n- **Sablier Lockup**: [`0xb5D78DD3276325f5FAF3106Cc4Acc56E28e0Fe3B`](https://basescan.org/address/0xb5D78DD3276325f5FAF3106Cc4Acc56E28e0Fe3B) (Sablier Lockup v2.0)\n- **USDC**: [`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`](https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)\n\nAll streams are created as **non-cancelable, non-transferable** Lockup Linear streams with both sender and recipient set to the depositor.\n\n## Stack\n\n- **Frontend**: Next.js 15, React 19, TailwindCSS 4\n- **Web3**: wagmi, viem, RainbowKit\n- **Contracts**: Solidity 0.8.22, Foundry, OpenZeppelin\n=======\nRipGuard has zero custom smart contracts. The frontend calls Sablier's `SablierLockup` directly:\n\n- **Lockup contract**: [`0xb5D78DD3276325f5FAF3106Cc4Acc56E28e0Fe3B`](https://basescan.org/address/0xb5D78DD3276325f5FAF3106Cc4Acc56E28e0Fe3B) (Sablier Lockup v2.0, Base)\n- **USDC**: [`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`](https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) (Base)\n\nAll streams are created as **non-cancelable** Lockup Linear streams with the sender set to the depositor.\n\n## Stack\n\n- **Frontend**: Next.js, React 19, TailwindCSS 4\n- **Web3**: wagmi, viem, RainbowKit\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e testnet\n- **Protocol**: Sablier Lockup v2.0 on Base\n- **Token**: USDC on Base\n- **Monorepo**: pnpm workspaces (`packages/app`, `packages/contracts`)\n\n## Development\n\n```bash\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n# Install dependencies\npnpm install\n\n# Copy environment config\ncp packages/app/.env.example packages/app/.env.local\n\n# Run the frontend\npnpm --filter app dev\n```\n\nSee [`packages/app/.env.example`](packages/app/.env.example) for required environment variables.\n\n### Contracts\n\n```bash\ncd packages/contracts\n\n# Build\nforge build\n\n# Test\nforge test\n```\n\n## Security\n\nThe `RipGuardRouter` is intentionally minimal — it holds no state, has no admin functions, and cannot be upgraded. All funds flow through [Sablier's audited Lockup protocol](https://docs.sablier.com/contracts/v2/security). RipGuard never custodies funds; the router is stateless and all locks are enforced by Sablier's battle-tested on-chain contracts.\n\nIf you find a vulnerability, please report it responsibly by emailing the team rather than opening a public issue.\n=======\npnpm install\npnpm --filter app dev\n```\n\nRequires a `NEXT_PUBLIC_TREASURY_ADDRESS` env var for the broker fee recipient. Without it, the broker fee is disabled (zero address).\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e testnet\n\n## Links\n\n- [ripguard.xyz](https://ripguard.xyz)\n- [Sablier Lockup docs](https://docs.sablier.com)\n- [Base](https://base.org)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffielding%2Fripguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffielding%2Fripguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffielding%2Fripguard/lists"}