mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-04 14:09:35 +00:00
Add a CreateOraclePriceAccount instruction mirroring CreatePriceObservations: anyone can register the consumer-facing OraclePriceAccount for a pool feed, and the AMM authorizes the pool as the price source via its pool PDA seed through a single chained call to the configured TWAP oracle program.
16 lines
272 B
Rust
16 lines
272 B
Rust
//! The AMM Program implementation.
|
|
|
|
pub use amm_core as core;
|
|
|
|
pub mod add;
|
|
pub mod create_oracle_price_account;
|
|
pub mod create_price_observations;
|
|
pub mod initialize;
|
|
pub mod new_definition;
|
|
pub mod remove;
|
|
pub mod swap;
|
|
pub mod sync;
|
|
pub mod update_config;
|
|
|
|
mod tests;
|