tycho-simulation 0.255.1

Provides tools for interacting with protocol states, calculating spot prices, and quoting token swaps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use alloy::primitives::U256;

pub const U256_10E_10: U256 = U256::from_limbs([10000000000, 0, 0, 0]);
pub const U256_10: U256 = U256::from_limbs([10, 0, 0, 0]);
pub const U256_8: U256 = U256::from_limbs([8, 0, 0, 0]);
pub const U256_4: U256 = U256::from_limbs([4, 0, 0, 0]);
pub const U256_2: U256 = U256::from_limbs([2, 0, 0, 0]);
pub const U256_1: U256 = U256::from_limbs([1, 0, 0, 0]);

pub const BONE: U256 = U256::from_limbs([0xDE0B6B3A7640000, 0, 0, 0]);
pub const MAX_IN_RATIO: U256 = U256::from_limbs([0x06F05B59D3B20000, 0, 0, 0]);
pub const DECIMAL_RADIX: i32 = 10;
pub const PROTOCOL_SYSTEM: &str = "cowamm";