Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Mar 13, 2024
1 parent 54f05d9 commit 8e88409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/vesting-lp/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ fn execute_migrate_liquidity(
.query_wasm_smart(migration_config.xyk_pair.clone(), &PairQueryMsg::Pair {})?;

let user_share = compute_share(&user.info)?;
let xyk_amount_to_withdraw: Vec<Asset> = deps.querier.query_wasm_smart(
let user_share_assets: Vec<Asset> = deps.querier.query_wasm_smart(
migration_config.xyk_pair.clone(),
&Share { amount: user_share },
)?;

// if there is nothing to migrate just update vi and quit.
// if there is only dust, then send it back to user, update vi and quit
if xyk_amount_to_withdraw.iter().any(|a| a.amount.is_zero()) {
if user_share_assets.iter().any(|a| a.amount.is_zero()) {
if !user_share.is_zero() {
resp = resp.add_message(CosmosMsg::Wasm(WasmMsg::Execute {
contract_addr: pair_info.liquidity_token.to_string(),
Expand Down

0 comments on commit 8e88409

Please sign in to comment.