Skip to content

Commit

Permalink
Moving accounts out of loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
arhamchordia committed Dec 19, 2024
1 parent b1833b5 commit f03b692
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions smart-contracts/osmosis/contracts/cl-vault/tests/test-tube/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ fn admin_execute_auto_claim_works() {
fixture_dex_router(PERFORMANCE_FEE_DEFAULT);
let wasm = Wasm::new(&app);

for _i in 1..10 {
let accounts = app
.init_accounts(
&[
Coin::new(ACCOUNTS_INIT_BALANCE, DENOM_BASE),
Coin::new(ACCOUNTS_INIT_BALANCE, DENOM_QUOTE),
Coin::new(ACCOUNTS_INIT_BALANCE, "uosmo"),
],
2,
)
.unwrap();
let accounts = app
.init_accounts(
&[
Coin::new(ACCOUNTS_INIT_BALANCE, DENOM_BASE),
Coin::new(ACCOUNTS_INIT_BALANCE, DENOM_QUOTE),
Coin::new(ACCOUNTS_INIT_BALANCE, "uosmo"),
],
10,
)
.unwrap();

for i in 0..10 {
let amount_base = Uint128::new(10000);
let amount_quote = Uint128::new(10000);
let mut deposit_coins = vec![];
Expand All @@ -81,11 +81,11 @@ fn admin_execute_auto_claim_works() {
&ExecuteMsg::AnyDeposit {
amount: amount_base,
asset: DENOM_BASE.to_string(),
recipient: Some(accounts[0].address()),
recipient: Some(accounts[i].address()),
max_slippage: Decimal::bps(MAX_SLIPPAGE_HIGH),
},
&deposit_coins,
&accounts[0],
&accounts[i],
)
.unwrap();
}
Expand Down

0 comments on commit f03b692

Please sign in to comment.