Skip to content

Commit 49df397

Browse files
authored
Merge pull request Kwenta#59 from Kwenta/deploy-base-multicollateral
🚀 deploy multicollateral with updated pdao
2 parents c04fdf5 + 9cea2da commit 49df397

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

deployments/Base.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
},
1212
"Multi Collateral": {
1313
"Zap": "0x41AE8b823850D96088419992c9538198b72cA230",
14-
"Pay": "0x127Fb7602bF3De092d351f922791cF9a149A4837",
15-
"EngineImplementation": "0x4AeD59A7986E8Ae37FD6Ce964492195828D4aC36",
16-
"EngineProxy": "0xB7743A30cE805BcA100e048324d3398530b4547c",
17-
"MulticallerWithSender": "0x138A347ae9607dbc119620b93aAf2c71fDeF6726"
14+
"Pay": "0x067e8C201Cc9CF33e556f8A0d75b91276c9af3D6",
15+
"EngineImplementation": "0x6b17Cfa48ee616C864e5310e4a04b863051CCCeA",
16+
"EngineProxy": "0xe331a7eeC851Ba702aA8BF43070a178451d6D28E",
17+
"MulticallerWithSender": "0x14fC2CAe096E5964Ffb408bf8aCC292FC78d4f7f"
1818
}
1919
}

script/utils/parameters/BaseParameters.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity 0.8.27;
33

44
contract BaseParameters {
55
// Deployer base
6-
address public constant PDAO = 0x88d40a3f2870e835005A3F1CFd28D94b12aD5483;
6+
address public constant PDAO = 0x2f4004Bc32cc5D18a62fE26E35A0881d5397c549;
77

88
address public constant PERPS_MARKET_PROXY = address(0);
99

@@ -34,7 +34,7 @@ contract BaseParameters {
3434
address public constant ZAP = 0x41AE8b823850D96088419992c9538198b72cA230;
3535

3636
address payable public constant PAY =
37-
payable(0x127Fb7602bF3De092d351f922791cF9a149A4837);
37+
payable(0x067e8C201Cc9CF33e556f8A0d75b91276c9af3D6);
3838

3939
address public constant CBBTC = 0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf;
4040

src/utils/MulticallerWithSender.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ contract MulticallerWithSender {
116116
if iszero(
117117
call(
118118
gas(), // Remaining gas.
119-
0xB7743A30cE805BcA100e048324d3398530b4547c, // Engine Proxy address.
119+
0xe331a7eeC851Ba702aA8BF43070a178451d6D28E, // Engine Proxy address.
120120
calldataload(values.offset), // ETH to send.
121121
memPtr, // Start of input calldata in memory.
122122
calldataload(o), // Size of input calldata.

test/PayDebt.t.sol

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import {IEngine} from "src/interfaces/IEngine.sol";
66

77
contract PayDebtTest is Bootstrap {
88
address public constant DEBT_ACTOR =
9-
address(0x325cd6b3CD80EDB102ac78848f5B127eB6DB13f3);
9+
address(0x3C704e28C8EfCC7aCa262031818001895595081D);
1010
uint128 public constant ACCOUNT_ID =
11-
170_141_183_460_469_231_731_687_303_715_884_105_747;
12-
uint256 public constant INITIAL_DEBT = 2_983_003_117_413_866_988;
13-
uint256 public constant BASE_BLOCK_NUMBER_WITH_DEBT = 23_805_461;
11+
170_141_183_460_469_231_731_687_303_715_884_108_662;
12+
uint256 public constant INITIAL_DEBT = 10_718_269_732_520_293_989;
13+
uint256 public constant BASE_BLOCK_NUMBER_WITH_DEBT = 23_922_058;
1414
uint256 public constant USDC_WRAPPER_MAX_AMOUNT =
1515
100_000_000_000_000_000_000_000_000;
1616

@@ -41,7 +41,7 @@ contract PayDebtTest is Bootstrap {
4141
/// (for the input _amount)
4242
uint256 decimalsFactor = 10 ** (18 - USDC.decimals());
4343
uint256 INITIAL_DEBT_IN_USDC = INITIAL_DEBT / decimalsFactor;
44-
assertEq(INITIAL_DEBT_IN_USDC, 2_983_003);
44+
assertEq(INITIAL_DEBT_IN_USDC, 10_718_269);
4545

4646
/// @dev on this block (BASE_BLOCK_NUMBER_WITH_DEBT)
4747
/// ACCOUNT_ID has a debt value of INITIAL_DEBT
@@ -81,7 +81,7 @@ contract PayDebtTest is Bootstrap {
8181
/// (for the input _amount)
8282
uint256 decimalsFactor = 10 ** (18 - USDC.decimals());
8383
uint256 INITIAL_DEBT_IN_USDC = INITIAL_DEBT / decimalsFactor;
84-
assertEq(INITIAL_DEBT_IN_USDC, 2_983_003);
84+
assertEq(INITIAL_DEBT_IN_USDC, 10_718_269);
8585

8686
/// @dev on this block (BASE_BLOCK_NUMBER_WITH_DEBT)
8787
/// @dev ACCOUNT_ID has a debt value of INITIAL_DEBT
@@ -125,7 +125,7 @@ contract PayDebtTest is Bootstrap {
125125
/// (for the input _amount)
126126
uint256 decimalsFactor = 10 ** (18 - USDC.decimals());
127127
uint256 INITIAL_DEBT_IN_USDC = INITIAL_DEBT / decimalsFactor;
128-
assertEq(INITIAL_DEBT_IN_USDC, 2_983_003);
128+
assertEq(INITIAL_DEBT_IN_USDC, 10_718_269);
129129

130130
/// @dev on this block (BASE_BLOCK_NUMBER_WITH_DEBT)
131131
/// @dev ACCOUNT_ID has a debt value of INITIAL_DEBT

test/utils/Constants.sol

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ pragma solidity 0.8.27;
44
/// @title Contract for defining constants used in testing
55
/// @author JaredBorders ([email protected])
66
contract Constants {
7-
/// @dev Dec-13-2024 07:33:47 PM +UTC
8-
uint256 public constant BASE_BLOCK_NUMBER = 23_805_461;
7+
/// @dev Dec-19-2024 07:22:05 PM +UTC
8+
uint256 public constant BASE_BLOCK_NUMBER = 23_923_389;
99

1010
address internal constant OWNER = address(0x01);
1111

@@ -62,14 +62,14 @@ contract Constants {
6262

6363
uint128 constant WSTETH_SYNTH_MARKET_ID = 7;
6464

65-
/// @dev this is the ETH price in USD at the block number 23_805_461
66-
uint256 internal constant ETH_PRICE = 4000;
65+
/// @dev this is the ETH price in USD at the block number 23_923_389
66+
uint256 internal constant ETH_PRICE = 3500;
6767

68-
uint256 internal constant BTC_PRICE = 106_000;
68+
uint256 internal constant BTC_PRICE = 98_240;
6969

70-
uint256 internal constant CBETH_PRICE = 4351;
70+
uint256 internal constant CBETH_PRICE = 3800;
7171

72-
uint256 internal constant WSTETH_PRICE = 4735;
72+
uint256 internal constant WSTETH_PRICE = 4134;
7373

7474
uint256 internal constant AMOUNT = 10_000 ether;
7575

0 commit comments

Comments
 (0)