UniswapV4SingletonActions
Inherits: Masks, DeltaErrors
Everything Uniswap V4 & Balancer V3, the major upgrades for DEXs in 2025
State Variables
TAKE
bytes32 private constant TAKE = 0x0b0d9c0900000000000000000000000000000000000000000000000000000000
SETTLE
bytes32 private constant SETTLE = 0x11da60b400000000000000000000000000000000000000000000000000000000
SYNC
bytes32 private constant SYNC = 0xa584119400000000000000000000000000000000000000000000000000000000
Functions
_unoV4Take
Executes Uniswap V4 take operation
Takes tokens from Uniswap V4 pool manager
Note: calldata-offset-table:
| Offset | Length (bytes) | Description |
|---|---|---|
| 0 | 20 | manager |
| 20 | 20 | asset |
| 40 | 20 | receiver |
| 60 | 16 | amount |
function _unoV4Take(uint256 currentOffset) internal returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
currentOffset |
uint256 |
Current position in the calldata |
Returns
| Name | Type | Description |
|---|---|---|
<none> |
uint256 |
Updated calldata offset after processing |
_unoV4Sync
Executes Uniswap V4 sync operation
Syncs token balance in Uniswap V4 pool manager
Note: calldata-offset-table:
| Offset | Length (bytes) | Description |
|---|---|---|
| 0 | 20 | manager |
| 20 | 20 | asset |
function _unoV4Sync(uint256 currentOffset) internal returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
currentOffset |
uint256 |
Current position in the calldata |
Returns
| Name | Type | Description |
|---|---|---|
<none> |
uint256 |
Updated calldata offset after processing |
_unoV4Settle
Executes Uniswap V4 settle operation
Settles flash loan debt with native tokens
Note: calldata-offset-table:
| Offset | Length (bytes) | Description |
|---|---|---|
| 0 | 20 | manager |
| 20 | 16 | nativeAmount |
function _unoV4Settle(uint256 currentOffset) internal returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
currentOffset |
uint256 |
Current position in the calldata |
Returns
| Name | Type | Description |
|---|---|---|
<none> |
uint256 |
Updated calldata offset after processing |