Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem committed Sep 26, 2024
1 parent 8a91bec commit fe5037d
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion test/modules/auctions/GDA/GDATest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract contract GdaTest is Test, Permit2User {
uint256 internal constant _DECAY_TARGET = 10e16; // 10%
uint256 internal constant _DECAY_PERIOD = 12 hours;
UD60x18 internal constant _ONE_DAY = UD60x18.wrap(1 days * uUNIT);
UD60x18 internal constant LN_OF_PRODUCT_LN_MAX = UD60x18.wrap(4_883_440_042_183_455_484);
UD60x18 internal constant _LN_OF_PRODUCT_LN_MAX = UD60x18.wrap(4_883_440_042_183_455_484);

AtomicAuctionHouse internal _auctionHouse;
GradualDutchAuction internal _module;
Expand Down
2 changes: 1 addition & 1 deletion test/modules/auctions/GDA/auction.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ contract GdaCreateAuctionTest is GdaTest {
console2.log("Decay constant:", decayConstant.unwrap());

// Calculate the maximum duration in seconds
uint256 maxDuration = convert(LN_OF_PRODUCT_LN_MAX.div(decayConstant).mul(_ONE_DAY));
uint256 maxDuration = convert(_LN_OF_PRODUCT_LN_MAX.div(decayConstant).mul(_ONE_DAY));
console2.log("Max duration:", maxDuration);

// Set the bounds
Expand Down
2 changes: 0 additions & 2 deletions test/modules/auctions/GDA/maxAmountAccepted.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
pragma solidity 0.8.19;

import {IAuction} from "../../../../src/interfaces/modules/IAuction.sol";
import {uUNIT} from "prb-math-4.0-axis/UD60x18.sol";
import "prb-math-4.0-axis/Common.sol" as PRBMath;

import {GdaTest} from "./GDATest.sol";
import {console2} from "@forge-std-1.9.1/console2.sol";

contract GdaMaxAmountAcceptedTest is GdaTest {
using {PRBMath.mulDiv} for uint256;
Expand Down
1 change: 0 additions & 1 deletion test/modules/auctions/GDA/maxPayout.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pragma solidity 0.8.19;

import {IAuction} from "../../../../src/interfaces/modules/IAuction.sol";
import {uUNIT} from "prb-math-4.0-axis/UD60x18.sol";
import "prb-math-4.0-axis/Common.sol" as PRBMath;

import {GdaTest} from "./GDATest.sol";
Expand Down
5 changes: 1 addition & 4 deletions test/modules/auctions/GDA/payoutFor.t.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.19;

import {Module} from "../../../../src/modules/Modules.sol";
import {IAuction} from "../../../../src/interfaces/modules/IAuction.sol";
import {IGradualDutchAuction} from
"../../../../src/interfaces/modules/auctions/IGradualDutchAuction.sol";

import {
UD60x18, ud, convert, UNIT, uUNIT, ZERO, EXP_MAX_INPUT
} from "prb-math-4.0-axis/UD60x18.sol";
import {UD60x18, ud, convert, uUNIT} from "prb-math-4.0-axis/UD60x18.sol";
import "prb-math-4.0-axis/Common.sol" as PRBMath;

import {GdaTest} from "./GDATest.sol";
Expand Down
3 changes: 1 addition & 2 deletions test/modules/auctions/GDA/priceFor.t.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.19;

import {Module} from "../../../../src/modules/Modules.sol";
import {IAuction} from "../../../../src/interfaces/modules/IAuction.sol";
import {IGradualDutchAuction} from
"../../../../src/interfaces/modules/auctions/IGradualDutchAuction.sol";

import {UD60x18, ud, convert, UNIT, uUNIT, EXP_MAX_INPUT} from "prb-math-4.0-axis/UD60x18.sol";
import {UD60x18, ud, convert, uUNIT} from "prb-math-4.0-axis/UD60x18.sol";
import "prb-math-4.0-axis/Common.sol" as PRBMath;

import {GdaTest} from "./GDATest.sol";
Expand Down
5 changes: 0 additions & 5 deletions test/modules/auctions/GDA/purchase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ pragma solidity 0.8.19;

import {Module} from "../../../../src/modules/Modules.sol";
import {IAuction} from "../../../../src/interfaces/modules/IAuction.sol";
import {IGradualDutchAuction} from
"../../../../src/interfaces/modules/auctions/IGradualDutchAuction.sol";

import {
UD60x18, ud, convert, UNIT, uUNIT, ZERO, EXP_MAX_INPUT
} from "prb-math-4.0-axis/UD60x18.sol";
import "prb-math-4.0-axis/Common.sol" as PRBMath;

import {GdaTest} from "./GDATest.sol";
Expand Down

0 comments on commit fe5037d

Please sign in to comment.