Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
olegkron committed Dec 2, 2024
1 parent 543aef5 commit aab1dd8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions contracts/Libraries/ChildPoolStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ contract ChildPoolStorage {
uint64[] s_poolChainSelectors;

///@notice Mapping to keep track of allowed pool senders
mapping(uint64 chainSelector => mapping(address conceroContract => bool))
mapping(uint64 chainSelector => mapping(address conceroContract => bool isAllowed))
public s_isSenderContractAllowed;
///@notice Mapping to keep track of valid pools to transfer in case of liquidation or rebalance
mapping(uint64 chainSelector => address pools) public s_dstPoolByChainSelector;
mapping(bytes32 requestId => bool) public s_distributeLiquidityRequestProcessed;
mapping(uint64 chainSelector => address pool) public s_dstPoolByChainSelector;
mapping(bytes32 requestId => bool isProcessed) public s_distributeLiquidityRequestProcessed;
//@notice Prevents CLF from triggering the same withdrawal request more than once
mapping(bytes32 withdrawalId => bool) public s_isWithdrawalRequestTriggered;
mapping(bytes32 withdrawalId => bool isTriggered) public s_isWithdrawalRequestTriggered;
}
1 change: 1 addition & 0 deletions contracts/Libraries/InfraStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol
abstract contract InfraStorage is ReentrancyGuard, IInfraStorage {
/* STATE VARIABLES */
///@notice variable to store the Chainlink Function DON Slot ID
//TODO: these 5 need to be moved to immutable and deprecated.
uint8 public s_donHostedSecretsSlotId;
///@notice variable to store the Chainlink Function DON Secret Version
uint64 public s_donHostedSecretsVersion;
Expand Down
3 changes: 2 additions & 1 deletion contracts/Libraries/ParentPoolStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ contract ParentPoolStorage {
///@notice variable to store the amount that will be temporary used by Chainlink Functions
uint256 public s_loansInUse;
///@notice variable to store the Chainlink Function DON Slot ID
//TODO: these two need to be moved to immutable and deprecated.
uint8 internal s_donHostedSecretsSlotId;
///@notice variable to store the Chainlink Function DON Secret Version
uint64 internal s_donHostedSecretsVersion;
Expand Down Expand Up @@ -61,8 +62,8 @@ contract ParentPoolStorage {

IParentPool.DepositOnTheWay[150] internal s_depositsOnTheWayArray;

//TODO: these two need to be moved to immutable and deprecated.
bytes32 internal s_collectLiquidityJsCodeHashSum;

bytes32 internal s_distributeLiquidityJsCodeHashSum;

///@notice array to store the withdraw requests of users
Expand Down

0 comments on commit aab1dd8

Please sign in to comment.