Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
0xripleys committed May 6, 2024
1 parent 35de05b commit 3a404db
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions token-lending/program/tests/wrapper_program.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![cfg(feature = "test-bpf")]

use solana_sdk::signer::keypair::Keypair;
use solend_sdk::state::{ReserveFees, ReserveType};
use crate::solend_program_test::TokenBalanceChange;
use solana_sdk::instruction::InstructionError;
use solana_sdk::signer::keypair::Keypair;
use solana_sdk::transaction::TransactionError;
use solend_sdk::state::{ReserveFees, ReserveType};
use std::collections::HashSet;
use wrapper::processor::max_deposit;
use wrapper::processor::max_repay;
Expand Down Expand Up @@ -445,15 +445,19 @@ async fn test_withdraw_exact() {
solend_program::id(),
reserves[0].account.collateral.supply_pubkey,
// user_collateral_pubkey,
users[0].get_account(&reserves[0].account.collateral.mint_pubkey).unwrap(),
users[0]
.get_account(&reserves[0].account.collateral.mint_pubkey)
.unwrap(),
// reserve_pubkey,
reserves[0].pubkey,
// obligation_pubkey,
obligations[0].pubkey,
// lending_market_pubkey,
lending_market.pubkey,
// user_liquidity_pubkey,
users[0].get_account(&reserves[0].account.liquidity.mint_pubkey).unwrap(),
users[0]
.get_account(&reserves[0].account.liquidity.mint_pubkey)
.unwrap(),
// reserve_collateral_mint_pubkey,
reserves[0].account.collateral.mint_pubkey,
// reserve_liquidity_supply_pubkey,
Expand All @@ -462,7 +466,12 @@ async fn test_withdraw_exact() {
obligations[0].account.owner,
// user_transfer_authority_pubkey,
users[0].keypair.pubkey(),
obligations[0].account.deposits.iter().map(|d| d.deposit_reserve).collect(),
obligations[0]
.account
.deposits
.iter()
.map(|d| d.deposit_reserve)
.collect(),
// liquidity amount
4 * FRACTIONAL_TO_USDC,
));
Expand Down

0 comments on commit 3a404db

Please sign in to comment.