Polygon Sponsored slots available. Book your slot here!
Contract Overview
Balance:
0 MATIC
MATIC Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash |
Method
|
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0xacdf0ae71f6ec39792d581567cce85d454da8ba9d4195ee963f633aa023117ad | Add To Whitelist | 34188969 | 238 days 8 hrs ago | 0xf87bc5535602077d340806d71f805ea9907a843d | IN | 0x2f28678432edf5243955054cc04a32b18ca63c97 | 0 MATIC | 0.001427096691 | |
0x117ce732e47e843d4995507b816d9ba4416a067a27d3acd24fa5189291412062 | Add To Whitelist | 34188959 | 238 days 8 hrs ago | 0xf87bc5535602077d340806d71f805ea9907a843d | IN | 0x2f28678432edf5243955054cc04a32b18ca63c97 | 0 MATIC | 0.00143105401 | |
0xbe3e96a4753d7f131f8ecc5cdc059a06c7de7707df5caca81f714c7dc4c2d9f8 | 0x60a06040 | 34188953 | 238 days 8 hrs ago | 0xf87bc5535602077d340806d71f805ea9907a843d | IN | Contract Creation | 0 MATIC | 0.019109513544 |
[ Download CSV Export ]
Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xDb0D6Ec83C68191F8c33C9f71fe85615c40c1EF7
Contract Name:
MasterDeployer
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/IPoolFactory.sol"; /// @dev Custom Errors error InvalidBarFee(); error ZeroAddress(); error NotWhitelisted(); /// @notice Trident pool deployer contract with template factory whitelist. /// @author Mudit Gupta. contract MasterDeployer is Ownable { event DeployPool(address indexed factory, address indexed pool, bytes deployData); event AddToWhitelist(address indexed factory); event RemoveFromWhitelist(address indexed factory); event BarFeeUpdated(uint256 indexed barFee); event BarFeeToUpdated(address indexed barFeeTo); uint256 public barFee; address public barFeeTo; address public immutable bento; uint256 internal constant MAX_FEE = 10000; // @dev 100%. mapping(address => bool) public pools; mapping(address => bool) public whitelistedFactories; constructor( uint256 _barFee, address _barFeeTo, address _bento ) { if (_barFee > MAX_FEE) revert InvalidBarFee(); if (_barFeeTo == address(0)) revert ZeroAddress(); if (_bento == address(0)) revert ZeroAddress(); barFee = _barFee; barFeeTo = _barFeeTo; bento = _bento; } function deployPool(address _factory, bytes calldata _deployData) external returns (address pool) { if (!whitelistedFactories[_factory]) revert NotWhitelisted(); pool = IPoolFactory(_factory).deployPool(_deployData); pools[pool] = true; emit DeployPool(_factory, pool, _deployData); } function addToWhitelist(address _factory) external onlyOwner { whitelistedFactories[_factory] = true; emit AddToWhitelist(_factory); } function removeFromWhitelist(address _factory) external onlyOwner { whitelistedFactories[_factory] = false; emit RemoveFromWhitelist(_factory); } function setBarFee(uint256 _barFee) external onlyOwner { if (_barFee > MAX_FEE) revert InvalidBarFee(); barFee = _barFee; emit BarFeeUpdated(_barFee); } function setBarFeeTo(address _barFeeTo) external onlyOwner { barFeeTo = _barFeeTo; emit BarFeeToUpdated(_barFeeTo); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0; /// @notice Trident pool deployment interface. interface IPoolFactory { function deployPool(bytes calldata _deployData) external returns (address pool); function configAddress(bytes32 data) external returns (address pool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_barFee","type":"uint256"},{"internalType":"address","name":"_barFeeTo","type":"address"},{"internalType":"address","name":"_bento","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidBarFee","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"factory","type":"address"}],"name":"AddToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"barFeeTo","type":"address"}],"name":"BarFeeToUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"barFee","type":"uint256"}],"name":"BarFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"factory","type":"address"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"bytes","name":"deployData","type":"bytes"}],"name":"DeployPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"factory","type":"address"}],"name":"RemoveFromWhitelist","type":"event"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"barFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"barFeeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bento","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"bytes","name":"_deployData","type":"bytes"}],"name":"deployPool","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pools","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_barFee","type":"uint256"}],"name":"setBarFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_barFeeTo","type":"address"}],"name":"setBarFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedFactories","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b50604051610ab4380380610ab483398101604081905261002f91610140565b610038336100d4565b61271083111561005b57604051637c2d2d2b60e01b815260040160405180910390fd5b6001600160a01b0382166100825760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0381166100a95760405163d92e233d60e01b815260040160405180910390fd5b600192909255600280546001600160a01b0319166001600160a01b039283161790551660805261017c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013b57600080fd5b919050565b60008060006060848603121561015557600080fd5b8351925061016560208501610124565b915061017360408501610124565b90509250925092565b60805161091d610197600039600061016e015261091d6000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c8063715018a61161008c578063a4063dbc11610066578063a4063dbc146101fc578063c14ad8021461021f578063e43252d714610236578063f2fde38b1461024957600080fd5b8063715018a6146101c35780638ab1d681146101cb5780638da5cb5b146101de57600080fd5b80633dad8acb116100bd5780633dad8acb146101565780634da31827146101695780636f50f2f41461019057600080fd5b806306e22d12146100e45780630c0a0cd2146100f9578063250558dc14610143575b600080fd5b6100f76100f2366004610799565b61025c565b005b6002546101199073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101196101513660046107d4565b6102d3565b6100f7610164366004610859565b610461565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b6101b361019e366004610859565b60046020526000908152604090205460ff1681565b604051901515815260200161013a565b6100f76104d8565b6100f76101d9366004610859565b6104ec565b60005473ffffffffffffffffffffffffffffffffffffffff16610119565b6101b361020a366004610859565b60036020526000908152604090205460ff1681565b61022860015481565b60405190815260200161013a565b6100f7610244366004610859565b610568565b6100f7610257366004610859565b6105e7565b6102646106a3565b6127108111156102a0576040517f7c2d2d2b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600181905560405181907f880a5214911723edb25bb08410581af1de2e40c52eda03920990c4bc27011fb690600090a250565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081205460ff16610332576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f27c3cae100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516906327c3cae190610386908690869060040161087d565b6020604051808303816000875af11580156103a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c991906108ca565b73ffffffffffffffffffffffffffffffffffffffff8082166000818152600360205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555192935091908616907fe469f9471ac1d98222517eb2cdff1ef4df5f7880269173bb782bb78e499d9de390610452908790879061087d565b60405180910390a39392505050565b6104696106a3565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517ff774513cf7e21ae3f5ec0ea74c68c431204fb5c1656e7050da0d81ccf9d0831190600090a250565b6104e06106a3565b6104ea6000610724565b565b6104f46106a3565b73ffffffffffffffffffffffffffffffffffffffff811660008181526004602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517f1f756c8b089af6b33ee121fee8badac2553a2fa89c0575ea91ff8792617746c29190a250565b6105706106a3565b73ffffffffffffffffffffffffffffffffffffffff811660008181526004602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517f75b2135d1c8c3519f3c09c43fe6527089ef09f40c7981ebf0ed46e79e79032c79190a250565b6105ef6106a3565b73ffffffffffffffffffffffffffffffffffffffff8116610697576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6106a081610724565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161068e565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156107ab57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146106a057600080fd5b6000806000604084860312156107e957600080fd5b83356107f4816107b2565b9250602084013567ffffffffffffffff8082111561081157600080fd5b818601915086601f83011261082557600080fd5b81358181111561083457600080fd5b87602082850101111561084657600080fd5b6020830194508093505050509250925092565b60006020828403121561086b57600080fd5b8135610876816107b2565b9392505050565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b6000602082840312156108dc57600080fd5b8151610876816107b256fea2646970667358221220bfcbfbaa5c8a7bd4ef7b98bf9114628f5f94a6f015c0e6770df4a4b51d46ba7064736f6c634300080a003300000000000000000000000000000000000000000000000000000000000006830000000000000000000000001136c70afdd5dad9508c58a8a0d91c574ad0e1b10000000000000000000000000319000133d3ada02600f0875d2cf03d442c3367
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.