Skip to content

Commit 5b700f1

Browse files
committed
use constant case
1 parent 2229cd4 commit 5b700f1

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/factory/FeedSwitchFactory.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {PendleNAVFeed} from "src/feeds/PendleNAVFeed.sol";
88

99
contract PTUSDeFeedSwitchFactory {
1010
address public constant USDeWrapperFeed = 0xB3C1D801A02d88adC96A294123c2Daa382345058;
11-
address public constant sUSDeWrapper = address(0xD723a0910e261de49A90779d38A94aFaAA028F15);
12-
address public constant sUSDe = address(0x9D39A5DE30e57443BfF2A8307A4256c8797A3497);
13-
uint256 public constant timelockPeriod = 64800;
14-
address public constant guardian = 0x4b6c63E6a94ef26E2dF60b89372db2d8e211F1B7;
11+
address public constant sUSDeWrapper = 0xD723a0910e261de49A90779d38A94aFaAA028F15;
12+
address public constant sUSDe = 0x9D39A5DE30e57443BfF2A8307A4256c8797A3497;
13+
uint256 public constant TIMELOCK_PERIOD = 64800;
14+
address public constant GUARDIAN = 0x4b6c63E6a94ef26E2dF60b89372db2d8e211F1B7;
1515

1616
mapping(address => bool) public isFromFactory;
1717

@@ -26,7 +26,7 @@ contract PTUSDeFeedSwitchFactory {
2626

2727
feedSwitch = address(
2828
new FeedSwitch(
29-
address(navFeed), address(beforeMaturityFeed), USDeWrapperFeed, timelockPeriod, pendlePT, guardian
29+
address(navFeed), address(beforeMaturityFeed), USDeWrapperFeed, TIMELOCK_PERIOD, pendlePT, GUARDIAN
3030
)
3131
);
3232
isFromFactory[feedSwitch] = true;
@@ -42,7 +42,7 @@ contract PTUSDeFeedSwitchFactory {
4242

4343
feedSwitch = address(
4444
new FeedSwitch(
45-
address(navFeed), address(beforeMaturityFeed), USDeWrapperFeed, timelockPeriod, pendlePT, guardian
45+
address(navFeed), address(beforeMaturityFeed), USDeWrapperFeed, TIMELOCK_PERIOD, pendlePT, GUARDIAN
4646
)
4747
);
4848

src/factory/MarketFactory.sol

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import "src/Market.sol";
66
contract MarketFactory {
77
IOracle public constant ORACLE = IOracle(0xaBe146CF570FD27ddD985895ce9B138a7110cce8);
88
IDolaBorrowingRights public constant DBR = IDolaBorrowingRights(0xAD038Eb671c44b853887A7E32528FaB35dC5D710);
9-
address public constant GOV = address(0x926dF14a23BE491164dCF93f4c468A50ef659D5B);
10-
address public constant FED = address(0x2b34548b865ad66A2B046cb82e59eE43F75B90fd);
11-
address public constant PAUSE_GUARDIAN = address(0xE3eD95e130ad9E15643f5A5f232a3daE980784cd);
12-
uint256 public constant initialCollateralFactorBps = 5000;
13-
uint256 public constant initialReplenishmentIncentiveBps = 5000;
14-
uint256 public constant initialLiquidationIncentiveBps = 100;
9+
address public constant GOV = 0x926dF14a23BE491164dCF93f4c468A50ef659D5B;
10+
address public constant FED = 0x2b34548b865ad66A2B046cb82e59eE43F75B90fd;
11+
address public constant PAUSE_GUARDIAN = 0xE3eD95e130ad9E15643f5A5f232a3daE980784cd;
12+
uint256 public constant INITIAL_COLLATERAL_FACTOR_BPS = 5000;
13+
uint256 public constant INITIAL_REPLENISHMENT_INCENTIVE_BPS = 5000;
14+
uint256 public constant INITIAL_LIQUIDATION_INCENTIVE_BPS = 100;
1515

1616
mapping(address => bool) public isFromFactory;
1717

@@ -30,9 +30,9 @@ contract MarketFactory {
3030
DBR,
3131
IERC20(collateral),
3232
ORACLE,
33-
initialCollateralFactorBps,
34-
initialReplenishmentIncentiveBps,
35-
initialLiquidationIncentiveBps,
33+
INITIAL_COLLATERAL_FACTOR_BPS,
34+
INITIAL_REPLENISHMENT_INCENTIVE_BPS,
35+
INITIAL_LIQUIDATION_INCENTIVE_BPS,
3636
callbackOnDeposit
3737
)
3838
);

0 commit comments

Comments
 (0)