{"id":13400864,"url":"https://github.com/astroport-fi/astroport-core","last_synced_at":"2025-05-16T15:08:30.008Z","repository":{"id":37089569,"uuid":"383415572","full_name":"astroport-fi/astroport-core","owner":"astroport-fi","description":"Astroport DEX core contracts","archived":false,"fork":false,"pushed_at":"2025-05-09T21:51:27.000Z","size":13939,"stargazers_count":163,"open_issues_count":4,"forks_count":108,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-11T11:06:31.824Z","etag":null,"topics":["smart-contracts"],"latest_commit_sha":null,"homepage":"https://astroport.fi/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astroport-fi.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,"zenodo":null}},"created_at":"2021-07-06T09:37:35.000Z","updated_at":"2025-05-11T09:14:13.000Z","dependencies_parsed_at":"2024-01-18T11:12:57.173Z","dependency_job_id":"ab4bcd73-f1ff-4f07-a2ac-3781e5ba142f","html_url":"https://github.com/astroport-fi/astroport-core","commit_stats":{"total_commits":957,"total_committers":37,"mean_commits":"25.864864864864863","dds":0.7910135841170324,"last_synced_commit":"54d65dcbe9cf652c024fc0110b531f190efafce6"},"previous_names":["astroport-fi/astroport"],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astroport-fi%2Fastroport-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astroport-fi%2Fastroport-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astroport-fi%2Fastroport-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astroport-fi%2Fastroport-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astroport-fi","download_url":"https://codeload.github.com/astroport-fi/astroport-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253554082,"owners_count":21926612,"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":["smart-contracts"],"created_at":"2024-07-30T19:00:56.452Z","updated_at":"2025-05-16T15:08:27.488Z","avatar_url":"https://github.com/astroport-fi.png","language":"Rust","funding_links":[],"categories":["Smart Contracts","External Projects","Rust"],"sub_categories":["Popular Token Contracts","Other Contracts"],"readme":"# Astroport Core\n\n[![codecov](https://codecov.io/gh/astroport-fi/astroport-core/branch/main/graph/badge.svg?token=ROOLZTGZMM)](https://codecov.io/gh/astroport-fi/astroport-core)\n\nMulti pool type automated market-maker (AMM) protocol powered by smart contracts on the Terra, Injective, Neutron, Sei\nand Osmosis\nblockchains.\n\n## Contracts diagram\n\n![contract diagram](./assets/sc_diagram.png \"Contracts Diagram\")\n\n## General Contracts\n\n| Name                                               | Description                                                         |\n|----------------------------------------------------|---------------------------------------------------------------------|\n| [`factory`](contracts/factory)                     | Pool creation factory                                               |\n| [`pair`](contracts/pair)                           | Pair with x*y=k curve                                               |\n| [`pair`](contracts/pair_astro_converter)           | One way swap pair to convert ASTRO.cw20 to TokenFactory ASTRO       |\n| [`pair_concentrated`](contracts/pair_concentrated) | Passive Concentrated Liquidity pair inspired by Curve v2 whitepaper |\n| [`pair_stable`](contracts/pair_stable)             | Pair with stableswap invariant curve                                |\n| [`pair_transmuter`](contracts/pair_transmuter)     | Constant sum pair with no fee ans slippage for 1:1 assets           |\n| [`pair_xyk_sale_tax`](contracts/pair_xyk_sale_tax) | XYK pair with buy and sell taxes                                    |\n| [`router`](contracts/router)                       | Multi-hop trade router                                              |\n| [`whitelist`](contracts/whitelist)                 | CW1 whitelist contract (Astroport treasury)                         |\n\n## Tokenomics Contracts\n\nTokenomics related smart contracts are hosted on ../contracts/tokenomics.\n\n| Name                                                | Description                                                         |\n|-----------------------------------------------------|---------------------------------------------------------------------|\n| [`incentives`](contracts/tokenomics/generator)      | Rewards distributor for liquidity providers                         |\n| [`maker`](contracts/tokenomics/maker)               | Fee collector and swapper                                           |\n| [`staking`](contracts/tokenomics/staking)           | xASTRO staking contract                                             |\n| [`vesting`](contracts/tokenomics/vesting)           | ASTRO distributor for generator rewards                             |\n| [`xastro_token`](contracts/tokenomics/xastro_token) | xASTRO token contract (extended cw20 with onchain balances history) |\n\n## Building Contracts\n\nYou will need Rust 1.68.0+ with wasm32-unknown-unknown target installed.\n\n### You can compile each contract:\n\nGo to contract directory and run\n\n```\ncargo wasm\ncp ../../target/wasm32-unknown-unknown/release/astroport_token.wasm .\nls -l astroport_token.wasm\nsha256sum astroport_token.wasm\n```\n\n### You can run tests for all contracts\n\nRun the following from the repository root\n\n```\ncargo test\n```\n\n### For a production-ready (compressed) build:\n\nRun the following from the repository root\n\n```\n./scripts/build_release.sh\n```\n\nThe optimized contracts are generated in the artifacts/ directory.\n\n## Deployment\n\nYou can find versions and commits for actual deployed\ncontracts [here](https://github.com/astroport-fi/astroport-changelog).\n\n## Docs\n\nDocs can be generated using `cargo doc --no-deps`\n\n## Bug Bounty\n\nThe contracts in this repo are included in a [bug bounty program](https://www.immunefi.com/bounty/astroport).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastroport-fi%2Fastroport-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastroport-fi%2Fastroport-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastroport-fi%2Fastroport-core/lists"}