{"id":37475134,"url":"https://github.com/aboutcircles/circles_arbbots","last_synced_at":"2026-01-16T07:20:39.864Z","repository":{"id":276843653,"uuid":"919441675","full_name":"aboutcircles/circles_arbbots","owner":"aboutcircles","description":"Circles arrbot to support equlibration of prices ","archived":false,"fork":false,"pushed_at":"2025-12-12T17:51:50.000Z","size":536,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-14T08:45:17.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/aboutcircles.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}},"created_at":"2025-01-20T11:54:02.000Z","updated_at":"2025-08-13T15:02:22.000Z","dependencies_parsed_at":"2025-02-10T19:26:56.993Z","dependency_job_id":"07e0c63e-1362-403c-9cda-2f094ce5df58","html_url":"https://github.com/aboutcircles/circles_arbbots","commit_stats":null,"previous_names":["aboutcircles/ces_arbbot","aboutcircles/circles_arbbots"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aboutcircles/circles_arbbots","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcircles%2Fcircles_arbbots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcircles%2Fcircles_arbbots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcircles%2Fcircles_arbbots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcircles%2Fcircles_arbbots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboutcircles","download_url":"https://codeload.github.com/aboutcircles/circles_arbbots/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcircles%2Fcircles_arbbots/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-16T07:20:38.462Z","updated_at":"2026-01-16T07:20:39.847Z","avatar_url":"https://github.com/aboutcircles.png","language":"TypeScript","funding_links":[],"categories":["Research, Simulation \u0026 Reputation"],"sub_categories":["Developer Demos"],"readme":"# ArbBot\n\nA specialized arbitrage bot for the Circles ecosystem with two distinct implementations:\n\n## Generic Arbitrage Bot\n\nThe generic implementation uses a graph-based approach to find and execute profitable trading opportunities:\n\n```text\n1. INITIALIZATION\n   ├─ Initialize data interface and graph structure\n   ├─ Connect to required APIs (Balancer, Circles)\n   └─ Set up configuration parameters\n\n2. GRAPH CONSTRUCTION\n   ├─ Load initial nodes from database\n   ├─ Fetch group members and trust relationships\n   ├─ Calculate initial price estimates\n   └─ Build complete graph with liquidity edges\n\n3. DEAL FINDING \u0026 EXECUTION\n   ├─ SELECT EDGE\n   │    ├─ Random exploration (with probability EXPLORATION_RATE)\n   │    └─ Best score selection based on:\n   │         score = (targetPrice - sourcePrice) × edgeLiquidity\n   │\n   ├─ UPDATE VALUES\n   │    ├─ Refresh spot prices for source and target nodes\n   │    └─ Update edge liquidity through trust relationships\n   │\n   ├─ CALCULATE OPTIMAL TRADE\n   │    ├─ Start with minimum extractable amount\n   │    ├─ Double amount iteratively while profitable\n   │    └─ Select best profit/amount combination\n   │\n   └─ EXECUTE TRADE\n        ├─ Verify profit \u003e threshold\n        ├─ Build Balancer swap parameters\n        └─ Execute transaction\n```\n\n## Group-Specific Arbitrage Bot\n\nThe group-focused implementation targets arbitrage between group tokens and member tokens:\n\n```text\n1. INITIALIZATION\n   ├─ Load environment variables and contracts\n   ├─ Initialize Circles SDK and APIs\n   └─ Set up database connections\n\n2. DEAL FINDING \u0026 EXECUTION\n   ├─ FOR EACH GROUP MEMBER:\n   │    ├─ Update token prices via Balancer quotes\n   │    │\n   │    ├─ EVALUATE BOTH DIRECTIONS:\n   │    │    ├─ Group token → Member token\n   │    │    └─ Member token → Group token\n   │    │\n   │    ├─ OPTIMIZE TRADE SIZE:\n   │    │    ├─ Start with MIN_EXTRACTABLE_AMOUNT\n   │    │    ├─ Double amount while:\n   │    │    │    ├─ Price remains favorable\n   │    │    │    ├─ Required tokens are available\n   │    │    │    └─ Profit increases\n   │    │    └─ Select most profitable amount\n   │    │\n   │    └─ CHECK PROFITABILITY:\n   │         outputAmount - inputAmount \u003e EPSILON\n   │\n   ├─ ENSURE LIQUIDITY\n   │    ├─ Check current token balances (ERC20 + ERC1155)\n   │    ├─ Calculate required additional tokens\n   │    ├─ Pull tokens through pathfinder if needed\n   │    └─ Convert tokens (wrap/unwrap)\n   │\n   └─ EXECUTE TRADE\n        ├─ Set token approvals if needed\n        ├─ Build Balancer swap parameters\n        └─ Execute transaction\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcircles%2Fcircles_arbbots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboutcircles%2Fcircles_arbbots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcircles%2Fcircles_arbbots/lists"}