From c1dff812cddebf679b03e55f94537a3aa0738957 Mon Sep 17 00:00:00 2001 From: Hunter King Date: Tue, 23 Jul 2024 22:36:53 -0500 Subject: [PATCH] fix arb safetyPrice --- test/e2e/TestParams.t.sol | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/test/e2e/TestParams.t.sol b/test/e2e/TestParams.t.sol index cb106308..1c5b09e9 100644 --- a/test/e2e/TestParams.t.sol +++ b/test/e2e/TestParams.t.sol @@ -99,11 +99,19 @@ abstract contract TestParams is Contracts, Params { for (uint256 _i; _i < collateralTypes.length; _i++) { bytes32 _cType = collateralTypes[_i]; - _oracleRelayerCParams[_cType] = IOracleRelayer.OracleRelayerCollateralParams({ - oracle: delayedOracle[_cType], - safetyCRatio: 1.35e27, // 135% - liquidationCRatio: 1.25e27 // 125% - }); + if (_cType != ARB) { + _oracleRelayerCParams[_cType] = IOracleRelayer.OracleRelayerCollateralParams({ + oracle: delayedOracle[_cType], + safetyCRatio: 1.35e27, // 135% + liquidationCRatio: 1.25e27 // 125% + }); + } else { + _oracleRelayerCParams[ARB] = IOracleRelayer.OracleRelayerCollateralParams({ + oracle: delayedOracle[ARB], + safetyCRatio: 1.85e27, // 185% + liquidationCRatio: 1.75e27 // 175% + }); + } _taxCollectorCParams[_cType] = ITaxCollector.TaxCollectorCollateralParams({ // NOTE: 5%/yr => 1.05^(1/yr) = 1 + 1.54713e-9