Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
Router
Compiler Version
v0.5.6+commit.b259423e
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2022-05-25 */ // This License is not an Open Source license. Copyright 2022. Ozys Co. Ltd. All rights reserved. pragma solidity 0.5.6; contract Router { address public owner; address public nextOwner; address public factory; address public WETH; address payable public implementation; bool public entered; constructor(address payable _implementation, address _factory, address _WETH) public { owner = msg.sender; implementation = _implementation; factory = _factory; WETH = _WETH; } function _setImplementation(address payable _newImp) public { require(msg.sender == owner); require(implementation != _newImp); implementation = _newImp; } function () payable external { address impl = implementation; require(impl != address(0)); assembly { let ptr := mload(0x40) calldatacopy(ptr, 0, calldatasize) let result := delegatecall(gas, impl, ptr, calldatasize, 0, 0) let size := returndatasize returndatacopy(ptr, 0, size) switch result case 0 { revert(ptr, size) } default { return(ptr, size) } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nextOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"entered","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"WETH","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newImp","type":"address"}],"name":"_setImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_implementation","type":"address"},{"name":"_factory","type":"address"},{"name":"_WETH","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516060806103008339810180604052606081101561003057600080fd5b5080516020820151604090920151600080546001600160a01b03199081163317909155600480546001600160a01b039485169083161790556002805494841694821694909417909355600380549290911691909216179055610269806100976000396000f3fe6080604052600436106100705760003560e01c8063a77f05e91161004e578063a77f05e914610106578063ad5c46481461012f578063bb913f4114610144578063c45a01551461017957610070565b80635c60da1b146100ab57806369f3331d146100dc5780638da5cb5b146100f1575b6004546001600160a01b03168061008657600080fd5b60405136600082376000803683855af43d806000843e8180156100a7578184f35b8184fd5b3480156100b757600080fd5b506100c061018e565b604080516001600160a01b039092168252519081900360200190f35b3480156100e857600080fd5b506100c061019d565b3480156100fd57600080fd5b506100c06101ac565b34801561011257600080fd5b5061011b6101bb565b604080519115158252519081900360200190f35b34801561013b57600080fd5b506100c06101cb565b34801561015057600080fd5b506101776004803603602081101561016757600080fd5b50356001600160a01b03166101da565b005b34801561018557600080fd5b506100c061022e565b6004546001600160a01b031681565b6001546001600160a01b031681565b6000546001600160a01b031681565b600454600160a01b900460ff1681565b6003546001600160a01b031681565b6000546001600160a01b031633146101f157600080fd5b6004546001600160a01b038281169116141561020c57600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b03168156fea165627a7a723058208c0daaa3bd585cddd269fa78447b6ceb71df026f50b4c0e362b2f82252f956a50029000000000000000000000000d1cb4ba24d8d68959c90657820f6cb40415d6b1f0000000000000000000000009f3044f7f9fc8bc9ed615d54845b4577b833282d0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d1cb4ba24d8d68959c90657820f6cb40415d6b1f0000000000000000000000009f3044f7f9fc8bc9ed615d54845b4577b833282d0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
-----Decoded View---------------
Arg [0] : _implementation (address): 0xd1cb4ba24d8d68959c90657820f6cb40415d6b1f
Arg [1] : _factory (address): 0x9f3044f7f9fc8bc9ed615d54845b4577b833282d
Arg [2] : _WETH (address): 0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d1cb4ba24d8d68959c90657820f6cb40415d6b1f
Arg [1] : 0000000000000000000000009f3044f7f9fc8bc9ed615d54845b4577b833282d
Arg [2] : 0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Deployed ByteCode Sourcemap
125:1145:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;820:14;;-1:-1:-1;;;;;820:14:0;853:18;845:27;;;;;;924:4;918:11;964:12;961:1;956:3;943:34;1051:1;1048;1034:12;1029:3;1023:4;1018:3;1005:48;1079:14;1130:4;1127:1;1122:3;1107:28;1158:6;1178:28;;;;1242:4;1237:3;1230:17;1178:28;1199:4;1194:3;1187:17;265:37;;8:9:-1;5:2;;;30:1;27;20:12;5:2;265:37:0;;;:::i;:::-;;;;-1:-1:-1;;;;;265:37:0;;;;;;;;;;;;;;177:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;177:24:0;;;:::i;148:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;148:20:0;;;:::i;309:19::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;309:19:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;237;;8:9:-1;5:2;;;30:1;27;20:12;5:2;237:19:0;;;:::i;570:187::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;570:187:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;570:187:0;-1:-1:-1;;;;;570:187:0;;:::i;:::-;;208:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;208:22:0;;;:::i;265:37::-;;;-1:-1:-1;;;;;265:37:0;;:::o;177:24::-;;;-1:-1:-1;;;;;177:24:0;;:::o;148:20::-;;;-1:-1:-1;;;;;148:20:0;;:::o;309:19::-;;;-1:-1:-1;;;309:19:0;;;;;:::o;237:::-;;;-1:-1:-1;;;;;237:19:0;;:::o;570:187::-;663:5;;-1:-1:-1;;;;;663:5:0;649:10;:19;641:28;;;;;;688:14;;-1:-1:-1;;;;;688:25:0;;;:14;;:25;;680:34;;;;;;725:14;:24;;-1:-1:-1;;;;;;725:24:0;-1:-1:-1;;;;;725:24:0;;;;;;;;;;570:187::o;208:22::-;;;-1:-1:-1;;;;;208:22:0;;:::o
Swarm Source
bzzr://8c0daaa3bd585cddd269fa78447b6ceb71df026f50b4c0e362b2f82252f956a5
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.