Skip to main content

IUniLiquidityManager.sol

Methods

accruedSteerFees0()

Solidity

function accruedSteerFees0() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

accruedSteerFees1()

Solidity

function accruedSteerFees1() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

accruedStrategistFees0()

Solidity

function accruedStrategistFees0() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

accruedStrategistFees1()

Solidity

function accruedStrategistFees1() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

allowance(address,address)

Solidity

function allowance(address owner, address spender) external view returns (uint256)
Details

Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.

Parameters

NameTypeDescription
owneraddressundefined
spenderaddressundefined

Returns

NameTypeDescription
_0uint256undefined

approve(address,uint256)

Solidity

function approve(address spender, uint256 amount) external nonpayable returns (bool)
Details

Sets amount as the allowance of spender over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.

Parameters

NameTypeDescription
spenderaddressundefined
amountuint256undefined

Returns

NameTypeDescription
_0boolundefined

balanceOf(address)

Solidity

function balanceOf(address account) external view returns (uint256)
Details

Returns the amount of tokens owned by account.

Parameters

NameTypeDescription
accountaddressundefined

Returns

NameTypeDescription
_0uint256undefined

claimLPTokensFromDeposit()

Solidity

function claimLPTokensFromDeposit() external nonpayable returns (uint256)
Details

Given a prior queued deposit, a user may claim their LP tokens here

Returns

NameTypeDescription
_0uint256uint256 amount of LP tokens earned by deposit and claimed

claimWithdrawal()

Solidity

function claimWithdrawal() external nonpayable
Details

given a prior queued withdrawal, a user may claim their withdrawn tokens here

deposit(uint256,uint256,uint256,uint256,address)

Deposits tokens in proportion to the vault's current holdings.

Solidity

function deposit(uint256 amount0Desired, uint256 amount1Desired, uint256 amount0Min, uint256 amount1Min, address to) external nonpayable returns (uint256 shares, uint256 amount0, uint256 amount1)
Details

These tokens sit in the vault and are not used for liquidity on Uniswap until the next rebalance.

Parameters

NameTypeDescription
amount0Desireduint256Max amount of token0 to deposit
amount1Desireduint256Max amount of token1 to deposit
amount0Minuint256Revert if resulting amount0 is less than this
amount1Minuint256Revert if resulting amount1 is less than this
toaddressRecipient of shares

Returns

NameTypeDescription
sharesuint256Number of shares minted
amount0uint256Amount of token0 deposited
amount1uint256Amount of token1 deposited

getLPTValue()

Solidity

function getLPTValue() external view returns (uint256, uint256)

Returns

NameTypeDescription
_0uint256undefined
_1uint256undefined

getStrategyTVLinT0()

Solidity

function getStrategyTVLinT0() external view returns (uint256)
Details

returns TVL in terms of T0.

Returns

NameTypeDescription
_0uint256undefined

getTotalAmounts()

Solidity

function getTotalAmounts() external view returns (uint256 total0, uint256 total1)

Returns

NameTypeDescription
total0uint256undefined
total1uint256undefined

getTotalAmountsIncludingFees()

Solidity

function getTotalAmountsIncludingFees() external nonpayable returns (uint256 total0, uint256 total1)

Returns

NameTypeDescription
total0uint256undefined
total1uint256undefined

harvest()

Solidity

function harvest() external nonpayable
Details

pulls earned fees from uniswap into the vault. Can be called by anyone. Called as part of tend().

initialize(address,address,bytes)

Solidity

function initialize(address _orchestrator, address _steer, bytes _params) external nonpayable

Parameters

NameTypeDescription
_orchestratoraddressundefined
_steeraddressundefined
_paramsbytesundefined

maxTotalSupply()

Solidity

function maxTotalSupply() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

pool()

Solidity

function pool() external view returns (contract IUniswapV3Pool)

Returns

NameTypeDescription
_0contract IUniswapV3Poolundefined

queueWithdrawal(uint256)

Solidity

function queueWithdrawal(uint256 _LPTs) external nonpayable
Details

queues a withdrawal

Parameters

NameTypeDescription
_LPTsuint256is amount of lp tokens they want to withdraw

steerCollectFees(uint256,uint256,address)

Solidity

function steerCollectFees(uint256 amount0, uint256 amount1, address to) external nonpayable

Parameters

NameTypeDescription
amount0uint256undefined
amount1uint256undefined
toaddressundefined

steerPullFees()

Solidity

function steerPullFees() external nonpayable
Details

steer-only function to withdraw funds steer has earned from vault proceeds

strategistCollectFees(uint256,uint256,address)

Used to collect accumulated protocol fees.

Solidity

function strategistCollectFees(uint256 amount0, uint256 amount1, address to) external nonpayable

Parameters

NameTypeDescription
amount0uint256undefined
amount1uint256undefined
toaddressundefined

strategistPullFees()

Solidity

function strategistPullFees() external nonpayable
Details

strategist-only function to withdraw funds strategist has earned from vault proceeds

tend(int256,uint160,tuple)

Solidity

function tend(int256 swapAmount, uint160 sqrtPriceLimitX96, IUniLiquidityManager.LiquidityPositions newPositions) external nonpayable

Parameters

NameTypeDescription
swapAmountint256undefined
sqrtPriceLimitX96uint160undefined
newPositionsIUniLiquidityManager.LiquidityPositionsundefined

token0()

Solidity

function token0() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

token1()

Solidity

function token1() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

totalSupply()

Solidity

function totalSupply() external view returns (uint256)
Details

Returns the amount of tokens in existence.

Returns

NameTypeDescription
_0uint256undefined

transfer(address,uint256)

Solidity

function transfer(address recipient, uint256 amount) external nonpayable returns (bool)
Details

Moves amount tokens from the caller's account to recipient. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

Parameters

NameTypeDescription
recipientaddressundefined
amountuint256undefined

Returns

NameTypeDescription
_0boolundefined

transferFrom(address,address,uint256)

Solidity

function transferFrom(address sender, address recipient, uint256 amount) external nonpayable returns (bool)
Details

Moves amount tokens from sender to recipient using the allowance mechanism. amount is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

Parameters

NameTypeDescription
senderaddressundefined
recipientaddressundefined
amountuint256undefined

Returns

NameTypeDescription
_0boolundefined

update(int24,uint32[])

Solidity

function update(int24 startTick, uint32[] newBins) external nonpayable
Details

can only be called by orchestrator. Tends, and sets new bins.

Parameters

NameTypeDescription
startTickint24lowest tick to be included in new bins
newBinsuint32[]new bins to be used

vaultRegistry()

Solidity

function vaultRegistry() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

withdraw(uint256,uint256,uint256,address)

Withdraws tokens in proportion to the vault's holdings.

Solidity

function withdraw(uint256 shares, uint256 amount0Min, uint256 amount1Min, address to) external nonpayable returns (uint256 amount0, uint256 amount1)

Parameters

NameTypeDescription
sharesuint256Shares burned by sender
amount0Minuint256Revert if resulting amount0 is smaller than this
amount1Minuint256Revert if resulting amount1 is smaller than this
toaddressRecipient of tokens

Returns

NameTypeDescription
amount0uint256Amount of token0 sent to recipient
amount1uint256Amount of token1 sent to recipient

Events

Approval

Solidity

event Approval(address indexed owner, address indexed spender, uint256 value)

Parameters

NameTypeDescription
owner indexedaddressundefined
spender indexedaddressundefined
valueuint256undefined

Transfer

Solidity

event Transfer(address indexed from, address indexed to, uint256 value)

Parameters

NameTypeDescription
from indexedaddressundefined
to indexedaddressundefined
valueuint256undefined