ETH Price: $3,644.61 (+0.86%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer88378922019-10-30 3:11:201895 days ago1572405080IN
0x00000000...57279ADaa
0 ETH0.00004832.3

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
85741162019-09-18 15:07:361936 days ago1568819256  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DharmaUpgradeBeacon

Compiler Version
v0.5.11+commit.c082d0b4

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2019-09-18
*/

pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg


/**
 * @title DharmaUpgradeBeacon
 * @author 0age
 * @notice This contract holds the address of the current implementation for
 * Dharma smart wallets and lets a controller update that address in storage.
 */
contract DharmaUpgradeBeacon {
  // The implementation address is held in storage slot zero.
  address private _implementation;

  // The controller that can update the implementation is set as a constant.
  address private constant _CONTROLLER = address(
    0x00000000002226C940b74d674B85E4bE05539663
  );

  /**
   * @notice In the fallback function, allow only the controller to update the
   * implementation address - for all other callers, return the current address.
   * Note that this requires inline assembly, as Solidity fallback functions do
   * not natively take arguments or return values.
   */
  function () external {
    // Return implementation address for all callers other than the controller.
    if (msg.sender != _CONTROLLER) {
      // Load implementation from storage slot zero into memory and return it.
      assembly {
        mstore(0, sload(0))
        return(0, 32)
      }
    } else {
      // Set implementation - put first word in calldata in storage slot zero.
      assembly { sstore(0, calldataload(0)) }
    }
  }
}

Contract Security Audit

Contract ABI

[{"payable":false,"stateMutability":"nonpayable","type":"fallback"}]

6080604052348015600f57600080fd5b50606e80601d6000396000f3fe6080604052348015600f57600080fd5b50336e2226c940b74d674b85e4be055396631460315760005460005260206000f35b60003560005500fea265627a7a72315820202020202020446861726d6155706772616465426561636f6e2020202020202064736f6c634300050b0032

Deployed Bytecode

0x6080604052348015600f57600080fd5b50336e2226c940b74d674b85e4be055396631460315760005460005260206000f35b60003560005500fea265627a7a72315820202020202020446861726d6155706772616465426561636f6e2020202020202064736f6c634300050b0032

Deployed Bytecode Sourcemap

295:1085:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1037:10:0;561:42;1037:25;1033:339;;1189:1;1183:8;1180:1;1173:19;1212:2;1209:1;1202:13;1162:62;1360:1;1347:15;1344:1;1337:26;295:1085

Swarm Source

bzzr://202020202020446861726d6155706772616465426561636f6e20202020202020

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