dexter-swap/contracts/libraries/FixedPoint128.rs
2024-06-22 21:57:39 +03:00

9 lines
268 B
Rust

/// SPDX-License-Identifier: GPL-2.0-or-later
/// A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)
pub struct FixedPoint128;
impl FixedPoint128 {
pub const Q128: u128 = 0x100000000000000000000000000000000;
}