More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 37,584 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer ERC20 | 64159670 | 162 days ago | IN | 0 POL | 0.01063184 | ||||
Transfer ERC20 | 61749411 | 222 days ago | IN | 0 POL | 0.00182005 | ||||
Transfer ERC20 | 61736719 | 222 days ago | IN | 0 POL | 0.00140831 | ||||
Transfer ERC20 | 61580903 | 226 days ago | IN | 0 POL | 0.00157902 | ||||
Transfer ERC20 | 61468474 | 229 days ago | IN | 0 POL | 0.00189118 | ||||
Transfer ERC20 | 61338337 | 232 days ago | IN | 0 POL | 0.00152709 | ||||
Transfer ERC20 | 61293242 | 233 days ago | IN | 0 POL | 0.00152709 | ||||
Transfer ERC20 | 61236604 | 235 days ago | IN | 0 POL | 0.00186562 | ||||
Transfer ERC20 | 61228308 | 235 days ago | IN | 0 POL | 0.00306836 | ||||
Transfer ERC20 | 61190205 | 236 days ago | IN | 0 POL | 0.00167925 | ||||
Transfer ERC20 | 61094931 | 238 days ago | IN | 0 POL | 0.00154233 | ||||
Transfer ERC20 | 60833877 | 245 days ago | IN | 0 POL | 0.00155435 | ||||
Transfer ERC20 | 60636677 | 250 days ago | IN | 0 POL | 0.00155501 | ||||
Transfer ERC20 | 60636593 | 250 days ago | IN | 0 POL | 0.00155501 | ||||
Transfer ERC20 | 60500775 | 253 days ago | IN | 0 POL | 0.00154197 | ||||
Transfer ERC20 | 60491903 | 253 days ago | IN | 0 POL | 0.00169618 | ||||
Transfer ERC20 | 60414577 | 255 days ago | IN | 0 POL | 0.00169674 | ||||
Transfer ERC20 | 60312253 | 258 days ago | IN | 0 POL | 0.00169602 | ||||
Transfer ERC20 | 60312234 | 258 days ago | IN | 0 POL | 0.00184294 | ||||
Transfer ERC20 | 60238666 | 260 days ago | IN | 0 POL | 0.00172776 | ||||
Transfer ERC20 | 60238134 | 260 days ago | IN | 0 POL | 0.00170033 | ||||
Transfer ERC20 | 60213612 | 261 days ago | IN | 0 POL | 0.0237788 | ||||
Transfer ERC20 | 60213513 | 261 days ago | IN | 0 POL | 0.02448347 | ||||
Transfer ERC20 | 60213033 | 261 days ago | IN | 0 POL | 0.09769521 | ||||
Transfer ERC20 | 60212785 | 261 days ago | IN | 0 POL | 1.21694978 |
Loading...
Loading
Contract Name:
OBSource
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Context.sol"; contract OBSource is ReentrancyGuard, Context { function transfer(address payable _to, bytes calldata _ext) public payable nonReentrant { (bool sent, ) = _to.call{value: msg.value}(""); require(sent, "ERROR"); } function transferERC20( IERC20 _token, address _to, uint256 _amount, bytes calldata _ext ) external nonReentrant { bool sent = _token.transferFrom(msg.sender, _to, _amount); require(sent, "ERROR"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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. * * IMPORTANT: 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 `from` to `to` 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 from, address to, 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"bytes","name":"_ext","type":"bytes"}],"name":"transfer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_ext","type":"bytes"}],"name":"transferERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060016000819055506106f9806100286000396000f3fe6080604052600436106100295760003560e01c8063297235111461002e57806346f506ad1461004a575b600080fd5b6100486004803603810190610043919061035f565b610073565b005b34801561005657600080fd5b50610071600480360381019061006c91906103e0565b61017b565b005b600260005414156100b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100b090610553565b60405180910390fd5b600260008190555060008373ffffffffffffffffffffffffffffffffffffffff16346040516100e7906104e7565b60006040518083038185875af1925050503d8060008114610124576040519150601f19603f3d011682016040523d82523d6000602084013e610129565b606091505b505090508061016d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016490610533565b60405180910390fd5b506001600081905550505050565b600260005414156101c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101b890610553565b60405180910390fd5b600260008190555060008573ffffffffffffffffffffffffffffffffffffffff166323b872dd3387876040518463ffffffff1660e01b8152600401610208939291906104fc565b602060405180830381600087803b15801561022257600080fd5b505af1158015610236573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025a91906103b7565b90508061029c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029390610533565b60405180910390fd5b5060016000819055505050505050565b6000813590506102bb81610650565b92915050565b6000813590506102d081610667565b92915050565b6000815190506102e58161067e565b92915050565b60008083601f8401126102fd57600080fd5b8235905067ffffffffffffffff81111561031657600080fd5b60208301915083600182028301111561032e57600080fd5b9250929050565b60008135905061034481610695565b92915050565b600081359050610359816106ac565b92915050565b60008060006040848603121561037457600080fd5b6000610382868287016102c1565b935050602084013567ffffffffffffffff81111561039f57600080fd5b6103ab868287016102eb565b92509250509250925092565b6000602082840312156103c957600080fd5b60006103d7848285016102d6565b91505092915050565b6000806000806000608086880312156103f857600080fd5b600061040688828901610335565b9550506020610417888289016102ac565b94505060406104288882890161034a565b935050606086013567ffffffffffffffff81111561044557600080fd5b610451888289016102eb565b92509250509295509295909350565b6104698161058f565b82525050565b600061047c60058361057e565b9150610487826105fb565b602082019050919050565b600061049f600083610573565b91506104aa82610624565b600082019050919050565b60006104c2601f8361057e565b91506104cd82610627565b602082019050919050565b6104e1816105f1565b82525050565b60006104f282610492565b9150819050919050565b60006060820190506105116000830186610460565b61051e6020830185610460565b61052b60408301846104d8565b949350505050565b6000602082019050818103600083015261054c8161046f565b9050919050565b6000602082019050818103600083015261056c816104b5565b9050919050565b600081905092915050565b600082825260208201905092915050565b600061059a826105d1565b9050919050565b60006105ac826105d1565b9050919050565b60008115159050919050565b60006105ca8261058f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4552524f52000000000000000000000000000000000000000000000000000000600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6106598161058f565b811461066457600080fd5b50565b610670816105a1565b811461067b57600080fd5b50565b610687816105b3565b811461069257600080fd5b50565b61069e816105bf565b81146106a957600080fd5b50565b6106b5816105f1565b81146106c057600080fd5b5056fea26469706673582212206979fce200144ee5ab7e0a9de930105a83d9c5e3759de6b7f7e43fababa415b864736f6c63430008040033
Deployed Bytecode
0x6080604052600436106100295760003560e01c8063297235111461002e57806346f506ad1461004a575b600080fd5b6100486004803603810190610043919061035f565b610073565b005b34801561005657600080fd5b50610071600480360381019061006c91906103e0565b61017b565b005b600260005414156100b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100b090610553565b60405180910390fd5b600260008190555060008373ffffffffffffffffffffffffffffffffffffffff16346040516100e7906104e7565b60006040518083038185875af1925050503d8060008114610124576040519150601f19603f3d011682016040523d82523d6000602084013e610129565b606091505b505090508061016d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016490610533565b60405180910390fd5b506001600081905550505050565b600260005414156101c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101b890610553565b60405180910390fd5b600260008190555060008573ffffffffffffffffffffffffffffffffffffffff166323b872dd3387876040518463ffffffff1660e01b8152600401610208939291906104fc565b602060405180830381600087803b15801561022257600080fd5b505af1158015610236573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025a91906103b7565b90508061029c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029390610533565b60405180910390fd5b5060016000819055505050505050565b6000813590506102bb81610650565b92915050565b6000813590506102d081610667565b92915050565b6000815190506102e58161067e565b92915050565b60008083601f8401126102fd57600080fd5b8235905067ffffffffffffffff81111561031657600080fd5b60208301915083600182028301111561032e57600080fd5b9250929050565b60008135905061034481610695565b92915050565b600081359050610359816106ac565b92915050565b60008060006040848603121561037457600080fd5b6000610382868287016102c1565b935050602084013567ffffffffffffffff81111561039f57600080fd5b6103ab868287016102eb565b92509250509250925092565b6000602082840312156103c957600080fd5b60006103d7848285016102d6565b91505092915050565b6000806000806000608086880312156103f857600080fd5b600061040688828901610335565b9550506020610417888289016102ac565b94505060406104288882890161034a565b935050606086013567ffffffffffffffff81111561044557600080fd5b610451888289016102eb565b92509250509295509295909350565b6104698161058f565b82525050565b600061047c60058361057e565b9150610487826105fb565b602082019050919050565b600061049f600083610573565b91506104aa82610624565b600082019050919050565b60006104c2601f8361057e565b91506104cd82610627565b602082019050919050565b6104e1816105f1565b82525050565b60006104f282610492565b9150819050919050565b60006060820190506105116000830186610460565b61051e6020830185610460565b61052b60408301846104d8565b949350505050565b6000602082019050818103600083015261054c8161046f565b9050919050565b6000602082019050818103600083015261056c816104b5565b9050919050565b600081905092915050565b600082825260208201905092915050565b600061059a826105d1565b9050919050565b60006105ac826105d1565b9050919050565b60008115159050919050565b60006105ca8261058f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4552524f52000000000000000000000000000000000000000000000000000000600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6106598161058f565b811461066457600080fd5b50565b610670816105a1565b811461067b57600080fd5b50565b610687816105b3565b811461069257600080fd5b50565b61069e816105bf565b81146106a957600080fd5b50565b6106b5816105f1565b81146106c057600080fd5b5056fea26469706673582212206979fce200144ee5ab7e0a9de930105a83d9c5e3759de6b7f7e43fababa415b864736f6c63430008040033
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.