Skip to content

Commit

Permalink
testnet and mainnet deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdomrom committed Jun 26, 2024
1 parent 4802adf commit 344571b
Show file tree
Hide file tree
Showing 17 changed files with 108 additions and 6 deletions.
4 changes: 2 additions & 2 deletions deployments/901/SFP.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"base": "0x0C65Af93152f346285eDE5aC5859645A0F61658E",
"spotFeed": "0xE611c56396fFd936dF2eF2fc9374944e670bD3FF"
"base": "0xB12cC78e91E1702D6f224e3B84404EF9628B0Ff3",
"spotFeed": "0x8DB1e0b9078895f43f1182C77e628197e9321Ddf"
}
1 change: 0 additions & 1 deletion deployments/901/SNX.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"base": "0x2c5fed9208034F49723F91179CeeFb8F42dbBA32",
"forwardFeed": "0xFFee15F6023C5182D6fE728999Bf1221A34b4F07",
"option": "0xAAF4772C4ADe0c91D8F907642db7F4015829293B",
"rateFeed": "0x01b388996908A934C3D4De5D684bFabaf7f9343B",
"spotFeed": "0xb97b93F68234C5D254A10c79C8E181c70aE6bbCd",
"volFeed": "0xe0b92F4a7fc49d43CB2573d8c12c8CB4A7eDF44c"
}
2 changes: 1 addition & 1 deletion deployments/901/core.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"auction": "0xCF4a469cB97E27fd474E6EAE7449586254cA3140",
"auction": "0x5815620F1823B34CAA0324A083dc245fDD25Accf",
"cash": "0x6caf294DaC985ff653d5aE75b4FF8E0A66025928",
"dataSubmitter": "0x8DE3A40caceDD87e5981C33eD32e674441dAB8a4",
"optionSettlementHelper": "0x6fc9dcC21E4C0BbCf4122826cad365C89acd88EE",
Expand Down
13 changes: 13 additions & 0 deletions deployments/901/matching.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"auctionUtil": "0x36c3B2a149754a56C16307758032A1d17bf58618",
"deposit-new": "0x65bf02FB74e722654c6d2a5103aBC9bd520f185f",
"settlementUtil": "0xbc75340f9354aE4293D16C691A6961B3e6B972F4",
"deposit": "0x43223Db33AdA0575D2E100829543f8B04A37a1ec",
"matching": "0x3cc154e220c2197c5337b7Bd13363DD127Bc0C6E",
"subAccountCreator": "0xEFC0F82f49FaaDDC8838c4640850b8dEe3b961b7",
"trade": "0x87F2863866D85E3192a35A73b388BD625D83f2be",
"transfer": "0x0CFC1a4a90741aB242cAfaCD798b409E12e68926",
"withdrawal": "0xe850641C5207dc5E9423fB15f89ae6031A05fd92",
"rfq": "0x4E4DD8Be1e461913D9A5DBC4B830e67a8694ebCa",
"liquidate": "0xfC3d7465C6Aa57d7Ba39ed70F143F89E1f823f37"
}
4 changes: 4 additions & 0 deletions deployments/901/rsETH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"base": "0x911116D3BC6A16BA7af02cc81490639f2A6e7Da7",
"spotFeed": "0xC8275d7dC2413f10d9397e7Ff979d142CB56E2ea"
}
6 changes: 6 additions & 0 deletions deployments/901/rsETHC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"proxy": "0xd35bb8582809b4BDa4F8bCCE1bde48559f63eCbf",
"implementation": "0x482B2a70d556EbAe6BBfce447A1632c32299119a",
"old_implementation": "0x7F24C33EDD5102Ce1459047C95711d85ee27e8e2",
"proxyAdmin": "0x8E2B3b5A3Adfb3908ceacF3512822ae67174C2Ba"
}
4 changes: 4 additions & 0 deletions deployments/901/rswETH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"base": "0x6e567dC9f952B361D020A594b88149016D7F3df4",
"spotFeed": "0x8B6F39586DABEC73601CbFA5c32d1d8EbFc00De4"
}
6 changes: 6 additions & 0 deletions deployments/901/rswETHC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"proxy": "0x797Db58F4c6611253e92B9a3260E3Cc9C69430a5",
"implementation": "0x482B2a70d556EbAe6BBfce447A1632c32299119a",
"old_implementation": "0x7F24C33EDD5102Ce1459047C95711d85ee27e8e2",
"proxyAdmin": "0x8E2B3b5A3Adfb3908ceacF3512822ae67174C2Ba"
}
13 changes: 13 additions & 0 deletions deployments/901/shared.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"usdc": "0xe80F2a02398BBf1ab2C9cc52caD1978159c215BD",
"useMockedFeed": false,
"wbtc": "0xF1493F3602Ab0fC576375a20D7E4B4714DB4422d",
"weth": "0x3a34565D81156cF0B1b9bC5f14FD00333bcf6B93",
"usdt": "0x0fd4d2dEc9c5830516176e5A1ee552f9431A1b09",
"snx": "0x751FD1d1B327D6d842cD57CAAEABf581836cFF5F",
"wsteth": "0x37Db2a7cFb832442861F0053db422bDEA20DE847",
"weeth": "0x7ef0873bBf91B8Ecac22c0e9466b17c6Cc14B1bd",
"rsweth": "0xa7456213A5c081F53fEb3A4F64b88A4637Bf3028",
"rseth": "0xc3ad6f6E0940df79e12b30F307109fc4Ec2ED7D0",
"feedSigners": ["0x555eB362b5057e36f88cCb42b44D6dA5Fe7A0656", "0x47ebFBAda4d85Dac6b9018C0CE75774556A8243f"]
}
4 changes: 4 additions & 0 deletions deployments/901/strands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"api": "0x910686B1A831d51cbB4bc2509F1C21de01E82d80",
"sfp": "0x4883e675C79B8944C999069AfD930b7Ba8BF8138"
}
4 changes: 4 additions & 0 deletions deployments/901/weETH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"base": "0x063793B0AA25CB7784375E1Fed801505838Ebc44",
"spotFeed": "0xB158f12c761F73ca69E556af23F88A449e075A1B"
}
6 changes: 6 additions & 0 deletions deployments/901/weETHC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"proxy": "0x79AC9B13810D31066Be547EdA46C40264b39397D",
"implementation": "0x482B2a70d556EbAe6BBfce447A1632c32299119a",
"old_implementation": "0x7F24C33EDD5102Ce1459047C95711d85ee27e8e2",
"proxyAdmin": "0x8E2B3b5A3Adfb3908ceacF3512822ae67174C2Ba"
}
4 changes: 4 additions & 0 deletions deployments/957/rsETH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"base": "0x35fdB6e79c05809ba6Dc3B2EF5FF7D0BB5D75020",
"spotFeed": "0x984c7F384120849CfDCA309501df8BC3A23cd5fe"
}
4 changes: 4 additions & 0 deletions deployments/957/rswETH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"base": "0xef2Fc00B7F7c71c73a68dAD25c9D673b2e1983ba",
"spotFeed": "0xeD32BbB6F1331CEdF9724105b1C72875d6Ad6555"
}
13 changes: 13 additions & 0 deletions deployments/957/shared.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"usdc": "0x6879287835A86F50f784313dBEd5E5cCC5bb8481",
"useMockedFeed": false,
"wbtc": "0x9b80ab732a6F1030326Af0014f106E12C4Db18EC",
"weth": "0x15CEcd5190A43C7798dD2058308781D0662e678E",
"usdt": "0x954bE1803546150bfd887c9ff70fd221F2F505d3",
"snx": "0xE4e6F3feeAD9C3714F3c9380F91CB56E04F7297E",
"wsteth": "0xdf77b286eDa539CCb6326e9eDB86aa69D83108a5",
"weeth": "0x7B35b4c05a90Ea5f311AeC815BE4148b446a68a2",
"rsweth": "0xC419959850d49166C2d5250Ee89ff9910679D8c8",
"rseth": "0xc47e2E800a9184cFbD274AC1eeCcCDF942715dB7",
"feedSigners": ["0x555eB362b5057e36f88cCb42b44D6dA5Fe7A0656", "0x47ebFBAda4d85Dac6b9018C0CE75774556A8243f"]
}
4 changes: 4 additions & 0 deletions deployments/957/weETH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"base": "0xF30EE744fCfd135A135E6a4e327e01d0f697e6Ec",
"spotFeed": "0xC70Eb1E419C28916e8a2D9DE328Ad0e21129d930"
}
22 changes: 20 additions & 2 deletions scripts/config-mainnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,18 @@ library Config {
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("rswETH"))) {
baseMarginParams = IStandardManager.BaseMarginParams({
marginFactor: 0.7e18,
IMScale: 0.9e18
marginFactor: 0.65e18,
IMScale: 0.77e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("rsETH"))) {
baseMarginParams = IStandardManager.BaseMarginParams({
marginFactor: 0.65e18,
IMScale: 0.77e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("weETH"))) {
baseMarginParams = IStandardManager.BaseMarginParams({
marginFactor: 0.65e18,
IMScale: 0.77e18
});
} else {
revert("market not supported");
Expand Down Expand Up @@ -246,6 +256,14 @@ library Config {
perpCap = 0;
optionCap = 0;
baseCap = 10_000_000e18;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("rsETH"))) {
perpCap = 0;
optionCap = 0;
baseCap = 10_000_000e18;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("weETH"))) {
perpCap = 0;
optionCap = 0;
baseCap = 10_000_000e18;
} else {
revert("market not supported");
}
Expand Down

0 comments on commit 344571b

Please sign in to comment.