Contract

0x75e1e98650c119c4E3dCE3070CE6A5397Ed70c6a

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Update Proxies5991012024-12-18 18:04:4710 hrs ago1734545087IN
0x75e1e986...97Ed70c6a
0 S0.000447594
Update Proxies5990842024-12-18 18:04:4210 hrs ago1734545082IN
0x75e1e986...97Ed70c6a
0 S0.000446244
Update Proxies5990712024-12-18 18:04:3710 hrs ago1734545077IN
0x75e1e986...97Ed70c6a
0 S0.000447114
Update Proxies5990532024-12-18 18:04:3210 hrs ago1734545072IN
0x75e1e986...97Ed70c6a
0 S0.000447534
Update Proxies5990322024-12-18 18:04:2410 hrs ago1734545064IN
0x75e1e986...97Ed70c6a
0 S0.000446754
Update Proxies5990142024-12-18 18:04:1810 hrs ago1734545058IN
0x75e1e986...97Ed70c6a
0 S0.000446744
Update Proxies5989702024-12-18 18:04:0410 hrs ago1734545044IN
0x75e1e986...97Ed70c6a
0 S0.000446664
Update Proxies5989542024-12-18 18:03:5810 hrs ago1734545038IN
0x75e1e986...97Ed70c6a
0 S0.000445954
Update Proxies5989342024-12-18 18:03:5110 hrs ago1734545031IN
0x75e1e986...97Ed70c6a
0 S0.000447624
Update Proxies5989112024-12-18 18:03:4410 hrs ago1734545024IN
0x75e1e986...97Ed70c6a
0 S0.000769344
Update Proxies5988622024-12-18 18:03:2810 hrs ago1734545008IN
0x75e1e986...97Ed70c6a
0 S0.002945964
Update Proxies5988532024-12-18 18:03:2410 hrs ago1734545004IN
0x75e1e986...97Ed70c6a
0 S0.00391614
Update Proxies5988412024-12-18 18:03:2010 hrs ago1734545000IN
0x75e1e986...97Ed70c6a
0 S0.003916344
Update Proxies5988292024-12-18 18:03:1710 hrs ago1734544997IN
0x75e1e986...97Ed70c6a
0 S0.003916394
Update Proxies5988182024-12-18 18:03:1210 hrs ago1734544992IN
0x75e1e986...97Ed70c6a
0 S0.003916344
Update Proxies5988062024-12-18 18:03:0910 hrs ago1734544989IN
0x75e1e986...97Ed70c6a
0 S0.003916394
Update Proxies5676742024-12-18 14:50:1913 hrs ago1734533419IN
0x75e1e986...97Ed70c6a
0 S0.000569944
Update Proxies5676582024-12-18 14:50:1213 hrs ago1734533412IN
0x75e1e986...97Ed70c6a
0 S0.000570714
Update Proxies5676382024-12-18 14:50:0513 hrs ago1734533405IN
0x75e1e986...97Ed70c6a
0 S0.000569524
Update Proxies5676162024-12-18 14:49:5813 hrs ago1734533398IN
0x75e1e986...97Ed70c6a
0 S0.000570234
Update Proxies5676002024-12-18 14:49:5213 hrs ago1734533392IN
0x75e1e986...97Ed70c6a
0 S0.000570614
Update Proxies5675662024-12-18 14:49:4213 hrs ago1734533382IN
0x75e1e986...97Ed70c6a
0 S0.000570334
Update Proxies5675512024-12-18 14:49:3613 hrs ago1734533376IN
0x75e1e986...97Ed70c6a
0 S0.000570864
Update Proxies5675162024-12-18 14:49:2313 hrs ago1734533363IN
0x75e1e986...97Ed70c6a
0 S0.000570144
Update Proxies5674962024-12-18 14:49:1713 hrs ago1734533357IN
0x75e1e986...97Ed70c6a
0 S0.000570334
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProxyControlled

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 50 runs

Other Settings:
istanbul EvmVersion, BSL 1.1 license
File 1 of 5 : ProxyControlled.sol
// SPDX-License-Identifier: BUSL-1.1
/**
            ▒▓▒  ▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓███▓▓▒     ▒▒▒▒▓▓▓▒▓▓▓▓▓▓▓██▓
             ▒██▒▓▓▓▓█▓██████████████████▓  ▒▒▒▓███████████████▒
              ▒██▒▓█████████████████████▒ ▒▓██████████▓███████
               ▒███████████▓▒                   ▒███▓▓██████▓
                 █████████▒                     ▒▓▒▓███████▒
                  ███████▓      ▒▒▒▒▒▓▓█▓▒     ▓█▓████████
                   ▒▒▒▒▒   ▒▒▒▒▓▓▓█████▒      ▓█████████▓
                         ▒▓▓▓▒▓██████▓      ▒▓▓████████▒
                       ▒██▓▓▓███████▒      ▒▒▓███▓████
                        ▒███▓█████▒       ▒▒█████▓██▓
                          ██████▓   ▒▒▒▓██▓██▓█████▒
                           ▒▒▓▓▒   ▒██▓▒▓▓████████
                                  ▓█████▓███████▓
                                 ██▓▓██████████▒
                                ▒█████████████
                                 ███████████▓
      ▒▓▓▓▓▓▓▒▓                  ▒█████████▒                      ▒▓▓
    ▒▓█▒   ▒▒█▒▒                   ▓██████                       ▒▒▓▓▒
   ▒▒█▒       ▓▒                    ▒████                       ▒▓█▓█▓▒
   ▓▒██▓▒                             ██                       ▒▓█▓▓▓██▒
    ▓█▓▓▓▓▓█▓▓▓▒        ▒▒▒         ▒▒▒▓▓▓▓▒▓▒▒▓▒▓▓▓▓▓▓▓▓▒    ▒▓█▒ ▒▓▒▓█▓
     ▒▓█▓▓▓▓▓▓▓▓▓▓▒    ▒▒▒▓▒     ▒▒▒▓▓     ▓▓  ▓▓█▓   ▒▒▓▓   ▒▒█▒   ▒▓▒▓█▓
            ▒▒▓▓▓▒▓▒  ▒▓▓▓▒█▒   ▒▒▒█▒          ▒▒█▓▒▒▒▓▓▓▒   ▓██▓▓▓▓▓▓▓███▓
 ▒            ▒▓▓█▓  ▒▓▓▓▓█▓█▓  ▒█▓▓▒          ▓▓█▓▒▓█▓▒▒   ▓█▓        ▓███▓
▓▓▒         ▒▒▓▓█▓▒▒▓█▒   ▒▓██▓  ▓██▓▒     ▒█▓ ▓▓██   ▒▓▓▓▒▒▓█▓        ▒▓████▒
 ██▓▓▒▒▒▒▓▓███▓▒ ▒▓▓▓▓▒▒ ▒▓▓▓▓▓▓▓▒▒▒▓█▓▓▓▓█▓▓▒▒▓▓▓▓▓▒    ▒▓████▓▒     ▓▓███████▓▓▒
*/
pragma solidity 0.8.23;


import "./UpgradeableProxy.sol";
import "../interfaces/IControllable.sol";
import "../interfaces/IProxyControlled.sol";

/// @title EIP1967 Upgradable proxy implementation.
/// @dev Only Controller has access and should implement time-lock for upgrade action.
/// @author belbix
contract ProxyControlled is UpgradeableProxy, IProxyControlled {

  /// @notice Version of the contract
  /// @dev Should be incremented when contract changed
  string public constant PROXY_CONTROLLED_VERSION = "1.0.0";


  constructor(address _logic) UpgradeableProxy(_logic) {
    //make sure that given logic is controllable
    require(IControllable(_logic).created() >= 0);
  }

  /// @notice Upgrade contract logic
  /// @dev Upgrade allowed only for Controller and should be done only after time-lock period
  /// @param newImplementation_ Implementation address
  function upgrade(address newImplementation_) external override {
    require(IControllable(address(this)).isController(msg.sender), "Proxy: Forbidden");
    IControllable(address(this)).increaseRevision(_implementation());
    _upgradeTo(newImplementation_);
    // the new contract must have the same ABI and you must have the power to change it again
    require(IControllable(address(this)).isController(msg.sender), "Proxy: Wrong implementation");
  }

  /// @notice Return current logic implementation
  function implementation() external override view returns (address) {
    return _implementation();
  }
}

File 2 of 5 : IControllable.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.23;

interface IControllable {

  function VERSION() external pure returns (string memory);

  function revision() external view returns (uint);

  function previousImplementation() external view returns (address);

  function isController(address contract_) external view returns (bool);

  function isGovernance(address contract_) external view returns (bool);

  function created() external view returns (uint256);

  function createdBlock() external view returns (uint256);

  function controller() external view returns (address);

  function increaseRevision(address oldLogic) external;

}

File 3 of 5 : IProxyControlled.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.23;

interface IProxyControlled {

  function upgrade(address newImplementation_) external;

  function implementation() external view returns (address);

}

File 4 of 5 : Proxy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
  /**
   * @dev Delegates the current call to `implementation`.
   *
   * This function does not return to its internall call site, it will return directly to the external caller.
   */
  function _delegate(address implementation) internal virtual {
    assembly {
    // Copy msg.data. We take full control of memory in this inline assembly
    // block because it will not return to Solidity code. We overwrite the
    // Solidity scratch pad at memory position 0.
      calldatacopy(0, 0, calldatasize())

    // Call the implementation.
    // out and outsize are 0 because we don't know the size yet.
      let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

    // Copy the returned data.
      returndatacopy(0, 0, returndatasize())

      switch result
      // delegatecall returns 0 on error.
      case 0 {
        revert(0, returndatasize())
      }
      default {
        return (0, returndatasize())
      }
    }
  }

  /**
   * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
   * and {_fallback} should delegate.
   */
  function _implementation() internal view virtual returns (address);

  /**
   * @dev Delegates the current call to the address returned by `_implementation()`.
   *
   * This function does not return to its internall call site, it will return directly to the external caller.
   */
  function _fallback() internal virtual {
    _beforeFallback();
    _delegate(_implementation());
  }

  /**
   * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
   * function in the contract matches the call data.
   */
  fallback() external payable virtual {
    _fallback();
  }

  /**
   * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
   * is empty.
   */
  receive() external payable virtual {
    _fallback();
  }

  /**
   * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
   * call, or as part of the Solidity `fallback` or `receive` functions.
   *
   * If overriden should call `super._beforeFallback()`.
   */
  function _beforeFallback() internal virtual {}
}

File 5 of 5 : UpgradeableProxy.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.23;

import "../openzeppelin/Proxy.sol";

/// @title OpenZeppelin https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/proxy/UpgradeableProxy.sol
/// @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
///      implementation address that can be changed. This address is stored in storage in the location specified by
///      https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
///      implementation behind the proxy.
///      Upgradeability is only provided internally through {_upgradeTo}. For an externally upgradeable proxy see
///      {TransparentUpgradeableProxy}.
abstract contract UpgradeableProxy is Proxy {

  /// @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
  ///      If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
  ///      function call, and allows initializating the storage of the proxy like a Solidity constructor.
  constructor(address _logic) payable {
    assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
    _setImplementation(_logic);
  }

  /// @dev Emitted when the implementation is upgraded.
  event Upgraded(address indexed implementation);

  ///@dev Storage slot with the address of the current implementation.
  ///     This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
  ///     validated in the constructor.
  bytes32 private constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

  /// @dev Returns the current implementation address.
  function _implementation() internal view virtual override returns (address impl) {
    bytes32 slot = _IMPLEMENTATION_SLOT;
    // solhint-disable-next-line no-inline-assembly
    assembly {
      impl := sload(slot)
    }
  }

  /// @dev Upgrades the proxy to a new implementation.
  ///      Emits an {Upgraded} event.
  function _upgradeTo(address newImplementation) internal virtual {
    _setImplementation(newImplementation);
    emit Upgraded(newImplementation);
  }

  /// @dev Stores a new address in the EIP1967 implementation slot.
  function _setImplementation(address newImplementation) private {
    require(newImplementation.code.length != 0, "UpgradeableProxy: new implementation is not a contract");

    bytes32 slot = _IMPLEMENTATION_SLOT;

    // solhint-disable-next-line no-inline-assembly
    assembly {
      sstore(slot, newImplementation)
    }
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_logic","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"PROXY_CONTROLLED_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation_","type":"address"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060405161070938038061070983398101604081905261002f9161018c565b8061005b60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6101bc565b6000805160206106e983398151915214610077576100776101e3565b610080816100f6565b506000816001600160a01b031663325a19f16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e591906101f9565b10156100f057600080fd5b50610212565b806001600160a01b03163b60000361017a5760405162461bcd60e51b815260206004820152603660248201527f5570677261646561626c6550726f78793a206e657720696d706c656d656e746160448201527f74696f6e206973206e6f74206120636f6e747261637400000000000000000000606482015260840160405180910390fd5b6000805160206106e983398151915255565b60006020828403121561019e57600080fd5b81516001600160a01b03811681146101b557600080fd5b9392505050565b818103818111156101dd57634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052600160045260246000fd5b60006020828403121561020b57600080fd5b5051919050565b6104c8806102216000396000f3fe6080604052600436106100385760003560e01c80630900f0101461004f5780633bc845301461006f5780635c60da1b146100b657610047565b36610047576100456100d8565b005b6100456100d8565b34801561005b57600080fd5b5061004561006a3660046103dd565b6100ea565b34801561007b57600080fd5b506100a0604051806040016040528060058152602001640312e302e360dc1b81525081565b6040516100ad919061040d565b60405180910390f35b3480156100c257600080fd5b506100cb6102a8565b6040516100ad919061045c565b6100e86100e36102b7565b6102dc565b565b60405163b429afeb60e01b8152309063b429afeb9061010d90339060040161045c565b602060405180830381865afa15801561012a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014e9190610470565b6101925760405162461bcd60e51b815260206004820152601060248201526f283937bc3c9d102337b93134b23232b760811b60448201526064015b60405180910390fd5b30634fac6ccd6101a06102b7565b6040518263ffffffff1660e01b81526004016101bc919061045c565b600060405180830381600087803b1580156101d657600080fd5b505af11580156101ea573d6000803e3d6000fd5b505050506101f781610300565b60405163b429afeb60e01b8152309063b429afeb9061021a90339060040161045c565b602060405180830381865afa158015610237573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025b9190610470565b6102a55760405162461bcd60e51b815260206004820152601b60248201527a283937bc3c9d102bb937b7339034b6b83632b6b2b73a30ba34b7b760291b6044820152606401610189565b50565b60006102b26102b7565b905090565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156102fb573d6000f35b3d6000fd5b61030981610340565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b806001600160a01b03163b6000036103b95760405162461bcd60e51b815260206004820152603660248201527f5570677261646561626c6550726f78793a206e657720696d706c656d656e74616044820152751d1a5bdb881a5cc81b9bdd08184818dbdb9d1c9858dd60521b6064820152608401610189565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6000602082840312156103ef57600080fd5b81356001600160a01b038116811461040657600080fd5b9392505050565b60006020808352835180602085015260005b8181101561043b5785810183015185820160400152820161041f565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0391909116815260200190565b60006020828403121561048257600080fd5b8151801515811461040657600080fdfea2646970667358221220483dd349a6a96a9c79e983f237b6fa176adbf5f8652b1313f4595d0dd8afd2db64736f6c63430008170033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc000000000000000000000000099c314f792e1f91f53765fc64aadccf4dcf1538

Deployed Bytecode

0x6080604052600436106100385760003560e01c80630900f0101461004f5780633bc845301461006f5780635c60da1b146100b657610047565b36610047576100456100d8565b005b6100456100d8565b34801561005b57600080fd5b5061004561006a3660046103dd565b6100ea565b34801561007b57600080fd5b506100a0604051806040016040528060058152602001640312e302e360dc1b81525081565b6040516100ad919061040d565b60405180910390f35b3480156100c257600080fd5b506100cb6102a8565b6040516100ad919061045c565b6100e86100e36102b7565b6102dc565b565b60405163b429afeb60e01b8152309063b429afeb9061010d90339060040161045c565b602060405180830381865afa15801561012a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014e9190610470565b6101925760405162461bcd60e51b815260206004820152601060248201526f283937bc3c9d102337b93134b23232b760811b60448201526064015b60405180910390fd5b30634fac6ccd6101a06102b7565b6040518263ffffffff1660e01b81526004016101bc919061045c565b600060405180830381600087803b1580156101d657600080fd5b505af11580156101ea573d6000803e3d6000fd5b505050506101f781610300565b60405163b429afeb60e01b8152309063b429afeb9061021a90339060040161045c565b602060405180830381865afa158015610237573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025b9190610470565b6102a55760405162461bcd60e51b815260206004820152601b60248201527a283937bc3c9d102bb937b7339034b6b83632b6b2b73a30ba34b7b760291b6044820152606401610189565b50565b60006102b26102b7565b905090565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156102fb573d6000f35b3d6000fd5b61030981610340565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b806001600160a01b03163b6000036103b95760405162461bcd60e51b815260206004820152603660248201527f5570677261646561626c6550726f78793a206e657720696d706c656d656e74616044820152751d1a5bdb881a5cc81b9bdd08184818dbdb9d1c9858dd60521b6064820152608401610189565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b6000602082840312156103ef57600080fd5b81356001600160a01b038116811461040657600080fd5b9392505050565b60006020808352835180602085015260005b8181101561043b5785810183015185820160400152820161041f565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0391909116815260200190565b60006020828403121561048257600080fd5b8151801515811461040657600080fdfea2646970667358221220483dd349a6a96a9c79e983f237b6fa176adbf5f8652b1313f4595d0dd8afd2db64736f6c63430008170033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000099c314f792e1f91f53765fc64aadccf4dcf1538

-----Decoded View---------------
Arg [0] : _logic (address): 0x099C314F792e1F91f53765Fc64AaDCcf4dCf1538

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000099c314f792e1f91f53765fc64aadccf4dcf1538


Block Transaction 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
[ 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.