From 2af4791600b8ef59cda8ae2e67aad15a4363d8e2 Mon Sep 17 00:00:00 2001 From: Kerber0x Date: Mon, 5 Feb 2024 17:32:50 +0000 Subject: [PATCH] chore: fix clippy warnings --- .../pool-network/terraswap_pair/src/contract.rs | 5 +++-- .../pool-network/terraswap_pair/src/migrations.rs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/contracts/liquidity_hub/pool-network/terraswap_pair/src/contract.rs b/contracts/liquidity_hub/pool-network/terraswap_pair/src/contract.rs index 5fa2e1f0..cfa2947b 100644 --- a/contracts/liquidity_hub/pool-network/terraswap_pair/src/contract.rs +++ b/contracts/liquidity_hub/pool-network/terraswap_pair/src/contract.rs @@ -1,8 +1,9 @@ #[cfg(not(feature = "library"))] use cosmwasm_std::entry_point; +#[cfg(feature = "osmosis")] +use cosmwasm_std::Addr; use cosmwasm_std::{ - to_json_binary, Addr, Binary, Decimal, Deps, DepsMut, Env, MessageInfo, Reply, Response, - StdError, StdResult, + to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Reply, Response, StdError, StdResult, }; use cw2::{get_contract_version, set_contract_version}; use protobuf::Message; diff --git a/contracts/liquidity_hub/pool-network/terraswap_pair/src/migrations.rs b/contracts/liquidity_hub/pool-network/terraswap_pair/src/migrations.rs index ba1be7bb..1067efca 100644 --- a/contracts/liquidity_hub/pool-network/terraswap_pair/src/migrations.rs +++ b/contracts/liquidity_hub/pool-network/terraswap_pair/src/migrations.rs @@ -12,7 +12,8 @@ use serde::{Deserialize, Serialize}; use white_whale_std::fee::Fee; use white_whale_std::pool_network; use white_whale_std::pool_network::asset::{AssetInfo, AssetInfoRaw, PairType}; -use white_whale_std::pool_network::pair::{Config, FeatureToggle, PoolFee}; + +use white_whale_std::pool_network::pair::{Config, FeatureToggle}; use crate::helpers::instantiate_fees; use crate::state::{ALL_TIME_BURNED_FEES, CONFIG, PAIR_INFO}; @@ -281,7 +282,7 @@ pub fn migrate_to_v135(deps: DepsMut) -> Result<(), StdError> { struct ConfigV133 { pub owner: Addr, pub fee_collector_addr: Addr, - pub pool_fees: PoolFee, + pub pool_fees: pool_network::pair::PoolFee, pub feature_toggle: FeatureToggle, }