From 3ed07928a269eb2e05c3f65a58b702d993630c64 Mon Sep 17 00:00:00 2001 From: Korrrba Date: Wed, 24 Jan 2024 11:18:36 +0100 Subject: [PATCH] feat: storage check api limit qa --- .../contracts/src/dollar/interfaces/IUbiquityDollarToken.sol | 2 ++ packages/contracts/src/dollar/libraries/AddressUtils.sol | 2 ++ packages/contracts/src/dollar/libraries/LibCollectableDust.sol | 1 + packages/contracts/src/dollar/libraries/LibStaking.sol | 1 + packages/contracts/src/dollar/libraries/LibTWAPOracle.sol | 1 + 5 files changed, 7 insertions(+) diff --git a/packages/contracts/src/dollar/interfaces/IUbiquityDollarToken.sol b/packages/contracts/src/dollar/interfaces/IUbiquityDollarToken.sol index 60ed9bc66..77cb91d5f 100644 --- a/packages/contracts/src/dollar/interfaces/IUbiquityDollarToken.sol +++ b/packages/contracts/src/dollar/interfaces/IUbiquityDollarToken.sol @@ -13,6 +13,8 @@ interface IUbiquityDollarToken is IERC20Ubiquity { address indexed _incentiveContract ); + // modify file outside libraries + /** * @notice Sets `incentive` contract for `account` * @notice Incentive contracts are applied on Dollar transfers: diff --git a/packages/contracts/src/dollar/libraries/AddressUtils.sol b/packages/contracts/src/dollar/libraries/AddressUtils.sol index 18e4b0a13..be4b72cc9 100644 --- a/packages/contracts/src/dollar/libraries/AddressUtils.sol +++ b/packages/contracts/src/dollar/libraries/AddressUtils.sol @@ -11,6 +11,8 @@ import {UintUtils} from "./UintUtils.sol"; library AddressUtils { using UintUtils for uint256; + // adding comment to see if it is picked up + /// @notice Thrown on insufficient balance error AddressUtils__InsufficientBalance(); diff --git a/packages/contracts/src/dollar/libraries/LibCollectableDust.sol b/packages/contracts/src/dollar/libraries/LibCollectableDust.sol index b0864e228..d5a6ca05f 100644 --- a/packages/contracts/src/dollar/libraries/LibCollectableDust.sol +++ b/packages/contracts/src/dollar/libraries/LibCollectableDust.sol @@ -29,6 +29,7 @@ library LibCollectableDust { /// @notice Struct used as a storage for the current library struct Tokens { EnumerableSet.AddressSet protocolTokens; + uint256 findMe2; } /// @notice Storage slot used to store data for this library diff --git a/packages/contracts/src/dollar/libraries/LibStaking.sol b/packages/contracts/src/dollar/libraries/LibStaking.sol index d8e5b93b3..5b8deb0dc 100644 --- a/packages/contracts/src/dollar/libraries/LibStaking.sol +++ b/packages/contracts/src/dollar/libraries/LibStaking.sol @@ -60,6 +60,7 @@ library LibStaking { /// @notice Struct used as a storage for the current library struct StakingData { uint256 stakingDiscountMultiplier; + string findMe; uint256 blockCountInAWeek; uint256 accLpRewardPerShare; uint256 lpRewards; diff --git a/packages/contracts/src/dollar/libraries/LibTWAPOracle.sol b/packages/contracts/src/dollar/libraries/LibTWAPOracle.sol index 03b642b22..86ccd4c8b 100644 --- a/packages/contracts/src/dollar/libraries/LibTWAPOracle.sol +++ b/packages/contracts/src/dollar/libraries/LibTWAPOracle.sol @@ -11,6 +11,7 @@ library LibTWAPOracle { /// @notice Struct used as a storage for this library struct TWAPOracleStorage { address pool; // curve metapool address : Ubiquity Dollar <=> 3 Pool + uint256 findMe3; // address token0; will always be address(this) address token1; // curve 3pool LP token address uint256 price0Average;