ArrakisV2Factory
Factory contract for deploying ArrakisV2 vault instances
Last updated
Factory contract for deploying ArrakisV2 vault instances
Last updated
name | type | description |
---|---|---|
name | type | description |
---|---|---|
name | type | description |
---|---|---|
deploy an ArrakisV2 vault instance
parameters :
returns :
checks :
check token addresses are not 0
check token addresses are not the same
events :
VaultCreated(address indexed manager, address indexed vault)
upgrade standalone TransparentProxy vaults to the latest Beacon implementation
parameters :
modifiers :
only owner
upgrade standalone TransparentProxy vaults to the latest Beacon implementation and subsequently make a call
parameters :
modifiers :
only owner
harden standalone TransparentProxy vaults by burning upgradability powers
parameters :
modifiers :
only owner
inspect the proxyAdmin of an ArrakisV2 instance
inspect the underlying implementation of an ArrakisV2 instance
returns :
Ownable (transferOwnership)
name | type | description |
---|---|---|
name | type | description |
---|---|---|
name | type | description |
---|---|---|
name | type | description |
---|---|---|
name | type | description |
---|---|---|
name | type | description |
---|---|---|
name | type | description |
---|---|---|
name | type | description |
---|---|---|
name | type | description |
---|---|---|
arrakisV2Beacon
address
Address that stores the implementation of ArrakisV2
_vaults
AddressSet
Every deployed ArrakisV2 vault instance
feeTiers
uint24[]
Uniswap V3 feeTiers to whitelist for token pair
token0
address
ERC20 token, MUST be lower hex address than token1
token1
address
ERC20 token, MUST be higher hex address than token0
owner
address
Initial owner of ArrakisV2 instance
init0
uint256
Initial token0 ratio (for first mint)
init1
uint256
Initial token1 ratio (for first mint)
manager
address
Initial manager of ArrakisV2 instance
routers
address[]
Initial swap routers whitelisted
params
InitializePayload
Struct containing vault initialization parameters
isBeacon
bool
Flag whether ArrakisV2 instance is BeaconProxy or TransparentProxy ( should be true
except in very rare custom cases )
vault
address
Address of deployed ArrakisV2 instance
vaults
address[]
TransparentProxy vaults to upgrade to new beacon implementation individually
vaults
address[]
TransparentProxy vaults to upgrade to new beacon implementation individually
datas
bytes[]
Calldata per vault, to call immediately after upgrading each vault
vaults
address[]
TransparentProxy vaults to burn upgradeability of
proxy
address
Proxy address to get the admin() of
admin
address
Address of proxy admin
proxy
address
Proxy address to get the implementation() of
implementation
address
Address of proxy underlying implementation