Contract Source Code:
File 1 of 2 : AlgebraVaultFactoryStub.sol
// SPDX-License-Identifier: BUSL-1.1 pragma solidity =0.8.20; pragma abicoder v1; import './interfaces/vault/IAlgebraVaultFactory.sol'; /// @title Algebra vault factory stub /// @notice This contract is used to set AlgebraCommunityVault as communityVault in new pools contract AlgebraVaultFactoryStub is IAlgebraVaultFactory { /// @notice the address of AlgebraCommunityVault address public immutable defaultAlgebraCommunityVault; constructor(address _algebraCommunityVault) { require(_algebraCommunityVault != address(0)); defaultAlgebraCommunityVault = _algebraCommunityVault; } /// @inheritdoc IAlgebraVaultFactory function getVaultForPool(address) external view override returns (address) { return defaultAlgebraCommunityVault; } /// @inheritdoc IAlgebraVaultFactory function createVaultForPool(address) external view override returns (address) { return defaultAlgebraCommunityVault; } }
File 2 of 2 : IAlgebraVaultFactory.sol
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title The interface for the Algebra Vault Factory /// @notice This contract can be used for automatic vaults creation /// @dev Version: Algebra Integral interface IAlgebraVaultFactory { /// @notice returns address of the community fee vault for the pool /// @param pool the address of Algebra Integral pool /// @return communityFeeVault the address of community fee vault function getVaultForPool(address pool) external view returns (address communityFeeVault); /// @notice creates the community fee vault for the pool if needed /// @param pool the address of Algebra Integral pool /// @return communityFeeVault the address of community fee vault function createVaultForPool(address pool) external returns (address communityFeeVault); }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.