{"id":20433917,"url":"https://github.com/flashbots/dealer-smart-contract","last_synced_at":"2025-09-24T12:31:37.448Z","repository":{"id":190275814,"uuid":"666541926","full_name":"flashbots/dealer-smart-contract","owner":"flashbots","description":"Integral DEX smart contract","archived":false,"fork":false,"pushed_at":"2023-08-25T20:37:42.000Z","size":262,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T15:15:13.786Z","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/flashbots.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}},"created_at":"2023-07-14T19:43:02.000Z","updated_at":"2024-05-31T15:41:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"abad8510-d975-4916-b551-8fda5c90b447","html_url":"https://github.com/flashbots/dealer-smart-contract","commit_stats":null,"previous_names":["flashbots/dealer-smart-contract"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashbots%2Fdealer-smart-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashbots%2Fdealer-smart-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashbots%2Fdealer-smart-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashbots%2Fdealer-smart-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flashbots","download_url":"https://codeload.github.com/flashbots/dealer-smart-contract/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234081589,"owners_count":18776653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-15T08:22:37.061Z","updated_at":"2025-09-24T12:31:37.084Z","avatar_url":"https://github.com/flashbots.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dealer smart contract\n\nThis repository contains a smart contract called \"Dealer\" with some test cases.\nRead description and purposes [here](https://collective.flashbots.net/t/new-trends-in-decentralized-exchange-applications-exploring-the-design-space/2268).\n\n## Install and run instructions\n\nClone this repository\n```\ngit clone https://github.com/flashbots/dealer-smart-contract\n```\n\nInstall dependencies. From /dealer-smart-contract run\n```\nnpm install\n```\n\nPatch Uniswap v2.\n\nNote: when running the tests, Uniswap may throw an error that can be fixed with this patch. The patched code seems to hurt the intention of the original code but it is good enough for testing the Dealer contract. The original code can be read as commented code at the function pairFor in the patched file.\n\nReplace the file\n```\nnode_modules/@uniswap/v2-periphery/contracts/libraries/UniswapV2Library.sol\n```\nby the file\n```\ncontracts/patched/UniswapV2Library.solx\n```\nThe extension .solx prevents compilation. The replacement has to be renamed to .sol.\n\nTo run tests:\n```shell\nnpx hardhat test\n```\nor\n```shell\nREPORT_GAS=true npx hardhat test\n```\nto display gas costs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashbots%2Fdealer-smart-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflashbots%2Fdealer-smart-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashbots%2Fdealer-smart-contract/lists"}