Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions contracts/pool/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
5 changes: 0 additions & 5 deletions contracts/pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down