pub mod accumulator; pub mod asset; pub mod borrow; pub mod chunked_append_only_list; pub mod event; pub mod fee; pub mod interest_rate_strategy; pub mod market; pub mod number; pub mod oracle; pub mod price; pub mod snapshot; pub mod static_yield; pub mod supply; pub mod time_chunk; pub mod withdrawal_queue; pub static MS_IN_A_YEAR: std::sync::LazyLock = std::sync::LazyLock::new(|| number::Decimal::from(31_556_952_000_u128)); // 1000 * 60 * 60 * 24 * 365.2425 pub mod contract { pub fn list>( i: impl IntoIterator, offset: Option, count: Option, ) -> U { let offset = offset.map_or(0, |o| o as usize); let count = count.map_or(usize::MAX, |c| c as usize); i.into_iter().skip(offset).take(count).collect() } #[macro_export] macro_rules! self_ext { ($gas:expr) => { Self::ext(::near_sdk::env::current_account_id()).with_static_gas($gas) }; } }