saidam017
high
StableOracleWBTC
use wrong chainlink price feed address. functions rely on this data will not work properly.
StableOracleWBTC
is used to get price of WBTC using Chainlink price feed, but priceFeed
is defined using ETH/USD address (0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419) instead of WBTC/USD (0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c).
reference : https://docs.chain.link/data-feeds/price-feeds/addresses/?network=ethereum
Wrong price will returned and functions rely on this data will not work properly.
Manual Review
Use the correct price feed contract address :
constructor() {
priceFeed = AggregatorV3Interface(
0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c // correct WBTC/USD price feed
);
}