Skip to content

Commit

Permalink
Attach proper denom quantities to funding tx.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Jun 28, 2024
1 parent 982c7f5 commit 88cb030
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/utils/setup/astroport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,21 +450,20 @@ impl TestContext {
// Get the instance from the address
let pool = self.get_astroport_pool(denom_a.as_ref(), denom_b.as_ref())?;

let denom_a = denom_a.into();
let denom_b = denom_b.into();

// Provide liquidity
pool.execute(
key,
serde_json::to_string(&pair::ExecuteMsg::ProvideLiquidity {
assets: vec![
Asset {
info: AssetInfo::NativeToken {
denom: denom_a.into(),
},
info: AssetInfo::NativeToken { denom: denom_a },
amount: amt_denom_a.into(),
},
Asset {
info: AssetInfo::NativeToken {
denom: denom_b.into(),
},
info: AssetInfo::NativeToken { denom: denom_b },
amount: amt_denom_b.into(),
},
],
Expand All @@ -474,7 +473,7 @@ impl TestContext {
min_lp_to_receive: None,
})?
.as_str(),
"",
"--amount {amt_denom_a}{denom_a},{amt_denom_b}{denom_b}",
)?;

Ok(())
Expand Down

0 comments on commit 88cb030

Please sign in to comment.