Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/allocators/HybridAllocator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import {IAllocator} from '@uniswap/the-compact/interfaces/IAllocator.sol';
import {ITheCompact} from '@uniswap/the-compact/interfaces/ITheCompact.sol';
import {IHybridAllocator} from 'src/interfaces/IHybridAllocator.sol';

/// @title HybridAllocator
/// @notice Hybrid allocator that can be used with The Compact and the Uniswap Tribunal as the destination settler.
/// @custom:security-contact security@uniswap.org
contract HybridAllocator is IHybridAllocator {
uint96 public immutable ALLOCATOR_ID;
ITheCompact internal immutable _COMPACT;
Expand Down
1 change: 1 addition & 0 deletions src/allocators/OnChainAllocator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {Lock} from '@uniswap/the-compact/types/EIP712Types.sol';
/// @notice Allocates tokens deposited into the compact.
/// @dev The contract ensures tokens can not be double spent by a user in a fully decentralized manner.
/// @dev Users can open orders for themselves or for others by providing a signature or the tokens directly.
/// @custom:security-contact security@uniswap.org
contract OnChainAllocator is IOnChainAllocator {
address public immutable COMPACT_CONTRACT;
bytes32 public immutable COMPACT_DOMAIN_SEPARATOR;
Expand Down
3 changes: 3 additions & 0 deletions src/allocators/lib/AllocatorLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {ERC6909} from '@solady/tokens/ERC6909.sol';
import {ITheCompact} from '@uniswap/the-compact/interfaces/ITheCompact.sol';
import {LOCK_TYPEHASH, Lock} from '@uniswap/the-compact/types/EIP712Types.sol';

/// @title AllocatorLib
/// @notice Library for Allocator contracts that interact with The Compact.
/// @custom:security-contact security@uniswap.org
library AllocatorLib {
// bytes4(keccak256('prepareAllocation(address,uint256[2][],address,uint256,bytes32,bytes32,bytes)'));
bytes4 public constant PREPARE_ALLOCATION_SELECTOR = 0x7ef6597a;
Expand Down