From 3adb024bfd54d92bb89675b739ff1b851fa056b1 Mon Sep 17 00:00:00 2001 From: Rubilmax Date: Wed, 30 Nov 2022 17:08:31 +0100 Subject: [PATCH] Uniformized litteral formatting --- contracts/aave-v2/IncentivesVault.sol | 2 +- contracts/aave-v2/MorphoStorage.sol | 4 ++-- contracts/aave-v2/lens/LensStorage.sol | 2 +- contracts/compound/IncentivesVault.sol | 2 +- contracts/compound/MorphoStorage.sol | 2 +- contracts/compound/lens/LensStorage.sol | 2 +- contracts/compound/libraries/InterestRatesModel.sol | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/aave-v2/IncentivesVault.sol b/contracts/aave-v2/IncentivesVault.sol index 534d89f7a..01fb41568 100644 --- a/contracts/aave-v2/IncentivesVault.sol +++ b/contracts/aave-v2/IncentivesVault.sol @@ -20,7 +20,7 @@ contract IncentivesVault is IIncentivesVault, Ownable { /// STORAGE /// - uint256 public constant MAX_BASIS_POINTS = 10_000; + uint256 public constant MAX_BASIS_POINTS = 100_00; IMorpho public immutable morpho; // The address of the main Morpho contract. ERC20 public immutable rewardToken; // The reward token. diff --git a/contracts/aave-v2/MorphoStorage.sol b/contracts/aave-v2/MorphoStorage.sol index b5a476b34..3138607b4 100644 --- a/contracts/aave-v2/MorphoStorage.sol +++ b/contracts/aave-v2/MorphoStorage.sol @@ -23,8 +23,8 @@ abstract contract MorphoStorage is OwnableUpgradeable, ReentrancyGuardUpgradeabl uint8 public constant NO_REFERRAL_CODE = 0; uint8 public constant VARIABLE_INTEREST_MODE = 2; - uint16 public constant MAX_BASIS_POINTS = 10_000; // 100% in basis points. - uint256 public constant DEFAULT_LIQUIDATION_CLOSE_FACTOR = 5_000; // 50% in basis points. + uint16 public constant MAX_BASIS_POINTS = 100_00; // 100% in basis points. + uint256 public constant DEFAULT_LIQUIDATION_CLOSE_FACTOR = 50_00; // 50% in basis points. uint256 public constant HEALTH_FACTOR_LIQUIDATION_THRESHOLD = 1e18; // Health factor below which the positions can be liquidated. uint256 public constant MAX_NB_OF_MARKETS = 128; bytes32 public constant BORROWING_MASK = diff --git a/contracts/aave-v2/lens/LensStorage.sol b/contracts/aave-v2/lens/LensStorage.sol index 47309a71a..e306df4e5 100644 --- a/contracts/aave-v2/lens/LensStorage.sol +++ b/contracts/aave-v2/lens/LensStorage.sol @@ -20,7 +20,7 @@ import "../libraries/InterestRatesModel.sol"; abstract contract LensStorage { /// CONSTANTS & IMMUTABLES /// - uint16 public constant DEFAULT_LIQUIDATION_CLOSE_FACTOR = 5_000; // 50% in basis points. + uint16 public constant DEFAULT_LIQUIDATION_CLOSE_FACTOR = 50_00; // 50% in basis points. uint256 public constant HEALTH_FACTOR_LIQUIDATION_THRESHOLD = 1e18; // Health factor below which the positions can be liquidated. address public constant ST_ETH = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84; diff --git a/contracts/compound/IncentivesVault.sol b/contracts/compound/IncentivesVault.sol index 61b97a939..7638bd23e 100644 --- a/contracts/compound/IncentivesVault.sol +++ b/contracts/compound/IncentivesVault.sol @@ -20,7 +20,7 @@ contract IncentivesVault is IIncentivesVault, Ownable { /// STORAGE /// - uint256 public constant MAX_BASIS_POINTS = 10_000; + uint256 public constant MAX_BASIS_POINTS = 100_00; IMorpho public immutable morpho; // The address of the main Morpho contract. IComptroller public immutable comptroller; // Compound's comptroller proxy. diff --git a/contracts/compound/MorphoStorage.sol b/contracts/compound/MorphoStorage.sol index 430ef60f3..d32b8dcb8 100644 --- a/contracts/compound/MorphoStorage.sol +++ b/contracts/compound/MorphoStorage.sol @@ -21,7 +21,7 @@ abstract contract MorphoStorage is OwnableUpgradeable, ReentrancyGuardUpgradeabl /// GLOBAL STORAGE /// uint8 public constant CTOKEN_DECIMALS = 8; // The number of decimals for cToken. - uint16 public constant MAX_BASIS_POINTS = 10_000; // 100% in basis points. + uint16 public constant MAX_BASIS_POINTS = 100_00; // 100% in basis points. uint256 public constant WAD = 1e18; uint256 public maxSortedUsers; // The max number of users to sort in the data structure. diff --git a/contracts/compound/lens/LensStorage.sol b/contracts/compound/lens/LensStorage.sol index 716610ab8..a6a8d8b37 100644 --- a/contracts/compound/lens/LensStorage.sol +++ b/contracts/compound/lens/LensStorage.sol @@ -19,7 +19,7 @@ import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; abstract contract LensStorage is Initializable { /// STORAGE /// - uint256 public constant MAX_BASIS_POINTS = 10_000; // 100% (in basis points). + uint256 public constant MAX_BASIS_POINTS = 100_00; // 100% (in basis points). uint256 public constant WAD = 1e18; IMorpho public morpho; diff --git a/contracts/compound/libraries/InterestRatesModel.sol b/contracts/compound/libraries/InterestRatesModel.sol index a00327c23..8ab560e25 100644 --- a/contracts/compound/libraries/InterestRatesModel.sol +++ b/contracts/compound/libraries/InterestRatesModel.sol @@ -9,7 +9,7 @@ library InterestRatesModel { using PercentageMath for uint256; using CompoundMath for uint256; - uint256 public constant MAX_BASIS_POINTS = 10_000; // 100% (in basis points). + uint256 public constant MAX_BASIS_POINTS = 100_00; // 100% (in basis points). uint256 public constant WAD = 1e18; /// STRUCTS ///