From 8186d76a9d171585404257b52c4e7f74ffd187f6 Mon Sep 17 00:00:00 2001 From: Zac Lou <97340247+ZacLou@users.noreply.github.com> Date: Sun, 6 Sep 2026 00:04:55 +0800 Subject: [PATCH] chore(pool): move MIN_INITIAL_DEPOSIT to constants.rs (#592) Moves the constant from pool/src/lib.rs to pool/src/constants.rs where other shared pool constants already live. Re-exported via pub use constants::* so all call sites remain unchanged. Closes #592 --- contracts/pool/src/constants.rs | 5 +++++ contracts/pool/src/lib.rs | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/pool/src/constants.rs b/contracts/pool/src/constants.rs index 63806a84..cec0b53d 100644 --- a/contracts/pool/src/constants.rs +++ b/contracts/pool/src/constants.rs @@ -7,3 +7,8 @@ pub use trusttrove_ttl::EXTEND_TO as TTL_EXTEND_TO; pub use trusttrove_ttl::THRESHOLD as TTL_THRESHOLD; + +/// Minimum initial deposit floor (1 USDC = 10_000_000 stroops). +/// Prevents share-price griefing by requiring the initial deposit in an empty pool +/// to be at least this floor. +pub const MIN_INITIAL_DEPOSIT: u128 = 10_000_000; diff --git a/contracts/pool/src/lib.rs b/contracts/pool/src/lib.rs index 7c1b5408..d37dc828 100644 --- a/contracts/pool/src/lib.rs +++ b/contracts/pool/src/lib.rs @@ -15,11 +15,6 @@ pub use constants::*; pub use errors::*; pub use types::*; -/// Minimum initial deposit floor (1 USDC = 10_000_000 stroops). -/// Prevents share-price griefing by requiring the initial deposit in an empty pool -/// to be at least this floor. -pub const MIN_INITIAL_DEPOSIT: u128 = 10_000_000; - /// Default maximum utilization cap (in basis points) written at /// `initialize()` time. 8500 bps = 85%. This is the single source of truth for /// the default: `totals()`'s fallback reads the same constant, so the two call