Skip to content

Conversation

jaxxjj
Copy link

@jaxxjj jaxxjj commented Mar 10, 2025

Fix incorrect SOL/USD price feed ID


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.

baiwfg2 pushed a commit to baiwfg2/developer-bootcamp-2024 that referenced this pull request Sep 1, 2025
When borrowing SOL, usdc priceFeedAccount needs to be passed, so
that collateral value can be calculated for determining max amount
of SOL to be borrowed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants