Skip to content

Commit

Permalink
add TRUMP deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdomrom committed Jan 19, 2025
1 parent 5dfc8f4 commit 4bafa4c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployments/901/TRUMP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x9612F819F867116C0de7D59f98807652e0497F64",
"ibpFeed": "0x390417745e3B1518cf94ca93E88bE3E3583f4BE3",
"perp": "0x4dE8E1E3d1AD1D025F8d1D66414050688C0aa463",
"perpFeed": "0x2038A25cbAEb0235630A1F41E9900c5Ec954fbe0",
"spotFeed": "0x2Ea93147feAB9c6a89d16808F842c4ad65620993"
}
7 changes: 7 additions & 0 deletions deployments/957/TRUMP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x0Fb4f7fA70f4172618Ac3ad20261b0Fa160cb0E5",
"ibpFeed": "0xb4F84a7ed40Ad99935f449cCbDC2f084952EbCb5",
"perp": "0x5C33EBbCfEb2DCE476d78094Fe201460De7fB3A3",
"perpFeed": "0x70f5dd70f3F6C3cD05B5B9B54561A3b53037C21b",
"spotFeed": "0x1F0eF70F29c6DDE0e41ADB29743D82feD4163D11"
}
9 changes: 9 additions & 0 deletions scripts/config-mainnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,11 @@ library Config {
mmPerpReq: 0.2e18,
imPerpReq: 0.33333e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("TRUMP"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.4545e18,
imPerpReq: 0.5e18
});
} else {
revert("market not supported");
}
Expand Down Expand Up @@ -509,6 +514,10 @@ library Config {
perpCap = 40_000_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("TRUMP"))) {
perpCap = 7_000e18;
optionCap = 0;
baseCap = 0;
} else {
revert("market not supported");
}
Expand Down
2 changes: 2 additions & 0 deletions scripts/deploy-perp-only-market.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ contract DeployPerpOnlyMarket is Utils {
PMRM(_getV2CoreContract("BTC", "pmrm")).setWhitelistedCallee(address(market.iapFeed), true);
PMRM(_getV2CoreContract("BTC", "pmrm")).setWhitelistedCallee(address(market.ibpFeed), true);
PMRM(_getV2CoreContract("BTC", "pmrm")).setWhitelistedCallee(address(market.perpFeed), true);

// TODO: add to matching modules (TRADE/RFQ/LIQUIDATION)
} else {
_transferOwner(market, vm.envAddress("MAINNET_OWNER"));
}
Expand Down

0 comments on commit 4bafa4c

Please sign in to comment.