mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-05-19 07:29:32 +00:00
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.
12 lines
442 B
TOML
12 lines
442 B
TOML
[package]
|
|
name = "amm_core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", rev = "ffcbc15972adbf557939bf3e2852af276422631b", features = ["host"] }
|
|
token_core = { path = "../../token/core" }
|
|
borsh = { version = "1.5", features = ["derive"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
risc0-zkvm = { version = "=3.0.5", default-features = false }
|