Contract 0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c

Contract Overview

Balance:
0 BTT

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xae57551e696923301c5dc373490e9f4da758d108ad1be21b899cd05b416103aeClaim Tokens230325762023-06-06 8:48:081 day 13 hrs ago0x5be4acdf10b6d98dd720185f1ebfa58842727c37 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT211.221
0xee2d2a586411a3789aa5d2d03b1239778e437e2222554412c3ef4544140c47b2Claim Tokens230319872023-06-06 8:27:501 day 14 hrs ago0x5be4acdf10b6d98dd720185f1ebfa58842727c37 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT660.375
0xba5d96bfaa59ac9358160aef1c9e9d051b1582f8ad857ce3da94eb7df94b1056Claim Tokens230203852023-06-06 1:49:021 day 20 hrs ago0xef508a95fe3156a6b91b287e0c32b8d7c4ced885 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT211.221
0x0543414c5044a3afce3920490ebc534b17b3674460eea8a4fa7a8db4edb8b592Claim Tokens227858692023-05-31 11:27:327 days 11 hrs ago0x2aac88cbd8ac91d1659940bdf6d52b0b6a156fe5 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT211.221
0x460a8635ea953a208cfbac8d233375fce9485cf4191a15854c76629eed223be6Claim Tokens227722592023-05-31 3:39:407 days 18 hrs ago0xef508a95fe3156a6b91b287e0c32b8d7c4ced885 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT660.375
0x72ff8934a26f3b3eb49618e225ed13f785a53ca15cd56c1fa736a0e38982a264Claim Tokens227550062023-05-30 17:46:348 days 4 hrs ago0xe8502f2d3b010880ef19475d6ae22260b004a7f5 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT1,384.671
0xb2d4d9973269618512fb27a68316e10a911543ec126cc23e456cd901d1edfc30Claim Tokens227540862023-05-30 17:14:588 days 5 hrs ago0xe8502f2d3b010880ef19475d6ae22260b004a7f5 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT211.221
0x07b18158459167b1916a929619c0b7aa90280595abf2d56abc4c4490394b6373Claim Tokens227538892023-05-30 17:08:128 days 5 hrs ago0xe8502f2d3b010880ef19475d6ae22260b004a7f5 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT211.221
0xb61ef7975259be0ed5055cf692f0c70f30779260865a3a78a4f9ec41e2a45a29Claim Tokens227538542023-05-30 17:06:588 days 5 hrs ago0xe8502f2d3b010880ef19475d6ae22260b004a7f5 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT814.275
0x78cc570a5585108eb38cb4ce88f7a92cfcf829bf601aea6acddfd1cd01c91006Claim Tokens227356202023-05-30 6:40:148 days 15 hrs ago0x2aac88cbd8ac91d1659940bdf6d52b0b6a156fe5 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT814.275
0x6a1cf10f65f2bcf0eb748f1e76d0e5c18925c2d58ad476fcd6f56343d4c44aceTransfer208734382023-04-15 19:45:4453 days 2 hrs ago0xf579f9c22b185800e3b6e6886ffc8584215c05a5 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c10,000,000 BTT315.675
0xc345d53d3ea218905dc98e7c10803d1acb8aae76e61de3c4ef2bd8459844181eClaim Tokens208732002023-04-15 19:37:3253 days 2 hrs ago0x997ebeee6e89de030880cad6d604465549277cc9 IN  0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c0 BTT525.375
0xba76d378bf07c2dde731c4bedf5236d3b636547bcf6184af50ffa90a77e413c40x60a06040208731582023-04-15 19:36:0853 days 2 hrs ago0x997ebeee6e89de030880cad6d604465549277cc9 IN  Create: ELKTesnetFaucet0 BTT2,171.817
[ Download CSV Export 
Latest 5 internal transactions
Parent Txn Hash Block From To Value
0xee2d2a586411a3789aa5d2d03b1239778e437e2222554412c3ef4544140c47b2230319872023-06-06 8:27:501 day 14 hrs ago 0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c 0xeeeeeb57642040be42185f49c52f7e9b38f8eeee0 BTT
0x460a8635ea953a208cfbac8d233375fce9485cf4191a15854c76629eed223be6227722592023-05-31 3:39:407 days 18 hrs ago 0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c 0xeeeeeb57642040be42185f49c52f7e9b38f8eeee0 BTT
0xb61ef7975259be0ed5055cf692f0c70f30779260865a3a78a4f9ec41e2a45a29227538542023-05-30 17:06:588 days 5 hrs ago 0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c 0xeeeeeb57642040be42185f49c52f7e9b38f8eeee0 BTT
0x78cc570a5585108eb38cb4ce88f7a92cfcf829bf601aea6acddfd1cd01c91006227356202023-05-30 6:40:148 days 15 hrs ago 0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c 0xeeeeeb57642040be42185f49c52f7e9b38f8eeee0 BTT
0xc345d53d3ea218905dc98e7c10803d1acb8aae76e61de3c4ef2bd8459844181e208732002023-04-15 19:37:3253 days 2 hrs ago 0xedcf2f457f3ad2bb50b6dc5e70daf29c57b0c00c 0xeeeeeb57642040be42185f49c52f7e9b38f8eeee0 BTT
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ELKTesnetFaucet

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at testnet.bttcscan.com on 2023-04-15
*/

//For testnet use only. ELK Received is not real ELK- Contract Address of testnet ELK: 0xeEeEEb57642040bE42185f49C52F7E9B38f8eeeE
pragma solidity ^0.8.0;


// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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);
}

// File: Faucet.sol

pragma solidity ^0.8.0;


contract ELKTesnetFaucet {
    IERC20 public token;
    mapping(address => bool) public claimed;
    uint256 public immutable tokensPerClaim;

    constructor(address _tokenAddress, uint256 _tokensPerClaim) {
        token = IERC20(_tokenAddress);
        tokensPerClaim = _tokensPerClaim;
    }

    function claimTokens() public {
        require(!claimed[msg.sender], "Tokens already claimed");
        claimed[msg.sender] = true;
        token.transfer(msg.sender, tokensPerClaim);
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokensPerClaim","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a060405234801561001057600080fd5b506040516103ac3803806103ac83398101604081905261002f91610058565b600080546001600160a01b0319166001600160a01b039390931692909217909155608052610092565b6000806040838503121561006b57600080fd5b82516001600160a01b038116811461008257600080fd5b6020939093015192949293505050565b6080516102f96100b360003960008181609801526101da01526102f96000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806348c54b9d14610051578063c884ef831461005b578063f35a138614610093578063fc0c546a146100c8575b600080fd5b61005961010d565b005b61007e610069366004610264565b60016020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161008a565b6000546100e89073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161008a565b3360009081526001602052604090205460ff161561018b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f546f6b656e7320616c726561647920636c61696d656400000000000000000000604482015260640160405180910390fd5b336000818152600160208190526040808320805460ff1916909217909155905490517fa9059cbb00000000000000000000000000000000000000000000000000000000815260048101929092527f0000000000000000000000000000000000000000000000000000000000000000602483015273ffffffffffffffffffffffffffffffffffffffff169063a9059cbb906044016020604051808303816000875af115801561023d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026191906102a1565b50565b60006020828403121561027657600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461029a57600080fd5b9392505050565b6000602082840312156102b357600080fd5b8151801515811461029a57600080fdfea26469706673582212202a19fcc050e443935d2ffc2b51c77110bcdd3a8055d9aca3359bb81bbe70736164736f6c63430008130033000000000000000000000000eeeeeb57642040be42185f49c52f7e9b38f8eeee00000000000000000000000000000000000000000000003635c9adc5dea00000

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

000000000000000000000000eeeeeb57642040be42185f49c52f7e9b38f8eeee00000000000000000000000000000000000000000000003635c9adc5dea00000

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0xeeeeeb57642040be42185f49c52f7e9b38f8eeee
Arg [1] : _tokensPerClaim (uint256): 1000000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000eeeeeb57642040be42185f49c52f7e9b38f8eeee
Arg [1] : 00000000000000000000000000000000000000000000003635c9adc5dea00000


Deployed ByteCode Sourcemap

3091:508:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3402:194;;;:::i;:::-;;3149:39;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;493:14:1;;486:22;468:41;;456:2;441:18;3149:39:0;;;;;;;;3195;;;;;;;;666:25:1;;;654:2;639:18;3195:39:0;520:177:1;3123:19:0;;;;;;;;;;;;891:42:1;879:55;;;861:74;;849:2;834:18;3123:19:0;702:239:1;3402:194:0;3460:10;3452:19;;;;:7;:19;;;;;;;;3451:20;3443:55;;;;;;;1148:2:1;3443:55:0;;;1130:21:1;1187:2;1167:18;;;1160:30;1226:24;1206:18;;;1199:52;1268:18;;3443:55:0;;;;;;;;3517:10;3509:19;;;;3531:4;3509:19;;;;;;;;:26;;-1:-1:-1;;3509:26:0;;;;;;;3546:5;;:42;;;;;;;;1471:74:1;;;;3573:14:0;1561:18:1;;;1554:34;3509:19:0;3546:5;;:14;;1444:18:1;;3546:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3402:194::o;14:309:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;181:9;168:23;231:42;224:5;220:54;213:5;210:65;200:93;;289:1;286;279:12;200:93;312:5;14:309;-1:-1:-1;;;14:309:1:o;1599:277::-;1666:6;1719:2;1707:9;1698:7;1694:23;1690:32;1687:52;;;1735:1;1732;1725:12;1687:52;1767:9;1761:16;1820:5;1813:13;1806:21;1799:5;1796:32;1786:60;;1842:1;1839;1832:12

Swarm Source

ipfs://2a19fcc050e443935d2ffc2b51c77110bcdd3a8055d9aca3359bb81bbe707361
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading