Contract 0xd510Dbac17f4AFeAd860f4Cfb172Fbf7a020cE4F

 
Txn Hash Method
Block
From
To
Value
0xb8cd6e5975ddc9ded5d15d26995ab5ba7b4c43d73569352f17078bc0c2f6b3f10x60806040754541592023-02-20 0:48:22366 days 23 hrs ago0x71a15ac12ee91bf7c83d08506f3a3588143898b5 IN  Create: Owner0 ETH0.0004722867880.001
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Owner

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, None license
File 1 of 2 : Owner.sol
//SPDX-License-Identifier: None
pragma solidity =0.7.6;
pragma abicoder v2;

import "./utils/Ownable.sol";

contract Owner is Ownable {
    function sweepTokenFromRouter(address router, address token, uint amount, address receiver) onlyOwner external {
        (bool success, ) = router.call(abi.encode(uint(0), token, amount, receiver));
        require(success);
    }

    function setPool(address router, uint id, address pool) onlyOwner external {
        (bool success, ) = router.call(abi.encode(uint(1), id, pool));
        require(success);
    }
}

File 2 of 2 : Ownable.sol
//SPDX-License-Identifier: None
pragma solidity =0.7.6;

contract Ownable {
    address public owner;

    constructor(){
        owner = msg.sender;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "!owner");
        _;
    }

    function setOwner(address newOwner) onlyOwner external {
        owner = newOwner;
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"pool","type":"address"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"sweepTokenFromRouter","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b031916331790556105dd806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806313af4035146100515780632ccd7a3b146100665780636d605fcf146100795780638da5cb5b1461008c575b600080fd5b61006461005f366004610445565b6100aa565b005b610064610074366004610466565b610177565b6100646100873660046104b2565b6102bd565b610094610400565b6040516100a19190610526565b60405180910390f35b60005473ffffffffffffffffffffffffffffffffffffffff16331461013057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216f776e65720000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146101fd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216f776e65720000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60008473ffffffffffffffffffffffffffffffffffffffff16600085858560405160200161022e9493929190610547565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610266916104ed565b6000604051808303816000865af19150503d80600081146102a3576040519150601f19603f3d011682016040523d82523d6000602084013e6102a8565b606091505b50509050806102b657600080fd5b5050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461034357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216f776e65720000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60008373ffffffffffffffffffffffffffffffffffffffff16600184846040516020016103729392919061057b565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526103aa916104ed565b6000604051808303816000865af19150503d80600081146103e7576040519150601f19603f3d011682016040523d82523d6000602084013e6103ec565b606091505b50509050806103fa57600080fd5b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b803573ffffffffffffffffffffffffffffffffffffffff8116811461044057600080fd5b919050565b600060208284031215610456578081fd5b61045f8261041c565b9392505050565b6000806000806080858703121561047b578283fd5b6104848561041c565b93506104926020860161041c565b9250604085013591506104a76060860161041c565b905092959194509250565b6000806000606084860312156104c6578283fd5b6104cf8461041c565b9250602084013591506104e46040850161041c565b90509250925092565b60008251815b8181101561050d57602081860181015185830152016104f3565b8181111561051b5782828501525b509190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b93845273ffffffffffffffffffffffffffffffffffffffff9283166020850152604084019190915216606082015260800190565b928352602083019190915273ffffffffffffffffffffffffffffffffffffffff1660408201526060019056fea2646970667358221220f3edf7228b3d7fd184fcfd4328e31baa7e833e249904fc5fafeb5b5174fc7d3d64736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806313af4035146100515780632ccd7a3b146100665780636d605fcf146100795780638da5cb5b1461008c575b600080fd5b61006461005f366004610445565b6100aa565b005b610064610074366004610466565b610177565b6100646100873660046104b2565b6102bd565b610094610400565b6040516100a19190610526565b60405180910390f35b60005473ffffffffffffffffffffffffffffffffffffffff16331461013057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216f776e65720000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146101fd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216f776e65720000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60008473ffffffffffffffffffffffffffffffffffffffff16600085858560405160200161022e9493929190610547565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610266916104ed565b6000604051808303816000865af19150503d80600081146102a3576040519150601f19603f3d011682016040523d82523d6000602084013e6102a8565b606091505b50509050806102b657600080fd5b5050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461034357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216f776e65720000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60008373ffffffffffffffffffffffffffffffffffffffff16600184846040516020016103729392919061057b565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526103aa916104ed565b6000604051808303816000865af19150503d80600081146103e7576040519150601f19603f3d011682016040523d82523d6000602084013e6103ec565b606091505b50509050806103fa57600080fd5b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b803573ffffffffffffffffffffffffffffffffffffffff8116811461044057600080fd5b919050565b600060208284031215610456578081fd5b61045f8261041c565b9392505050565b6000806000806080858703121561047b578283fd5b6104848561041c565b93506104926020860161041c565b9250604085013591506104a76060860161041c565b905092959194509250565b6000806000606084860312156104c6578283fd5b6104cf8461041c565b9250602084013591506104e46040850161041c565b90509250925092565b60008251815b8181101561050d57602081860181015185830152016104f3565b8181111561051b5782828501525b509190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b93845273ffffffffffffffffffffffffffffffffffffffff9283166020850152604084019190915216606082015260800190565b928352602083019190915273ffffffffffffffffffffffffffffffffffffffff1660408201526060019056fea2646970667358221220f3edf7228b3d7fd184fcfd4328e31baa7e833e249904fc5fafeb5b5174fc7d3d64736f6c63430007060033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.