Price feeds in smart contracts
How to use Pyth oracle prices in Aptos Move contracts. Includes working code and a four-part tutorial.
aptos-pyth-pricing/
├── move/
│ ├── staking/ # Oracle and commission contracts
│ ├── pyth/ # Pyth Network integration
│ └── test.sh # Run all tests
└── tutorials/ # Step-by-step guides
# Install Aptos CLI
brew install aptos
# Clone and build
git clone https://github.com/zacharyr0th/aptos-pyth-pricing.git
cd aptos-pyth-pricing
aptos move compile --package-dir move/staking/
# Run tests
cd move && ./test.sh
Price feeds in smart contracts
How to use Pyth oracle prices in Aptos Move contracts. Includes working code and a four-part tutorial.
aptos-pyth-pricing/
├── move/
│ ├── staking/ # Oracle and commission contracts
│ ├── pyth/ # Pyth Network integration
│ └── test.sh # Run all tests
└── tutorials/ # Step-by-step guides
# Install Aptos CLI
brew install aptos
# Clone and build
git clone https://github.com/zacharyr0th/aptos-pyth-pricing.git
cd aptos-pyth-pricing
aptos move compile --package-dir move/staking/
# Run tests
cd move && ./test.sh