Skip to content

Commit 5daf170

Browse files
committed
test: assertions on CL non SVR feed
1 parent 233c96b commit 5daf170

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/AaveV3Horizon_PriceFeed_20260404/AaveV3Horizon_PriceFeed_20260404.t.sol

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {IAaveOracle} from 'aave-v3-origin/contracts/interfaces/IAaveOracle.sol';
55
import {ProtocolV3HorizonTestBase, ReserveConfig} from 'tests/utils/ProtocolV3HorizonTestBase.sol';
66
import {AaveV3EthereumHorizon, AaveV3EthereumHorizonAssets} from 'aave-address-book-latest/AaveV3EthereumHorizon.sol';
77
import {AaveV3Ethereum, AaveV3EthereumAssets} from 'aave-address-book-latest/AaveV3Ethereum.sol';
8+
import {ChainlinkEthereum} from 'aave-address-book/ChainlinkEthereum.sol';
89
import {IPriceCapAdapterStable} from 'src/interfaces/IPriceCapAdapterStable.sol';
910
import {AaveV3Horizon_PriceFeed_20260404} from './AaveV3Horizon_PriceFeed_20260404.sol';
1011

@@ -120,7 +121,12 @@ contract AaveV3Horizon_PriceFeed_20260404_Test is ProtocolV3HorizonTestBase {
120121
assertEq(
121122
rlusdAdapter.ASSET_TO_USD_AGGREGATOR(),
122123
AaveV3EthereumHorizonAssets.RLUSD_ORACLE,
123-
'RLUSD adapter underlying must be Horizon non-SVR Chainlink feed'
124+
'RLUSD adapter underlying must be Horizon feed'
125+
);
126+
assertEq(
127+
rlusdAdapter.ASSET_TO_USD_AGGREGATOR(),
128+
ChainlinkEthereum.RLUSD_USD,
129+
'RLUSD adapter underlying must equal the non-SVR Chainlink RLUSD/USD feed'
124130
);
125131
assertEq(rlusdAdapter.getPriceCap(), EXPECTED_PRICE_CAP, 'RLUSD adapter price cap mismatch');
126132
}
@@ -135,7 +141,12 @@ contract AaveV3Horizon_PriceFeed_20260404_Test is ProtocolV3HorizonTestBase {
135141
assertEq(
136142
usdcAdapter.ASSET_TO_USD_AGGREGATOR(),
137143
AaveV3EthereumHorizonAssets.USDC_ORACLE,
138-
'USDC adapter underlying must be Horizon non-SVR Chainlink feed'
144+
'USDC adapter underlying must be Horizon feed'
145+
);
146+
assertEq(
147+
usdcAdapter.ASSET_TO_USD_AGGREGATOR(),
148+
ChainlinkEthereum.USDC_USD,
149+
'USDC adapter underlying must equal the non-SVR Chainlink USDC/USD feed'
139150
);
140151
assertEq(usdcAdapter.getPriceCap(), EXPECTED_PRICE_CAP, 'USDC adapter price cap mismatch');
141152
}

0 commit comments

Comments
 (0)