Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,952 changes: 1,424 additions & 528 deletions Cargo.lock

Large diffs are not rendered by default.

46 changes: 34 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,45 @@ edition = "2021"
crate-type = ["cdylib", "rlib"]

[dependencies]
cosmwasm-std = { version = "1.5.7", features = [] }
serde = { version = "1.0.202", default-features = false, features = ["derive"] }
cw-storage-plus = "1.2.0"
thiserror = "1"
cosmwasm-std = { version = "2.1.0", features = [
"stargate",
"staking",
"cosmwasm_1_1",
"cosmwasm_1_2",
"cosmwasm_1_3",
"cosmwasm_1_4",
"cosmwasm_2_0",
"cosmwasm_2_1",
] }
serde = { version = "1.0.189", default-features = false }
cw-storage-plus = "2.0.0"
thiserror = "2.0.11"

# We make dev dependencies optional to also allow them during fuzzing #
# cw-multi-test = { version = "1.2.0", optional = true } #
neutron-test-tube = { version = "5.1.3", optional = true }

# schemars = "0.8.20"
cosmwasm-schema = "1.5.7"
osmosis-std = "0.25.0"
cw-utils = "1.0.3"
cosmwasm-schema = { version = "2.0.4", default-features = false }
cw-utils = "2.0.0"

cw20-base = { version = "2.0.0", features = ["library"] }
cw20 = "2.0.0"

cw20-base = { version = "1.1.2", features = ["library"] }
cw20 = "1.1.2"

readonly = "0.2.12"
anyhow = "1.0.89"
once_cell = "1.19.0"
syn = "2.0.11"

neutron-std = { git = "https://github.com/neutron-org/neutron-std", branch = "feat/withdraw_with_shares", version = "8.0.0" }
ed25519-zebra = { version = "=4.0.3", default-features = false }
once_cell = "1.21.3"

[profile.release]
overflow-checks = true

[features]
fuzzing = ["neutron-test-tube"]

[dev-dependencies]
cw-multi-test = "1.2.0"
osmosis-test-tube = "25.0.0"
neutron-test-tube = "5.1.3"
1 change: 0 additions & 1 deletion src/bin/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ fn main() {
query: QueryMsg
}
}

14 changes: 6 additions & 8 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ use std::str::FromStr;
use cosmwasm_std::{Addr, Decimal, Uint128};
use once_cell::sync::Lazy;

pub const MIN_TICK: i32 = -108_000_000;
pub const MAX_TICK: i32 = 342_000_000;
pub const MIN_TICK: i32 = -529_715;
pub const MAX_TICK: i32 = 529_715;
pub const MIN_LIQUIDITY: Uint128 = Uint128::new(1000);
pub const TWAP_SECONDS: u64 = 60;
pub static PROTOCOL: Lazy<Addr> = Lazy::new(|| Addr::unchecked("osmo1a8gd76fw6umx652v7cs73vnge2zju8s8hcm86t"));
pub static PROTOCOL: Lazy<Addr> =
Lazy::new(|| Addr::unchecked("osmo1a8gd76fw6umx652v7cs73vnge2zju8s8hcm86t"));
pub static MAX_PROTOCOL_FEE: Lazy<Decimal> = Lazy::new(|| Decimal::from_str("0.1").unwrap());

// NOTE: USDC denom for mainnet.
// pub const VAULT_CREATION_COST_DENOM: &str = "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4";
// NOTE: USDC denom for testnet.
pub const VAULT_CREATION_COST_DENOM: &str = "ibc/DE6792CF9E521F6AD6E9A4BDF6225C9571A3B74ACC0A529F92BC5122A39D2E58";
// NOTE: 20 USDC max vault creation cost. Its only proper as USDC has 6 decimals.
pub const VAULT_CREATION_COST_DENOM: &str = "untrn";
// NOTE: 20 untrn max vault creation cost. Its only proper as USDC has 6 decimals.
pub static MAX_VAULT_CREATION_COST: Uint128 = Uint128::new(20_000_000);
Loading