Comment on page

ArrakisV2Resolver

Helper contract that resolves payloads for ArrakisV2 vault functions

Constant/Immutable Properties

name
type
description
factory
address
UniswapV3Factory contract address
helper
address
ArrakisV2Helper contract address

Structs

RangeWeight

name
type
description
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 :

name
type
description
vaultV2
address
ArrakisV2 vault address
amount0Max
uint256
Maximum amount of token0 willing to deposit
amount1Max
uint256
Maximum amount of token1 willing to deposit

returns :

name
type
description
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 :

name
type
description
rangeWeights
RangeWeight[]
Relative weights for distributing leftover liquidity into ranges
vaultV2
address
ArrakisV2 vault address

returns :

name
type
description
rebalance
Rebalance
Struct containing all rebalance information (see ArrakisV2 structs)