Skip to content

Commit

Permalink
auction: add comment to MAX_AUCTION_AMOUNT_RESERVES`
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Apr 23, 2024
1 parent 5ad6223 commit c8b6af4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit c8b6af4

Please sign in to comment.