{"id":23646338,"url":"https://github.com/code-architect/erc20-decentralized-exchange","last_synced_at":"2026-04-27T20:31:10.745Z","repository":{"id":227335460,"uuid":"770591886","full_name":"code-architect/ERC20-Decentralized-Exchange","owner":"code-architect","description":"ERC20 and Decentralized Exchanges (DEXs)","archived":false,"fork":false,"pushed_at":"2024-03-14T22:10:00.000Z","size":415,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T19:53:43.919Z","etag":null,"topics":["blockchain","decentralized-exchange","dex","erc","ethereum","javascript","smart-contract","smart-contracts","solid"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/code-architect.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":"2024-03-11T20:15:10.000Z","updated_at":"2024-03-12T19:10:46.000Z","dependencies_parsed_at":"2024-03-12T19:59:37.599Z","dependency_job_id":"b2b6eb5d-0198-4383-affe-5e984bed5cd2","html_url":"https://github.com/code-architect/ERC20-Decentralized-Exchange","commit_stats":null,"previous_names":["code-architect/erc20-decentralized-exchange"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/code-architect/ERC20-Decentralized-Exchange","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FERC20-Decentralized-Exchange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FERC20-Decentralized-Exchange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FERC20-Decentralized-Exchange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FERC20-Decentralized-Exchange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-architect","download_url":"https://codeload.github.com/code-architect/ERC20-Decentralized-Exchange/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-architect%2FERC20-Decentralized-Exchange/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["blockchain","decentralized-exchange","dex","erc","ethereum","javascript","smart-contract","smart-contracts","solid"],"created_at":"2024-12-28T13:32:45.584Z","updated_at":"2026-04-27T20:31:10.719Z","avatar_url":"https://github.com/code-architect.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Hardhat Project\n\nThis project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.\n\nTry running some of the following tasks:\n\n```shell\nnpm init\nnpm install --save-dev hardhat\nnpx hardhat\nnpm i @openzeppelin/contracts\nnpx hardhat help\nnpx hardhat test\nREPORT_GAS=true npx hardhat test\nnpx hardhat node\nnpx hardhat run scripts/deploy.js\n```\n\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n## Explanation of the Contract\n- `sell()` : This is to check and see if owner of the contract has given an allowance to this contract from the token contract.\n- `withdrawTokens()` : The owner of the tokens can any point of time can withdraw.\n- `withdrawFunds()` : The owner of the contractan collect any funds thios contract has collected.\n- `getprice()` : Get the price of the tokens.\n- `buy(uint numTokens)` : The number of tokens tghe user want to buy\n- `getToenBalance()` :  can be an Internal function to check balance.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-architect%2Ferc20-decentralized-exchange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-architect%2Ferc20-decentralized-exchange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-architect%2Ferc20-decentralized-exchange/lists"}