Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amityadav0 committed Aug 19, 2023
1 parent 308ef2b commit 41ddd20
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions contracts/ics101/src/interchainswap_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,6 @@ pub(crate) fn on_received_single_deposit(
// increase lp token mint amount
interchain_pool.add_asset(msg.token.clone()).map_err(|err| StdError::generic_err(format!("Failed to add asset: {}", err)))?;
interchain_pool.add_supply(pool_tokens.clone()).map_err(|err| StdError::generic_err(format!("Failed to add supply: {}", err)))?;
// update pool tokens.
if let Err(err) = interchain_pool.add_asset(msg.token) {
return Err(ContractError::Std(StdError::generic_err(format!(
"Failed to add asset: {}",
err
))));
}

// save pool.
POOLS.save(deps.storage, &msg.pool_id, &interchain_pool)?;
Expand Down

0 comments on commit 41ddd20

Please sign in to comment.