More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 126 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 21366918 | 52 days ago | IN | 0 ETH | 0.00143805 | ||||
Claim | 21365954 | 53 days ago | IN | 0 ETH | 0.00417134 | ||||
Claim | 21364810 | 53 days ago | IN | 0 ETH | 0.00392343 | ||||
Withdraw | 21364639 | 53 days ago | IN | 0 ETH | 0.00070946 | ||||
Claim | 21364635 | 53 days ago | IN | 0 ETH | 0.00121252 | ||||
Claim | 21364515 | 53 days ago | IN | 0 ETH | 0.00132586 | ||||
Claim | 21364441 | 53 days ago | IN | 0 ETH | 0.00144739 | ||||
Claim | 21364335 | 53 days ago | IN | 0 ETH | 0.00144243 | ||||
Claim | 21364325 | 53 days ago | IN | 0 ETH | 0.00127484 | ||||
Claim | 21364278 | 53 days ago | IN | 0 ETH | 0.00268758 | ||||
Claim | 21364253 | 53 days ago | IN | 0 ETH | 0.00133074 | ||||
Claim | 21364223 | 53 days ago | IN | 0 ETH | 0.00142607 | ||||
Claim | 21364223 | 53 days ago | IN | 0 ETH | 0.0014361 | ||||
Claim | 21364211 | 53 days ago | IN | 0 ETH | 0.00138286 | ||||
Claim | 21364137 | 53 days ago | IN | 0 ETH | 0.00158124 | ||||
Claim | 21364124 | 53 days ago | IN | 0 ETH | 0.00148897 | ||||
Claim | 21364102 | 53 days ago | IN | 0 ETH | 0.00170936 | ||||
Claim | 21364076 | 53 days ago | IN | 0 ETH | 0.00358203 | ||||
Claim | 21364063 | 53 days ago | IN | 0 ETH | 0.00170326 | ||||
Claim | 21364047 | 53 days ago | IN | 0 ETH | 0.00158287 | ||||
Claim | 21364043 | 53 days ago | IN | 0 ETH | 0.00159959 | ||||
Claim | 21364018 | 53 days ago | IN | 0 ETH | 0.00147965 | ||||
Claim | 21363997 | 53 days ago | IN | 0 ETH | 0.00132199 | ||||
Claim | 21363956 | 53 days ago | IN | 0 ETH | 0.00165773 | ||||
Claim | 21363934 | 53 days ago | IN | 0 ETH | 0.00158763 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
21366918 | 52 days ago | 0 ETH | |||||
21365954 | 53 days ago | 0 ETH | |||||
21365954 | 53 days ago | 0 ETH | |||||
21365954 | 53 days ago | 0 ETH | |||||
21365954 | 53 days ago | 0 ETH | |||||
21365954 | 53 days ago | 0 ETH | |||||
21364810 | 53 days ago | 0 ETH | |||||
21364810 | 53 days ago | 0 ETH | |||||
21364810 | 53 days ago | 0 ETH | |||||
21364810 | 53 days ago | 0 ETH | |||||
21364810 | 53 days ago | 0 ETH | |||||
21364639 | 53 days ago | 0 ETH | |||||
21364635 | 53 days ago | 0 ETH | |||||
21364635 | 53 days ago | 0 ETH | |||||
21364635 | 53 days ago | 0 ETH | |||||
21364635 | 53 days ago | 0 ETH | |||||
21364635 | 53 days ago | 0 ETH | |||||
21364515 | 53 days ago | 0 ETH | |||||
21364515 | 53 days ago | 0 ETH | |||||
21364515 | 53 days ago | 0 ETH | |||||
21364515 | 53 days ago | 0 ETH | |||||
21364515 | 53 days ago | 0 ETH | |||||
21364441 | 53 days ago | 0 ETH | |||||
21364441 | 53 days ago | 0 ETH | |||||
21364441 | 53 days ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ChampzClaim
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // pragma solidity 0.8.26; interface ERC20 { function totalSupply() external view returns (uint256); function decimals() external view returns (uint8); function symbol() external view returns (string memory); function name() external view returns (string memory); function getOwner() external view returns (address); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address _owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return payable(msg.sender); } function _msgData() internal view virtual returns (bytes memory) { this; return msg.data; } } contract Ownable is Context { address public _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } function owner() public view returns (address) { return _owner; } modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } contract ChampzClaim is Ownable { event Claimed(address indexed user, uint256 amount); ERC20 public oldToken; ERC20 public newToken; constructor(address _oldToken, address _newToken) { oldToken = ERC20(_oldToken); newToken = ERC20(_newToken); } function deposit(uint256 amount) public onlyOwner { newToken.transferFrom(msg.sender, address(this), amount); } function withdraw(address token, uint256 amount) public onlyOwner { ERC20(token).transfer(msg.sender, amount); } function claim() public { uint256 amount = oldToken.balanceOf(msg.sender); require(amount > 0, "No old token balance (user)"); require(oldToken.allowance(msg.sender, address(this)) >= amount, "Insufficient allowance"); require(newToken.balanceOf(address(this)) >= amount, "Insufficient new token balance (contract)"); require(oldToken.transferFrom(msg.sender, address(this), amount), "Could not transfer old token"); require(newToken.transfer(msg.sender, amount), "Could not transfer new token"); emit Claimed(msg.sender, amount); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_oldToken","type":"address"},{"internalType":"address","name":"_newToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"newToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610a1b380380610a1b83398101604081905261002f916100bd565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039384166001600160a01b031991821617909155600280549290931691161790556100f0565b80516001600160a01b03811681146100b857600080fd5b919050565b600080604083850312156100d057600080fd5b6100d9836100a1565b91506100e7602084016100a1565b90509250929050565b61091c806100ff6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063b31c710a11610066578063b31c710a146100e6578063b6b55f25146100f9578063c42bd05a1461010c578063f2fde38b1461011f578063f3fef3a31461013257600080fd5b80634e71d92d14610098578063715018a6146100a25780638da5cb5b146100aa578063b2bdfa7b146100d3575b600080fd5b6100a0610145565b005b6100a061054e565b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6000546100b7906001600160a01b031681565b6001546100b7906001600160a01b031681565b6100a06101073660046107f5565b6105c2565b6002546100b7906001600160a01b031681565b6100a061012d36600461082a565b61066b565b6100a061014036600461084c565b610755565b6001546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561018e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b29190610876565b9050600081116102095760405162461bcd60e51b815260206004820152601b60248201527f4e6f206f6c6420746f6b656e2062616c616e636520287573657229000000000060448201526064015b60405180910390fd5b600154604051636eb1769f60e11b815233600482015230602482015282916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015610257573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027b9190610876565b10156102c25760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b6044820152606401610200565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561030a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032e9190610876565b101561038e5760405162461bcd60e51b815260206004820152602960248201527f496e73756666696369656e74206e657720746f6b656e2062616c616e63652028604482015268636f6e74726163742960b81b6064820152608401610200565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156103e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610409919061088f565b6104555760405162461bcd60e51b815260206004820152601c60248201527f436f756c64206e6f74207472616e73666572206f6c6420746f6b656e000000006044820152606401610200565b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156104a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ca919061088f565b6105165760405162461bcd60e51b815260206004820152601c60248201527f436f756c64206e6f74207472616e73666572206e657720746f6b656e000000006044820152606401610200565b60405181815233907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a250565b6000546001600160a01b031633146105785760405162461bcd60e51b8152600401610200906108b1565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146105ec5760405162461bcd60e51b8152600401610200906108b1565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610643573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610667919061088f565b5050565b6000546001600160a01b031633146106955760405162461bcd60e51b8152600401610200906108b1565b6001600160a01b0381166106fa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610200565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461077f5760405162461bcd60e51b8152600401610200906108b1565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156107cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f0919061088f565b505050565b60006020828403121561080757600080fd5b5035919050565b80356001600160a01b038116811461082557600080fd5b919050565b60006020828403121561083c57600080fd5b6108458261080e565b9392505050565b6000806040838503121561085f57600080fd5b6108688361080e565b946020939093013593505050565b60006020828403121561088857600080fd5b5051919050565b6000602082840312156108a157600080fd5b8151801515811461084557600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220260af22d132742151f18886ee018626733cb92d29487317bbc98aeb54d3c1c5e64736f6c634300081a0033000000000000000000000000571e21a545842c6ce596663cda5caa8196ac1c7a000000000000000000000000e07a836f5201a46f376934a8a4a17185df1708c4
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063b31c710a11610066578063b31c710a146100e6578063b6b55f25146100f9578063c42bd05a1461010c578063f2fde38b1461011f578063f3fef3a31461013257600080fd5b80634e71d92d14610098578063715018a6146100a25780638da5cb5b146100aa578063b2bdfa7b146100d3575b600080fd5b6100a0610145565b005b6100a061054e565b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6000546100b7906001600160a01b031681565b6001546100b7906001600160a01b031681565b6100a06101073660046107f5565b6105c2565b6002546100b7906001600160a01b031681565b6100a061012d36600461082a565b61066b565b6100a061014036600461084c565b610755565b6001546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561018e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b29190610876565b9050600081116102095760405162461bcd60e51b815260206004820152601b60248201527f4e6f206f6c6420746f6b656e2062616c616e636520287573657229000000000060448201526064015b60405180910390fd5b600154604051636eb1769f60e11b815233600482015230602482015282916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015610257573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027b9190610876565b10156102c25760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b6044820152606401610200565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561030a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032e9190610876565b101561038e5760405162461bcd60e51b815260206004820152602960248201527f496e73756666696369656e74206e657720746f6b656e2062616c616e63652028604482015268636f6e74726163742960b81b6064820152608401610200565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156103e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610409919061088f565b6104555760405162461bcd60e51b815260206004820152601c60248201527f436f756c64206e6f74207472616e73666572206f6c6420746f6b656e000000006044820152606401610200565b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156104a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ca919061088f565b6105165760405162461bcd60e51b815260206004820152601c60248201527f436f756c64206e6f74207472616e73666572206e657720746f6b656e000000006044820152606401610200565b60405181815233907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a250565b6000546001600160a01b031633146105785760405162461bcd60e51b8152600401610200906108b1565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146105ec5760405162461bcd60e51b8152600401610200906108b1565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610643573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610667919061088f565b5050565b6000546001600160a01b031633146106955760405162461bcd60e51b8152600401610200906108b1565b6001600160a01b0381166106fa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610200565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461077f5760405162461bcd60e51b8152600401610200906108b1565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156107cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f0919061088f565b505050565b60006020828403121561080757600080fd5b5035919050565b80356001600160a01b038116811461082557600080fd5b919050565b60006020828403121561083c57600080fd5b6108458261080e565b9392505050565b6000806040838503121561085f57600080fd5b6108688361080e565b946020939093013593505050565b60006020828403121561088857600080fd5b5051919050565b6000602082840312156108a157600080fd5b8151801515811461084557600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220260af22d132742151f18886ee018626733cb92d29487317bbc98aeb54d3c1c5e64736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000571e21a545842c6ce596663cda5caa8196ac1c7a000000000000000000000000e07a836f5201a46f376934a8a4a17185df1708c4
-----Decoded View---------------
Arg [0] : _oldToken (address): 0x571E21a545842C6CE596663cdA5CaA8196AC1c7A
Arg [1] : _newToken (address): 0xe07A836f5201A46f376934A8A4a17185Df1708c4
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000571e21a545842c6ce596663cda5caa8196ac1c7a
Arg [1] : 000000000000000000000000e07a836f5201a46f376934a8a4a17185df1708c4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.001835 | 242,633,025.447 | $445,238.88 |
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.