Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.3 #180

Merged
merged 7 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions token-lending/cli/src/lending_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ impl SolendState {
*pubkey,
reserve.liquidity.pyth_oracle_pubkey,
reserve.liquidity.switchboard_oracle_pubkey,
reserve.config.extra_oracle_pubkey,
)
}));

Expand Down Expand Up @@ -128,6 +129,11 @@ impl SolendState {
self.obligation_pubkey,
withdraw_reserve.lending_market,
self.obligation.owner,
self.obligation
.deposits
.iter()
.map(|d| d.deposit_reserve)
.collect(),
));

instructions
Expand Down
11 changes: 11 additions & 0 deletions token-lending/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,12 @@ fn main() {

let added_borrow_weight_bps = value_of(arg_matches, "added_borrow_weight_bps").unwrap();
let reserve_type = value_of(arg_matches, "reserve_type").unwrap();
let scaled_price_offset_bps = value_of(arg_matches, "scaled_price_offset_bps").unwrap();
let extra_oracle_pubkey = pubkey_of(arg_matches, "extra_oracle_pubkey").unwrap();
let attributed_borrow_limit_open =
value_of(arg_matches, "attributed_borrow_limit_open").unwrap();
let attributed_borrow_limit_close =
value_of(arg_matches, "attributed_borrow_limit_close").unwrap();

let borrow_fee_wad = (borrow_fee * WAD as f64) as u64;
let flash_loan_fee_wad = (flash_loan_fee * WAD as f64) as u64;
Expand Down Expand Up @@ -1194,6 +1200,10 @@ fn main() {
protocol_take_rate,
added_borrow_weight_bps,
reserve_type,
scaled_price_offset_bps,
extra_oracle_pubkey: Some(extra_oracle_pubkey),
attributed_borrow_limit_open,
attributed_borrow_limit_close,
},
source_liquidity_pubkey,
source_liquidity_owner_keypair,
Expand Down Expand Up @@ -1542,6 +1552,7 @@ fn command_liquidate_obligation(
*pubkey,
reserve.liquidity.pyth_oracle_pubkey,
reserve.liquidity.switchboard_oracle_pubkey,
reserve.config.extra_oracle_pubkey,
)
}));

Expand Down
Loading
Loading