ETH Price: $2,341.79 (-1.97%)

Contract

0xcB3e482df38d62E73A7aE0E15a2605caDcc5aE98
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Register Brokerb...203199482024-07-16 15:24:3557 days ago1721143475IN
0xcB3e482d...aDcc5aE98
0 ETH0.00586932120
Register Brokerb...199174092024-05-21 9:32:23113 days ago1716283943IN
0xcB3e482d...aDcc5aE98
0 ETH0.00586932120
Register Brokerb...198869732024-05-17 3:19:59117 days ago1715915999IN
0xcB3e482d...aDcc5aE98
0 ETH0.000159583.26361958
Register Brokerb...198771652024-05-15 18:26:23119 days ago1715797583IN
0xcB3e482d...aDcc5aE98
0 ETH0.000263378.27933738
Register Brokerb...198771612024-05-15 18:25:35119 days ago1715797535IN
0xcB3e482d...aDcc5aE98
0 ETH0.000393788.05096794
Register Brokerb...198755552024-05-15 13:03:11119 days ago1715778191IN
0xcB3e482d...aDcc5aE98
0 ETH0.0005359910.96117982
Register Brokerb...198755342024-05-15 12:58:59119 days ago1715777939IN
0xcB3e482d...aDcc5aE98
0 ETH0.000452469.25074577
Register Brokerb...188119312023-12-18 9:17:23268 days ago1702891043IN
0xcB3e482d...aDcc5aE98
0 ETH0.0016366433.47805313
Register Brokerb...178919752023-08-11 13:34:59397 days ago1691760899IN
0xcB3e482d...aDcc5aE98
0 ETH0.0010261820.98074981
Register Brokerb...176194112023-07-04 8:35:59435 days ago1688459759IN
0xcB3e482d...aDcc5aE98
0 ETH0.0007846816.04306956
Register Brokerb...176193232023-07-04 8:18:23435 days ago1688458703IN
0xcB3e482d...aDcc5aE98
0 ETH0.0008678517.74364533
Register Brokerb...175414512023-06-23 9:43:23446 days ago1687513403IN
0xcB3e482d...aDcc5aE98
0 ETH0.000652813.35016895
Register Brokerb...169318572023-03-29 8:47:11532 days ago1680079631IN
0xcB3e482d...aDcc5aE98
0 ETH0.0014690330.04221517
Register Brokerb...165776162023-02-07 14:52:23582 days ago1675781543IN
0xcB3e482d...aDcc5aE98
0 ETH0.0017088534.93811426
Register Brokerb...165197682023-01-30 12:53:59590 days ago1675083239IN
0xcB3e482d...aDcc5aE98
0 ETH0.0008731717.85229405
Register Brokerb...163928942023-01-12 19:46:11608 days ago1673552771IN
0xcB3e482d...aDcc5aE98
0 ETH0.0005802220
Register Brokerb...163897642023-01-12 9:15:35608 days ago1673514935IN
0xcB3e482d...aDcc5aE98
0 ETH0.0009021318.44441638
Register Brokerb...162833632022-12-28 12:51:11623 days ago1672231871IN
0xcB3e482d...aDcc5aE98
0 ETH0.0006167412.61267309
Register Brokerb...161973422022-12-16 12:45:11635 days ago1671194711IN
0xcB3e482d...aDcc5aE98
0 ETH0.0007917516.19165686
Register Brokerb...161830602022-12-14 12:53:47637 days ago1671022427IN
0xcB3e482d...aDcc5aE98
0 ETH0.0006686413.6706878
Register Brokerb...161750712022-12-13 10:04:47638 days ago1670925887IN
0xcB3e482d...aDcc5aE98
0 ETH0.0004857615.27601123
Register Brokerb...161200812022-12-05 17:29:11646 days ago1670261351IN
0xcB3e482d...aDcc5aE98
0 ETH0.0009008718.41865123
Register Brokerb...160687582022-11-28 13:23:23653 days ago1669641803IN
0xcB3e482d...aDcc5aE98
0 ETH0.0005861411.9839141
Register Brokerb...157964822022-10-21 12:28:11691 days ago1666355291IN
0xcB3e482d...aDcc5aE98
0 ETH0.001141523.33837006
Register Brokerb...157404642022-10-13 16:43:59699 days ago1665679439IN
0xcB3e482d...aDcc5aE98
0 ETH0.0013414827.42709296
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
BrokerbotRegistry

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 4 : BrokerbotRegistry.sol
/**
* SPDX-License-Identifier: LicenseRef-Aktionariat
*
* Proprietary License
*
* This code cannot be used without an explicit permission from the copyright holder.
* If you wish to use the Aktionariat Brokerbot, you can either use the open version
* named Brokerbot.sol that can be used under an MIT License with Automated License Fee Payments,
* or you can get in touch with use to negotiate a license to use LicensedBrokerbot.sol .
*
* Copyright (c) 2021 Aktionariat AG (aktionariat.com), All rights reserved.
*/
pragma solidity ^0.8.0;

import "./IBrokerbot.sol";
import "../ERC20/IERC20.sol";
import "../utils/Ownable.sol";

/// @title Brokerbot Registry
/// @notice Holds a registry from all deployed active brokerbots
contract BrokerbotRegistry is Ownable {
  /// @notice Returns the brokerbot address for a given pair base and share token, or address 0 if it does not exist
  /// @dev mapping is [base][token] = brokerbotAddress
  /// @return brokerbot The brokerbot address
  mapping(IERC20 => mapping(IERC20 => IBrokerbot)) public getBrokerbot;

  /// @notice Emitted when brokerbot is registered.
  /// @param brokerbot The address of the brokerbot
  /// @param base The address of the base currency
  /// @param token The address of the share token
  event RegisterBrokerbot(IBrokerbot brokerbot, IERC20 indexed base, IERC20 indexed token);

  /// @notice Emmitted when calling syncBrokerbot function
  /// @param brokerbot The brokerbot address that is synced
  event SyncBrokerbot(IBrokerbot indexed brokerbot);

  constructor(address _owner) Ownable(_owner) {}

  /// @notice Per network only one active brokerbot should exist per base/share pair
  /// @param _brokerbot The brokerbot contract that should be registered.
  /// @param _base The contract of the base currency of the brokerbot.
  /// @param _token The contract of the share token of the brokerbot.
  function registerBrokerbot(IBrokerbot _brokerbot, IERC20 _base, IERC20 _token ) external onlyOwner() {
    getBrokerbot[_base][_token] = _brokerbot;
    emit RegisterBrokerbot(_brokerbot, _base, _token);
  }

  /// @notice This event is usful for indexers/subgraphs to update token balances which are not tracked with other events
  /// @param _brokerbot The brokerbot that should be synced
  function syncBrokerbot(IBrokerbot _brokerbot) external {
    emit SyncBrokerbot(_brokerbot);
  }

}

File 2 of 4 : IERC20.sol
/**
* SPDX-License-Identifier: MIT
*
* Copyright (c) 2016-2019 zOS Global Limited
*
*/
pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see `ERC20Detailed`.
 */

interface IERC20 {

    // Optional functions
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a `Transfer` event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through `transferFrom`. This is
     * zero by default.
     *
     * This value changes when `approve` or `transferFrom` are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * > Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an `Approval` event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a `Transfer` event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to `approve`. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

}

File 3 of 4 : IBrokerbot.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../ERC20/IERC20.sol";

interface IBrokerbot {

  function base() external view returns (IERC20);
  
  function settings() external view returns (uint256);

  // @return The amount of shares bought on buying or how much in the base currency is transfered on selling
  function processIncoming(IERC20 token_, address from, uint256 amount, bytes calldata ref) external payable returns (uint256);

}

File 4 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
//
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
//
// Modifications:
// - Replaced Context._msgSender() with msg.sender
// - Made leaner
// - Extracted interface

pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable {

    address public owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor (address initialOwner) {
        owner = initialOwner;
        emit OwnershipTransferred(address(0), owner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) external onlyOwner {
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }

    modifier onlyOwner() {
        require(owner == msg.sender, "not owner");
        _;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IBrokerbot","name":"brokerbot","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"base","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"}],"name":"RegisterBrokerbot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IBrokerbot","name":"brokerbot","type":"address"}],"name":"SyncBrokerbot","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"contract IERC20","name":"","type":"address"}],"name":"getBrokerbot","outputs":[{"internalType":"contract IBrokerbot","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBrokerbot","name":"_brokerbot","type":"address"},{"internalType":"contract IERC20","name":"_base","type":"address"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"registerBrokerbot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBrokerbot","name":"_brokerbot","type":"address"}],"name":"syncBrokerbot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161044338038061044383398101604081905261002f9161007e565b600080546001600160a01b0319166001600160a01b03831690811782556040518392907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350506100ae565b60006020828403121561009057600080fd5b81516001600160a01b03811681146100a757600080fd5b9392505050565b610386806100bd6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806309f793711461005c57806376abbf0a146100715780638da5cb5b146100c15780639abad75e146100d4578063f2fde38b146100e7575b600080fd5b61006f61006a3660046102b4565b6100fa565b005b6100a561007f3660046102ff565b60016020908152600092835260408084209091529082529020546001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6000546100a5906001600160a01b031681565b61006f6100e2366004610290565b6101b8565b61006f6100f5366004610290565b6101ef565b6000546001600160a01b031633146101455760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b60448201526064015b60405180910390fd5b6001600160a01b0382811660008181526001602090815260408083208686168085529083529281902080546001600160a01b03191695891695861790555193845290927f3cc22fa2b08c920913fb7245fcc72114373ad796b1be5d44ee1ff6ad60b3a65a910160405180910390a3505050565b6040516001600160a01b038216907f8709efa7ee1ccd26c55d0d4770969d05389572dec0bc4e3b34acfdf89f1b64f990600090a250565b6000546001600160a01b031633146102355760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b604482015260640161013c565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000602082840312156102a257600080fd5b81356102ad81610338565b9392505050565b6000806000606084860312156102c957600080fd5b83356102d481610338565b925060208401356102e481610338565b915060408401356102f481610338565b809150509250925092565b6000806040838503121561031257600080fd5b823561031d81610338565b9150602083013561032d81610338565b809150509250929050565b6001600160a01b038116811461034d57600080fd5b5056fea2646970667358221220cb7bce4f4a94a8575b1073bb240b5524579a27117e5346afdd2a25f0bc960f4c64736f6c6343000807003300000000000000000000000039e5351e6ce3c4b19b8b0a2f5c82c511782457be

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c806309f793711461005c57806376abbf0a146100715780638da5cb5b146100c15780639abad75e146100d4578063f2fde38b146100e7575b600080fd5b61006f61006a3660046102b4565b6100fa565b005b6100a561007f3660046102ff565b60016020908152600092835260408084209091529082529020546001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6000546100a5906001600160a01b031681565b61006f6100e2366004610290565b6101b8565b61006f6100f5366004610290565b6101ef565b6000546001600160a01b031633146101455760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b60448201526064015b60405180910390fd5b6001600160a01b0382811660008181526001602090815260408083208686168085529083529281902080546001600160a01b03191695891695861790555193845290927f3cc22fa2b08c920913fb7245fcc72114373ad796b1be5d44ee1ff6ad60b3a65a910160405180910390a3505050565b6040516001600160a01b038216907f8709efa7ee1ccd26c55d0d4770969d05389572dec0bc4e3b34acfdf89f1b64f990600090a250565b6000546001600160a01b031633146102355760405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b604482015260640161013c565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000602082840312156102a257600080fd5b81356102ad81610338565b9392505050565b6000806000606084860312156102c957600080fd5b83356102d481610338565b925060208401356102e481610338565b915060408401356102f481610338565b809150509250925092565b6000806040838503121561031257600080fd5b823561031d81610338565b9150602083013561032d81610338565b809150509250929050565b6001600160a01b038116811461034d57600080fd5b5056fea2646970667358221220cb7bce4f4a94a8575b1073bb240b5524579a27117e5346afdd2a25f0bc960f4c64736f6c63430008070033

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

00000000000000000000000039e5351e6ce3c4b19b8b0a2f5c82c511782457be

-----Decoded View---------------
Arg [0] : _owner (address): 0x39E5351E6CE3c4B19B8b0a2F5C82c511782457BE

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000039e5351e6ce3c4b19b8b0a2f5c82c511782457be


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  ]

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.