false
false
0
The new Blockscout UI is now open source! Learn how to deploy it here
- We're indexing this chain right now. Some of the counts may be inaccurate.

Contract Address Details

0x6a4E3Fa95dC977f3792fd31456f34A1629dE480b

Contract Name
AlgebraVaultFactoryStub
Creator
0xb0756a–ac968e at 0x740d62–abc53c
Balance
0 ETH
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
1549089
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
AlgebraVaultFactoryStub




Optimization enabled
true
Compiler version
v0.8.20+commit.a1b79de6




Optimization runs
800
EVM Version
paris




Verified at
2024-05-25T16:53:38.556331Z

Constructor Arguments

0x00000000000000000000000008348640840030360f0f0bf0d7d6848d0cc6b289

Arg [0] (address) : 0x08348640840030360f0f0bf0d7d6848d0cc6b289

              

contracts/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, address, address, address, address) external view override returns (address) {
    return defaultAlgebraCommunityVault;
  }
}
        

contracts/interfaces/vault/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,
    address creator,
    address deployer,
    address token0,
    address token1
  ) external returns (address communityFeeVault);
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":800,"enabled":true},"metadata":{"bytecodeHash":"none"},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_algebraCommunityVault","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"createVaultForPool","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"defaultAlgebraCommunityVault","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getVaultForPool","inputs":[{"type":"address","name":"","internalType":"address"}]}]
              

Contract Creation Code

Verify & Publish
0x60a060405234801561001057600080fd5b5060405161015e38038061015e8339818101604052602081101561003357600080fd5b50516001600160a01b03811661004857600080fd5b6001600160a01b031660805260805160ec610072600039600081816058015260a9015260ec6000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c80637570e389146041578063b7a854521460a5578063b8a1d3c61460cb575b600080fd5b607c60048036036020811015605557600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000919050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b607c7f000000000000000000000000000000000000000000000000000000000000000081565b607c600480360360a0811015605557600080fdfea164736f6c6343000814000a00000000000000000000000008348640840030360f0f0bf0d7d6848d0cc6b289

Deployed ByteCode

0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c80637570e389146041578063b7a854521460a5578063b8a1d3c61460cb575b600080fd5b607c60048036036020811015605557600080fd5b507f00000000000000000000000008348640840030360f0f0bf0d7d6848d0cc6b289919050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b607c7f00000000000000000000000008348640840030360f0f0bf0d7d6848d0cc6b28981565b607c600480360360a0811015605557600080fdfea164736f6c6343000814000a