From c8b6af42edc8e1a13bb1b1fa79ea5d7217a76e84 Mon Sep 17 00:00:00 2001 From: Erwan Or Date: Tue, 23 Apr 2024 12:34:06 -0400 Subject: [PATCH] auction: add comment to MAX_AUCTION_AMOUNT_RESERVES` --- .../component/auction/src/auction/dutch/actions/schedule.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/core/component/auction/src/auction/dutch/actions/schedule.rs b/crates/core/component/auction/src/auction/dutch/actions/schedule.rs index 89d8d803b0..9742aebb5d 100644 --- a/crates/core/component/auction/src/auction/dutch/actions/schedule.rs +++ b/crates/core/component/auction/src/auction/dutch/actions/schedule.rs @@ -5,6 +5,8 @@ use penumbra_proto::{core::component::auction::v1alpha1 as pb, DomainType}; use penumbra_txhash::{EffectHash, EffectingData}; use serde::{Deserialize, Serialize}; +/// The maximum amount of input/output in a Dutch auction description. +/// 52 bits gives us enough headroom to do infaillible price interpolation. pub const MAX_AUCTION_AMOUNT_RESERVES: u128 = (1 << 52) - 1; #[derive(Debug, Clone, Serialize, Deserialize)]