Skip to content

Commit c86875c

Browse files
committed
fix cli for updating oracle
1 parent 9b60774 commit c86875c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

token-lending/cli/src/main.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,9 +1643,7 @@ fn command_update_reserve(
16431643
}
16441644

16451645
let mut new_pyth_product_pubkey = solend_program::NULL_PUBKEY;
1646-
if pyth_price_pubkey.is_some()
1647-
&& reserve.liquidity.pyth_oracle_pubkey != pyth_price_pubkey.unwrap()
1648-
{
1646+
if pyth_price_pubkey.is_some() {
16491647
no_change = false;
16501648
println!(
16511649
"Updating pyth oracle pubkey from {} to {}",
@@ -1656,9 +1654,7 @@ fn command_update_reserve(
16561654
new_pyth_product_pubkey = pyth_product_pubkey.unwrap();
16571655
}
16581656

1659-
if switchboard_feed_pubkey.is_some()
1660-
&& reserve.liquidity.switchboard_oracle_pubkey != switchboard_feed_pubkey.unwrap()
1661-
{
1657+
if switchboard_feed_pubkey.is_some() {
16621658
no_change = false;
16631659
println!(
16641660
"Updating switchboard_oracle_pubkey {} to {}",

0 commit comments

Comments
 (0)