Skip to content

VaultFactoryOwnerCore ​

Git Source

Inherits:Variables, Events, Error

Governance auth, modifiers, factory admin passthrough, spell.

Functions ​

onlyGovernance ​

solidity
modifier onlyGovernance() ;

onlyTeamOrGovernance ​

solidity
modifier onlyTeamOrGovernance() ;

onlyDustPosAuthOrTeamOrGovernance ​

solidity
modifier onlyDustPosAuthOrTeamOrGovernance() ;

constructor ​

solidity
constructor(IFluidVaultFactory_OwnerWrapper factory_, ILiquidity_OwnerWrapper liquidity_) ;

_getGovernance ​

Reads governance address from Liquidity's EIP1967 proxy admin slot

solidity
function _getGovernance() internal view returns (address);

setDeployer ​

Sets a deployer on VaultFactory. Governance only.

solidity
function setDeployer(address deployer_, bool allowed_) external onlyGovernance;

setGlobalAuth ​

Sets a global auth on VaultFactory. Governance only.

solidity
function setGlobalAuth(address globalAuth_, bool allowed_) external onlyGovernance;

setVaultAuth ​

Sets a vault auth on VaultFactory. Governance only.

solidity
function setVaultAuth(address vault_, address vaultAuth_, bool allowed_) external onlyGovernance;

setVaultDeploymentLogic ​

Sets a vault deployment logic on VaultFactory. Governance only.

solidity
function setVaultDeploymentLogic(address deploymentLogic_, bool allowed_) external onlyGovernance;

spell ​

Executes arbitrary delegatecall on VaultFactory. Governance only due to unrestricted power.

solidity
function spell(address target_, bytes memory data_) external onlyGovernance returns (bytes memory);

transferFactoryOwnership ​

Transfers ownership of the VaultFactory to a new address. Governance only.

solidity
function transferFactoryOwnership(address newOwner_) external onlyGovernance;

spellApprove ​

When delegatecalled from VaultFactory via spell, writes ERC721 approval at getApproved storage slot 6. Only executable in VaultFactory context (address(this) must be FACTORY).

solidity
function spellApprove(uint256 id_, address spender_) external;

_transferToTeam ​

Approves this contract for the NFT via spell, then transfers to TEAM_MULTISIG.

solidity
function _transferToTeam(address from_, uint256 tokenId_) internal;