Logo
Explore Help
Sign In
logos-blockchain/lez-programs
1
0
Fork 0
You've already forked lez-programs
mirror of https://github.com/logos-blockchain/lez-programs.git synced 2026-05-19 15:39:28 +00:00
Code Issues Packages Projects Releases Wiki Activity
lez-programs/amm/src/lib.rs

12 lines
157 B
Rust
Raw Normal View History

chore: initial repository setup for programs
2026-03-17 18:08:53 +01:00
//! The AMM Program implementation.
pub use amm_core as core;
pub mod add;
pub mod new_definition;
pub mod remove;
pub mod swap;
feat(amm): add SyncReserves instruction Adds a new `SyncReserves` instruction that updates a pool's recorded reserves to match the actual vault balances. This allows the pool to absorb donations (direct token transfers to vaults) without breaking the invariant — only upward adjustments are permitted; vaults may not be under-collateralized relative to reserves. Vault reading helpers (`read_fungible_holding`, `read_vault_fungible_balances`) are implemented in `amm_core` so they can be shared across instructions without crossing crate boundaries.
2026-04-08 10:57:47 -03:00
pub mod sync;
chore: initial repository setup for programs
2026-03-17 18:08:53 +01:00
mod tests;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 27ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API