Skip to content

Commit

Permalink
chore: remove commented code, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo-sturdy committed Aug 21, 2024
1 parent 5eda333 commit ea5a375
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 26 deletions.
Empty file removed Cargo.
Empty file.
4 changes: 2 additions & 2 deletions cw-dex-astroport/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl AstroportPool {
.into_iter()
.map(astroport_v5_assetinfo_to_assetinfo)
.collect(),
pair_type: astroport_v5_pairtype_to_astroport_v3_pairtype(pair_info.pair_type),
pair_type: astroport_v5_pairtype_to_astroport_v2_pairtype(pair_info.pair_type),
liquidity_manager,
})
}
Expand Down Expand Up @@ -513,7 +513,7 @@ pub fn asset_to_astroport_v5_asset(asset: &Asset) -> astroport_v5::asset::Asset
}
}

pub fn astroport_v5_pairtype_to_astroport_v3_pairtype(
pub fn astroport_v5_pairtype_to_astroport_v2_pairtype(
pair_type: astroport_v5::factory::PairType,
) -> PairType {
match pair_type {
Expand Down
21 changes: 0 additions & 21 deletions cw-dex-astroport/tests/astroport_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ mod tests {
// Provide liquidity with min_out one more than expected_out. Should fail.
let unwrap = Unwrap::Err(error_msg);
let min_out = expected_out + Uint128::new(1);
println!("min_out: {:?}", min_out);
let provide_msg = ExecuteMsg::ProvideLiquidity {
assets: asset_list.clone(),
min_out,
Expand Down Expand Up @@ -188,7 +187,6 @@ mod tests {

// Query LP token balance after
let lp_token_after = query_asset_balance(&runner, &lp_token, &contract_addr);
// bank_balance_query(&runner, contract_addr.clone(), lp_token_denom).unwrap();
assert_eq!(lp_token_after, expected_out);

// Query asset balances in contract, assert that all were used
Expand Down Expand Up @@ -382,16 +380,6 @@ mod tests {
let lp_token_balance =
bank_balance_query(&runner, admin.address().clone(), lp_token_denom.clone()).unwrap();

// println!("admin_lp_token_balance: {:?}", lp_token_balance);
// // Send LP tokens to the test contract
// bank_send(
// &runner,
// admin,
// &contract_addr.clone(),
// coins(lp_token_balance.u128(), lp_token_denom.clone()),
// )
// .unwrap();

// Stake LP tokens
let events = stake_all_lp_tokens(
&runner,
Expand Down Expand Up @@ -658,15 +646,6 @@ mod tests {
.unwrap();
}

// Send LP tokens to the test contract
// bank_send(
// &runner,
// admin,
// &testing_contract_addr.clone(),
// coins(lp_token_balance.u128(), lp_token_denom.clone()),
// )
// .unwrap();

// Stake LP tokens
let _events = stake_all_lp_tokens(
&runner,
Expand Down
3 changes: 0 additions & 3 deletions test-helpers/src/astroport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ pub fn setup_pool_and_test_contract<'a>(
let res = wasm
.execute(&pair_addr, &provide_liq_msg, &native_coins, admin)
.unwrap();
println!("pair_addr: {}", pair_addr);
println!("admin: {}", admin.address());
println!("provide liquidity res: {:?}", res);

// Upload test contract wasm file
let contract = match &runner {
Expand Down

0 comments on commit ea5a375

Please sign in to comment.