Source Code
Overview
S Balance
0 S
More Info
ContractCreator
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x161C886a...c93245705 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
AlgebraVaultFactoryStub
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 800 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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; } }
// 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); }
{ "evmVersion": "paris", "optimizer": { "enabled": true, "runs": 800 }, "metadata": { "bytecodeHash": "none" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_algebraCommunityVault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"createVaultForPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAlgebraCommunityVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getVaultForPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c80637570e389146041578063b7a854521460a5578063cbc48015146041575b600080fd5b607c60048036036020811015605557600080fd5b507f000000000000000000000000abac6f23fdf1313fc2e9c9244f666157ccd32990919050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b607c7f000000000000000000000000abac6f23fdf1313fc2e9c9244f666157ccd329908156fea164736f6c6343000814000a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,446.33 | 0.0005014 | $1.73 |
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.