ETH Price: $3,159.89 (-8.96%)

Contract

0x483761F16A7c978df09d1e7E22532e9DbD2Ee8D0

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Transfer Ownersh...1568785842023-12-04 18:28:37233 days ago1701714517IN
Sweep Protocol : Vesting Approver
0 ETH0.00007670.1
0x608060401271384532023-09-01 20:57:08327 days ago1693601828IN
 Create: VestingApprover
0 ETH0.000497460.1

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VestingApprover

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : VestingApprover.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.19;

import "./ITransferApprover.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC20Metadata.sol";

/**
 * @title VestingApprover
 */
contract VestingApprover is ITransferApprover, Ownable {
    IERC20Metadata public sweepr;

    // Structure for the vesting schedule
    struct VestingSchedule {
        // beneficiary address
        address beneficiary;
        // Cliff time when vesting begins
        uint256 startTime;
        // The amount of time for linear vesting
        uint256 vestingTime;
        // The number of tokens that are controlled by the vesting schedule
        uint256 vestingAmount;
    }

    // Vesting Schedules
    mapping(address => VestingSchedule) public vestingSchedules;
    // Beneficiary Addresses
    address[] public beneficiaries;

    uint256 internal constant PRECISION = 1e10;

    /* ========== EVENTS ========== */
    event ScheduleAdded(
        address indexed beneficiary,
        uint256 startTime,
        uint256 vestingtime,
        uint256 vestingAmount
    );
    event ScheduleRemoved(address indexed beneficiary);
    event Whitelisted(address indexed account);
    event UnWhitelisted(address indexed account);
    event StateSet(bool state);

    /* ========== Errors ========== */
    error NotSweepr();
    error ZeroAddressDetected();
    error ZeroAmountDetected();

    /* ========== MODIFIERS ========== */
    modifier onlySweepr() {
        if (msg.sender != address(sweepr)) revert NotSweepr();
        _;
    }

    /* ========== CONSTRUCTOR ========== */
    constructor(address sweeprAddress) {
        sweepr = IERC20Metadata(sweeprAddress);
    }

    /**
     * @notice Creates a new vesting schedule for a beneficiary
     * @param _beneficiary address of the beneficiary
     * @param _startTime start time of the vesting period
     * @param _vestingTime amount of time in seconds for linear vesting
     * @param _vestingAmount amount of tokens that are controlled by the vesting schedule
     */
    function createVestingSchedule(
        address _beneficiary,
        uint256 _startTime,
        uint256 _vestingTime,
        uint256 _vestingAmount
    ) external onlyOwner {
        if (_beneficiary == address(0)) revert ZeroAddressDetected();
        if (_startTime == 0 || _vestingTime == 0 || _vestingAmount == 0)
            revert ZeroAmountDetected();

        vestingSchedules[_beneficiary] = VestingSchedule(
            _beneficiary,
            _startTime,
            _vestingTime,
            _vestingAmount
        );

        beneficiaries.push(_beneficiary);
        emit ScheduleAdded(
            _beneficiary,
            _startTime,
            _vestingTime,
            _vestingAmount
        );
    }

    /**
     * @notice Remove vesting schedule
     * @param itemIndex index to remove
     */
    function removeSchedule(uint256 itemIndex) external onlyOwner {
        address beneficiary = beneficiaries[itemIndex];
        delete vestingSchedules[beneficiary];

        beneficiaries[itemIndex] = beneficiaries[beneficiaries.length - 1];
        beneficiaries.pop();

        emit ScheduleRemoved(beneficiary);
    }

    /**
     * @notice Returns token transferability
     * @param from sender address
     * @param to beneficiary address
     * @param amount transfer amount
     * @return (bool) true - allowance, false - denial
     */
    function checkTransfer(
        address from,
        address to,
        uint256 amount
    ) external view onlySweepr returns (bool) {
        // allow minting & burning & tansfers from sender not in vesting list
        if (
            from == address(0) ||
            to == address(0) ||
            from != vestingSchedules[from].beneficiary
        ) return true;

        uint256 senderBalance = sweepr.balanceOf(from);
        if (senderBalance < amount) return false;

        uint256 lockedAmount = getLockedAmount(from);
        if (senderBalance - amount < lockedAmount) return false;

        return true;
    }

    /**
     * @dev Computes the locked amount of tokens for a vesting schedule.
     * @return the locked amount of tokens
     */
    function _computeLockedAmount(VestingSchedule memory vestingSchedule)
        internal
        view
        returns (uint256)
    {
        uint256 currentTime = block.timestamp;

        // If the current time is before the cliff, locked amount = vesting amount.
        if (currentTime < vestingSchedule.startTime) {
            return vestingSchedule.vestingAmount;
        } else if (
            currentTime >=
            vestingSchedule.startTime + vestingSchedule.vestingTime
        ) {
            // If the current time is after the vesting period, all tokens are transferaable,
            return 0;
        } else {
            // Compute the amount of tokens that are locked.
            uint256 lockedAmount = vestingSchedule.vestingAmount *
                (PRECISION -
                    ((currentTime - vestingSchedule.startTime) * PRECISION) /
                    vestingSchedule.vestingTime);
            return lockedAmount / PRECISION;
        }
    }

    /**
     * @dev Returns the number of vesting schedules
     * @return the number of vesting schedules
     */
    function getVestingSchedulesCount() external view returns (uint256) {
        return beneficiaries.length;
    }

    /**
     * @notice Get the locked amount of tokens for beneficiary
     * @return the locked amount
     */
    function getLockedAmount(address beneficiary)
        public
        view
        returns (uint256)
    {
        VestingSchedule memory vestingSchedule = vestingSchedules[beneficiary];
        return _computeLockedAmount(vestingSchedule);
    }
}

File 2 of 7 : Ownable.sol
// 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);
    }
}

File 3 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/extensions/IERC20Metadata.sol";

File 4 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}

File 6 of 7 : Context.sol
// 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;
    }
}

File 7 of 7 : ITransferApprover.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;

interface ITransferApprover {
    function checkTransfer(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"sweeprAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotSweepr","type":"error"},{"inputs":[],"name":"ZeroAddressDetected","type":"error"},{"inputs":[],"name":"ZeroAmountDetected","type":"error"},{"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":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vestingtime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vestingAmount","type":"uint256"}],"name":"ScheduleAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"}],"name":"ScheduleRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"StateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"UnWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"Whitelisted","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"beneficiaries","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_vestingTime","type":"uint256"},{"internalType":"uint256","name":"_vestingAmount","type":"uint256"}],"name":"createVestingSchedule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getLockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVestingSchedulesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemIndex","type":"uint256"}],"name":"removeSchedule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sweepr","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestingSchedules","outputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"vestingTime","type":"uint256"},{"internalType":"uint256","name":"vestingAmount","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051610acb380380610acb83398101604081905261002f916100ad565b6100383361005d565b600180546001600160a01b0319166001600160a01b03929092169190911790556100dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bf57600080fd5b81516001600160a01b03811681146100d657600080fd5b9392505050565b6109df806100ec6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063929ec53711610071578063929ec5371461011e578063cc1dd94f14610131578063d3287e4c14610154578063efeb5e5814610167578063f2fde38b1461017a578063fdb20ccb1461018d57600080fd5b806313083617146100ae5780633f4e8e80146100c557806342686b69146100da578063715018a6146101055780638da5cb5b1461010d575b600080fd5b6003545b6040519081526020015b60405180910390f35b6100d86100d3366004610840565b6101f8565b005b6001546100ed906001600160a01b031681565b6040516001600160a01b0390911681526020016100bc565b6100d861033d565b6000546001600160a01b03166100ed565b6100b261012c366004610879565b610351565b61014461013f366004610894565b6103ad565b60405190151581526020016100bc565b6100d86101623660046108d0565b6104e3565b6100ed6101753660046108d0565b61062d565b6100d8610188366004610879565b610657565b6101ce61019b366004610879565b600260208190526000918252604090912080546001820154928201546003909201546001600160a01b0390911692919084565b604080516001600160a01b03909516855260208501939093529183015260608201526080016100bc565b6102006106d5565b6001600160a01b03841661022757604051632887dd7560e11b815260040160405180910390fd5b821580610232575081155b8061023b575080155b1561025957604051633caaf44d60e11b815260040160405180910390fd5b604080516080810182526001600160a01b0386811680835260208084018881528486018881526060808701898152600086815260028087528a822099518a5499166001600160a01b0319998a16178a5594516001808b01919091559351948901949094555160039788015586549182018755959091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b018054909316821790925583518781529182018690529281018490527f1d3f2c6ead9da1440f50a07bdd505d412c551aada4adcf6f6528a64b5d4513e0910160405180910390a250505050565b6103456106d5565b61034f600061072f565b565b6001600160a01b0380821660009081526002602081815260408084208151608081018352815490961686526001810154928601929092529181015491840191909152600301546060830152906103a68161077f565b9392505050565b6001546000906001600160a01b031633146103db576040516302ed15a160e41b815260040160405180910390fd5b6001600160a01b03841615806103f857506001600160a01b038316155b8061041e57506001600160a01b0380851660008181526002602052604090205490911614155b1561042b575060016103a6565b6001546040516370a0823160e01b81526001600160a01b03868116600483015260009216906370a0823190602401602060405180830381865afa158015610476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049a91906108e9565b9050828110156104ae5760009150506103a6565b60006104b986610351565b9050806104c68584610918565b10156104d7576000925050506103a6565b50600195945050505050565b6104eb6106d5565b60006003828154811061050057610500610931565b60009182526020808320909101546001600160a01b03168083526002918290526040832080546001600160a01b0319168155600181810185905592810184905560039081019390935582549093506105589190610918565b8154811061056857610568610931565b600091825260209091200154600380546001600160a01b03909216918490811061059457610594610931565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060038054806105d3576105d3610947565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b038316917ff3d28b87eef0df00fccefcb7a7cebd493fea0c52991e32eb1399094b05ce6eef91a25050565b6003818154811061063d57600080fd5b6000918252602090912001546001600160a01b0316905081565b61065f6106d5565b6001600160a01b0381166106c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6106d28161072f565b50565b6000546001600160a01b0316331461034f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106c0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b602081015160009042908110156107995750506060015190565b826040015183602001516107ad919061095d565b81106107bc5750600092915050565b600083604001516402540be4008560200151846107d99190610918565b6107e39190610970565b6107ed9190610987565b6107fc906402540be400610918565b846060015161080b9190610970565b905061081c6402540be40082610987565b949350505050565b80356001600160a01b038116811461083b57600080fd5b919050565b6000806000806080858703121561085657600080fd5b61085f85610824565b966020860135965060408601359560600135945092505050565b60006020828403121561088b57600080fd5b6103a682610824565b6000806000606084860312156108a957600080fd5b6108b284610824565b92506108c060208501610824565b9150604084013590509250925092565b6000602082840312156108e257600080fd5b5035919050565b6000602082840312156108fb57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561092b5761092b610902565b92915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b8082018082111561092b5761092b610902565b808202811582820484141761092b5761092b610902565b6000826109a457634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220c1ebf42501259bdb65eef4c964dbcfd571bbbe0238360db07d507519701f6b5764736f6c6343000813003300000000000000000000000089b1e7068bf8e3232dd8f16c35cac45bda584f4e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063929ec53711610071578063929ec5371461011e578063cc1dd94f14610131578063d3287e4c14610154578063efeb5e5814610167578063f2fde38b1461017a578063fdb20ccb1461018d57600080fd5b806313083617146100ae5780633f4e8e80146100c557806342686b69146100da578063715018a6146101055780638da5cb5b1461010d575b600080fd5b6003545b6040519081526020015b60405180910390f35b6100d86100d3366004610840565b6101f8565b005b6001546100ed906001600160a01b031681565b6040516001600160a01b0390911681526020016100bc565b6100d861033d565b6000546001600160a01b03166100ed565b6100b261012c366004610879565b610351565b61014461013f366004610894565b6103ad565b60405190151581526020016100bc565b6100d86101623660046108d0565b6104e3565b6100ed6101753660046108d0565b61062d565b6100d8610188366004610879565b610657565b6101ce61019b366004610879565b600260208190526000918252604090912080546001820154928201546003909201546001600160a01b0390911692919084565b604080516001600160a01b03909516855260208501939093529183015260608201526080016100bc565b6102006106d5565b6001600160a01b03841661022757604051632887dd7560e11b815260040160405180910390fd5b821580610232575081155b8061023b575080155b1561025957604051633caaf44d60e11b815260040160405180910390fd5b604080516080810182526001600160a01b0386811680835260208084018881528486018881526060808701898152600086815260028087528a822099518a5499166001600160a01b0319998a16178a5594516001808b01919091559351948901949094555160039788015586549182018755959091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b018054909316821790925583518781529182018690529281018490527f1d3f2c6ead9da1440f50a07bdd505d412c551aada4adcf6f6528a64b5d4513e0910160405180910390a250505050565b6103456106d5565b61034f600061072f565b565b6001600160a01b0380821660009081526002602081815260408084208151608081018352815490961686526001810154928601929092529181015491840191909152600301546060830152906103a68161077f565b9392505050565b6001546000906001600160a01b031633146103db576040516302ed15a160e41b815260040160405180910390fd5b6001600160a01b03841615806103f857506001600160a01b038316155b8061041e57506001600160a01b0380851660008181526002602052604090205490911614155b1561042b575060016103a6565b6001546040516370a0823160e01b81526001600160a01b03868116600483015260009216906370a0823190602401602060405180830381865afa158015610476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049a91906108e9565b9050828110156104ae5760009150506103a6565b60006104b986610351565b9050806104c68584610918565b10156104d7576000925050506103a6565b50600195945050505050565b6104eb6106d5565b60006003828154811061050057610500610931565b60009182526020808320909101546001600160a01b03168083526002918290526040832080546001600160a01b0319168155600181810185905592810184905560039081019390935582549093506105589190610918565b8154811061056857610568610931565b600091825260209091200154600380546001600160a01b03909216918490811061059457610594610931565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060038054806105d3576105d3610947565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b038316917ff3d28b87eef0df00fccefcb7a7cebd493fea0c52991e32eb1399094b05ce6eef91a25050565b6003818154811061063d57600080fd5b6000918252602090912001546001600160a01b0316905081565b61065f6106d5565b6001600160a01b0381166106c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6106d28161072f565b50565b6000546001600160a01b0316331461034f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106c0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b602081015160009042908110156107995750506060015190565b826040015183602001516107ad919061095d565b81106107bc5750600092915050565b600083604001516402540be4008560200151846107d99190610918565b6107e39190610970565b6107ed9190610987565b6107fc906402540be400610918565b846060015161080b9190610970565b905061081c6402540be40082610987565b949350505050565b80356001600160a01b038116811461083b57600080fd5b919050565b6000806000806080858703121561085657600080fd5b61085f85610824565b966020860135965060408601359560600135945092505050565b60006020828403121561088b57600080fd5b6103a682610824565b6000806000606084860312156108a957600080fd5b6108b284610824565b92506108c060208501610824565b9150604084013590509250925092565b6000602082840312156108e257600080fd5b5035919050565b6000602082840312156108fb57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561092b5761092b610902565b92915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b8082018082111561092b5761092b610902565b808202811582820484141761092b5761092b610902565b6000826109a457634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220c1ebf42501259bdb65eef4c964dbcfd571bbbe0238360db07d507519701f6b5764736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000089b1e7068bf8e3232dd8f16c35cac45bda584f4e

-----Decoded View---------------
Arg [0] : sweeprAddress (address): 0x89B1e7068bF8E3232dD8f16c35cAc45bDA584f4E

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000089b1e7068bf8e3232dd8f16c35cac45bda584f4e


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.