Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ajansari95 committed Jul 25, 2024
1 parent d518490 commit 654a17d
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions smart-contracts/osmosis/contracts/cl-vault/src/vault/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ pub fn execute_deposit(
let (deposit, refund): ((Uint128, Uint128), (Uint128, Uint128)) =
get_depositable_tokens(deps.branch(), token0.clone(), token1.clone())?;

// NOTE: both the deposit arms here have some repeated math logic,
// in case of any math change please consider both arms
match deposit_type {
DepositType::Exact => {
handle_exact_deposit(deps, env, recipient, pool_config, deposit, refund)
Expand Down Expand Up @@ -578,20 +580,6 @@ mod tests {
)
.unwrap();

// STRATEGIST_REWARDS
// .save(deps.as_mut().storage, &CoinList::new())
// .unwrap();
// POOL_CONFIG
// .save(
// deps.as_mut().storage,
// &PoolConfig {
// pool_id: 1,
// token0: "token0".to_string(),
// token1: "token1".to_string(),
// },
// )
// .unwrap();

execute_deposit(
deps.as_mut(),
env,
Expand Down

0 comments on commit 654a17d

Please sign in to comment.