Skip to content

Commit

Permalink
Add second batch of 10 perps
Browse files Browse the repository at this point in the history
  • Loading branch information
Hd0702 committed Oct 29, 2024
1 parent d69b557 commit b5c0508
Show file tree
Hide file tree
Showing 22 changed files with 240 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployments/901/AVAX.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x0FA0367f3100Be2beA6aa3b18a45d1da3d76C2B6",
"ibpFeed": "0x5Bb89aA56AeBd0Bb281D576ef26F08D0C3466Ff2",
"perp": "0x93A56d43c4764d6eBD556fd912Fb8e89299B3694",
"perpFeed": "0x74eA7Cd43D2c32BB5F2640Fb2314Ea454BDB7f93",
"spotFeed": "0x0E815d21C987Ce9979E9D3f0458891781E44A0E5"
}
7 changes: 7 additions & 0 deletions deployments/901/BITCOIN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x4de9bc31D70fa9c2a08c32b8bD70BCb9f80e061A",
"ibpFeed": "0xa61B3802146E6cA226E7855BbdCae24F1EeF87b9",
"perp": "0x0b0a8F6c9E01c9534512F2a6c13Ac8e3a4014793",
"perpFeed": "0xC4d15d036861d9300A368DAE61CF5c51b59707DE",
"spotFeed": "0x21F23E1306Ac9449Cf9A381554C07927aBfD6250"
}
7 changes: 7 additions & 0 deletions deployments/901/DEGEN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0xE14ebd65a080f346178CF15A5393e9905245BA57",
"ibpFeed": "0x13f5b7ffC72022D6Fcc0adFDd3977F464755c5e7",
"perp": "0x3b480749E2A1baa2bfEA8b8F0e082C1234e0B77e",
"perpFeed": "0xF8529E71DB4085C10891cfA430E3f80177246e18",
"spotFeed": "0xF972305634231dbFcFc4CAddb8486f71121106D2"
}
7 changes: 7 additions & 0 deletions deployments/901/EIGEN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x0be2Cb474BdD5E09f7088ACE039B8b20bFe69e64",
"ibpFeed": "0xFcEfAe4bfE5303406aC1361ae3cA4FC6329e173b",
"perp": "0xD36E3BD74A68fAA1bC77341E9D7f94E656d7B72e",
"perpFeed": "0xDD8e4c4CebfD65FA4B1Bb9384CC65e169ea7F7F3",
"spotFeed": "0x1754E2aDB257EA0BD081CCcdDaE8b39834c1d661"
}
7 changes: 7 additions & 0 deletions deployments/901/ENA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x49fF9E0B8D2F0398cC32cF1fAB74Ce35aBDe2e46",
"ibpFeed": "0xd359d20496323f8AfD11219322ceecc16925F512",
"perp": "0x0340ed091ee952C0a94Eea00c1159e2619DE8243",
"perpFeed": "0x96da9DDe63DE440FD77f600C85b925C65Cc93c42",
"spotFeed": "0x7805C3b384010dB1479cB6F294b85E554d0D7884"
}
7 changes: 7 additions & 0 deletions deployments/901/LINK.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x032a7Cc387A230ec746E6dB8518eB84a20d1F6c2",
"ibpFeed": "0x10834F2AA4B510528cadAca25b7356552E78E9B6",
"perp": "0x80335Ddf3b76B102dE2dCfA5b37d629D5fcF0ecd",
"perpFeed": "0x3001a90FCeb3E95a700227236C8446bcaf8652d0",
"spotFeed": "0xacdC480875E3CF44fAb20592F776CB4a9B400935"
}
7 changes: 7 additions & 0 deletions deployments/901/SEI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0xAc5Fb676bbe04a971908768727d484EadAFf9F82",
"ibpFeed": "0x980a9595A036C398A7342A65195eC73Ce94fD582",
"perp": "0xA660fE7911e9B92223be41354fb740C90dC1B632",
"perpFeed": "0x6Fc11A091240eB5a212B27afC42935C5D77490E9",
"spotFeed": "0x0d3166b7D5e5c69d74698cdFD6514bd9B96D2708"
}
7 changes: 7 additions & 0 deletions deployments/901/TAO.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0xa1A841BCC119C25Ca48F72c3085f1F593e80B92f",
"ibpFeed": "0x7e885A8e2459e56Ce026AC155B222F64Ed635026",
"perp": "0x20E94f82FcA7f6486e284B93323d40A6a9b018C1",
"perpFeed": "0xD06A8B3f097e9c7895053745c48527AF99F37bCB",
"spotFeed": "0x3CB047b06491aF1f08fdDCed24D9714578F5e787"
}
7 changes: 7 additions & 0 deletions deployments/901/UNI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x777737D031CFEdD9C3F1dcdF8ADB00E7734BC2B2",
"ibpFeed": "0xF18Aa9933d9544C19C2D98fe75d4554C6aeef442",
"perp": "0x55cC5Ca56891ab14181b81545A48A1F5b11700F5",
"perpFeed": "0xDca0bC89b67Dd09e443F0ef468A4d6290F0AD067",
"spotFeed": "0x80123Eb8296E32f9E9E5Dd91cAb5d581B3EF46C6"
}
7 changes: 7 additions & 0 deletions deployments/901/XRP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x02cA548126aa5c58A4D8B50795387589336dc264",
"ibpFeed": "0x5b99A03169f7B4B45C3D873484dFb2c4e97B8159",
"perp": "0x68A1C81645E2B1b7A4bdDa805147c6a72E2411B2",
"perpFeed": "0x1c649B95B9B0579D288CEbA44F4377F0deeedb89",
"spotFeed": "0x92acF59677e90828CCf620077922900790e1281a"
}
10 changes: 10 additions & 0 deletions deployments/901/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
7 changes: 7 additions & 0 deletions deployments/957/AVAX.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0xbeDaB258aea3B81b75e18c4050C8f4aB8320e1d7",
"ibpFeed": "0xC8F77286eed301AdC4a9dc9cD879f8c5845E6322",
"perp": "0x734e86D60bbB8Ed9eC0a119ceb78c099d263Bb9f",
"perpFeed": "0xf5f47ece75c92502243C273c17970e6E7E8de3E5",
"spotFeed": "0x17DB89F8a25CEC9D212B209d7D05582d411acf07"
}
7 changes: 7 additions & 0 deletions deployments/957/BITCOIN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x49BFE5DeB83f1a7AE57BDf42646026D6e39D40dC",
"ibpFeed": "0x9E67b68Cb5E22FDA76Ca5F391f10D23e84291442",
"perp": "0x2BA568c6DA7ADecEd133Ee3D7633971a6c5200B1",
"perpFeed": "0xB6dD91696c954B1869855605836BF951C8A40c27",
"spotFeed": "0x494A9406aF19f099AA16505140bF4E8Ca81a6ba9"
}
7 changes: 7 additions & 0 deletions deployments/957/DEGEN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0xfB162931A5F1Ab187e2eE7B8C27dA6c7C038Fb5C",
"ibpFeed": "0x0d4543491B2352b1910C5B03528F522A6c124f4c",
"perp": "0xd36aafF4723E461E1Bc645cE241f7A0beDAB201e",
"perpFeed": "0x7edc865A70f7303389570E1fe4b14c270bFFf20a",
"spotFeed": "0x48B6514d1Eb96522d6B5414dF43f8ae13fAB6d85"
}
7 changes: 7 additions & 0 deletions deployments/957/EIGEN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0xA496D48D516f171E721cd35eaAfDBC61d7CeC665",
"ibpFeed": "0x52b7AfCc77DD13450F1664718699188f8B4E1DCf",
"perp": "0x2c1E92601fC644212e0a895a83C2eA95983b1137",
"perpFeed": "0x909F795C191019D8501cabA723247e30691c305c",
"spotFeed": "0x65653c408eD6a89CDbEFAAf28caAba6C41B552b5"
}
7 changes: 7 additions & 0 deletions deployments/957/ENA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x011089bf72202b73070844a5728447D38Cd51160",
"ibpFeed": "0x9a3B9f1D49BCd0BD2d5319D7C315b5d2Cf383fe1",
"perp": "0x6aBDf5AC9aB94F537FDA1cAf317cFCB7676BBB11",
"perpFeed": "0x3c95123003D786B3fdcd812a9Af8Ad29BBA00CED",
"spotFeed": "0x6dfa2EED4aD222a935cc8DCc5E08bFC884F2Ae73"
}
7 changes: 7 additions & 0 deletions deployments/957/LINK.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x3b328bFA5EC7D063fC8391B2e05A87bc10eBe816",
"ibpFeed": "0x329f47a42D28f6Ec390F01528af7D71Cc64d89E0",
"perp": "0x182182F18486A335017841421F90F77D67CDB30A",
"perpFeed": "0x3824C5dD8Df360304e7d88740dBB2F4CA52cfB4A",
"spotFeed": "0x35eC2358C01896ABA9604c3fD13A9c7ec5aB2a66"
}
7 changes: 7 additions & 0 deletions deployments/957/SEI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0xA6F2987b6b97aEC0Eec68835c48CF96A2A90a174",
"ibpFeed": "0x3B6605F89773F1ED13b393d47e42537C42b90E35",
"perp": "0x7225889B75fd34C68eA3098dAE04D50553C09840",
"perpFeed": "0xeB26a38D3aB64dA6285f7D989d6ee6316180a0A4",
"spotFeed": "0xb7b0B126E3DEAd3AB83Bf7606ff6C1908D0Fa736"
}
7 changes: 7 additions & 0 deletions deployments/957/TAO.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x3106051023583224b83FC5136f9a4e6bE00fC2C8",
"ibpFeed": "0x9B147bc86C18ccc11899BdA3628DC21B0E22D9EA",
"perp": "0x2458241c0e594aF68E55Dd7224b1067a5F1Ae52C",
"perpFeed": "0x13686f63251c17E5A586F301b8609e1d28A426fa",
"spotFeed": "0xB2511476d47F9239AB40875c73E7dF1735a56A09"
}
7 changes: 7 additions & 0 deletions deployments/957/UNI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0xF16019a0F59C101e5F85d810AfE76FaF33Eaf179",
"ibpFeed": "0x29aAFF41612A11367DF1A3Ef682f6A45eaec30c8",
"perp": "0x443BB222eE396485269B4F4E1Abb913255e1A8b4",
"perpFeed": "0x4FD1B0d7402d91b8A46f941345f40C6e28d6aaBA",
"spotFeed": "0xfEf8C98522Ea0BfCE97b352EAAb742e39945Cbc9"
}
7 changes: 7 additions & 0 deletions deployments/957/XRP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iapFeed": "0x0AaF7216A74aAb076169C3c3daf5Fe201A49D81a",
"ibpFeed": "0x8F7E043e3953fbB8448565D3b5Ba2ee22e2E6c22",
"perp": "0x1DD2b6E9Db6654BB949be09b30d4193A94bbbfaE",
"perpFeed": "0x7564CaD6b1f1BDE7812Dd5aDd6B8EABE0D3fdc30",
"spotFeed": "0x3ff589114373350B2eFbCa2BFAa119D6F1C535b9"
}
90 changes: 90 additions & 0 deletions scripts/config-mainnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,56 @@ library Config {
mmPerpReq: 0.067e18,
imPerpReq: 0.1e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("LINK"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.067e18,
imPerpReq: 0.1e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("XRP"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.067e18,
imPerpReq: 0.1e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("AVAX"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.067e18,
imPerpReq: 0.1e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("UNI"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.067e18,
imPerpReq: 0.1e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("ENA"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.067e18,
imPerpReq: 0.1e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("TAO"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.143e18,
imPerpReq: 0.2e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("SEI"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.143e18,
imPerpReq: 0.2e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("EIGEN"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.143e18,
imPerpReq: 0.2e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("BITCOIN"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.2e18,
imPerpReq: 0.33333e18
});
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("DEGEN"))) {
perpMarginRequirements = IStandardManager.PerpMarginRequirements({
mmPerpReq: 0.2e18,
imPerpReq: 0.33333e18
});
} else {
revert("market not supported");
}
Expand Down Expand Up @@ -419,6 +469,46 @@ library Config {
perpCap = 1_500_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("LINK"))) {
perpCap = 100_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("XRP"))) {
perpCap = 2_000_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("AVAX"))) {
perpCap = 40_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("UNI"))) {
perpCap = 120_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("TAO"))) {
perpCap = 2_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("SEI"))) {
perpCap = 2_000_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("EIGEN"))) {
perpCap = 300_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("ENA"))) {
perpCap = 2_000_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("BITCOIN"))) {
perpCap = 1_200_000e18;
optionCap = 0;
baseCap = 0;
} else if (keccak256(abi.encodePacked(market)) == keccak256(abi.encodePacked("DEGEN"))) {
perpCap = 40_000_000e18;
optionCap = 0;
baseCap = 0;
} else {
revert("market not supported");
}
Expand Down

0 comments on commit b5c0508

Please sign in to comment.