ArrakisV2Resolver

Helper contract that resolves payloads for ArrakisV2 vault functions

Constant/Immutable Properties

nametypedescription

factory

address

UniswapV3Factory contract address

helper

address

ArrakisV2Helper contract address

Structs

RangeWeight

nametypedescription

range

Range

range to deposit liquidity into (see ArrakisV2 structs)

weight

uint256

relative weight to deposit in this range, denoted in basis points (an array of weights must sum to 10000 or less)

External Functions

getMintAmounts

resolve ArrakisV2.mint function mintAmount parameter, also returns expected amount0 and amount1 to be transferred to the vault on mint call.

parameters :

nametypedescription

vaultV2

address

ArrakisV2 vault address

amount0Max

uint256

Maximum amount of token0 willing to deposit

amount1Max

uint256

Maximum amount of token1 willing to deposit

returns :

nametypedescription

amount0

uint256

Expected amount of token0 to deposit

amount1

uint256

Expected amount of token1 to deposit

mintAmount

uint256

amount of ArrakisV2 shares to mint

standardRebalance

resolve ArrakisV2.rebalance function rebalance parameters, for a canonical rebalance without swapping.

parameters :

nametypedescription

rangeWeights

RangeWeight[]

Relative weights for distributing leftover liquidity into ranges

vaultV2

address

ArrakisV2 vault address

returns :

nametypedescription

rebalance

Rebalance

Struct containing all rebalance information (see ArrakisV2 structs)

Last updated