Skip to content

Commit 6d439ee

Browse files
committed
fix: remaining low level call
1 parent f62cc60 commit 6d439ee

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

tests/horizon/OracleDynamicBounds.t.sol

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,7 @@ abstract contract OracleDynamicBoundsTestBase is Test {
6666

6767
// test param registry params are configured properly
6868
function test_registry_params(address asset) internal {
69-
bool success;
70-
bytes memory data;
71-
72-
(success, data) = AaveV3HorizonEthereum.RWA_ORACLE_PARAMS_REGISTRY.call(
73-
abi.encodeWithSignature('assetExists(address)', asset)
74-
);
75-
require(success, 'Failed to call assetExists()');
76-
bool exists = abi.decode(data, (bool));
77-
assertEq(exists, true, 'assetExists');
78-
79-
(success, data) = AaveV3HorizonEthereum.RWA_ORACLE_PARAMS_REGISTRY.call(
80-
abi.encodeWithSignature('getParametersForAsset(address)', asset)
81-
);
82-
require(success, 'Failed to call getParametersForAsset()');
83-
69+
assertEq(parameterRegistry.assetExists(asset), true, 'assetExists');
8470
(
8571
uint64 maxExpectedApy,
8672
uint32 upperBoundTolerance,
@@ -90,7 +76,7 @@ abstract contract OracleDynamicBoundsTestBase is Test {
9076
bool isUpperBoundEnabled,
9177
bool isLowerBoundEnabled,
9278
bool isActionTakingEnabled
93-
) = abi.decode(data, (uint64, uint32, uint32, uint32, uint80, bool, bool, bool));
79+
) = parameterRegistry.getParametersForAsset(asset);
9480

9581
ExpectedParams memory expectedParam = expectedParams[asset];
9682

0 commit comments

Comments
 (0)