https://github.com/volumefi/palomadex
https://github.com/volumefi/palomadex
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/volumefi/palomadex
- Owner: VolumeFi
- License: apache-2.0
- Created: 2024-10-16T20:45:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T08:36:26.000Z (about 1 year ago)
- Last Synced: 2025-04-01T09:32:11.852Z (about 1 year ago)
- Language: Rust
- Size: 1020 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Palomadex Astroport Core
Multi pool type automated market-maker (AMM) protocol powered by smart contracts on the Palomachain as a fork of Astroport.
## General Contracts
| Name | Description |
|----------------------------------------------------|---------------------------------------------------------------------|
| [`factory`](contracts/factory) | Pool creation factory |
| [`pair`](contracts/pair) | Pair with x*y=k curve |
| [`pair_stable`](contracts/pair_stable) | Pair with stableswap invariant curve |
| [`router`](contracts/router) | Multi-hop trade router |
### You can compile each contract:
Go to contract directory and run
```
cargo wasm
cp ../../target/wasm32-unknown-unknown/release/palomadex_token.wasm .
ls -l palomadex_token.wasm
sha256sum palomadex_token.wasm
```
### You can run tests for all contracts
Run the following from the repository root
```
cargo test
```
### For a production-ready (compressed) build:
Run the following from the repository root
```
./scripts/build_release.sh
```
The optimized contracts are generated in the artifacts/ directory.