{"id":21470580,"url":"https://github.com/manifoldfinance/metrics","last_synced_at":"2026-03-19T20:32:10.088Z","repository":{"id":103410893,"uuid":"429922019","full_name":"manifoldfinance/metrics","owner":"manifoldfinance","description":"Dune Analytics / Google BigQuery SQL Queries for OpenMEV/Sushi Relay","archived":false,"fork":false,"pushed_at":"2022-10-11T17:24:45.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-15T17:03:26.268Z","etag":null,"topics":["dune","dune-analytics","google-big-query","sql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manifoldfinance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-11-19T20:10:42.000Z","updated_at":"2022-11-28T21:09:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"a22776f8-7a4d-40b7-b961-d23446c6ef89","html_url":"https://github.com/manifoldfinance/metrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manifoldfinance/metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fmetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fmetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fmetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fmetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manifoldfinance","download_url":"https://codeload.github.com/manifoldfinance/metrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fmetrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29223258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T06:05:31.539Z","status":"ssl_error","status_checked_at":"2026-02-08T05:58:33.853Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["dune","dune-analytics","google-big-query","sql"],"created_at":"2024-11-23T09:28:24.727Z","updated_at":"2026-02-08T06:32:20.278Z","avatar_url":"https://github.com/manifoldfinance.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# metrics\n\u003e Dune Analytics / Google BigQuery SQL Queries for OpenMEV/Sushi Relay\n\n[https://dune.xyz/manifold/Manifold-Finance](https://dune.xyz/manifold/Manifold-Finance)\n\n## Arb Volume\n\n[https://dune.xyz/embeds/17821/36015/52b2257a-31b2-493e-be35-373313c1a39c](https://dune.xyz/embeds/17821/36015/52b2257a-31b2-493e-be35-373313c1a39c)\n\n\n## Anatomy of a Gas Rebate\n\n\n![](assets/sushi-tx-1.svg)\n\n\n### Assumptions \n\nmaxPriorityFeePerGas= 2.5 Gwei\n\n\u003e See Appendix 1 for how this is calculated\n\n```js\n  maxPriorityFeePerGas = BigNumber.from(\"2500000000\");\n```\n\n- Miner Bribe = maxPriorityFeePerGas * 1.00175\n- Miner Fees: (original transaction gas fee) + **[ Miner Tip (bribe) ]**\n- User Eligible Rebate: (original transaction gas fee / 80% Confidence Gas Level )\n- Sushi Payouts =  **[ Miner Tip (bribe) ]** + **[User Eligible Rebate]**\n\n\n\n\n- Gas Rebate Normalized Total Cost: \n\n- maxPrice    \nHighest priced transaction in the mempool    \n\n- currentBlockNumber    \nBlock number at the time of prediction\n\n- msSinceLastBlock    \nMilliseconds since the last block was mined relative to when data was computed    \n\n- blockNumber    \nBlock this prediction is for    \n\n- baseFeePerGas    \nBase fee per gas for current block in gwei. (Only type2 transactions Post EIP-1559 have this value and it's burned by the network upon transaction success).    \n\n- estimatedTransactionCount    \nNumber of items we estimate will be included in next block based on mempool snapshot    \n\n- confidence    \n0-99 likelihood the next block will contain a transaction with a gas price \u003e= to the listed price.  \n\n## SushiSwap\n\n```json\n{ \n  \"contractCall.methodName\": [ \n            \"swapETHForExactTokens\", \n            \"swapExactETHForTokens\", \n            \"swapExactETHForTokensSupportingFeeOnTransferTokens\",\n            \"swapExactTokensForETH\", \n            \"swapExactTokensForETHSupportingFeeOnTransferTokens\",\n            \"swapExactTokensForTokens\", \n            \"swapExactTokensForTokensSupportingFeeOnTransferTokens\", \n            \"swapTokensForExactETH\",\n            \"swapTokensForExactTokens\"\n  ] \n}\n```\n\n\n## Appendix 1\n[see hackmd]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldfinance%2Fmetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanifoldfinance%2Fmetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldfinance%2Fmetrics/lists"}