For the complete documentation index, see llms.txt. This page is also available as Markdown.

AUniswapRouter

IUniswapRouter

execute

function execute(bytes commands, bytes[] inputs) external payable

IPermit2Forwarder

permit2

function permit2() external view returns (contract IAllowanceTransfer)

AUniswapRouter

This contract is used as a bridge between a Rigoblock smart pool contract and the Uniswap universal router.

This contract ensures that tokens approvals are set and removed correctly, and that recipient and tokens are validated.

TransactionDeadlinePassed

error TransactionDeadlinePassed()

Thrown when executing commands with an expired deadline

PositionOwner

Thrown when the pool is not the position owner

RecipientNotSmartPoolOrRouter

Thrown when the pool is not the recipient

UniV4PositionsLimitExceeded

Thrown when the pool reached maximum number of liquidity positions

DirectCallNotAllowed

Thrown when a call is made to the adapter directly

LiquidityMintHookError

Thrown when a pool hook can access liquidity deltas

InsufficientNativeBalance

Thrown when the pool does not hold enough balance

PositionDoesNotExist

Thrown when the calldata contains both mint and increase for the same tokenId

constructor

checkDeadline

onlyDelegateCall

requiredVersion

Returns the minimum implementation version to use an external application.

Adapters must implement it when modifying proxy state or storage.

Return Values

Name
Type
Description

[0]

string

String of the minimum supported version.

execute

Executes encoded commands along with provided inputs. Reverts if deadline has expired.

Parameters

Name
Type
Description

commands

bytes

A set of concatenated commands, each 1 byte in length.

inputs

bytes[]

An array of byte strings containing abi encoded inputs for each command.

deadline

uint256

The deadline by which the transaction must be executed.

execute

Executes encoded commands along with provided inputs.

Only mint call has access to state, will revert with direct calls unless recipient is explicitly set to this.

Parameters

Name
Type
Description

commands

bytes

A set of concatenated commands, each 1 byte in length.

inputs

bytes[]

An array of byte strings containing abi encoded inputs for each command.

modifyLiquidities

Is not reentrancy-protected, as will revert in PositionManager.

Delegatecall-only for extra safety, to pervent accidental user liquidity locking.

Parameters

Name
Type
Description

unlockData

bytes

Encoded calldata containing actions to be executed.

deadline

uint256

Deadline of the transaction.

Last updated