Skip to content

Commit

Permalink
Run forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Hd0702 committed Aug 16, 2024
1 parent 52ec133 commit b56401f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ fs_permissions = [{ access = "read-write", path = "./"}]

solc_version="0.8.18"

evm_version="shanghai"

[fmt]
line_length = 120
tab_width = 2
Expand Down
5 changes: 2 additions & 3 deletions src/risk-managers/PMRMLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ contract PMRMLib is IPMRMLib, Ownable2Step {

function setBasisContingencyParams(IPMRMLib.BasisContingencyParameters memory _basisContParams) external onlyOwner {
if (
//
_basisContParams.scenarioSpotUp <= 1e18 || _basisContParams.scenarioSpotUp > 3e18
|| _basisContParams.scenarioSpotDown >= 1e18 //
|| _basisContParams.basisContMultFactor > 5e18
//
|| _basisContParams.basisContAddFactor > 5e18
|| _basisContParams.basisContMultFactor > 5e18 || _basisContParams.basisContAddFactor > 5e18
) {
revert PMRML_InvalidBasisContingencyParameters();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ contract LiquidationSimTests_PM is LiquidationSimBase {
if (auctionDetails.insolvent) {
// todo: this needs to be changed to use MM as lower bound
// assertApproxEqAbs(mm, data.Actions[actionId].Results.LowerBound, 1e6, "lowerbound");
} else {
fMax = auction.getMaxProportion(aliceAcc, worstScenario);
}
else fMax = auction.getMaxProportion(aliceAcc, worstScenario);

assertApproxEqAbs(mtm, data.Actions[actionId].Results.PreMtM, 1e6, "pre mtm");
assertApproxEqAbs(mm, data.Actions[actionId].Results.PreMM, 1e6, "pre mm");
Expand All @@ -107,7 +106,8 @@ contract LiquidationSimTests_PM is LiquidationSimBase {
assertApproxEqAbs(bm, data.Actions[actionId].Results.PostBM, 1e6, "post bm");

IDutchAuction.Auction memory auctionDetails = auction.getAuction(aliceAcc);
if (auctionDetails.insolvent) {} else {
if (auctionDetails.insolvent) {}
else {
uint fMax = auction.getMaxProportion(aliceAcc, worstScenario);
assertApproxEqAbs(fMax, data.Actions[actionId].Results.PostFMax, 1e6, "post fmax");
}
Expand Down

0 comments on commit b56401f

Please sign in to comment.