Source Code
Latest 25 from a total of 2,865 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit To | 310010827 | 341 days ago | IN | 0.00004 ETH | 0.00000048 | ||||
| Deposit To | 284991425 | 414 days ago | IN | 0.00007 ETH | 0.00000071 | ||||
| Deposit To | 280260402 | 427 days ago | IN | 0.00005 ETH | 0.00000248 | ||||
| Deposit To | 280259551 | 427 days ago | IN | 0.0001 ETH | 0.00000265 | ||||
| Deposit To | 256845926 | 496 days ago | IN | 0.0002 ETH | 0.00000129 | ||||
| Deposit To | 255503425 | 499 days ago | IN | 0.00001 ETH | 0.00000342 | ||||
| Deposit To | 255485621 | 499 days ago | IN | 0.000075 ETH | 0.00000096 | ||||
| Deposit To | 253123949 | 506 days ago | IN | 0.00012 ETH | 0.00000064 | ||||
| Deposit To | 252428438 | 508 days ago | IN | 0.0002 ETH | 0.00000073 | ||||
| Deposit To | 250741433 | 513 days ago | IN | 0.0002 ETH | 0.00000245 | ||||
| Deposit To | 250691579 | 513 days ago | IN | 0.0002 ETH | 0.00000077 | ||||
| Deposit To | 250603898 | 514 days ago | IN | 0.0001 ETH | 0.00000051 | ||||
| Deposit To | 244667599 | 531 days ago | IN | 0.001 ETH | 0.00000278 | ||||
| Deposit To | 242869965 | 536 days ago | IN | 0.0003 ETH | 0.00000068 | ||||
| Deposit To | 238181465 | 550 days ago | IN | 0.00001 ETH | 0.00000063 | ||||
| Deposit To | 238180809 | 550 days ago | IN | 0.00002 ETH | 0.00000106 | ||||
| Deposit To | 237960613 | 550 days ago | IN | 0.0005 ETH | 0.00000078 | ||||
| Deposit To | 234896457 | 559 days ago | IN | 0.00065 ETH | 0.00000113 | ||||
| Deposit To | 233595620 | 563 days ago | IN | 0.000009 ETH | 0.00000095 | ||||
| Deposit To | 233514708 | 563 days ago | IN | 0.0002 ETH | 0.00000124 | ||||
| Deposit To | 233485517 | 563 days ago | IN | 0.003 ETH | 0.00000103 | ||||
| Deposit To | 233107186 | 565 days ago | IN | 0.0009 ETH | 0.00000105 | ||||
| Deposit To | 232459301 | 566 days ago | IN | 0.0001 ETH | 0.00000071 | ||||
| Deposit To | 232254427 | 567 days ago | IN | 0.0004 ETH | 0.00000059 | ||||
| Deposit To | 231903544 | 568 days ago | IN | 0.001 ETH | 0.00000053 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TokenReceiver
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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);
}
}// 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);
}
}{
"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
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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"}]Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$2,021.97
Net Worth in ETH
0.881694
Token Allocations
ETH
95.89%
BNB
3.98%
POL
0.13%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| LINEA | 91.71% | $2,289.12 | 0.81 | $1,854.25 | |
| BSC | 3.98% | $765.45 | 0.1051 | $80.43 | |
| ETH | 2.19% | $2,289.12 | 0.0193 | $44.18 | |
| OP | 1.35% | $2,293.39 | 0.0119 | $27.27 | |
| BASE | 0.23% | $2,293.45 | 0.002 | $4.59 | |
| SCROLL | 0.23% | $2,289.12 | 0.002 | $4.58 | |
| BLAST | 0.15% | $2,293.39 | 0.0013 | $2.98 | |
| POL | 0.13% | $0.104057 | 25.2001 | $2.62 | |
| ARB | 0.05% | $2,293.28 | 0.00046548 | $1.07 |
Loading...
Loading
Loading...
Loading
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.