Contract 0xacf5c0101cbbe8476e87c652e0bef33684cc94d6

 
Synthetix: Proxy sETH Token contract has migrated to a new address.
Ad
Ad
Txn Hash Method
Block
From
To
Value
0xb82aeb69c853dd09e203d2198d9d864e1fa9f81823344b7b0466850edeb95238Approve118672112021-02-16 10:10:55126 days 11 hrs ago0x2c3b2af7a5f5d5066a0adb4ae3142d2c24cad77a IN  Synthetix: Old Proxy sETH Token0 Ether0.00265684923108.99
0xb5fc49a849bdf8c2010d387364976ebde116c27f024c50e2765f7cf6e9810f56Set Target86213422019-09-26 0:33:01635 days 20 hrs ago0xb0a23f40de7f776a4f20153e8995ed3e7d7c8487 IN  Synthetix: Old Proxy sETH Token0 Ether0.00021241515
0xe6ed318f28b4cba2f03cc99fa86b6e8a8d8373de38c8fbb019c61cf2c41133a5Transfer86137032019-09-24 19:44:14637 days 1 hr ago0xd689b787c17e3133e6a3964446eac7559d306227 IN  Synthetix: Old Proxy sETH Token0 Ether0.00218667681
0x63cf2f10f05519bc847672b6aaaf988d412e09e111ffde0241d3db31ed8e6344Transfer85823942019-09-19 22:15:18641 days 23 hrs ago0x1fc6386835eb73c7c3b16695f30611b1a71fc84c IN  Synthetix: Old Proxy sETH Token0 Ether0.000670125
0xaab2b87c7a706ea2a132a7c4869d784411c127d2f1e419e5e1426787b3e0e851Transfer From85821152019-09-19 21:12:04642 days 3 mins ago0x27db8ed7a5216caaa8a4cfedfa5bfbb386cac68b IN  Synthetix: Old Proxy sETH Token0 Ether0.00034238412
0x0ca4249b598a91fd2a3aa9e72a5325ad1265b147027b53e72dae759787428195Transfer85800862019-09-19 13:31:33642 days 7 hrs ago0x215b67d707ced250c3803a19348e9c565e42d7a3 IN  Synthetix: Old Proxy sETH Token0 Ether0.0008079630
0x010732f80b25bc4f50d01a1d7cde6fa3778abbe7813d117f1a43268c01c7f76eTransfer85800412019-09-19 13:21:26642 days 7 hrs ago0x215b67d707ced250c3803a19348e9c565e42d7a3 IN  Synthetix: Old Proxy sETH Token0 Ether0.0008079630
0x3d7b0b4efafb3affdaaedd12ebd4bec1fef8f7a9517ee500fedfa362b4a1c8c6Transfer85377342019-09-12 22:52:54648 days 22 hrs ago0x1fc6386835eb73c7c3b16695f30611b1a71fc84c IN  Synthetix: Old Proxy sETH Token0 Ether0.00112712611
0xde2c0e7c140aa57b2c55adab60cd2e921b0c4e28691451cd2c10a59964f77616Transfer84881242019-09-05 5:13:28656 days 16 hrs ago0x0c24e7cec784e7f27b319054e82cf1093d54ebb8 IN  Synthetix: Old Proxy sETH Token0 Ether0.0006305187
0x86d0a855e56435fce30e76fcb9f463ab5f7234e52b676303dc65523eb886d17cTransfer84826932019-09-04 8:56:35657 days 12 hrs ago0xecc996953e976a305ee585a9c7bbbcc85d1c467b IN  Synthetix: Old Proxy sETH Token0 Ether0.0014354214
0x5cfa4bf202085f6ecdbe5808ab487947a762dfbc1ee6631396fdfb49fcd5d40aTransfer84804482019-09-04 0:38:09657 days 20 hrs agoENS Name ballsdeep.eth IN  Synthetix: Old Proxy sETH Token0 Ether0.00017593532.01
0xf9b4c10b78e7b88fcfef76af9e940e22058ee864b6b2916d8a40d2b79e3ff2f5Transfer84748792019-09-03 3:47:01658 days 17 hrs ago0xbd2b7b9af0c823f0f02c4c875bba619f95539aea IN  Synthetix: Old Proxy sETH Token0 Ether0.0009216189
0xa958c1c34376b87566aec52ac8a79cba054b67b7d5606df77be060fea820fa2cTransfer84717922019-09-02 16:24:07659 days 4 hrs agoENS Name ballsdeep.eth IN  Synthetix: Old Proxy sETH Token0 Ether0.00026346533.01
0xe4bfdbeeac3489962629d668fc2ad9660334f5738518aa876f5f1cc5b1786f3fTransfer84716192019-09-02 15:47:15659 days 5 hrs ago0xcbfc78d7e26c2ff131867ed74fa65572dad6fc90 IN  Synthetix: Old Proxy sETH Token0 Ether0.0005280738024.50045
0x91ef8f23a21824714644578794f3ff6af159700c80d0461d4c0bd378ac8cfa36Transfer84713022019-09-02 14:34:39659 days 6 hrs ago0xbd2b7b9af0c823f0f02c4c875bba619f95539aea IN  Synthetix: Old Proxy sETH Token0 Ether0.0015360315
0xcedcfd4206c2cca3bc20e6b8afed61b035936fbd20f425005749efcedf4a8ff8Transfer84712952019-09-02 14:33:27659 days 6 hrs ago0xbd2b7b9af0c823f0f02c4c875bba619f95539aea IN  Synthetix: Old Proxy sETH Token0 Ether0.00148489515
0x02282fb21857babe248de00576f8e1db1a36a1636d66d69f990262961e48d253Transfer84697032019-09-02 8:24:39659 days 12 hrs ago0x2354d7b3a54c2ef507f724131e5aa11739815e36 IN  Synthetix: Old Proxy sETH Token0 Ether0.0000874661
0xde2175deda91c5bbf1d83e1063c99b5d9d9965c17a8190c7771223cc7c32febdTransfer84659242019-09-01 18:28:44660 days 2 hrs ago0xcbfc78d7e26c2ff131867ed74fa65572dad6fc90 IN  Synthetix: Old Proxy sETH Token0 Ether0.0005280738024.50045
0x55f06ee444abb6ae47cff7a504e3427bcd3b327fb2f902165a006c7f64e655b2Transfer84643642019-09-01 12:32:04660 days 8 hrs ago0x89808c49f858b86e80b892506cf11606fb25fcdc IN  Synthetix: Old Proxy sETH Token0 Ether0.001025310
0xda5d9cadbd6a06041ca8d256751d312a312063955b7a2bcfdbf281c3e6961036Approve84638782019-09-01 10:37:33660 days 10 hrs ago0xa9123b5fd4b0975f8ff11f1de121e3bcf59d9a0c IN  Synthetix: Old Proxy sETH Token0 Ether0.00065368810.5
0x47f3f9b5b44b7a37f2b81c6622c192518b7c52ca08262345e228f4dbb358c5f5Transfer84502162019-08-30 7:31:40662 days 13 hrs ago0x067134eaf65e507aa066ba58443da431e2d81f27 IN  Synthetix: Old Proxy sETH Token0 Ether0.00184438818
0x02a95fd4ef7fd3a8f02cbbfa40ecf037fe890b0534f4232451468a31b62ee3d3Transfer84490452019-08-30 3:05:44662 days 18 hrs ago0x52c72f8333bca27b9e489e729da979047e0dab6d IN  Synthetix: Old Proxy sETH Token0 Ether0.001025310
0x27011b59dcfb4ba056fc1afaada5f923e57015bb9b7ff660867e76f19bb63a7bTransfer84489842019-08-30 2:50:38662 days 18 hrs ago0x52c72f8333bca27b9e489e729da979047e0dab6d IN  Synthetix: Old Proxy sETH Token0 Ether0.0009873310
0x242c02562046e2459742b543ce5cb6f9eceb100434cb55500311ce0d2573b726Transfer84489632019-08-30 2:47:07662 days 18 hrs ago0x52c72f8333bca27b9e489e729da979047e0dab6d IN  Synthetix: Old Proxy sETH Token0 Ether0.0009873310
0xbd5637e97610b7cae2b141158c4f29ee42d0a906f6aaa0cf195173de4470dc14Transfer84489432019-08-30 2:42:00662 days 18 hrs ago0x3a2cff7596d3eeb1fe33d41051e935769ceae392 IN  Synthetix: Old Proxy sETH Token0 Ether0.001025310
[ Download CSV Export 

OVERVIEW

The legacy proxy token contract for Synthetix: Proxy sETH Token.

View more zero value Internal Transactions in Advanced View mode
Loading

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

Contract Name:
Proxy

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-12-06
*/

/* ===============================================
* Flattened with Solidifier by Coinage
* 
* https://solidifier.coina.ge
* ===============================================
*/


/*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------

file:       Owned.sol
version:    1.1
author:     Anton Jurisevic
            Dominic Romanowski

date:       2018-2-26

-----------------------------------------------------------------
MODULE DESCRIPTION
-----------------------------------------------------------------

An Owned contract, to be inherited by other contracts.
Requires its owner to be explicitly set in the constructor.
Provides an onlyOwner access modifier.

To change owner, the current owner must nominate the next owner,
who then has to accept the nomination. The nomination can be
cancelled before it is accepted by the new owner by having the
previous owner change the nomination (setting it to 0).

-----------------------------------------------------------------
*/

pragma solidity 0.4.25;

/**
 * @title A contract with an owner.
 * @notice Contract ownership can be transferred by first nominating the new owner,
 * who must then accept the ownership, which prevents accidental incorrect ownership transfers.
 */
contract Owned {
    address public owner;
    address public nominatedOwner;

    /**
     * @dev Owned Constructor
     */
    constructor(address _owner)
        public
    {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    /**
     * @notice Nominate a new owner of this contract.
     * @dev Only the current owner may nominate a new owner.
     */
    function nominateNewOwner(address _owner)
        external
        onlyOwner
    {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    /**
     * @notice Accept the nomination to be 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
    {
        require(msg.sender == owner, "Only the contract owner may perform this action");
        _;
    }

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


/*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------

file:       Proxyable.sol
version:    1.1
author:     Anton Jurisevic

date:       2018-05-15

checked:    Mike Spain
approved:   Samuel Brooks

-----------------------------------------------------------------
MODULE DESCRIPTION
-----------------------------------------------------------------

A proxyable contract that works hand in hand with the Proxy contract
to allow for anyone to interact with the underlying contract both
directly and through the proxy.

-----------------------------------------------------------------
*/


// This contract should be treated like an abstract contract
contract Proxyable is Owned {
    /* The proxy this contract exists behind. */
    Proxy public proxy;

    /* The caller of the proxy, passed through to this contract.
     * Note that every function using this member must apply the onlyProxy or
     * optionalProxy modifiers, otherwise their invocations can use stale values. */ 
    address messageSender; 

    constructor(address _proxy, address _owner)
        Owned(_owner)
        public
    {
        proxy = Proxy(_proxy);
        emit ProxyUpdated(_proxy);
    }

    function setProxy(address _proxy)
        external
        onlyOwner
    {
        proxy = Proxy(_proxy);
        emit ProxyUpdated(_proxy);
    }

    function setMessageSender(address sender)
        external
        onlyProxy
    {
        messageSender = sender;
    }

    modifier onlyProxy {
        require(Proxy(msg.sender) == proxy, "Only the proxy can call this function");
        _;
    }

    modifier optionalProxy
    {
        if (Proxy(msg.sender) != proxy) {
            messageSender = msg.sender;
        }
        _;
    }

    modifier optionalProxy_onlyOwner
    {
        if (Proxy(msg.sender) != proxy) {
            messageSender = msg.sender;
        }
        require(messageSender == owner, "This action can only be performed by the owner");
        _;
    }

    event ProxyUpdated(address proxyAddress);
}


/*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------

file:       Proxy.sol
version:    1.3
author:     Anton Jurisevic

date:       2018-05-29

-----------------------------------------------------------------
MODULE DESCRIPTION
-----------------------------------------------------------------

A proxy contract that, if it does not recognise the function
being called on it, passes all value and call data to an
underlying target contract.

This proxy has the capacity to toggle between DELEGATECALL
and CALL style proxy functionality.

The former executes in the proxy's context, and so will preserve 
msg.sender and store data at the proxy address. The latter will not.
Therefore, any contract the proxy wraps in the CALL style must
implement the Proxyable interface, in order that it can pass msg.sender
into the underlying contract as the state parameter, messageSender.

-----------------------------------------------------------------
*/


contract Proxy is Owned {

    Proxyable public target;
    bool public useDELEGATECALL;

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

    function setTarget(Proxyable _target)
        external
        onlyOwner
    {
        target = _target;
        emit TargetUpdated(_target);
    }

    function setUseDELEGATECALL(bool value) 
        external
        onlyOwner
    {
        useDELEGATECALL = value;
    }

    function _emit(bytes callData, uint numTopics, bytes32 topic1, bytes32 topic2, bytes32 topic3, bytes32 topic4)
        external
        onlyTarget
    {
        uint size = callData.length;
        bytes memory _callData = callData;

        assembly {
            /* The first 32 bytes of callData contain its length (as specified by the abi). 
             * Length is assumed to be a uint256 and therefore maximum of 32 bytes
             * in length. It is also leftpadded to be a multiple of 32 bytes.
             * This means moving call_data across 32 bytes guarantees we correctly access
             * the data itself. */
            switch numTopics
            case 0 {
                log0(add(_callData, 32), size)
            } 
            case 1 {
                log1(add(_callData, 32), size, topic1)
            }
            case 2 {
                log2(add(_callData, 32), size, topic1, topic2)
            }
            case 3 {
                log3(add(_callData, 32), size, topic1, topic2, topic3)
            }
            case 4 {
                log4(add(_callData, 32), size, topic1, topic2, topic3, topic4)
            }
        }
    }

    function()
        external
        payable
    {
        if (useDELEGATECALL) {
            assembly {
                /* Copy call data into free memory region. */
                let free_ptr := mload(0x40)
                calldatacopy(free_ptr, 0, calldatasize)

                /* Forward all gas and call data to the target contract. */
                let result := delegatecall(gas, sload(target_slot), free_ptr, calldatasize, 0, 0)
                returndatacopy(free_ptr, 0, returndatasize)

                /* Revert if the call failed, otherwise return the result. */
                if iszero(result) { revert(free_ptr, returndatasize) }
                return(free_ptr, returndatasize)
            }
        } else {
            /* Here we are as above, but must send the messageSender explicitly 
             * since we are using CALL rather than DELEGATECALL. */
            target.setMessageSender(msg.sender);
            assembly {
                let free_ptr := mload(0x40)
                calldatacopy(free_ptr, 0, calldatasize)

                /* We must explicitly forward ether to the underlying contract as well. */
                let result := call(gas, sload(target_slot), callvalue, free_ptr, calldatasize, 0, 0)
                returndatacopy(free_ptr, 0, returndatasize)

                if iszero(result) { revert(free_ptr, returndatasize) }
                return(free_ptr, returndatasize)
            }
        }
    }

    modifier onlyTarget {
        require(Proxyable(msg.sender) == target, "Must be proxy target");
        _;
    }

    event TargetUpdated(Proxyable newTarget);
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"setTarget","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"callData","type":"bytes"},{"name":"numTopics","type":"uint256"},{"name":"topic1","type":"bytes32"},{"name":"topic2","type":"bytes32"},{"name":"topic3","type":"bytes32"},{"name":"topic4","type":"bytes32"}],"name":"_emit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"useDELEGATECALL","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"value","type":"bool"}],"name":"setUseDELEGATECALL","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"target","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_owner","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newTarget","type":"address"}],"name":"TargetUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"}]

608060405234801561001057600080fd5b506040516020806108dc833981016040525180600160a060020a038116151561009a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b60008054600160a060020a031916600160a060020a038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150506107d9806101036000396000f3006080604052600436106100985763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631627540c811461018357806353a47bb7146101a4578063776d1a01146101d557806379ba5097146101f65780638da5cb5b1461020b578063907dff971461022057806395578ebd14610250578063befff6af14610279578063d4b8399214610293575b60025474010000000000000000000000000000000000000000900460ff16156100e157604051366000823760008036836002545af43d6000833e8015156100dd573d82fd5b3d82f35b600254604080517fbc67f8320000000000000000000000000000000000000000000000000000000081523360048201529051600160a060020a039092169163bc67f8329160248082019260009290919082900301818387803b15801561014657600080fd5b505af115801561015a573d6000803e3d6000fd5b5050505060405136600082376000803683346002545af13d6000833e8015156100dd573d82fd5b005b34801561018f57600080fd5b50610181600160a060020a03600435166102a8565b3480156101b057600080fd5b506101b9610391565b60408051600160a060020a039092168252519081900360200190f35b3480156101e157600080fd5b50610181600160a060020a03600435166103a0565b34801561020257600080fd5b50610181610489565b34801561021757600080fd5b506101b9610591565b34801561022c57600080fd5b5061018160246004803582810192910135903560443560643560843560a4356105a0565b34801561025c57600080fd5b506102656106b5565b604080519115158252519081900360200190f35b34801561028557600080fd5b5061018160043515156106d6565b34801561029f57600080fd5b506101b961079e565b600054600160a060020a03163314610330576040805160e560020a62461bcd02815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60018054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b600154600160a060020a031681565b600054600160a060020a03163314610428576040805160e560020a62461bcd02815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60028054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252517f814250a3b8c79fcbe2ead2c131c952a278491c8f4322a79fe84b5040a810373e9181900360200190a150565b600154600160a060020a03163314610511576040805160e560020a62461bcd02815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e6572736869700000000000000000000000606482015290519081900360840190fd5b60005460015460408051600160a060020a03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a1600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600054600160a060020a031681565b600254600090606090600160a060020a03163314610608576040805160e560020a62461bcd02815260206004820152601460248201527f4d7573742062652070726f787920746172676574000000000000000000000000604482015290519081900360640190fd5b604080516020601f8b01819004810282018101909252898152899350908a908490819084018382808284378201915050505050509050866000811461066c576001811461067757600281146106835760038114610690576004811461069e576106a9565b8260208301a06106a9565b868360208401a16106a9565b85878460208501a26106a9565b8486888560208601a36106a9565b838587898660208701a45b50505050505050505050565b60025474010000000000000000000000000000000000000000900460ff1681565b600054600160a060020a0316331461075e576040805160e560020a62461bcd02815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60028054911515740100000000000000000000000000000000000000000274ff000000000000000000000000000000000000000019909216919091179055565b600254600160a060020a0316815600a165627a7a723058204bca7a8142e5efe23616315f58e7703485e53941970886ceb05f20ab767ddea00029000000000000000000000000ea5e288b4f9d7e66da162e2af0db371783f62454

Library Used

safedecimalmath : 0x84d626b2bb4d0f064067e4bf80fce7055d8f3e7b

Swarm Source

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