ETH Price: $2,336.14 (-0.80%)

Contract

0xcd97405Fb58e94954E825E46dB192b916A45d412
Transaction Hash
Method
Block
From
To
Deposit To1252147552024-09-11 4:18:073 hrs ago1726028287IN
0xcd97405F...16A45d412
0.002 ETH0.0000001096410.00205714
Deposit To1251385162024-09-09 9:56:4946 hrs ago1725875809IN
0xcd97405F...16A45d412
0.002 ETH0.0000000913360.0013696
Deposit To1251162382024-09-08 21:34:132 days ago1725831253IN
0xcd97405F...16A45d412
0.002 ETH0.0000000948880.00192889
Deposit To1250440512024-09-07 5:27:594 days ago1725686879IN
0xcd97405F...16A45d412
0.002 ETH0.0000000492460.00083253
Deposit To1250186742024-09-06 15:22:054 days ago1725636125IN
0xcd97405F...16A45d412
0.002 ETH0.000005688140.12192569
Deposit To1250168312024-09-06 14:20:394 days ago1725632439IN
0xcd97405F...16A45d412
0.005 ETH0.000001448630.02577992
Deposit To1250017842024-09-06 5:59:055 days ago1725602345IN
0xcd97405F...16A45d412
0.002 ETH0.0000000465130.0012984
Deposit To1249427752024-09-04 21:12:076 days ago1725484327IN
0xcd97405F...16A45d412
0.001 ETH0.0000001400360.00160267
Deposit To1249339172024-09-04 16:16:516 days ago1725466611IN
0xcd97405F...16A45d412
0.002 ETH0.0000020056610.04187798
Deposit To1247637342024-08-31 17:44:0510 days ago1725126245IN
0xcd97405F...16A45d412
0.002 ETH0.0000000615260.0011176
Deposit To1247600582024-08-31 15:41:3310 days ago1725118893IN
0xcd97405F...16A45d412
0.002 ETH0.0000000171640.00022938
Deposit To1246712912024-08-29 14:22:3912 days ago1724941359IN
0xcd97405F...16A45d412
0.002 ETH0.0000001203620.00174595
Deposit To1246145172024-08-28 6:50:1114 days ago1724827811IN
0xcd97405F...16A45d412
0.002 ETH0.0000000593670.00113507
Deposit To1245006322024-08-25 15:34:0116 days ago1724600041IN
0xcd97405F...16A45d412
0.002 ETH0.0000000739840.00137144
Deposit To1244887682024-08-25 8:58:3316 days ago1724576313IN
0xcd97405F...16A45d412
0.002 ETH0.000000056540.00109675
Deposit To1244825742024-08-25 5:32:0517 days ago1724563925IN
0xcd97405F...16A45d412
0.002 ETH0.0000000153180.00018218
Deposit To1244647702024-08-24 19:38:3717 days ago1724528317IN
0xcd97405F...16A45d412
0.002 ETH0.0000000320550.00054959
Deposit To1244618292024-08-24 18:00:3517 days ago1724522435IN
0xcd97405F...16A45d412
0.002 ETH0.0000002036660.0042543
Deposit To1244341162024-08-24 2:36:4918 days ago1724467009IN
0xcd97405F...16A45d412
0.002 ETH0.0000000213850.00030429
Deposit To1242420632024-08-19 15:55:0322 days ago1724082903IN
0xcd97405F...16A45d412
0.002 ETH0.0000002703250.00546665
Deposit To1240307272024-08-14 18:30:3127 days ago1723660231IN
0xcd97405F...16A45d412
0.002 ETH0.0000000851120.00109007
Deposit To1239879222024-08-13 18:43:4128 days ago1723574621IN
0xcd97405F...16A45d412
0.002 ETH0.0000001665930.00340332
Deposit To1237223152024-08-07 15:10:0734 days ago1723043407IN
0xcd97405F...16A45d412
0.001 ETH0.0000003482610.00377228
Deposit To1237105282024-08-07 8:37:1334 days ago1723019833IN
0xcd97405F...16A45d412
0.002 ETH0.0000000769330.00128116
Deposit To1235980452024-08-04 18:07:4737 days ago1722794867IN
0xcd97405F...16A45d412
0.002 ETH0.0000018898140.05649497
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1173806622024-03-13 20:01:41181 days ago1710360101
0xcd97405F...16A45d412
0.002497818532819 ETH
1173768222024-03-13 17:53:41181 days ago1710352421
0xcd97405F...16A45d412
0.00251010316524 ETH
1173682872024-03-13 13:09:11181 days ago1710335351
0xcd97405F...16A45d412
0.001244692694415 ETH
1173679272024-03-13 12:57:11181 days ago1710334631
0xcd97405F...16A45d412
0.001242677522697 ETH
1173658282024-03-13 11:47:13181 days ago1710330433
0xcd97405F...16A45d412
0.001233321333588 ETH
1173396882024-03-12 21:15:53182 days ago1710278153
0xcd97405F...16A45d412
0.001268890215323 ETH
1173386982024-03-12 20:42:53182 days ago1710276173
0xcd97405F...16A45d412
0.001263047663111 ETH
1173374562024-03-12 20:01:29182 days ago1710273689
0xcd97405F...16A45d412
0.00125593986523 ETH
1173350552024-03-12 18:41:27182 days ago1710268887
0xcd97405F...16A45d412
0.00126266754181 ETH
1173326272024-03-12 17:20:31182 days ago1710264031
0xcd97405F...16A45d412
0.002582718000769 ETH
1173326022024-03-12 17:19:41182 days ago1710263981
0xcd97405F...16A45d412
0.001288723222715 ETH
1173308492024-03-12 16:21:15182 days ago1710260475
0xcd97405F...16A45d412
0.001268002103913 ETH
1173228012024-03-12 11:52:59182 days ago1710244379
0xcd97405F...16A45d412
0.012419069692358 ETH
1173081652024-03-12 3:45:07183 days ago1710215107
0xcd97405F...16A45d412
0.002471853224778 ETH
1173029752024-03-12 0:52:07183 days ago1710204727
0xcd97405F...16A45d412
0.001227366468425 ETH
1173019432024-03-12 0:17:43183 days ago1710202663
0xcd97405F...16A45d412
0.00244669243113 ETH
1173014672024-03-12 0:01:51183 days ago1710201711
0xcd97405F...16A45d412
0.001227841693486 ETH
1173012862024-03-11 23:55:49183 days ago1710201349
0xcd97405F...16A45d412
0.002455807739723 ETH
1173012682024-03-11 23:55:13183 days ago1710201313
0xcd97405F...16A45d412
0.001227903869861 ETH
1173011022024-03-11 23:49:41183 days ago1710200981
0xcd97405F...16A45d412
0.001227903869861 ETH
1173010932024-03-11 23:49:23183 days ago1710200963
0xcd97405F...16A45d412
0.002455807739723 ETH
1173010542024-03-11 23:48:05183 days ago1710200885
0xcd97405F...16A45d412
0.002455807739723 ETH
1173010362024-03-11 23:47:29183 days ago1710200849
0xcd97405F...16A45d412
0.001227903869861 ETH
1173009902024-03-11 23:45:57183 days ago1710200757
0xcd97405F...16A45d412
0.00122654445089 ETH
1173009872024-03-11 23:45:51183 days ago1710200751
0xcd97405F...16A45d412
0.00122654445089 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenReceiver

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 2 : TokenReceiver.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.14;

import { Owned } from "solmate/src/auth/Owned.sol";

/**
 * @title TokenReceiver
 * @author CyberConnect
 * @notice A contract that receive native token and record the amount.
 * The deposit only record the cumulative amount and withdraw won't affect
 * the deposit value.
 */
contract TokenReceiver is Owned {
    /*//////////////////////////////////////////////////////////////
                                STATES
    //////////////////////////////////////////////////////////////*/

    mapping(address => uint256) public deposits;

    /*//////////////////////////////////////////////////////////////
                                 EVENT
    //////////////////////////////////////////////////////////////*/

    event Deposit(address from, address to, uint256 amount);
    event Withdraw(address to, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                                 CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address owner) Owned(owner) {}

    /*//////////////////////////////////////////////////////////////
                                 EXTERNAL
    //////////////////////////////////////////////////////////////*/

    function depositTo(address to) external payable {
        deposits[to] += msg.value;
        emit Deposit(msg.sender, to, msg.value);
    }

    function withdraw(address to, uint256 amount) external onlyOwner {
        payable(to).transfer(amount);
        emit Withdraw(to, amount);
    }
}

File 2 of 2 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

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

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function transferOwnership(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnershipTransferred(msg.sender, newOwner);
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/kernel/lib/openzeppelin-contracts/",
    "account-abstraction/=lib/account-abstraction/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "kernel/=lib/kernel/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solady/=lib/kernel/lib/solady/",
    "solmate/=lib/solmate/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"depositTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161047338038061047383398101604081905261002f9161007e565b600080546001600160a01b0319166001600160a01b03831690811782556040518392907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350506100ae565b60006020828403121561009057600080fd5b81516001600160a01b03811681146100a757600080fd5b9392505050565b6103b6806100bd6000396000f3fe60806040526004361061004a5760003560e01c80638da5cb5b1461004f578063b760faf91461008c578063f2fde38b146100a1578063f3fef3a3146100c1578063fc7e286d146100e1575b600080fd5b34801561005b57600080fd5b5060005461006f906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61009f61009a36600461030e565b61011c565b005b3480156100ad57600080fd5b5061009f6100bc36600461030e565b610193565b3480156100cd57600080fd5b5061009f6100dc366004610330565b61022c565b3480156100ed57600080fd5b5061010e6100fc36600461030e565b60016020526000908152604090205481565b604051908152602001610083565b6001600160a01b0381166000908152600160205260408120805434929061014490849061035a565b9091555050604080513381526001600160a01b0383166020820152348183015290517f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629181900360600190a150565b6000546001600160a01b031633146101e15760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000546001600160a01b031633146102755760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064016101d8565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156102ab573d6000803e3d6000fd5b50604080516001600160a01b0384168152602081018390527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15050565b80356001600160a01b038116811461030957600080fd5b919050565b60006020828403121561032057600080fd5b610329826102f2565b9392505050565b6000806040838503121561034357600080fd5b61034c836102f2565b946020939093013593505050565b6000821982111561037b57634e487b7160e01b600052601160045260246000fd5b50019056fea264697066735822122086b8f781cafea27501f18896fa9b56c41d5a15806e818834b53faadeb91d93ae64736f6c634300080e00330000000000000000000000007884f7f04f994da14302a16cf15e597e31eebecf

Deployed Bytecode

0x60806040526004361061004a5760003560e01c80638da5cb5b1461004f578063b760faf91461008c578063f2fde38b146100a1578063f3fef3a3146100c1578063fc7e286d146100e1575b600080fd5b34801561005b57600080fd5b5060005461006f906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61009f61009a36600461030e565b61011c565b005b3480156100ad57600080fd5b5061009f6100bc36600461030e565b610193565b3480156100cd57600080fd5b5061009f6100dc366004610330565b61022c565b3480156100ed57600080fd5b5061010e6100fc36600461030e565b60016020526000908152604090205481565b604051908152602001610083565b6001600160a01b0381166000908152600160205260408120805434929061014490849061035a565b9091555050604080513381526001600160a01b0383166020820152348183015290517f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629181900360600190a150565b6000546001600160a01b031633146101e15760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000546001600160a01b031633146102755760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064016101d8565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156102ab573d6000803e3d6000fd5b50604080516001600160a01b0384168152602081018390527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15050565b80356001600160a01b038116811461030957600080fd5b919050565b60006020828403121561032057600080fd5b610329826102f2565b9392505050565b6000806040838503121561034357600080fd5b61034c836102f2565b946020939093013593505050565b6000821982111561037b57634e487b7160e01b600052601160045260246000fd5b50019056fea264697066735822122086b8f781cafea27501f18896fa9b56c41d5a15806e818834b53faadeb91d93ae64736f6c634300080e0033

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

0000000000000000000000007884f7f04f994da14302a16cf15e597e31eebecf

-----Decoded View---------------
Arg [0] : owner (address): 0x7884f7F04F994da14302a16Cf15E597e31eebECf

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007884f7f04f994da14302a16cf15e597e31eebecf


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