1
1
// SPDX-License-Identifier: UNLICENSED
2
- pragma solidity >= 0.4.22 < 0.9.0 ;
2
+ pragma solidity >= 0.8.11 < 0.9.0 ;
3
3
4
4
// @custom:artifact @synthetixio/core-contracts/contracts/ownership/OwnableStorage.sol:OwnableStorage
5
5
library OwnableStorage {
@@ -694,7 +694,7 @@ library GlobalPerpsMarketConfiguration {
694
694
struct Data {
695
695
address feeCollector;
696
696
mapping (address => uint256 ) referrerShare;
697
- mapping (uint128 => uint256 ) maxCollateralAmounts ;
697
+ mapping (uint128 => uint256 ) __unused_1 ;
698
698
uint128 [] synthDeductionPriority;
699
699
uint256 minKeeperRewardUsd;
700
700
uint256 maxKeeperRewardUsd;
@@ -706,6 +706,8 @@ library GlobalPerpsMarketConfiguration {
706
706
uint128 lowUtilizationInterestRateGradient;
707
707
uint128 interestRateGradientBreakpoint;
708
708
uint128 highUtilizationInterestRateGradient;
709
+ uint128 collateralLiquidateRewardRatioD18;
710
+ address rewardDistributorImplementation;
709
711
}
710
712
function load () internal pure returns (Data storage globalMarketConfig ) {
711
713
bytes32 s = _SLOT_GLOBAL_PERPS_MARKET_CONFIGURATION;
@@ -792,6 +794,7 @@ library PerpsAccount {
792
794
uint128 id;
793
795
SetUtil.UintSet activeCollateralTypes;
794
796
SetUtil.UintSet openPositionMarketIds;
797
+ uint256 debt;
795
798
}
796
799
function load (uint128 id ) internal pure returns (Data storage account ) {
797
800
bytes32 s = keccak256 (abi.encode ("io.synthetix.perps-market.Account " , id));
@@ -889,6 +892,7 @@ library PerpsMarketFactory {
889
892
address spotMarket;
890
893
uint128 perpsMarketId;
891
894
string name;
895
+ address liquidationAssetManager;
892
896
}
893
897
function load () internal pure returns (Data storage perpsMarketFactory ) {
894
898
bytes32 s = _SLOT_PERPS_MARKET_FACTORY;
@@ -961,8 +965,3 @@ library Flags {
961
965
bytes32 public constant PERPS_SYSTEM = "perpsSystem " ;
962
966
bytes32 public constant CREATE_MARKET = "createMarket " ;
963
967
}
964
-
965
- // @custom:artifact hardhat/console.sol:console
966
- library console {
967
- address internal constant CONSOLE_ADDRESS = 0x000000000000000000636F6e736F6c652e6c6f67 ;
968
- }
0 commit comments