Source Code
Overview
S Balance
More Info
ContractCreator
Latest 4 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
23093775 | 15 days ago | 0 S | ||||
23093775 | 15 days ago | Contract Creation | 0 S | |||
22832973 | 16 days ago | 0 S | ||||
22832973 | 16 days ago | Contract Creation | 0 S |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
VotingSlotFactory
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/proxy/Clones.sol"; import "./interfaces/IStakingPool.sol"; import "./interfaces/IVotingSlot.sol"; import "./helpers/TransferHelper.sol"; contract VotingSlotFactory is Ownable { address public implementation; address[] public allSlots; event VotingSlotCreated( address slot, string name, string description, string image, address newOwner, address stakingPool, uint16 maxFreeVotesPerDay, uint256 voteStartDate, uint256 voteEndDate, uint256 maxVoteWeightPerUser ); constructor(address _implementation, address newOwner) { implementation = _implementation; _transferOwnership(newOwner); } function createVotingSlot( string memory name, string memory description, string memory image, address newOwner, IStakingPool stakingPool, uint16 maxFreeVotesPerDay, uint256 voteStartDate, uint256 voteEndDate, uint256 maxVoteWeightPerUser ) external onlyOwner returns (address slot) { bytes32 salt = keccak256(abi.encodePacked(name, description, address(stakingPool), block.timestamp)); slot = Clones.cloneDeterministic(implementation, salt); // Initialize slot parameters IVotingSlot(slot).initialize( name, description, image, newOwner, stakingPool, maxFreeVotesPerDay, voteStartDate, voteEndDate, maxVoteWeightPerUser ); allSlots.push(slot); // Emit slot creation with all parameters emit VotingSlotCreated( slot, name, description, image, newOwner, address(stakingPool), maxFreeVotesPerDay, voteStartDate, voteEndDate, maxVoteWeightPerUser ); } function redeemEther(address _to, uint256 _amount) external onlyOwner { uint256 etherBalance = address(this).balance; require(etherBalance >= _amount, "ABV: low_ether"); TransferHelpers.safeTransferEther(_to, _amount); } function redeemERC20(address _token, address _to, uint256 _amount) external onlyOwner { uint256 balance = IERC20(_token).balanceOf(address(this)); require(balance >= _amount, "ABV: low_balance"); TransferHelpers.safeTransferERC20(_token, _to, _amount); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/Clones.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { /// @solidity memory-safe-assembly assembly { // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes // of the `implementation` address with the bytecode before the address. mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000)) // Packs the remaining 17 bytes of `implementation` with the bytecode after the address. mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3)) instance := create(0, 0x09, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { /// @solidity memory-safe-assembly assembly { // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes // of the `implementation` address with the bytecode before the address. mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000)) // Packs the remaining 17 bytes of `implementation` with the bytecode after the address. mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3)) instance := create2(0, 0x09, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(add(ptr, 0x38), deployer) mstore(add(ptr, 0x24), 0x5af43d82803e903d91602b57fd5bf3ff) mstore(add(ptr, 0x14), implementation) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73) mstore(add(ptr, 0x58), salt) mstore(add(ptr, 0x78), keccak256(add(ptr, 0x0c), 0x37)) predicted := keccak256(add(ptr, 0x43), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt ) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; library TransferHelpers { using Address for address; function safeTransferERC20(address token, address to, uint256 amount) internal { bytes4 encodedFunc = bytes4(keccak256(bytes("transfer(address,uint256)"))); token.functionCall(abi.encodeWithSelector(encodedFunc, to, amount)); } function safeTransferFromERC20(address token, address from, address to, uint256 amount) internal { bytes4 encodedFunc = bytes4(keccak256(bytes("transferFrom(address,address,uint256)"))); token.functionCall(abi.encodeWithSelector(encodedFunc, from, to, amount)); } function safeTransferEther(address to, uint256 amount) internal returns (bool success) { (success, ) = to.call{value: amount}(new bytes(0)); } }
pragma solidity ^0.8.0; interface IStakingPool { event Stake(address indexed account, uint256 amount, uint256 timestamp); event Unstake(address indexed account, uint256 amount); event Withdrawal(address indexed account, uint amount0, uint256 amount1); event StakeFeePercentageChange(uint16 stakeFeePercentageChange); event WithdrawalFeePercentageChange(uint16 withdrawalFeePercentageChange); event APYRateChange(uint24 apyRate); error ZeroAddressForFeesSet(); error Blocked(); error OnlyModeratorOrOwner(); error RewardIsZero(); error NoStake(); error AlreadyModerator(); error NotModerator(); error AlreadyInitialized(); event RewardsAdded(uint256 reward); event RewardDrained(uint256 amount); function blockedAddresses(address) external view returns (bool); function stakeFeePercentage() external view returns (uint16); function token0() external view returns (address); function token1() external view returns (address); function apyRate() external view returns (uint24); function withdrawalIntervals() external view returns (uint256); function feeReceiver() external view returns (address); function amountStaked(address) external view returns (uint256); function lastStakeTime(address) external view returns (uint256); function nextWithdrawalTime(address) external view returns (uint256); function blocked(address _account) external view returns (bool); event Initialized( address newOwner, address token0, address token1, uint24 apyRate, uint16 stakeFeePercentage, uint16 withdrawalFeePercentage, address feeReceiver, uint256 intervals ); function initialize( address _newOwner, address _token0, address _token1, uint24 _apyRate, uint16 _stakeFeePercentage, uint16 _withdrawalFeePercentage, address _feeReceiver, uint256 _intervals ) external; }
pragma solidity ^0.8.0; import {IStakingPool} from "./IStakingPool.sol"; interface IVotingSlot { error AlreadyModerator(); error NotModerator(); error AlreadyInitialized(); error Blocked(); error OnlyModeratorOrOwner(); error ReachedMaximumFreeVotesPerDay(); event Initialized( string name, string description, string image, address newOwner, address stakingPool, uint16 maxFreeVotesPerDay, uint256 voteStartDate, uint256 voteEndDate, uint256 maxVoteWeightPerUser ); event UpdatedName(string name); event UpdatedDescription(string description); event UpdatedImage(string image); event UpdatedStakingPool(address stakingPool); event UpdatedVoteWeight(uint256 voteWeight); event UpdatedVoteStartDate(uint256 voteStartDate); event UpdatedVoteEndDate(uint256 voteEndDate); event UpdateNoOfYesVotes(uint256 amount); event UpdateNoOfNoVotes(uint256 amount); function positiveVoteWeight() external view returns (uint256); function negativeVoteWeight() external view returns (uint256); function name() external view returns (string memory); function description() external view returns (string memory); function votes(address) external view returns (uint256); function blocked(address _account) external view returns (bool); function initialize( string memory name, string memory description, string memory image, address newOwner, IStakingPool stakingPool, uint16 maxFreeVotesPerDay, uint256 voteStartDate, uint256 voteEndDate, uint256 maxVoteWeightPerUser ) external; function stakingPool() external view returns (IStakingPool); function image() external view returns (string memory); function maxFreeVotesPerDay() external view returns (uint16); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"address","name":"newOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"slot","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"description","type":"string"},{"indexed":false,"internalType":"string","name":"image","type":"string"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"},{"indexed":false,"internalType":"address","name":"stakingPool","type":"address"},{"indexed":false,"internalType":"uint16","name":"maxFreeVotesPerDay","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"voteStartDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"voteEndDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxVoteWeightPerUser","type":"uint256"}],"name":"VotingSlotCreated","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allSlots","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"contract IStakingPool","name":"stakingPool","type":"address"},{"internalType":"uint16","name":"maxFreeVotesPerDay","type":"uint16"},{"internalType":"uint256","name":"voteStartDate","type":"uint256"},{"internalType":"uint256","name":"voteEndDate","type":"uint256"},{"internalType":"uint256","name":"maxVoteWeightPerUser","type":"uint256"}],"name":"createVotingSlot","outputs":[{"internalType":"address","name":"slot","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeemERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeemEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60803461009457601f610bea38819003918201601f19168301916001600160401b038311848410176100995780849260409485528339810103126100945780610056602061004f610085946100af565b92016100af565b90610060336100c3565b600180546001600160a01b0319166001600160a01b03929092169190911790556100c3565b604051610adf908161010b8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361009457565b600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a356fe604060808152600436101561001d575b50361561001b57600080fd5b005b600090813560e01c806334220ceb146107dd5780635c60da1b146107b557806367add5bc146103f15780636e4be5581461022e578063715018a6146101d15780638da5cb5b146101aa578063e2e7da7a1461014a5763f2fde38b14610082575061000f565b346101465760203660031901126101465761009b610885565b6100a361093c565b6001600160a01b039081169182156100f45750600054826001600160601b0360a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b5162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b5080fd5b5034610146576020366003190112610146576004356002548110156101a65760026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace015490516001600160a01b03909116815260209150f35b8280fd5b5034610146578160031936011261014657905490516001600160a01b039091168152602090f35b823461022b578060031936011261022b576101ea61093c565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b503461014657606036600319011261014657610248610885565b6024356001600160a01b038181169392918490036103ec5760443561026b61093c565b835180926370a0823160e01b8252306004830152816024602095869388165afa9081156103e25790829188916103ad575b5010610376577f7472616e7366657228616464726573732c75696e7432353629000000000000008285516102cf8161089b565b60198152015283519182019463a9059cbb60e01b86526024830152604482015260448152608081019281841067ffffffffffffffff8511176103605761035c9486928584935261031e8661089b565b601e86527f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000060a0820152519082855af16103566109dc565b91610a0c565b5080f35b634e487b7160e01b600052604160045260246000fd5b835162461bcd60e51b815260048101839052601060248201526f4142563a206c6f775f62616c616e636560801b6044820152606490fd5b809250848092503d83116103db575b6103c681836108b7565b810103126103d7578190513861029c565b8680fd5b503d6103bc565b85513d89823e3d90fd5b600080fd5b50346101465760031990610120368301126101a65760043567ffffffffffffffff81116107b1576104269036906004016108f5565b9260243567ffffffffffffffff8111610146576104479036906004016108f5565b9360443567ffffffffffffffff81116101a6576104689036906004016108f5565b9060643560018060a01b03968782168092036107ad576084359780891689036107a95760a4359061ffff821682036103d7576104a261093c565b8751998160208c80829e83019280848c805192839101916104c292610994565b89519083016104d682848301858e01610994565b01906001600160601b03198760601b16908201524260348201520360348101825260540161050490826108b7565b5190206001548060881c62ffffff16763d602d80600a3d3981f3363d3d373d3d3d363d73000000178b526effffffffffffffffffffffffffffff199060781b166e5af43d82803e903d91602b57fd5bf3178d52603760098bf516998a15610765578a3b156107615788858c6105a3838b8f6105b3978f6105c29251998a9889978896633a3759f560e21b885261012060048901526101248801906109b7565b90848783030160248801526109b7565b918483030160448501526109b7565b8c6064830152898916608483015261ffff8b1660a483015260c43560c483015260e43560e48301526101043561010483015203925af1801561075757610728575b506002549768010000000000000000891015610714575060018801806002558810156106fe576106c88b976106ba61ffff966106ad8e9a8e7fd00ae14d33a44dad389c347ecc96ddd4a8d651a7cb5b83da8cd9ab530603440f9e60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace018d6001600160601b0360a01b825416179055519c8d9c8d528c61014091829101528c01906109b7565b8a81038b8f0152906109b7565b9088820360608a01526109b7565b9460808701521660a08501521660c083015260c43560e083015260e435610100830152610104356101208301520390a151908152f35b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b81526041600452602490fd5b67ffffffffffffffff81999299116107435789529638610603565b634e487b7160e01b82526041600452602482fd5b8a513d8b823e3d90fd5b8880fd5b895162461bcd60e51b8152600481018d9052601760248201527f455243313136373a2063726561746532206661696c65640000000000000000006044820152606490fd5b8580fd5b8480fd5b8380fd5b503461014657816003193601126101465760015490516001600160a01b039091168152602090f35b50903461022b578160031936011261022b576107f7610885565b916024359061080461093c565b81471061085157805190602082019082821067ffffffffffffffff83111761083d578493868580958195829552525af15061035c6109dc565b634e487b7160e01b85526041600452602485fd5b5162461bcd60e51b815260206004820152600e60248201526d20a12b1d103637bbafb2ba3432b960911b6044820152606490fd5b600435906001600160a01b03821682036103ec57565b6040810190811067ffffffffffffffff82111761036057604052565b90601f8019910116810190811067ffffffffffffffff82111761036057604052565b67ffffffffffffffff811161036057601f01601f191660200190565b81601f820112156103ec5780359061090c826108d9565b9261091a60405194856108b7565b828452602083830101116103ec57816000926020809301838601378301015290565b6000546001600160a01b0316330361095057565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60005b8381106109a75750506000910152565b8181015183820152602001610997565b906020916109d081518092818552858086019101610994565b601f01601f1916010190565b3d15610a07573d906109ed826108d9565b916109fb60405193846108b7565b82523d6000602084013e565b606090565b91929015610a6e5750815115610a20575090565b3b15610a295790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610a815750805190602001fd5b60405162461bcd60e51b815260206004820152908190610aa59060248301906109b7565b0390fdfea26469706673582212207c9d2a27617de62f43cb960a03c217dd2d9774d29ec2f60e4d82eef5341f0b4564736f6c63430008110033000000000000000000000000df578b0c4c4ff05890b66409704fba40cd3fc760000000000000000000000000f2255c5f4dd0a2dfc4b65bab08ee27ca58333362
Deployed Bytecode
0x604060808152600436101561001d575b50361561001b57600080fd5b005b600090813560e01c806334220ceb146107dd5780635c60da1b146107b557806367add5bc146103f15780636e4be5581461022e578063715018a6146101d15780638da5cb5b146101aa578063e2e7da7a1461014a5763f2fde38b14610082575061000f565b346101465760203660031901126101465761009b610885565b6100a361093c565b6001600160a01b039081169182156100f45750600054826001600160601b0360a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b5162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b5080fd5b5034610146576020366003190112610146576004356002548110156101a65760026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace015490516001600160a01b03909116815260209150f35b8280fd5b5034610146578160031936011261014657905490516001600160a01b039091168152602090f35b823461022b578060031936011261022b576101ea61093c565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b503461014657606036600319011261014657610248610885565b6024356001600160a01b038181169392918490036103ec5760443561026b61093c565b835180926370a0823160e01b8252306004830152816024602095869388165afa9081156103e25790829188916103ad575b5010610376577f7472616e7366657228616464726573732c75696e7432353629000000000000008285516102cf8161089b565b60198152015283519182019463a9059cbb60e01b86526024830152604482015260448152608081019281841067ffffffffffffffff8511176103605761035c9486928584935261031e8661089b565b601e86527f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000060a0820152519082855af16103566109dc565b91610a0c565b5080f35b634e487b7160e01b600052604160045260246000fd5b835162461bcd60e51b815260048101839052601060248201526f4142563a206c6f775f62616c616e636560801b6044820152606490fd5b809250848092503d83116103db575b6103c681836108b7565b810103126103d7578190513861029c565b8680fd5b503d6103bc565b85513d89823e3d90fd5b600080fd5b50346101465760031990610120368301126101a65760043567ffffffffffffffff81116107b1576104269036906004016108f5565b9260243567ffffffffffffffff8111610146576104479036906004016108f5565b9360443567ffffffffffffffff81116101a6576104689036906004016108f5565b9060643560018060a01b03968782168092036107ad576084359780891689036107a95760a4359061ffff821682036103d7576104a261093c565b8751998160208c80829e83019280848c805192839101916104c292610994565b89519083016104d682848301858e01610994565b01906001600160601b03198760601b16908201524260348201520360348101825260540161050490826108b7565b5190206001548060881c62ffffff16763d602d80600a3d3981f3363d3d373d3d3d363d73000000178b526effffffffffffffffffffffffffffff199060781b166e5af43d82803e903d91602b57fd5bf3178d52603760098bf516998a15610765578a3b156107615788858c6105a3838b8f6105b3978f6105c29251998a9889978896633a3759f560e21b885261012060048901526101248801906109b7565b90848783030160248801526109b7565b918483030160448501526109b7565b8c6064830152898916608483015261ffff8b1660a483015260c43560c483015260e43560e48301526101043561010483015203925af1801561075757610728575b506002549768010000000000000000891015610714575060018801806002558810156106fe576106c88b976106ba61ffff966106ad8e9a8e7fd00ae14d33a44dad389c347ecc96ddd4a8d651a7cb5b83da8cd9ab530603440f9e60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace018d6001600160601b0360a01b825416179055519c8d9c8d528c61014091829101528c01906109b7565b8a81038b8f0152906109b7565b9088820360608a01526109b7565b9460808701521660a08501521660c083015260c43560e083015260e435610100830152610104356101208301520390a151908152f35b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b81526041600452602490fd5b67ffffffffffffffff81999299116107435789529638610603565b634e487b7160e01b82526041600452602482fd5b8a513d8b823e3d90fd5b8880fd5b895162461bcd60e51b8152600481018d9052601760248201527f455243313136373a2063726561746532206661696c65640000000000000000006044820152606490fd5b8580fd5b8480fd5b8380fd5b503461014657816003193601126101465760015490516001600160a01b039091168152602090f35b50903461022b578160031936011261022b576107f7610885565b916024359061080461093c565b81471061085157805190602082019082821067ffffffffffffffff83111761083d578493868580958195829552525af15061035c6109dc565b634e487b7160e01b85526041600452602485fd5b5162461bcd60e51b815260206004820152600e60248201526d20a12b1d103637bbafb2ba3432b960911b6044820152606490fd5b600435906001600160a01b03821682036103ec57565b6040810190811067ffffffffffffffff82111761036057604052565b90601f8019910116810190811067ffffffffffffffff82111761036057604052565b67ffffffffffffffff811161036057601f01601f191660200190565b81601f820112156103ec5780359061090c826108d9565b9261091a60405194856108b7565b828452602083830101116103ec57816000926020809301838601378301015290565b6000546001600160a01b0316330361095057565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60005b8381106109a75750506000910152565b8181015183820152602001610997565b906020916109d081518092818552858086019101610994565b601f01601f1916010190565b3d15610a07573d906109ed826108d9565b916109fb60405193846108b7565b82523d6000602084013e565b606090565b91929015610a6e5750815115610a20575090565b3b15610a295790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610a815750805190602001fd5b60405162461bcd60e51b815260206004820152908190610aa59060248301906109b7565b0390fdfea26469706673582212207c9d2a27617de62f43cb960a03c217dd2d9774d29ec2f60e4d82eef5341f0b4564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000df578b0c4c4ff05890b66409704fba40cd3fc760000000000000000000000000f2255c5f4dd0a2dfc4b65bab08ee27ca58333362
-----Decoded View---------------
Arg [0] : _implementation (address): 0xDF578b0c4C4fF05890B66409704FBA40Cd3Fc760
Arg [1] : newOwner (address): 0xF2255c5F4dd0a2dfC4B65bab08EE27CA58333362
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000df578b0c4c4ff05890b66409704fba40cd3fc760
Arg [1] : 000000000000000000000000f2255c5f4dd0a2dfc4b65bab08ee27ca58333362
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
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.