Skip to content

Commit ef8f741

Browse files
authored
Merge pull request #12 from KumaCrypto/clean-up-codebase
Clean up codebase
2 parents 98ca8e9 + 94d1b02 commit ef8f741

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

src/allocators/HybridAllocator.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
pragma solidity ^0.8.27;
44

55
import {SafeTransferLib} from '@solady/utils/SafeTransferLib.sol';
6-
import {BatchCompact, LOCK_TYPEHASH, Lock} from '@uniswap/the-compact/types/EIP712Types.sol';
6+
import {Lock} from '@uniswap/the-compact/types/EIP712Types.sol';
77

88
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
99

1010
import {AllocatorLib as AL} from './lib/AllocatorLib.sol';
11-
import {ERC6909} from '@solady/tokens/ERC6909.sol';
1211
import {IAllocator} from '@uniswap/the-compact/interfaces/IAllocator.sol';
1312
import {ITheCompact} from '@uniswap/the-compact/interfaces/ITheCompact.sol';
1413
import {IHybridAllocator} from 'src/interfaces/IHybridAllocator.sol';
@@ -17,8 +16,6 @@ contract HybridAllocator is IHybridAllocator {
1716
uint96 public immutable ALLOCATOR_ID;
1817
ITheCompact internal immutable _COMPACT;
1918
bytes32 internal immutable _COMPACT_DOMAIN_SEPARATOR;
20-
// bytes4(keccak256('prepareAllocation(address,uint256[2][],address,uint256,bytes32,bytes32,bytes)'));
21-
bytes4 public constant PREPARE_ALLOCATION_SELECTOR = 0x7ef6597a;
2219

2320
mapping(bytes32 => bool) internal claims;
2421

src/allocators/OnChainAllocator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {ERC6909} from '@solady/tokens/ERC6909.sol';
1010
import {SafeTransferLib} from '@solady/utils/SafeTransferLib.sol';
1111
import {IAllocator} from '@uniswap/the-compact/interfaces/IAllocator.sol';
1212
import {ITheCompact} from '@uniswap/the-compact/interfaces/ITheCompact.sol';
13-
import {LOCK_TYPEHASH, Lock} from '@uniswap/the-compact/types/EIP712Types.sol';
13+
import {Lock} from '@uniswap/the-compact/types/EIP712Types.sol';
1414

1515
/// @title OnChainAllocator
1616
/// @notice Allocates tokens deposited into the compact.

src/interfaces/IHybridAllocator.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
pragma solidity ^0.8.27;
33

44
import {IOnChainAllocation} from '@uniswap/the-compact/interfaces/IOnChainAllocation.sol';
5-
import {Lock} from '@uniswap/the-compact/types/EIP712Types.sol';
65

76
interface IHybridAllocator is IOnChainAllocation {
87
error Unsupported();

src/interfaces/IHybridERC7683.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.27;
33

4-
import {Lock} from '@uniswap/the-compact/types/EIP712Types.sol';
54
import {IOriginSettler} from 'src/interfaces/ERC7683/IOriginSettler.sol';
65
import {IHybridAllocator} from 'src/interfaces/IHybridAllocator.sol';
76

0 commit comments

Comments
 (0)