Skip to content
Open
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
2 changes: 1 addition & 1 deletion project-10-lending/tests/bankrun.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('Lending Smart Contract Tests', async () => {
});

const SOL_PRICE_FEED_ID =
'0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a';
'0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d';
Copy link

@baiwfg2 baiwfg2 Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. If using this, Test borrow will report error Mismatched price feed id. Actually the value is correct, whereas the name is wrong. We should name it USDC_PRICE_FEED_ID = 0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a.

In Test borrow, priceUpdate: usdcUsdPriceFeedAccount should be passed.


const solUsdPriceFeedAccount = pythSolanaReceiver
.getPriceFeedAccountAddress(0, SOL_PRICE_FEED_ID)
Expand Down