diff --git a/.circleci/config.yml b/.circleci/config.yml index 5158b00326..0953aceaa0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ # DO NOT EDIT MANUALLY! instead run `npm run build:ci` # autogenerated by `.circleci/pack.js` from contents of `jobs` .yml files version: 2.1 -orbs: +orbs: rust: circleci/rust@1.6.0 commands: cmd-wait-for-port: @@ -35,21 +35,30 @@ jobs: image: ubuntu-2204:2022.04.1 docker_layer_caching: true environment: - foundry_locked_commit: "232f66f9" + foundry_cache_version: "1" steps: - restore_cache: keys: - - foundry-bin-${foundry_locked_commit}-12 + - foundry-bin-latest-${foundry_cache_version} - rust/install: {} - - run: | - if [ ! -d ~/.foundry ]; then - curl -O https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/foundryup && chmod +x ./foundryup - ./foundryup -C $foundry_locked_commit - fi - rm -rf * - echo 'export PATH="$PATH:$HOME/.foundry/bin"' >> $BASH_ENV + - run: + name: "Install Foundry" + working_directory: ~/ + environment: + SHELL: /bin/bash + command: |- + export PATH="$PATH:$HOME/.foundry/bin" + echo 'export PATH=$PATH:$HOME/.foundry/bin' >> $BASH_ENV + if command -v anvil; then + echo "Anvil already installed" + anvil --version + else + curl -L https://foundry.paradigm.xyz | bash + foundryup + fi + rm -rf * - save_cache: - key: foundry-bin-${foundry_locked_commit}-12 + key: foundry-bin-latest-${foundry_cache_version} paths: - ~/.foundry/bin - checkout @@ -125,22 +134,31 @@ jobs: image: ubuntu-2204:2022.04.1 docker_layer_caching: true environment: - foundry_locked_commit: "232f66f9" + foundry_cache_version: "1" resource_class: large steps: - restore_cache: keys: - - foundry-bin-${foundry_locked_commit}-12 + - foundry-bin-latest-${foundry_cache_version} - rust/install: {} - - run: | - if [ ! -d ~/.foundry ]; then - curl -O https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/foundryup && chmod +x ./foundryup - ./foundryup -C $foundry_locked_commit - fi - rm -rf * - echo 'export PATH="$PATH:$HOME/.foundry/bin"' >> $BASH_ENV + - run: + name: "Install Foundry" + working_directory: ~/ + environment: + SHELL: /bin/bash + command: |- + export PATH="$PATH:$HOME/.foundry/bin" + echo 'export PATH=$PATH:$HOME/.foundry/bin' >> $BASH_ENV + if command -v anvil; then + echo "Anvil already installed" + anvil --version + else + curl -L https://foundry.paradigm.xyz | bash + foundryup + fi + rm -rf * - save_cache: - key: foundry-bin-${foundry_locked_commit}-12 + key: foundry-bin-latest-${foundry_cache_version} paths: - ~/.foundry/bin - checkout @@ -288,7 +306,7 @@ jobs: image: ubuntu-2204:2022.04.1 docker_layer_caching: true environment: - foundry_locked_commit: "232f66f9" + foundry_cache_version: "1" resource_class: large steps: - restore_cache: diff --git a/.circleci/src/jobs/job-cannon.yml b/.circleci/src/jobs/job-cannon.yml index 77aa3c0a8b..69d7642872 100644 --- a/.circleci/src/jobs/job-cannon.yml +++ b/.circleci/src/jobs/job-cannon.yml @@ -4,18 +4,28 @@ steps: # get foundry - restore_cache: keys: - - foundry-bin-${foundry_locked_commit}-12 + - foundry-bin-latest-${foundry_cache_version} - rust/install: {} - - run: | - if [ ! -d ~/.foundry ]; then - curl -O https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/foundryup && chmod +x ./foundryup - ./foundryup -C $foundry_locked_commit - fi - rm -rf * - echo 'export PATH="$PATH:$HOME/.foundry/bin"' >> $BASH_ENV + - run: + name: "Install Foundry" + working_directory: ~/ + environment: + SHELL: /bin/bash + command: |- + export PATH="$PATH:$HOME/.foundry/bin" + echo 'export PATH=$PATH:$HOME/.foundry/bin' >> $BASH_ENV + + if command -v anvil; then + echo "Anvil already installed" + anvil --version + else + curl -L https://foundry.paradigm.xyz | bash + foundryup + fi + rm -rf * - save_cache: - key: foundry-bin-${foundry_locked_commit}-12 + key: foundry-bin-latest-${foundry_cache_version} paths: - ~/.foundry/bin diff --git a/.circleci/src/jobs/job-integration-tests.yml b/.circleci/src/jobs/job-integration-tests.yml index 3e9b41c2f5..3142b4af32 100644 --- a/.circleci/src/jobs/job-integration-tests.yml +++ b/.circleci/src/jobs/job-integration-tests.yml @@ -8,18 +8,28 @@ steps: # get foundry - restore_cache: keys: - - foundry-bin-${foundry_locked_commit}-12 + - foundry-bin-latest-${foundry_cache_version} - rust/install: {} - - run: | - if [ ! -d ~/.foundry ]; then - curl -O https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/foundryup && chmod +x ./foundryup - ./foundryup -C $foundry_locked_commit - fi - rm -rf * - echo 'export PATH="$PATH:$HOME/.foundry/bin"' >> $BASH_ENV + - run: + name: "Install Foundry" + working_directory: ~/ + environment: + SHELL: /bin/bash + command: |- + export PATH="$PATH:$HOME/.foundry/bin" + echo 'export PATH=$PATH:$HOME/.foundry/bin' >> $BASH_ENV + + if command -v anvil; then + echo "Anvil already installed" + anvil --version + else + curl -L https://foundry.paradigm.xyz | bash + foundryup + fi + rm -rf * - save_cache: - key: foundry-bin-${foundry_locked_commit}-12 + key: foundry-bin-latest-${foundry_cache_version} paths: - ~/.foundry/bin diff --git a/.circleci/src/snippets/job-header-machine.yml b/.circleci/src/snippets/job-header-machine.yml index 90e5ad9d93..4939ca34c3 100644 --- a/.circleci/src/snippets/job-header-machine.yml +++ b/.circleci/src/snippets/job-header-machine.yml @@ -3,4 +3,4 @@ machine: image: ubuntu-2204:2022.04.1 docker_layer_caching: true environment: - foundry_locked_commit: "232f66f9" + foundry_cache_version: "1" diff --git a/contracts/RewardsDistribution.sol b/contracts/RewardsDistribution.sol index cf688eac5d..135c370be1 100644 --- a/contracts/RewardsDistribution.sol +++ b/contracts/RewardsDistribution.sol @@ -156,7 +156,7 @@ contract RewardsDistribution is Owned, IRewardsDistribution { // Iterate the array of distributions sending the configured amounts for (uint i = 0; i < distributions.length; i++) { - if (distributions[i].destination != address(0) || distributions[i].amount != 0) { + if (distributions[i].destination != address(0) && distributions[i].amount != 0) { remainder = remainder.sub(distributions[i].amount); // Transfer the SNX @@ -166,10 +166,14 @@ contract RewardsDistribution is Owned, IRewardsDistribution { bytes memory payload = abi.encodeWithSignature("notifyRewardAmount(uint256)", distributions[i].amount); // solhint-disable avoid-low-level-calls - (bool success, ) = distributions[i].destination.call(payload); + (bool success, bytes memory result) = distributions[i].destination.call(payload); if (!success) { - // Note: we're ignoring the return value as it will fail for contracts that do not implement RewardsDistributionRecipient.sol + // if the error was emitted by the destination contract, bubble + uint len = result.length; + assembly { + revert(add(result, 0x20), len) + } } } } diff --git a/contracts/TradingRewards.sol b/contracts/TradingRewards.sol index 2563d2abe2..dd32976553 100644 --- a/contracts/TradingRewards.sol +++ b/contracts/TradingRewards.sol @@ -4,6 +4,7 @@ pragma solidity ^0.5.16; import "./Pausable.sol"; import "./MixinResolver.sol"; import "./Owned.sol"; +import "./RewardsDistributionRecipient.sol"; // External dependencies. import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/SafeERC20.sol"; @@ -17,7 +18,7 @@ import "./interfaces/ITradingRewards.sol"; import "./interfaces/IExchanger.sol"; // https://docs.synthetix.io/contracts/source/contracts/tradingrewards -contract TradingRewards is ITradingRewards, ReentrancyGuard, Owned, Pausable, MixinResolver { +contract TradingRewards is ITradingRewards, ReentrancyGuard, Owned, Pausable, MixinResolver, RewardsDistributionRecipient { using SafeMath for uint; using SafeDecimalMath for uint; using SafeERC20 for IERC20; @@ -256,6 +257,8 @@ contract TradingRewards is ITradingRewards, ReentrancyGuard, Owned, Pausable, Mi emit AssignedRewardTokensRecovered(recoverAddress, amount, periodID); } + function notifyRewardAmount(uint256 reward) external {} + function _validateRecoverAddress(address recoverAddress) internal view { if (recoverAddress == address(0) || recoverAddress == address(this)) { revert("Invalid recover address"); diff --git a/publish/deployed/goerli-ovm/feeds.json b/publish/deployed/goerli-ovm/feeds.json index 7afd21cbec..2d13a80374 100644 --- a/publish/deployed/goerli-ovm/feeds.json +++ b/publish/deployed/goerli-ovm/feeds.json @@ -176,8 +176,7 @@ "feed": "0x6db19664922b194C59FE972f28CFCAD9667e5dDf" }, "STETHETH": { - "fakeFeed": true, - "feed": "0x57241A37733983F97C4Ab06448F244A1E0Ca0ba8" + "feed": "0x93A0D1B1cdF50b6bC83bc89bb59fA3Aa7A93B3e3" }, "MAV": { "asset": "MAV", diff --git a/publish/deployed/goerli-ovm/perpsv2-markets.json b/publish/deployed/goerli-ovm/perpsv2-markets.json index 4634d8d275..9db8c8ec52 100644 --- a/publish/deployed/goerli-ovm/perpsv2-markets.json +++ b/publish/deployed/goerli-ovm/perpsv2-markets.json @@ -15,7 +15,7 @@ "offchainDelayedOrderMinAge": "1", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "55", - "maxMarketValue": "31000", + "maxMarketValue": "36000", "maxFundingVelocity": "9", "skewScale": "1000000", "offchainPriceDivergence": "0.10", @@ -73,7 +73,7 @@ "maxLeverage": "27.5", "maxMarketValue": "20000", "maxFundingVelocity": "36", - "skewScale": "850000", + "skewScale": "637500", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocBNBPERP", @@ -101,7 +101,7 @@ "maxLeverage": "27.5", "maxMarketValue": "600000", "maxFundingVelocity": "36", - "skewScale": "20000000", + "skewScale": "15000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocLINKPERP", @@ -127,9 +127,9 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "220000", + "maxMarketValue": "300000", "maxFundingVelocity": "36", - "skewScale": "7500000", + "skewScale": "5625000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocSOLPERP", @@ -157,7 +157,7 @@ "maxLeverage": "27.5", "maxMarketValue": "8000000", "maxFundingVelocity": "36", - "skewScale": "200000000", + "skewScale": "150000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocMATICPERP", @@ -185,7 +185,7 @@ "maxLeverage": "27.5", "maxMarketValue": "50000000", "maxFundingVelocity": "36", - "skewScale": "2500000000", + "skewScale": "1875000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocDOGEPERP", @@ -213,7 +213,7 @@ "maxLeverage": "27.5", "maxMarketValue": "6000000", "maxFundingVelocity": "36", - "skewScale": "150000000", + "skewScale": "225000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocFTMPERP", @@ -241,7 +241,7 @@ "maxLeverage": "27.5", "maxMarketValue": "100000", "maxFundingVelocity": "36", - "skewScale": "7500000", + "skewScale": "5625000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocATOMPERP", @@ -269,7 +269,7 @@ "maxLeverage": "27.5", "maxMarketValue": "160000", "maxFundingVelocity": "36", - "skewScale": "5000000", + "skewScale": "3750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocAVAXPERP", @@ -297,7 +297,7 @@ "maxLeverage": "27.5", "maxMarketValue": "4600000", "maxFundingVelocity": "36", - "skewScale": "75000000", + "skewScale": "56250000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocARBPERP", @@ -325,7 +325,7 @@ "maxLeverage": "27.5", "maxMarketValue": "4100000", "maxFundingVelocity": "36", - "skewScale": "60000000", + "skewScale": "45000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocOPPERP", @@ -353,7 +353,7 @@ "maxLeverage": "27.5", "maxMarketValue": "400000", "maxFundingVelocity": "36", - "skewScale": "30000000", + "skewScale": "25000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocAPEPERP", @@ -381,7 +381,7 @@ "maxLeverage": "27.5", "maxMarketValue": "1000000", "maxFundingVelocity": "36", - "skewScale": "25000000", + "skewScale": "18750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocNEARPERP", @@ -409,7 +409,7 @@ "maxLeverage": "27.5", "maxMarketValue": "100000", "maxFundingVelocity": "36", - "skewScale": "5000000", + "skewScale": "3750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocAXSPERP", @@ -437,7 +437,7 @@ "maxLeverage": "27.5", "maxMarketValue": "100000", "maxFundingVelocity": "36", - "skewScale": "8000000", + "skewScale": "6000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocUNIPERP", @@ -465,7 +465,7 @@ "maxLeverage": "27.5", "maxMarketValue": "1600000", "maxFundingVelocity": "36", - "skewScale": "30000000", + "skewScale": "22500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocDYDXPERP", @@ -493,7 +493,7 @@ "maxLeverage": "27.5", "maxMarketValue": "20000", "maxFundingVelocity": "36", - "skewScale": "600000", + "skewScale": "337500", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocAAVEPERP", @@ -521,7 +521,7 @@ "maxLeverage": "27.5", "maxMarketValue": "400000", "maxFundingVelocity": "36", - "skewScale": "10000000", + "skewScale": "15000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocFLOWPERP", @@ -689,7 +689,7 @@ "maxLeverage": "27.5", "maxMarketValue": "32000", "maxFundingVelocity": "36", - "skewScale": "2250000", + "skewScale": "1687500", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocLTCPERP", @@ -717,7 +717,7 @@ "maxLeverage": "27.5", "maxMarketValue": "7500000", "maxFundingVelocity": "36", - "skewScale": "400000000", + "skewScale": "300000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocADAPERP", @@ -745,7 +745,7 @@ "maxLeverage": "27.5", "maxMarketValue": "250000", "maxFundingVelocity": "36", - "skewScale": "8100000", + "skewScale": "6075000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocAPTPERP", @@ -773,7 +773,7 @@ "maxLeverage": "27.5", "maxMarketValue": "225000", "maxFundingVelocity": "36", - "skewScale": "17000000", + "skewScale": "12750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocFILPERP", @@ -801,7 +801,7 @@ "maxLeverage": "27.5", "maxMarketValue": "75000000000", "maxFundingVelocity": "36", - "skewScale": "10000000000000", + "skewScale": "7500000000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocSHIBPERP", @@ -827,9 +827,9 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "200000", + "maxMarketValue": "400000", "maxFundingVelocity": "36", - "skewScale": "19000000", + "skewScale": "14250000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocLDOPERP", @@ -857,7 +857,7 @@ "maxLeverage": "27.5", "maxMarketValue": "12000", "maxFundingVelocity": "36", - "skewScale": "500000", + "skewScale": "375000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocBCHPERP", @@ -885,7 +885,7 @@ "maxLeverage": "27.5", "maxMarketValue": "6000000", "maxFundingVelocity": "36", - "skewScale": "100000000", + "skewScale": "75000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocCRVPERP", @@ -911,9 +911,9 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "7000", + "maxMarketValue": "27720", "maxFundingVelocity": "36", - "skewScale": "112500", + "skewScale": "60000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocGMXPERP", @@ -941,7 +941,7 @@ "maxLeverage": "27.5", "maxMarketValue": "2400000000000", "maxFundingVelocity": "36", - "skewScale": "30000000000000", + "skewScale": "22500000000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocPEPEPERP", @@ -969,7 +969,7 @@ "maxLeverage": "27.5", "maxMarketValue": "1000000", "maxFundingVelocity": "36", - "skewScale": "90000000", + "skewScale": "67500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocSUIPERP", @@ -997,7 +997,7 @@ "maxLeverage": "27.5", "maxMarketValue": "3000000", "maxFundingVelocity": "36", - "skewScale": "34000000", + "skewScale": "25500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocBLURPERP", @@ -1025,7 +1025,7 @@ "maxLeverage": "27.5", "maxMarketValue": "4250000", "maxFundingVelocity": "36", - "skewScale": "500000000", + "skewScale": "375000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocXRPPERP", @@ -1053,7 +1053,7 @@ "maxLeverage": "27.5", "maxMarketValue": "300000", "maxFundingVelocity": "36", - "skewScale": "20000000", + "skewScale": "15000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocDOTPERP", @@ -1081,7 +1081,7 @@ "maxLeverage": "27.5", "maxMarketValue": "15000000", "maxFundingVelocity": "36", - "skewScale": "1000000000", + "skewScale": "750000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocTRXPERP", @@ -1137,7 +1137,7 @@ "maxLeverage": "27.5", "maxMarketValue": "200000", "maxFundingVelocity": "36", - "skewScale": "3800000", + "skewScale": "2850000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocINJPERP", @@ -1221,7 +1221,7 @@ "maxLeverage": "27.5", "maxMarketValue": "55000", "maxFundingVelocity": "36", - "skewScale": "4000000", + "skewScale": "3000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocETCPERP", @@ -1249,7 +1249,7 @@ "maxLeverage": "27.5", "maxMarketValue": "15000", "maxFundingVelocity": "36", - "skewScale": "860000", + "skewScale": "483750", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocCOMPPERP", @@ -1275,9 +1275,9 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "1500", + "maxMarketValue": "2000", "maxFundingVelocity": "36", - "skewScale": "48000", + "skewScale": "36000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocMKRPERP", @@ -1305,7 +1305,7 @@ "maxLeverage": "27.5", "maxMarketValue": "5000", "maxFundingVelocity": "36", - "skewScale": "255000", + "skewScale": "191250", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocXMRPERP", @@ -1333,7 +1333,7 @@ "maxLeverage": "27.5", "maxMarketValue": "75", "maxFundingVelocity": "36", - "skewScale": "1500", + "skewScale": "1125", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocYFIPERP", @@ -1361,7 +1361,7 @@ "maxLeverage": "27.5", "maxMarketValue": "500000", "maxFundingVelocity": "36", - "skewScale": "21000000", + "skewScale": "15750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocMAVPERP", @@ -1417,7 +1417,7 @@ "maxLeverage": "27.5", "maxMarketValue": "650000", "maxFundingVelocity": "36", - "skewScale": "13000000", + "skewScale": "26000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocWLDPERP", @@ -1473,15 +1473,15 @@ "maxLeverage": "27.5", "maxMarketValue": "125000", "maxFundingVelocity": "36", - "skewScale": "1500000", + "skewScale": "1125000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocBALPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sFXSPERP", @@ -1499,17 +1499,17 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "40000", + "maxMarketValue": "80000", "maxFundingVelocity": "36", - "skewScale": "1250000", + "skewScale": "937500", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocFXSPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sKNCPERP", @@ -1529,15 +1529,15 @@ "maxLeverage": "27.5", "maxMarketValue": "750000", "maxFundingVelocity": "36", - "skewScale": "36000000", + "skewScale": "13500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocKNCPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sRNDRPERP", @@ -1557,15 +1557,15 @@ "maxLeverage": "27.5", "maxMarketValue": "200000", "maxFundingVelocity": "36", - "skewScale": "10000000", + "skewScale": "7500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocRNDRPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sONEPERP", @@ -1585,15 +1585,15 @@ "maxLeverage": "27.5", "maxMarketValue": "20000000", "maxFundingVelocity": "36", - "skewScale": "750000000", + "skewScale": "562500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocONEPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sPERPPERP", @@ -1613,15 +1613,15 @@ "maxLeverage": "27.5", "maxMarketValue": "300000", "maxFundingVelocity": "36", - "skewScale": "10000000", + "skewScale": "18750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocPERPPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sZILPERP", @@ -1641,15 +1641,15 @@ "maxLeverage": "27.5", "maxMarketValue": "25000000", "maxFundingVelocity": "36", - "skewScale": "950000000", + "skewScale": "712500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocZILPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { @@ -1668,17 +1668,17 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "400000", + "maxMarketValue": "800000", "maxFundingVelocity": "36", - "skewScale": "34000000", + "skewScale": "12750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocRUNEPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sSUSHIPERP", @@ -1698,15 +1698,15 @@ "maxLeverage": "27.5", "maxMarketValue": "500000", "maxFundingVelocity": "36", - "skewScale": "21000000", + "skewScale": "15750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocSUSHIPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sZECPERP", @@ -1726,15 +1726,15 @@ "maxLeverage": "27.5", "maxMarketValue": "15000", "maxFundingVelocity": "36", - "skewScale": "780000", + "skewScale": "585000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocZECPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sXTZPERP", @@ -1754,15 +1754,15 @@ "maxLeverage": "27.5", "maxMarketValue": "400000", "maxFundingVelocity": "36", - "skewScale": "19000000", + "skewScale": "14250000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocXTZPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sUMAPERP", @@ -1782,15 +1782,15 @@ "maxLeverage": "27.5", "maxMarketValue": "40000", "maxFundingVelocity": "36", - "skewScale": "3700000", + "skewScale": "2775000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocUMAPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sENJPERP", @@ -1810,15 +1810,15 @@ "maxLeverage": "27.5", "maxMarketValue": "1250000", "maxFundingVelocity": "36", - "skewScale": "46000000", + "skewScale": "34500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocENJPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sICPPERP", @@ -1838,15 +1838,15 @@ "maxLeverage": "27.5", "maxMarketValue": "75000", "maxFundingVelocity": "36", - "skewScale": "4000000", + "skewScale": "3000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocICPPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sXLMPERP", @@ -1866,15 +1866,15 @@ "maxLeverage": "27.5", "maxMarketValue": "4500000", "maxFundingVelocity": "36", - "skewScale": "333000000", + "skewScale": "249750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocXLMPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "s1INCHPERP", @@ -1894,15 +1894,15 @@ "maxLeverage": "27.5", "maxMarketValue": "1250000", "maxFundingVelocity": "36", - "skewScale": "60000000", + "skewScale": "45000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "oc1INCHPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sEOSPERP", @@ -1922,15 +1922,15 @@ "maxLeverage": "27.5", "maxMarketValue": "1000000", "maxFundingVelocity": "36", - "skewScale": "128000000", + "skewScale": "96000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocEOSPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sCELOPERP", @@ -1950,15 +1950,15 @@ "maxLeverage": "27.5", "maxMarketValue": "1250000", "maxFundingVelocity": "36", - "skewScale": "55000000", + "skewScale": "41250000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocCELOPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sALGOPERP", @@ -1978,15 +1978,15 @@ "maxLeverage": "27.5", "maxMarketValue": "6000000", "maxFundingVelocity": "36", - "skewScale": "277000000", + "skewScale": "207750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocALGOPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sZRXPERP", @@ -2006,15 +2006,15 @@ "maxLeverage": "27.5", "maxMarketValue": "2250000", "maxFundingVelocity": "36", - "skewScale": "40000000", + "skewScale": "30000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocZRXPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sSEIPERP", @@ -2034,15 +2034,15 @@ "maxLeverage": "27.5", "maxMarketValue": "3000000", "maxFundingVelocity": "36", - "skewScale": "142000000", + "skewScale": "106500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocSEIPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sSTETHETHPERP", @@ -2051,7 +2051,7 @@ "takerFee": "0.3", "takerFeeDelayedOrder": "0.3", "makerFeeDelayedOrder": "0.3", - "takerFeeOffchainDelayedOrder": "0.00015", + "takerFeeOffchainDelayedOrder": "0.00020", "makerFeeOffchainDelayedOrder": "0", "nextPriceConfirmWindow": "2", "delayedOrderConfirmWindow": "120", @@ -2067,9 +2067,9 @@ "liquidationPremiumMultiplier": "1", "offchainMarketKey": "ocSTETHETHPERP", "liquidationBufferRatio": "0.0100", - "maxPD": "0.0003", - "maxLiquidationDelta": "0.00015", - "paused": true, - "offchainPaused": true + "maxPD": "0.0004", + "maxLiquidationDelta": "0.0002", + "paused": false, + "offchainPaused": false } ] diff --git a/publish/deployed/goerli/deployment.json b/publish/deployed/goerli/deployment.json index 4509225b9b..839e5662c3 100644 --- a/publish/deployed/goerli/deployment.json +++ b/publish/deployed/goerli/deployment.json @@ -306,11 +306,11 @@ }, "RewardsDistribution": { "name": "RewardsDistribution", - "address": "0x882eaF70e172b8543145811c5fE169d03740ba9a", + "address": "0x31E1080E7eb408ff005A9108f515CfcFEa6B7584", "source": "RewardsDistribution", - "link": "https://goerli.etherscan.io/address/0x882eaF70e172b8543145811c5fE169d03740ba9a", - "timestamp": "2022-07-15T01:56:59.239Z", - "txn": "", + "link": "https://goerli.etherscan.io/address/0x31E1080E7eb408ff005A9108f515CfcFEa6B7584", + "timestamp": "2023-10-20T13:59:00.000Z", + "txn": "https://goerli.etherscan.io/tx/0x3abe4199548543328a2d808a2f4f88959b252d51fe8408ab722cbf0f6cb9702b", "network": "goerli", "constructorArgs": [ "0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9", @@ -17008,7 +17008,7 @@ } }, "RewardsDistribution": { - "bytecode": "608060405234801561001057600080fd5b5060405161129b38038061129b833981810160405260a081101561003357600080fd5b50805160208201516040830151606084015160809094015192939192909190846001600160a01b0381166100ae576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150600280546001600160a01b039586166001600160a01b031991821617909155600380549486169482169490941790935560048054928516928416929092179091556005805491909316911617905550611136806101656000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063817a6951116100a2578063bdd1248211610071578063bdd12482146102c5578063bf7e214f146102cd578063c9e9cc4d146102d5578063d8297e44146102dd578063e54c16711461030357610116565b8063817a6951146102725780638da5cb5b1461028f57806395896b7614610297578063a430be6c146102bd57610116565b806359974e38116100e957806359974e38146101c15780635de39934146101f257806360eb3ff21461021857806379ba5097146102445780637a9e5e4b1461024c57610116565b8063060ca2501461011b5780631627540c146101355780634487d3df1461015d57806353a47bb71461019d575b600080fd5b610123610335565b60408051918252519081900360200190f35b61015b6004803603602081101561014b57600080fd5b50356001600160a01b031661033c565b005b61017a6004803603602081101561017357600080fd5b5035610398565b604080516001600160a01b03909316835260208301919091528051918290030190f35b6101a56103cd565b604080516001600160a01b039092168252519081900360200190f35b6101de600480360360208110156101d757600080fd5b50356103dc565b604080519115158252519081900360200190f35b61015b6004803603602081101561020857600080fd5b50356001600160a01b0316610a2f565b6101de6004803603604081101561022e57600080fd5b506001600160a01b038135169060200135610a59565b61015b610bfc565b61015b6004803603602081101561026257600080fd5b50356001600160a01b0316610cb8565b61015b6004803603602081101561028857600080fd5b5035610ce2565b6101a5610dcd565b61015b600480360360208110156102ad57600080fd5b50356001600160a01b0316610ddc565b6101a5610e06565b6101a5610e15565b6101a5610e24565b6101a5610e33565b61015b600480360360208110156102f357600080fd5b50356001600160a01b0316610e42565b6101de6004803603606081101561031957600080fd5b508035906001600160a01b036020820135169060400135610e6c565b6006545b90565b610344610f38565b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b600681815481106103a557fe5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6001546001600160a01b031681565b600080821161042a576040805162461bcd60e51b81526020600482015260156024820152744e6f7468696e6720746f206469737472696275746560581b604482015290519081900360640190fd5b6002546001600160a01b03163314610489576040805162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697365640000000000000000604482015290519081900360640190fd5b6004546001600160a01b03166104e6576040805162461bcd60e51b815260206004820152601760248201527f526577617264457363726f77206973206e6f7420736574000000000000000000604482015290519081900360640190fd5b6003546001600160a01b0316610543576040805162461bcd60e51b815260206004820152601960248201527f53796e74686574697850726f7879206973206e6f742073657400000000000000604482015290519081900360640190fd5b6005546001600160a01b03166105a0576040805162461bcd60e51b815260206004820152601760248201527f466565506f6f6c50726f7879206973206e6f7420736574000000000000000000604482015290519081900360640190fd5b600354604080516370a0823160e01b8152306004820152905184926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156105ea57600080fd5b505afa1580156105fe573d6000803e3d6000fd5b505050506040513d602081101561061457600080fd5b505110156106535760405162461bcd60e51b815260040180806020018281038252604681526020018061108d6046913960600191505060405180910390fd5b8160005b6006548110156109065760006001600160a01b03166006828154811061067957fe5b60009182526020909120600290910201546001600160a01b03161415806106bf5750600681815481106106a857fe5b906000526020600020906002020160010154600014155b156108fe576106f5600682815481106106d457fe5b90600052602060002090600202016001015483610f8390919063ffffffff16565b600354600680549294506001600160a01b039091169163a9059cbb91908490811061071c57fe5b6000918252602090912060029091020154600680546001600160a01b03909216918590811061074757fe5b9060005260206000209060020201600101546040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156107a857600080fd5b505af11580156107bc573d6000803e3d6000fd5b505050506040513d60208110156107d257600080fd5b50506006805460609190839081106107e657fe5b60009182526020808320600160029093020191909101546040805160248082019390935281518082039093018352604401905290810180516001600160e01b0316633c6b16ab60e01b17905260068054919350908490811061084457fe5b60009182526020918290206002909102015460405184516001600160a01b0390921692859282918401908083835b602083106108915780518252601f199092019160209182019101610872565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146108f3576040519150601f19603f3d011682016040523d82523d6000602084013e6108f8565b606091505b50505050505b600101610657565b50600354600480546040805163a9059cbb60e01b81526001600160a01b0392831693810193909352602483018590525192169163a9059cbb916044808201926020929091908290030181600087803b15801561096157600080fd5b505af1158015610975573d6000803e3d6000fd5b505050506040513d602081101561098b57600080fd5b50506005546040805163fd1f498d60e01b81526004810184905290516001600160a01b039092169163fd1f498d9160248082019260009290919082900301818387803b1580156109da57600080fd5b505af11580156109ee573d6000803e3d6000fd5b50506040805186815290517f6d1c76d614228b523baa4dcd9539e2c713b54ff4ab3ff2d1627e7f6cd32be4429350908190036020019150a150600192915050565b610a37610f38565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a63610f38565b6001600160a01b038316610abe576040805162461bcd60e51b815260206004820152601760248201527f43616e74206164642061207a65726f2061646472657373000000000000000000604482015290519081900360640190fd5b81610b09576040805162461bcd60e51b815260206004820152601660248201527510d85b9d081859190818481e995c9bc8185b5bdd5b9d60521b604482015290519081900360640190fd5b610b11610fe0565b506040805180820182526001600160a01b03858116808352602080840187815260068054600181018255600082905286517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600290920291820180546001600160a01b031916919097161790955590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40909401939093559154845160001991909101815291820152808301859052915190917f08fff3cb767a84a8039ea0f84053799c5cdca0e8efb031eeb6b05b9c174aa208916060918190039190910190a15060019392505050565b6001546001600160a01b03163314610c455760405162461bcd60e51b81526004018080602001828103825260358152602001806110586035913960400191505060405180910390fd5b600054600154604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b610cc0610f38565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610cea610f38565b60065460001901811115610d3b576040805162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b805b60065460001901811015610db55760068160010181548110610d5b57fe5b906000526020600020906002020160068281548110610d7657fe5b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b039092169190911781556001918201549082015501610d3d565b506006805490610dc9906000198301610ff7565b5050565b6000546001600160a01b031681565b610de4610f38565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6003546001600160a01b031681565b6002546001600160a01b031681565b6005546001600160a01b031681565b610e4a610f38565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000610e76610f38565b60065460001901841115610ec7576040805162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b8260068581548110610ed557fe5b906000526020600020906002020160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508160068581548110610f1857fe5b906000526020600020906002020160010181905550600190509392505050565b6000546001600160a01b03163314610f815760405162461bcd60e51b815260040180806020018281038252602f8152602001806110d3602f913960400191505060405180910390fd5b565b600082821115610fda576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080518082019091526000808252602082015290565b815481835581811115611023576002028160020283600052602060002091820191016110239190611028565b505050565b61033991905b808211156110535780546001600160a01b03191681556000600182015560020161102e565b509056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e65727368697052657761726473446973747269627574696f6e20636f6e747261637420646f6573206e6f74206861766520656e6f75676820746f6b656e7320746f20646973747269627574654f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6ea265627a7a723158202f1a763a9f11a7edb07008112ffed4dab50ca52a11212d5a052c01645a42fdef64736f6c63430005100032", + "bytecode": "608060405234801561001057600080fd5b506040516112af3803806112af833981810160405260a081101561003357600080fd5b50805160208201516040830151606084015160809094015192939192909190846001600160a01b0381166100ae576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150600280546001600160a01b039586166001600160a01b03199182161790915560038054948616948216949094179093556004805492851692841692909217909155600580549190931691161790555061114a806101656000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063817a6951116100a2578063bdd1248211610071578063bdd12482146102c5578063bf7e214f146102cd578063c9e9cc4d146102d5578063d8297e44146102dd578063e54c16711461030357610116565b8063817a6951146102725780638da5cb5b1461028f57806395896b7614610297578063a430be6c146102bd57610116565b806359974e38116100e957806359974e38146101c15780635de39934146101f257806360eb3ff21461021857806379ba5097146102445780637a9e5e4b1461024c57610116565b8063060ca2501461011b5780631627540c146101355780634487d3df1461015d57806353a47bb71461019d575b600080fd5b610123610335565b60408051918252519081900360200190f35b61015b6004803603602081101561014b57600080fd5b50356001600160a01b031661033c565b005b61017a6004803603602081101561017357600080fd5b5035610398565b604080516001600160a01b03909316835260208301919091528051918290030190f35b6101a56103cd565b604080516001600160a01b039092168252519081900360200190f35b6101de600480360360208110156101d757600080fd5b50356103dc565b604080519115158252519081900360200190f35b61015b6004803603602081101561020857600080fd5b50356001600160a01b0316610a43565b6101de6004803603604081101561022e57600080fd5b506001600160a01b038135169060200135610a6d565b61015b610c10565b61015b6004803603602081101561026257600080fd5b50356001600160a01b0316610ccc565b61015b6004803603602081101561028857600080fd5b5035610cf6565b6101a5610de1565b61015b600480360360208110156102ad57600080fd5b50356001600160a01b0316610df0565b6101a5610e1a565b6101a5610e29565b6101a5610e38565b6101a5610e47565b61015b600480360360208110156102f357600080fd5b50356001600160a01b0316610e56565b6101de6004803603606081101561031957600080fd5b508035906001600160a01b036020820135169060400135610e80565b6006545b90565b610344610f4c565b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b600681815481106103a557fe5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6001546001600160a01b031681565b600080821161042a576040805162461bcd60e51b81526020600482015260156024820152744e6f7468696e6720746f206469737472696275746560581b604482015290519081900360640190fd5b6002546001600160a01b03163314610489576040805162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697365640000000000000000604482015290519081900360640190fd5b6004546001600160a01b03166104e6576040805162461bcd60e51b815260206004820152601760248201527f526577617264457363726f77206973206e6f7420736574000000000000000000604482015290519081900360640190fd5b6003546001600160a01b0316610543576040805162461bcd60e51b815260206004820152601960248201527f53796e74686574697850726f7879206973206e6f742073657400000000000000604482015290519081900360640190fd5b6005546001600160a01b03166105a0576040805162461bcd60e51b815260206004820152601760248201527f466565506f6f6c50726f7879206973206e6f7420736574000000000000000000604482015290519081900360640190fd5b600354604080516370a0823160e01b8152306004820152905184926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156105ea57600080fd5b505afa1580156105fe573d6000803e3d6000fd5b505050506040513d602081101561061457600080fd5b505110156106535760405162461bcd60e51b81526004018080602001828103825260468152602001806110a16046913960600191505060405180910390fd5b8160005b60065481101561091a5760006001600160a01b03166006828154811061067957fe5b60009182526020909120600290910201546001600160a01b0316148015906106c05750600681815481106106a957fe5b906000526020600020906002020160010154600014155b15610912576106f6600682815481106106d557fe5b90600052602060002090600202016001015483610f9790919063ffffffff16565b600354600680549294506001600160a01b039091169163a9059cbb91908490811061071d57fe5b6000918252602090912060029091020154600680546001600160a01b03909216918590811061074857fe5b9060005260206000209060020201600101546040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156107a957600080fd5b505af11580156107bd573d6000803e3d6000fd5b505050506040513d60208110156107d357600080fd5b50506006805460609190839081106107e757fe5b60009182526020808320600160029093020191909101546040805160248082019390935281518082039093018352604401905290810180516001600160e01b0316633c6b16ab60e01b179052600680549193506060918590811061084757fe5b60009182526020918290206002909102015460405185516001600160a01b0390921692869282918401908083835b602083106108945780518252601f199092019160209182019101610875565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146108f6576040519150601f19603f3d011682016040523d82523d6000602084013e6108fb565b606091505b50915091508161090e5780518060208301fd5b5050505b600101610657565b50600354600480546040805163a9059cbb60e01b81526001600160a01b0392831693810193909352602483018590525192169163a9059cbb916044808201926020929091908290030181600087803b15801561097557600080fd5b505af1158015610989573d6000803e3d6000fd5b505050506040513d602081101561099f57600080fd5b50506005546040805163fd1f498d60e01b81526004810184905290516001600160a01b039092169163fd1f498d9160248082019260009290919082900301818387803b1580156109ee57600080fd5b505af1158015610a02573d6000803e3d6000fd5b50506040805186815290517f6d1c76d614228b523baa4dcd9539e2c713b54ff4ab3ff2d1627e7f6cd32be4429350908190036020019150a150600192915050565b610a4b610f4c565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a77610f4c565b6001600160a01b038316610ad2576040805162461bcd60e51b815260206004820152601760248201527f43616e74206164642061207a65726f2061646472657373000000000000000000604482015290519081900360640190fd5b81610b1d576040805162461bcd60e51b815260206004820152601660248201527510d85b9d081859190818481e995c9bc8185b5bdd5b9d60521b604482015290519081900360640190fd5b610b25610ff4565b506040805180820182526001600160a01b03858116808352602080840187815260068054600181018255600082905286517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600290920291820180546001600160a01b031916919097161790955590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40909401939093559154845160001991909101815291820152808301859052915190917f08fff3cb767a84a8039ea0f84053799c5cdca0e8efb031eeb6b05b9c174aa208916060918190039190910190a15060019392505050565b6001546001600160a01b03163314610c595760405162461bcd60e51b815260040180806020018281038252603581526020018061106c6035913960400191505060405180910390fd5b600054600154604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b610cd4610f4c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610cfe610f4c565b60065460001901811115610d4f576040805162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b805b60065460001901811015610dc95760068160010181548110610d6f57fe5b906000526020600020906002020160068281548110610d8a57fe5b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b039092169190911781556001918201549082015501610d51565b506006805490610ddd90600019830161100b565b5050565b6000546001600160a01b031681565b610df8610f4c565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6003546001600160a01b031681565b6002546001600160a01b031681565b6005546001600160a01b031681565b610e5e610f4c565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000610e8a610f4c565b60065460001901841115610edb576040805162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b8260068581548110610ee957fe5b906000526020600020906002020160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508160068581548110610f2c57fe5b906000526020600020906002020160010181905550600190509392505050565b6000546001600160a01b03163314610f955760405162461bcd60e51b815260040180806020018281038252602f8152602001806110e7602f913960400191505060405180910390fd5b565b600082821115610fee576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080518082019091526000808252602082015290565b81548183558181111561103757600202816002028360005260206000209182019101611037919061103c565b505050565b61033991905b808211156110675780546001600160a01b031916815560006001820155600201611042565b509056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e65727368697052657761726473446973747269627574696f6e20636f6e747261637420646f6573206e6f74206861766520656e6f75676820746f6b656e7320746f20646973747269627574654f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6ea265627a7a72315820b2185e5d0818c5f13b08ecd03e107749f8fe6a7e3fe2f86098180500dcbc252d64736f6c63430005100032", "abi": [ { "inputs": [ @@ -17422,10 +17422,10 @@ } ], "source": { - "keccak256": "0xc79e92b862775aca623f79001f3de3f19b910d892ac16293fda30c0b5f0e6dbb", + "keccak256": "0x71b5addb5aaa4ce3ff21f68a5795b3ad75d5aa4f549fca5f0ed999a89580af0b", "urls": [ - "bzz-raw://ddce5fa54eb86003886794a7dd0c5e69aa128c52f7e56167e67cfd87a8dbe776", - "dweb:/ipfs/QmNoz2SA9RzUMjQmqzxSFJ3u4dEzbBUB7GSbnmDu8CpWKs" + "bzz-raw://370ffa5626cd06f412882a188502ced2d2282329ef593f4cbea94b1fe3ec4890", + "dweb:/ipfs/QmRrqZKkjFGsvPrXgbyELhk3EtfTkJDveSzSRBuCqtADUx" ] }, "metadata": { @@ -17447,10 +17447,10 @@ }, "sources": { "RewardsDistribution.sol": { - "keccak256": "0xc79e92b862775aca623f79001f3de3f19b910d892ac16293fda30c0b5f0e6dbb", + "keccak256": "0x71b5addb5aaa4ce3ff21f68a5795b3ad75d5aa4f549fca5f0ed999a89580af0b", "urls": [ - "bzz-raw://ddce5fa54eb86003886794a7dd0c5e69aa128c52f7e56167e67cfd87a8dbe776", - "dweb:/ipfs/QmNoz2SA9RzUMjQmqzxSFJ3u4dEzbBUB7GSbnmDu8CpWKs" + "bzz-raw://370ffa5626cd06f412882a188502ced2d2282329ef593f4cbea94b1fe3ec4890", + "dweb:/ipfs/QmRrqZKkjFGsvPrXgbyELhk3EtfTkJDveSzSRBuCqtADUx" ] } }, diff --git a/publish/deployed/mainnet-ovm/perpsv2-markets.json b/publish/deployed/mainnet-ovm/perpsv2-markets.json index 4634d8d275..9db8c8ec52 100644 --- a/publish/deployed/mainnet-ovm/perpsv2-markets.json +++ b/publish/deployed/mainnet-ovm/perpsv2-markets.json @@ -15,7 +15,7 @@ "offchainDelayedOrderMinAge": "1", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "55", - "maxMarketValue": "31000", + "maxMarketValue": "36000", "maxFundingVelocity": "9", "skewScale": "1000000", "offchainPriceDivergence": "0.10", @@ -73,7 +73,7 @@ "maxLeverage": "27.5", "maxMarketValue": "20000", "maxFundingVelocity": "36", - "skewScale": "850000", + "skewScale": "637500", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocBNBPERP", @@ -101,7 +101,7 @@ "maxLeverage": "27.5", "maxMarketValue": "600000", "maxFundingVelocity": "36", - "skewScale": "20000000", + "skewScale": "15000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocLINKPERP", @@ -127,9 +127,9 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "220000", + "maxMarketValue": "300000", "maxFundingVelocity": "36", - "skewScale": "7500000", + "skewScale": "5625000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocSOLPERP", @@ -157,7 +157,7 @@ "maxLeverage": "27.5", "maxMarketValue": "8000000", "maxFundingVelocity": "36", - "skewScale": "200000000", + "skewScale": "150000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocMATICPERP", @@ -185,7 +185,7 @@ "maxLeverage": "27.5", "maxMarketValue": "50000000", "maxFundingVelocity": "36", - "skewScale": "2500000000", + "skewScale": "1875000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocDOGEPERP", @@ -213,7 +213,7 @@ "maxLeverage": "27.5", "maxMarketValue": "6000000", "maxFundingVelocity": "36", - "skewScale": "150000000", + "skewScale": "225000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocFTMPERP", @@ -241,7 +241,7 @@ "maxLeverage": "27.5", "maxMarketValue": "100000", "maxFundingVelocity": "36", - "skewScale": "7500000", + "skewScale": "5625000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocATOMPERP", @@ -269,7 +269,7 @@ "maxLeverage": "27.5", "maxMarketValue": "160000", "maxFundingVelocity": "36", - "skewScale": "5000000", + "skewScale": "3750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocAVAXPERP", @@ -297,7 +297,7 @@ "maxLeverage": "27.5", "maxMarketValue": "4600000", "maxFundingVelocity": "36", - "skewScale": "75000000", + "skewScale": "56250000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocARBPERP", @@ -325,7 +325,7 @@ "maxLeverage": "27.5", "maxMarketValue": "4100000", "maxFundingVelocity": "36", - "skewScale": "60000000", + "skewScale": "45000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocOPPERP", @@ -353,7 +353,7 @@ "maxLeverage": "27.5", "maxMarketValue": "400000", "maxFundingVelocity": "36", - "skewScale": "30000000", + "skewScale": "25000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocAPEPERP", @@ -381,7 +381,7 @@ "maxLeverage": "27.5", "maxMarketValue": "1000000", "maxFundingVelocity": "36", - "skewScale": "25000000", + "skewScale": "18750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocNEARPERP", @@ -409,7 +409,7 @@ "maxLeverage": "27.5", "maxMarketValue": "100000", "maxFundingVelocity": "36", - "skewScale": "5000000", + "skewScale": "3750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocAXSPERP", @@ -437,7 +437,7 @@ "maxLeverage": "27.5", "maxMarketValue": "100000", "maxFundingVelocity": "36", - "skewScale": "8000000", + "skewScale": "6000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocUNIPERP", @@ -465,7 +465,7 @@ "maxLeverage": "27.5", "maxMarketValue": "1600000", "maxFundingVelocity": "36", - "skewScale": "30000000", + "skewScale": "22500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocDYDXPERP", @@ -493,7 +493,7 @@ "maxLeverage": "27.5", "maxMarketValue": "20000", "maxFundingVelocity": "36", - "skewScale": "600000", + "skewScale": "337500", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocAAVEPERP", @@ -521,7 +521,7 @@ "maxLeverage": "27.5", "maxMarketValue": "400000", "maxFundingVelocity": "36", - "skewScale": "10000000", + "skewScale": "15000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocFLOWPERP", @@ -689,7 +689,7 @@ "maxLeverage": "27.5", "maxMarketValue": "32000", "maxFundingVelocity": "36", - "skewScale": "2250000", + "skewScale": "1687500", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocLTCPERP", @@ -717,7 +717,7 @@ "maxLeverage": "27.5", "maxMarketValue": "7500000", "maxFundingVelocity": "36", - "skewScale": "400000000", + "skewScale": "300000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocADAPERP", @@ -745,7 +745,7 @@ "maxLeverage": "27.5", "maxMarketValue": "250000", "maxFundingVelocity": "36", - "skewScale": "8100000", + "skewScale": "6075000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocAPTPERP", @@ -773,7 +773,7 @@ "maxLeverage": "27.5", "maxMarketValue": "225000", "maxFundingVelocity": "36", - "skewScale": "17000000", + "skewScale": "12750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocFILPERP", @@ -801,7 +801,7 @@ "maxLeverage": "27.5", "maxMarketValue": "75000000000", "maxFundingVelocity": "36", - "skewScale": "10000000000000", + "skewScale": "7500000000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocSHIBPERP", @@ -827,9 +827,9 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "200000", + "maxMarketValue": "400000", "maxFundingVelocity": "36", - "skewScale": "19000000", + "skewScale": "14250000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocLDOPERP", @@ -857,7 +857,7 @@ "maxLeverage": "27.5", "maxMarketValue": "12000", "maxFundingVelocity": "36", - "skewScale": "500000", + "skewScale": "375000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocBCHPERP", @@ -885,7 +885,7 @@ "maxLeverage": "27.5", "maxMarketValue": "6000000", "maxFundingVelocity": "36", - "skewScale": "100000000", + "skewScale": "75000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocCRVPERP", @@ -911,9 +911,9 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "7000", + "maxMarketValue": "27720", "maxFundingVelocity": "36", - "skewScale": "112500", + "skewScale": "60000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocGMXPERP", @@ -941,7 +941,7 @@ "maxLeverage": "27.5", "maxMarketValue": "2400000000000", "maxFundingVelocity": "36", - "skewScale": "30000000000000", + "skewScale": "22500000000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocPEPEPERP", @@ -969,7 +969,7 @@ "maxLeverage": "27.5", "maxMarketValue": "1000000", "maxFundingVelocity": "36", - "skewScale": "90000000", + "skewScale": "67500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocSUIPERP", @@ -997,7 +997,7 @@ "maxLeverage": "27.5", "maxMarketValue": "3000000", "maxFundingVelocity": "36", - "skewScale": "34000000", + "skewScale": "25500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocBLURPERP", @@ -1025,7 +1025,7 @@ "maxLeverage": "27.5", "maxMarketValue": "4250000", "maxFundingVelocity": "36", - "skewScale": "500000000", + "skewScale": "375000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocXRPPERP", @@ -1053,7 +1053,7 @@ "maxLeverage": "27.5", "maxMarketValue": "300000", "maxFundingVelocity": "36", - "skewScale": "20000000", + "skewScale": "15000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocDOTPERP", @@ -1081,7 +1081,7 @@ "maxLeverage": "27.5", "maxMarketValue": "15000000", "maxFundingVelocity": "36", - "skewScale": "1000000000", + "skewScale": "750000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocTRXPERP", @@ -1137,7 +1137,7 @@ "maxLeverage": "27.5", "maxMarketValue": "200000", "maxFundingVelocity": "36", - "skewScale": "3800000", + "skewScale": "2850000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocINJPERP", @@ -1221,7 +1221,7 @@ "maxLeverage": "27.5", "maxMarketValue": "55000", "maxFundingVelocity": "36", - "skewScale": "4000000", + "skewScale": "3000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "1.5625", "offchainMarketKey": "ocETCPERP", @@ -1249,7 +1249,7 @@ "maxLeverage": "27.5", "maxMarketValue": "15000", "maxFundingVelocity": "36", - "skewScale": "860000", + "skewScale": "483750", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocCOMPPERP", @@ -1275,9 +1275,9 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "1500", + "maxMarketValue": "2000", "maxFundingVelocity": "36", - "skewScale": "48000", + "skewScale": "36000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocMKRPERP", @@ -1305,7 +1305,7 @@ "maxLeverage": "27.5", "maxMarketValue": "5000", "maxFundingVelocity": "36", - "skewScale": "255000", + "skewScale": "191250", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocXMRPERP", @@ -1333,7 +1333,7 @@ "maxLeverage": "27.5", "maxMarketValue": "75", "maxFundingVelocity": "36", - "skewScale": "1500", + "skewScale": "1125", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocYFIPERP", @@ -1361,7 +1361,7 @@ "maxLeverage": "27.5", "maxMarketValue": "500000", "maxFundingVelocity": "36", - "skewScale": "21000000", + "skewScale": "15750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocMAVPERP", @@ -1417,7 +1417,7 @@ "maxLeverage": "27.5", "maxMarketValue": "650000", "maxFundingVelocity": "36", - "skewScale": "13000000", + "skewScale": "26000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocWLDPERP", @@ -1473,15 +1473,15 @@ "maxLeverage": "27.5", "maxMarketValue": "125000", "maxFundingVelocity": "36", - "skewScale": "1500000", + "skewScale": "1125000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocBALPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sFXSPERP", @@ -1499,17 +1499,17 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "40000", + "maxMarketValue": "80000", "maxFundingVelocity": "36", - "skewScale": "1250000", + "skewScale": "937500", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocFXSPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sKNCPERP", @@ -1529,15 +1529,15 @@ "maxLeverage": "27.5", "maxMarketValue": "750000", "maxFundingVelocity": "36", - "skewScale": "36000000", + "skewScale": "13500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocKNCPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sRNDRPERP", @@ -1557,15 +1557,15 @@ "maxLeverage": "27.5", "maxMarketValue": "200000", "maxFundingVelocity": "36", - "skewScale": "10000000", + "skewScale": "7500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocRNDRPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sONEPERP", @@ -1585,15 +1585,15 @@ "maxLeverage": "27.5", "maxMarketValue": "20000000", "maxFundingVelocity": "36", - "skewScale": "750000000", + "skewScale": "562500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocONEPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sPERPPERP", @@ -1613,15 +1613,15 @@ "maxLeverage": "27.5", "maxMarketValue": "300000", "maxFundingVelocity": "36", - "skewScale": "10000000", + "skewScale": "18750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocPERPPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sZILPERP", @@ -1641,15 +1641,15 @@ "maxLeverage": "27.5", "maxMarketValue": "25000000", "maxFundingVelocity": "36", - "skewScale": "950000000", + "skewScale": "712500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocZILPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { @@ -1668,17 +1668,17 @@ "offchainDelayedOrderMinAge": "2", "offchainDelayedOrderMaxAge": "60", "maxLeverage": "27.5", - "maxMarketValue": "400000", + "maxMarketValue": "800000", "maxFundingVelocity": "36", - "skewScale": "34000000", + "skewScale": "12750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocRUNEPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sSUSHIPERP", @@ -1698,15 +1698,15 @@ "maxLeverage": "27.5", "maxMarketValue": "500000", "maxFundingVelocity": "36", - "skewScale": "21000000", + "skewScale": "15750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocSUSHIPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sZECPERP", @@ -1726,15 +1726,15 @@ "maxLeverage": "27.5", "maxMarketValue": "15000", "maxFundingVelocity": "36", - "skewScale": "780000", + "skewScale": "585000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocZECPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sXTZPERP", @@ -1754,15 +1754,15 @@ "maxLeverage": "27.5", "maxMarketValue": "400000", "maxFundingVelocity": "36", - "skewScale": "19000000", + "skewScale": "14250000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocXTZPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sUMAPERP", @@ -1782,15 +1782,15 @@ "maxLeverage": "27.5", "maxMarketValue": "40000", "maxFundingVelocity": "36", - "skewScale": "3700000", + "skewScale": "2775000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocUMAPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sENJPERP", @@ -1810,15 +1810,15 @@ "maxLeverage": "27.5", "maxMarketValue": "1250000", "maxFundingVelocity": "36", - "skewScale": "46000000", + "skewScale": "34500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocENJPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sICPPERP", @@ -1838,15 +1838,15 @@ "maxLeverage": "27.5", "maxMarketValue": "75000", "maxFundingVelocity": "36", - "skewScale": "4000000", + "skewScale": "3000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocICPPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sXLMPERP", @@ -1866,15 +1866,15 @@ "maxLeverage": "27.5", "maxMarketValue": "4500000", "maxFundingVelocity": "36", - "skewScale": "333000000", + "skewScale": "249750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocXLMPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "s1INCHPERP", @@ -1894,15 +1894,15 @@ "maxLeverage": "27.5", "maxMarketValue": "1250000", "maxFundingVelocity": "36", - "skewScale": "60000000", + "skewScale": "45000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "oc1INCHPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sEOSPERP", @@ -1922,15 +1922,15 @@ "maxLeverage": "27.5", "maxMarketValue": "1000000", "maxFundingVelocity": "36", - "skewScale": "128000000", + "skewScale": "96000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocEOSPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sCELOPERP", @@ -1950,15 +1950,15 @@ "maxLeverage": "27.5", "maxMarketValue": "1250000", "maxFundingVelocity": "36", - "skewScale": "55000000", + "skewScale": "41250000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocCELOPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sALGOPERP", @@ -1978,15 +1978,15 @@ "maxLeverage": "27.5", "maxMarketValue": "6000000", "maxFundingVelocity": "36", - "skewScale": "277000000", + "skewScale": "207750000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocALGOPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sZRXPERP", @@ -2006,15 +2006,15 @@ "maxLeverage": "27.5", "maxMarketValue": "2250000", "maxFundingVelocity": "36", - "skewScale": "40000000", + "skewScale": "30000000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocZRXPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sSEIPERP", @@ -2034,15 +2034,15 @@ "maxLeverage": "27.5", "maxMarketValue": "3000000", "maxFundingVelocity": "36", - "skewScale": "142000000", + "skewScale": "106500000", "offchainPriceDivergence": "0.10", "liquidationPremiumMultiplier": "3", "offchainMarketKey": "ocSEIPERP", "liquidationBufferRatio": "0.0150", "maxPD": "0.0024", "maxLiquidationDelta": "0.0012", - "paused": true, - "offchainPaused": true + "paused": false, + "offchainPaused": false }, { "marketKey": "sSTETHETHPERP", @@ -2051,7 +2051,7 @@ "takerFee": "0.3", "takerFeeDelayedOrder": "0.3", "makerFeeDelayedOrder": "0.3", - "takerFeeOffchainDelayedOrder": "0.00015", + "takerFeeOffchainDelayedOrder": "0.00020", "makerFeeOffchainDelayedOrder": "0", "nextPriceConfirmWindow": "2", "delayedOrderConfirmWindow": "120", @@ -2067,9 +2067,9 @@ "liquidationPremiumMultiplier": "1", "offchainMarketKey": "ocSTETHETHPERP", "liquidationBufferRatio": "0.0100", - "maxPD": "0.0003", - "maxLiquidationDelta": "0.00015", - "paused": true, - "offchainPaused": true + "maxPD": "0.0004", + "maxLiquidationDelta": "0.0002", + "paused": false, + "offchainPaused": false } ] diff --git a/publish/releases.json b/publish/releases.json index f3016ac9d8..40965a7c59 100644 --- a/publish/releases.json +++ b/publish/releases.json @@ -985,6 +985,11 @@ "layer": "ovm", "sources": [], "released": "ovm" + }, + { + "sip": 2036, + "layer": "base", + "sources": ["RewardsDistribution"] } ], "releases": [ @@ -1861,6 +1866,14 @@ }, "sips": [2029, 2031, 2032, 2033], "released": true + }, + { + "name": "Phecda", + "version": { + "major": 2, + "minor": 96 + }, + "sips": [2036] } ] }