Skip to content

Commit c602b70

Browse files
authored
fix cli for updating oracle (solendprotocol#114)
1 parent 9b60774 commit c602b70

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

ci/install-build-deps.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ set -ex
55
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
66
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
77
sudo apt-get update
8-
sudo apt-get install -y clang-7 --allow-unauthenticated
98
sudo apt-get install -y openssl --allow-unauthenticated
109
sudo apt-get install -y libssl-dev --allow-unauthenticated
1110
sudo apt-get install -y libssl1.1 --allow-unauthenticated
1211
sudo apt-get install -y libudev-dev
1312
sudo apt-get install -y binutils-dev
1413
sudo apt-get install -y libunwind-dev
15-
clang-7 --version

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)