Skip to main content

SteerPeriphery.sol

You can use this contract to enumerate strategy and vault details but also create, join, and leave vaults

Details

This function should be used when doing protocol integrations

Methods​

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

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

Solidity

function deposit(address _vaultAddress, uint256 amount0Desired, uint256 amount1Desired, uint256 amount0Min, uint256 amount1Min, address to) external nonpayable
Details

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

Parameters​

NameTypeDescription
_vaultAddressaddressThe address of the vault to deposit to
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

initialize(address,address)​

Solidity

function initialize(address _strategyRegistry, address _vaultRegistry) external nonpayable

Parameters​

NameTypeDescription
_strategyRegistryaddressundefined
_vaultRegistryaddressundefined

owner()​

Solidity

function owner() external view returns (address)
Details

Returns the address of the current owner.

Returns​

NameTypeDescription
_0addressundefined

renounceOwnership()​

Solidity

function renounceOwnership() external nonpayable
Details

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

strategiesByCreator(address)​

Get the strategies by creator

Solidity

function strategiesByCreator(address _address) external view returns (struct IStrategyRegistry.RegisteredStrategy[])

Parameters​

NameTypeDescription
_addressaddressThe creator of the strategies

Returns​

NameTypeDescription
_0IStrategyRegistry.RegisteredStrategy[]The list of strategies created by the creator

transferOwnership(address)​

Solidity

function transferOwnership(address newOwner) external nonpayable
Details

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters​

NameTypeDescription
newOwneraddressundefined

upgradeTo(address)​

Solidity

function upgradeTo(address newImplementation) external nonpayable
Details

Upgrade the implementation of the proxy to newImplementation. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

Parameters​

NameTypeDescription
newImplementationaddressundefined

upgradeToAndCall(address,bytes)​

Solidity

function upgradeToAndCall(address newImplementation, bytes data) external payable
Details

Upgrade the implementation of the proxy to newImplementation, and subsequently execute the function call encoded in data. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

Parameters​

NameTypeDescription
newImplementationaddressundefined
databytesundefined

vaultDetailsByAddress(address)​

Solidity

function vaultDetailsByAddress(address _vault) external view returns (struct IUniLiquidityManager.VaultDetails details)

Parameters​

NameTypeDescription
_vaultaddressundefined

Returns​

NameTypeDescription
detailsIUniLiquidityManager.VaultDetailsundefined

vaultsByStrategy(uint256)​

Get the vaults using a given strategy

Solidity

function vaultsByStrategy(uint256 _strategyId) external view returns (struct IVaultRegistry.VaultData[])

Parameters​

NameTypeDescription
_strategyIduint256The strategyId (ERC-721 tokenId)

Returns​

NameTypeDescription
_0IVaultRegistry.VaultData[]The list of vault details using the strategy

Events​

AdminChanged​

Solidity

event AdminChanged(address previousAdmin, address newAdmin)

Parameters​

NameTypeDescription
previousAdminaddressundefined
newAdminaddressundefined

BeaconUpgraded​

Solidity

event BeaconUpgraded(address indexed beacon)

Parameters​

NameTypeDescription
beacon indexedaddressundefined

OwnershipTransferred​

Solidity

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters​

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Upgraded​

Solidity

event Upgraded(address indexed implementation)

Parameters​

NameTypeDescription
implementation indexedaddressundefined