Skip to content

Commit

Permalink
Merge pull request #741 from open-dollar/arb-test-params
Browse files Browse the repository at this point in the history
Fix SafetyPrice for ARB on forknet
  • Loading branch information
daopunk authored Jul 24, 2024
2 parents 09fafe5 + c1dff81 commit 00b33fa
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions test/e2e/TestParams.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00b33fa

Please sign in to comment.