Contract 0x24F861f8356fa8d18b6Adea07Ac59719f42012B1

 
Ad
Ad
Txn Hash Method
Block
From
To
Value
0xd1a328e990c2f6da441314136893dd059cd7d7130063b73287aa1ccc4c7802550x89224a1e103604892020-06-29 11:34:13445 days 8 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.00271884639
0xe77ec95fa49370b4fbb6c8bc23164c42e19afaa44c5ffc894738aa7e9c3bbf7b0x2b949c99102892432020-06-18 10:45:58456 days 8 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.00134346333
0x978028beef4e8af854848a1773a0d1de5c5cc8ffca1f9811e7e17aa407e564570x63331de3102436102020-06-11 9:29:18463 days 10 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.00236770842
0x7cb1fd36d65698669881bcf89eee7ee66312f3ccba1f9d345c908ab1748cf1660x9552a1e5102435852020-06-11 9:24:04463 days 10 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.00264083837
0x765531f0b631c42e89b83ab62e955f7ecbfdc41ffbf04c83256986abbb5089b40x63331de3102434402020-06-11 8:55:44463 days 10 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.00157847228
0xc1013f5ed6ef521291ee7f386477cfca8d80240d7a9f88c5a98f67514e72ab9d0x9552a1e5102433832020-06-11 8:42:00463 days 10 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.00199847228
0x0e52c512404ce1a5ea3916cb2b77ecc41f4381e5993d8b26cc7c307bb52eee570x63331de394637312020-02-11 19:59:42583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0004173928
0x0d5228aca074f860f12864ab956185b5ec81015f22c70cffacc830b432e885d80x9552a1e594637282020-02-11 19:59:09583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0004173928
0x781e1f4e65a5b5dba0dd93b31b25f6f97760039e403bb5187c820d82dab5284e0x63331de394637262020-02-11 19:58:34583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0003311288
0x5f349e7bdceb099e6dbba553a70b63f230fe6e43fd7a3fac3b551bf97bb655820x9552a1e594637242020-02-11 19:58:14583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0004511288
0xfe8edd419e220c4ce359ad22118d2b636392a28f4c0e4172d6733e307d230bb80x63331de394637182020-02-11 19:56:45583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0003311288
0x0324770bb2b85c4d2933594cc441112cd1feb01bfc66742b31dbd340698356bd0x9552a1e594637162020-02-11 19:55:51583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0004511288
0x9bc7678793b6682691be48535fa502133d0a75faadaefe09569494a448eb67110x63331de394637132020-02-11 19:55:07583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0003311288
0x7ee5408e2a9942d23823733c6028ef4d4ee70a2a4c96d8e07e820d9e26b130120x63331de394637022020-02-11 19:53:29583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0003311288
0x1d42ecf1bd97801be49915811ce2de082d68333bb62230f7eb45b2fa1d0a134c0x9552a1e594636992020-02-11 19:52:48583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0004511288
0x6d78f82ee33468703ae8f666034170e5aaa8ac82cac5d70a8160d3524d9854920x9552a1e594636912020-02-11 19:51:24583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0003311288
0xc66a053b853d398acd9dde586ee60daef3ba5d05ab86e4ca820807b6c969562b0x9552a1e594636852020-02-11 19:50:46583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0003311288
0xe19c9df2f161834ebd75be6e7b115d7119b2787b185e20e65d39803c5a277c610x63331de394636772020-02-11 19:49:18583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0003311288
0x7e3c99962c919e00705621c031dc6429f08e61522f76427b1dc6a6b9a3f4a4690x9552a1e594636742020-02-11 19:48:07583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0004511288
0x15f6c0ff7fa7f9a54f01dce344ed8b8672a214f1e1f408c2adec8bf6a1a8090a0x63331de394636612020-02-11 19:44:45583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0004509928
0x70defea90f92ea8a3f909f0ecf31d74e44a897a65e679c2f085a858d84df5dee0x9552a1e594636602020-02-11 19:44:25583 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0005709928
0x841c47eafbbb89da2d1d7bd6611de953d62a2faed7af297aa847de0251536b350xe2db777b94630002020-02-11 17:17:09584 days 2 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0011967137
0xbe99deccbf6b62541a1d135bc767b6193fa3452de083237ed6f6a10c42bafc8d0x63331de391523962019-12-23 20:36:41633 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0000845431.5
0x96ffc91f664f6fa77b8974668f4b80cd8ff4d8e53e070bd2dc5560a3beaf8bc60x9552a1e591523952019-12-23 20:36:32633 days 23 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0001070431.5
0x7de444cba7633479178bd0c49a4761177d6eed31669ade00996b3aab3b5146530x63331de388597432019-11-02 15:48:42685 days 3 hrs agoStrudel Finance: Deployer IN  0x24f861f8356fa8d18b6adea07ac59719f42012b10 Ether0.0000731671.5
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x6d257d7fbe44c15fcf7fd4ab462bd3c86dfc73b73acdeefe5e44ec0c23af33c880594872019-06-30 13:21:23810 days 6 hrs ago 0x5346d0f80e2816fad329f2c140c870ffc3c3e2ef  Contract Creation0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x5346D0f80e2816FaD329F2c140c870ffc3c3E2Ef

Contract Name:
EtherRouter

Compiler Version
v0.5.8+commit.23d335f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2020-03-05
*/

pragma solidity ^0.5.8;
/*
  This file is part of The Colony Network.

  The Colony Network is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  The Colony Network is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with The Colony Network. If not, see <http://www.gnu.org/licenses/>.
*/



/*
  This file is part of The Colony Network.

  The Colony Network is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  The Colony Network is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with The Colony Network. If not, see <http://www.gnu.org/licenses/>.
*/



// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.



contract DSAuthority {
    function canCall(
        address src, address dst, bytes4 sig
    ) public view returns (bool);
}

contract DSAuthEvents {
    event LogSetAuthority (address indexed authority);
    event LogSetOwner     (address indexed owner);
}

contract DSAuth is DSAuthEvents {
    DSAuthority  public  authority;
    address      public  owner;

    constructor() public {
        owner = msg.sender;
        emit LogSetOwner(msg.sender);
    }

    function setOwner(address owner_)
        public
        auth
    {
        owner = owner_;
        emit LogSetOwner(owner);
    }

    function setAuthority(DSAuthority authority_)
        public
        auth
    {
        authority = authority_;
        emit LogSetAuthority(address(authority));
    }

    modifier auth {
        require(isAuthorized(msg.sender, msg.sig), "ds-auth-unauthorized");
        _;
    }

    function isAuthorized(address src, bytes4 sig) internal view returns (bool) {
        if (src == address(this)) {
            return true;
        } else if (src == owner) {
            return true;
        } else if (authority == DSAuthority(0)) {
            return false;
        } else {
            return authority.canCall(src, address(this), sig);
        }
    }
}

// ignore-file-swc-101 This is due to ConsenSys/truffle-security#245 and the bad-line reporting associated with it
// (It's really the abi.encodepacked later)

contract Resolver is DSAuth {
  mapping (bytes4 => address) public pointers;

  function register(string memory signature, address destination) public
  auth
  {
    pointers[stringToSig(signature)] = destination;
  }

  function lookup(bytes4 sig) public view returns(address) {
    return pointers[sig];
  }

  function stringToSig(string memory signature) public pure returns(bytes4) {
    return bytes4(keccak256(abi.encodePacked(signature)));
  }
}



contract EtherRouter is DSAuth {
  Resolver public resolver;

  function() external payable {
    if (msg.sig == 0) {
      return;
    }
    // Contracts that want to receive Ether with a plain "send" have to implement
    // a fallback function with the payable modifier. Contracts now throw if no payable
    // fallback function is defined and no function matches the signature.
    // However, 'send' only provides 2300 gas, which is not enough for EtherRouter
    // so we shortcut it here.
    //
    // Note that this means we can never have a fallback function that 'does' stuff.
    // but those only really seem to be ICOs, to date. To be explicit, there is a hard
    // decision to be made here. Either:
    // 1. Contracts that use 'send' or 'transfer' cannot send money to Colonies/ColonyNetwork
    // 2. We commit to never using a fallback function that does anything.
    //
    // We have decided on option 2 here. In the future, if we wish to have such a fallback function
    // for a Colony, it could be in a separate extension contract.

    // Get routing information for the called function
    address destination = resolver.lookup(msg.sig);

    // Make the call
    assembly {
      let size := extcodesize(destination)
      if eq(size, 0) { revert(0,0) }

      calldatacopy(mload(0x40), 0, calldatasize)
      let result := delegatecall(gas, destination, mload(0x40), calldatasize, mload(0x40), 0) // ignore-swc-113
      // as their addresses are controlled by the Resolver which we trust
      returndatacopy(mload(0x40), 0, returndatasize)
      switch result
      case 1 { return(mload(0x40), returndatasize) }
      default { revert(mload(0x40), returndatasize) }
    }
  }

  function setResolver(address _resolver) public
  auth
  {
    resolver = Resolver(_resolver);
  }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"resolver","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_resolver","type":"address"}],"name":"setResolver","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"authority_","type":"address"}],"name":"setAuthority","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"authority","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"authority","type":"address"}],"name":"LogSetAuthority","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"LogSetOwner","type":"event"}]

60806040819052600180546001600160a01b03191633908117909155907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a2610554806100516000396000f3fe6080604052600436106100555760003560e01c806304f3bcec1461013157806313af4035146101625780634e543b26146101955780637a9e5e4b146101c85780638da5cb5b146101fb578063bf7e214f14610210575b6001600160e01b03196000351661006b5761012f565b60025460408051600160e11b6337b47469028152600080356001600160e01b0319166004830152915191926001600160a01b031691636f68e8d291602480820192602092909190829003018186803b1580156100c657600080fd5b505afa1580156100da573d6000803e3d6000fd5b505050506040513d60208110156100f057600080fd5b50519050803b8061010057600080fd5b36600060405137600060405136604051855af43d60006040513e8060018114610129573d604051fd5b3d604051f35b005b34801561013d57600080fd5b50610146610225565b604080516001600160a01b039092168252519081900360200190f35b34801561016e57600080fd5b5061012f6004803603602081101561018557600080fd5b50356001600160a01b0316610234565b3480156101a157600080fd5b5061012f600480360360208110156101b857600080fd5b50356001600160a01b03166102e8565b3480156101d457600080fd5b5061012f600480360360208110156101eb57600080fd5b50356001600160a01b031661036e565b34801561020757600080fd5b5061014661041e565b34801561021c57600080fd5b5061014661042d565b6002546001600160a01b031681565b61024a336000356001600160e01b03191661043c565b6102985760408051600160e51b62461bcd0281526020600482015260146024820152600160621b73191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995902604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b6102fe336000356001600160e01b03191661043c565b61034c5760408051600160e51b62461bcd0281526020600482015260146024820152600160621b73191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995902604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610384336000356001600160e01b03191661043c565b6103d25760408051600160e51b62461bcd0281526020600482015260146024820152600160621b73191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995902604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b03838116919091178083556040519116917f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada491a250565b6001546001600160a01b031681565b6000546001600160a01b031681565b60006001600160a01b03831630141561045757506001610522565b6001546001600160a01b038481169116141561047557506001610522565b6000546001600160a01b031661048d57506000610522565b60005460408051600160e01b63b70096130281526001600160a01b0386811660048301523060248301526001600160e01b0319861660448301529151919092169163b7009613916064808301926020929190829003018186803b1580156104f357600080fd5b505afa158015610507573d6000803e3d6000fd5b505050506040513d602081101561051d57600080fd5b505190505b9291505056fea165627a7a72305820f0149d120d10d800a2426e1be260041fa00e884552016ea0add83f7a8ce33d7c0029

Deployed ByteCode Sourcemap

4085:1858:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4191:7:0;;;4187:41;;4214:7;;4187:41;5250:8;;:24;;;-1:-1:-1;;;;;5250:24:0;;5228:19;5266:7;;-1:-1:-1;;;;;;5266:7:0;5250:24;;;;;;5228:19;;-1:-1:-1;;;;;5250:8:0;;:15;;:24;;;;;;;;;;;;;;;:8;:24;;;5:2:-1;;;;30:1;27;20:12;5:2;5250:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5250:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5250:24:0;;-1:-1:-1;5335:24:0;;5370:11;5367:2;;5393:1;5391;5384:11;5367:2;5436:12;5433:1;5426:4;5420:11;5407:42;5542:1;5535:4;5529:11;5515:12;5508:4;5502:11;5489;5484:3;5471:73;5676:14;5673:1;5666:4;5660:11;5645:46;5706:6;5725:1;5720:46;;;;5804:14;5797:4;5791:11;5784:35;5720:46;5749:14;5742:4;5736:11;5729:35;5314:514;4085:1858;4121:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4121:24:0;;;:::i;:::-;;;;-1:-1:-1;;;;;4121:24:0;;;;;;;;;;;;;;2614:136;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2614:136:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2614:136:0;-1:-1:-1;;;;;2614:136:0;;:::i;5839:101::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5839:101:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5839:101:0;-1:-1:-1;;;;;5839:101:0;;:::i;2758:173::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2758:173:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2758:173:0;-1:-1:-1;;;;;2758:173:0;;:::i;2474:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2474:26:0;;;:::i;2437:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2437:30:0;;;:::i;4121:24::-;;;-1:-1:-1;;;;;4121:24:0;;:::o;2614:136::-;2972:33;2985:10;2997:7;;-1:-1:-1;;;;;;2997:7:0;2972:12;:33::i;:::-;2964:66;;;;;-1:-1:-1;;;;;2964:66:0;;;;;;;;;;;;-1:-1:-1;;;;;2964:66:0;;;;;;;;;;;;;;;2694:5;:14;;-1:-1:-1;;;;;;2694:14:0;-1:-1:-1;;;;;2694:14:0;;;;;;;;;;;2724:18;;2736:5;;;2724:18;;-1:-1:-1;;2724:18:0;2614:136;:::o;5839:101::-;2972:33;2985:10;2997:7;;-1:-1:-1;;;;;;2997:7:0;2972:12;:33::i;:::-;2964:66;;;;;-1:-1:-1;;;;;2964:66:0;;;;;;;;;;;;-1:-1:-1;;;;;2964:66:0;;;;;;;;;;;;;;;5904:8;:30;;-1:-1:-1;;;;;;5904:30:0;-1:-1:-1;;;;;5904:30:0;;;;;;;;;;5839:101::o;2758:173::-;2972:33;2985:10;2997:7;;-1:-1:-1;;;;;;2997:7:0;2972:12;:33::i;:::-;2964:66;;;;;-1:-1:-1;;;;;2964:66:0;;;;;;;;;;;;-1:-1:-1;;;;;2964:66:0;;;;;;;;;;;;;;;2850:9;:22;;-1:-1:-1;;;;;;2850:22:0;-1:-1:-1;;;;;2850:22:0;;;;;;;;;;2888:35;;2912:9;;;2888:35;;;2758:173;:::o;2474:26::-;;;-1:-1:-1;;;;;2474:26:0;;:::o;2437:30::-;;;-1:-1:-1;;;;;2437:30:0;;:::o;3058:380::-;3128:4;-1:-1:-1;;;;;3149:20:0;;3164:4;3149:20;3145:286;;;-1:-1:-1;3193:4:0;3186:11;;3145:286;3226:5;;-1:-1:-1;;;;;3219:12:0;;;3226:5;;3219:12;3215:216;;;-1:-1:-1;3255:4:0;3248:11;;3215:216;3306:1;3281:9;-1:-1:-1;;;;;3281:9:0;3277:154;;-1:-1:-1;3332:5:0;3325:12;;3277:154;3377:9;;:42;;;-1:-1:-1;;;;;3377:42:0;;-1:-1:-1;;;;;3377:42:0;;;;;;;3408:4;3377:42;;;;-1:-1:-1;;;;;;3377:42:0;;;;;;;;:9;;;;;:17;;:42;;;;;;;;;;;;;;:9;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;3377:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3377:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3377:42:0;;-1:-1:-1;3277:154:0;3058:380;;;;:::o

Swarm Source

bzzr://f0149d120d10d800a2426e1be260041fa00e884552016ea0add83f7a8ce33d7c
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.