ETH Price: $2,598.63 (-0.90%)

Contract

0x65e393Bb8c9F5e6eE4238C3B8863506f76789880
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Flag Account209615262024-10-14 4:48:2343 hrs ago1728881303IN
0x65e393Bb...f76789880
0 ETH0.000768969.10179465
Accept Ownership209615202024-10-14 4:47:1143 hrs ago1728881231IN
0x65e393Bb...f76789880
0 ETH0.000253418.96628765
Nominate New Own...209615162024-10-14 4:46:2343 hrs ago1728881183IN
0x65e393Bb...f76789880
0 ETH0.0005643112
Accept Ownership209615072024-10-14 4:44:2343 hrs ago1728881063IN
0x65e393Bb...f76789880
0 ETH0.00025539.033257
Nominate New Own...197007792024-04-21 2:23:23177 days ago1713666203IN
0x65e393Bb...f76789880
0 ETH0.000282156
Accept Ownership156741242022-10-04 10:17:47742 days ago1664878667IN
0x65e393Bb...f76789880
0 ETH0.000197847
Nominate New Own...156740422022-10-04 10:01:11742 days ago1664877671IN
0x65e393Bb...f76789880
0 ETH0.00037628
Unflag Account128059582021-07-11 12:21:461192 days ago1626006106IN
0x65e393Bb...f76789880
0 ETH0.000150710.00000145
Flag Account128059452021-07-11 12:18:461192 days ago1626005926IN
0x65e393Bb...f76789880
0 ETH0.0009019311.00000145
Flag Account128058802021-07-11 12:01:481192 days ago1626004908IN
0x65e393Bb...f76789880
0 ETH0.0007950310
Flag Account128058722021-07-11 12:00:251192 days ago1626004825IN
0x65e393Bb...f76789880
0 ETH0.0007701210
Flag Account128058712021-07-11 12:00:221192 days ago1626004822IN
0x65e393Bb...f76789880
0 ETH0.0009162110
0x60806040128058262021-07-11 11:50:481192 days ago1626004248IN
 Create: BlacklistManager
0 ETH0.0045269111

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BlacklistManager

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2021-07-11
*/

/*
    ___            _       ___  _                          
    | .\ ___  _ _ <_> ___ | __><_>._ _  ___ ._ _  ___  ___ 
    |  _// ._>| '_>| ||___|| _> | || ' |<_> || ' |/ | '/ ._>
    |_|  \___.|_|  |_|     |_|  |_||_|_|<___||_|_|\_|_.\___.
    
* PeriFinance: BlacklistManager.sol
*
* Latest source (may be newer): https://github.com/perifinance/peri-finance/blob/master/contracts/BlacklistManager.sol
* Docs: Will be added in the future. 
* https://docs.peri.finance/contracts/source/contracts/BlacklistManager
*
* Contract Dependencies: 
*	- Owned
* Libraries: (none)
*
* MIT License
* ===========
*
* Copyright (c) 2021 PeriFinance
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/



pragma solidity 0.5.16;

// https://docs.peri.finance/contracts/source/contracts/owned
contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}


contract BlacklistManager is Owned {
    mapping(address => bool) public flagged;

    address[] public listedAddresses;

    constructor(address _owner) public Owned(_owner) {}

    function flagAccount(address _account) external onlyOwner {
        flagged[_account] = true;

        bool checker = false;
        for (uint i = 0; i < listedAddresses.length; i++) {
            if (listedAddresses[i] == _account) {
                checker = true;

                break;
            }
        }

        if (!checker) {
            listedAddresses.push(_account);
        }

        emit Blacklisted(_account);
    }

    function unflagAccount(address _account) external onlyOwner {
        flagged[_account] = false;

        emit Unblacklisted(_account);
    }

    function getAddresses() external view returns (address[] memory) {
        return listedAddresses;
    }

    event Blacklisted(address indexed account);
    event Unblacklisted(address indexed account);
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"Blacklisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"Unblacklisted","type":"event"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"flagAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"flagged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"listedAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"unflagAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516106f63803806106f68339818101604052602081101561003357600080fd5b5051806001600160a01b038116610091576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150506105fc806100fa6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80637fc42615116100665780637fc42615146101125780638da5cb5b14610138578063a39fac1214610140578063b563545f14610198578063cb2505cf146101b557610093565b80631627540c146100985780632c272456146100c057806353a47bb7146100e657806379ba50971461010a575b600080fd5b6100be600480360360208110156100ae57600080fd5b50356001600160a01b03166101ef565b005b6100be600480360360208110156100d657600080fd5b50356001600160a01b031661024b565b6100ee61029c565b604080516001600160a01b039092168252519081900360200190f35b6100be6102ab565b6100be6004803603602081101561012857600080fd5b50356001600160a01b0316610367565b6100ee61046b565b61014861047a565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561018457818101518382015260200161016c565b505050509050019250505060405180910390f35b6100ee600480360360208110156101ae57600080fd5b50356104dc565b6101db600480360360208110156101cb57600080fd5b50356001600160a01b0316610503565b604080519115158252519081900360200190f35b6101f7610518565b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b610253610518565b6001600160a01b038116600081815260026020526040808220805460ff19169055517f7534c63860313c46c473e4e98328f37017e9674e2162faf1a3ad7a96236c3b7b9190a250565b6001546001600160a01b031681565b6001546001600160a01b031633146102f45760405162461bcd60e51b81526004018080602001828103825260358152602001806105646035913960400191505060405180910390fd5b600054600154604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b61036f610518565b6001600160a01b0381166000908152600260205260408120805460ff19166001179055805b6003548110156103e157826001600160a01b0316600382815481106103b557fe5b6000918252602090912001546001600160a01b031614156103d957600191506103e1565b600101610394565b508061043357600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0384161790555b6040516001600160a01b038316907fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85590600090a25050565b6000546001600160a01b031681565b606060038054806020026020016040519081016040528092919081815260200182805480156104d257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116104b4575b5050505050905090565b600381815481106104e957fe5b6000918252602090912001546001600160a01b0316905081565b60026020526000908152604090205460ff1681565b6000546001600160a01b031633146105615760405162461bcd60e51b815260040180806020018281038252602f815260200180610599602f913960400191505060405180910390fd5b56fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6ea265627a7a723158204e8e1daab64ed2b6b2088f16b104c2349ed56734baec0e4d9edf893aae27a00164736f6c63430005100032000000000000000000000000918153d6e806df9d4d33664d1cc580416171f720

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c80637fc42615116100665780637fc42615146101125780638da5cb5b14610138578063a39fac1214610140578063b563545f14610198578063cb2505cf146101b557610093565b80631627540c146100985780632c272456146100c057806353a47bb7146100e657806379ba50971461010a575b600080fd5b6100be600480360360208110156100ae57600080fd5b50356001600160a01b03166101ef565b005b6100be600480360360208110156100d657600080fd5b50356001600160a01b031661024b565b6100ee61029c565b604080516001600160a01b039092168252519081900360200190f35b6100be6102ab565b6100be6004803603602081101561012857600080fd5b50356001600160a01b0316610367565b6100ee61046b565b61014861047a565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561018457818101518382015260200161016c565b505050509050019250505060405180910390f35b6100ee600480360360208110156101ae57600080fd5b50356104dc565b6101db600480360360208110156101cb57600080fd5b50356001600160a01b0316610503565b604080519115158252519081900360200190f35b6101f7610518565b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b610253610518565b6001600160a01b038116600081815260026020526040808220805460ff19169055517f7534c63860313c46c473e4e98328f37017e9674e2162faf1a3ad7a96236c3b7b9190a250565b6001546001600160a01b031681565b6001546001600160a01b031633146102f45760405162461bcd60e51b81526004018080602001828103825260358152602001806105646035913960400191505060405180910390fd5b600054600154604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b61036f610518565b6001600160a01b0381166000908152600260205260408120805460ff19166001179055805b6003548110156103e157826001600160a01b0316600382815481106103b557fe5b6000918252602090912001546001600160a01b031614156103d957600191506103e1565b600101610394565b508061043357600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0384161790555b6040516001600160a01b038316907fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85590600090a25050565b6000546001600160a01b031681565b606060038054806020026020016040519081016040528092919081815260200182805480156104d257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116104b4575b5050505050905090565b600381815481106104e957fe5b6000918252602090912001546001600160a01b0316905081565b60026020526000908152604090205460ff1681565b6000546001600160a01b031633146105615760405162461bcd60e51b815260040180806020018281038252602f815260200180610599602f913960400191505060405180910390fd5b56fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6ea265627a7a723158204e8e1daab64ed2b6b2088f16b104c2349ed56734baec0e4d9edf893aae27a00164736f6c63430005100032

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

000000000000000000000000918153d6e806df9d4d33664d1cc580416171f720

-----Decoded View---------------
Arg [0] : _owner (address): 0x918153D6e806dF9d4D33664D1cC580416171f720

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000918153d6e806df9d4d33664d1cc580416171f720


Libraries Used


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
Loading...
Loading
[ 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.