Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magiodev committed Aug 21, 2024
1 parent cdeff2c commit 15e5615
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions smart-contracts/osmosis/contracts/cl-vault/src/vault/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ pub fn handle_withdraw_position_reply(deps: DepsMut, env: Env) -> Result<Respons
quote_liquidity,
) {
let twap_price = get_twap_price(
deps.storage,
&deps.querier,
&env,
env.block.time,
modify_range_state.twap_window_seconds,
pool_config.pool_id,
pool_config.token0,
pool_config.token1,
)?;
let (token_in, out_denom, price) = if sqrt_p <= sqrt_pl {
(
Expand Down

0 comments on commit 15e5615

Please sign in to comment.