ETH Price: $3,731.84 (+1.59%)

Contract

0x68Ed285Ac96edF7165C21B1221CDFfF65B80629A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Age:90D
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Update your filters to view other transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
vesting

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2021-05-04
*/

pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT

interface IERC20 {
    function totalSupply() external view returns (uint256);
    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);
}

contract vesting {

    struct claimer{
        uint256 total;
        uint256 timestamp;
        uint256 rate;
    }

    mapping(address => claimer) claimers;
    address owner;
    IERC20 token;

    constructor(address _token){
        owner = msg.sender;
        token = IERC20(_token);
    }

    function claim_balance() public {
        require(claimers[msg.sender].total > 0, "0 balance");
        require(claimers[msg.sender].timestamp <= block.timestamp, "time not met yet");

        claimers[msg.sender].total -= claimers[msg.sender].rate;
        claimers[msg.sender].timestamp += 1 weeks;
        token.transfer(msg.sender, claimers[msg.sender].rate);
    }

    function set_payout(uint256 amount, address _wallet, uint256 _rate) public{
        require(msg.sender == owner, "only owner");
        claimers[_wallet] = claimer(amount, block.timestamp + 1 weeks, _rate);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"claim_balance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"set_payout","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161044238038061044283398101604081905261002f91610062565b60018054336001600160a01b031991821617909155600280549091166001600160a01b0392909216919091179055610090565b600060208284031215610073578081fd5b81516001600160a01b0381168114610089578182fd5b9392505050565b6103a38061009f6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80638068092a1461003b578063f248415514610045575b600080fd5b610043610058565b005b61004361005336600461025c565b6101ac565b3360009081526020819052604090205461008d5760405162461bcd60e51b815260040161008490610305565b60405180910390fd5b336000908152602081905260409020600101544210156100bf5760405162461bcd60e51b8152600401610084906102b7565b336000908152602081905260408120600281015481549092906100e3908490610340565b9091555050336000908152602081905260408120600101805462093a80929061010d908490610328565b909155505060028054336000818152602081905260409081902090930154925163a9059cbb60e01b81526001600160a01b039092169263a9059cbb9261015792919060040161029e565b602060405180830381600087803b15801561017157600080fd5b505af1158015610185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a99190610235565b50565b6001546001600160a01b031633146101d65760405162461bcd60e51b8152600401610084906102e1565b60405180606001604052808481526020014262093a806101f69190610328565b81526020908101929092526001600160a01b03909216600090815280825260409081902083518155918301516001830155919091015160029091015550565b600060208284031215610246578081fd5b81518015158114610255578182fd5b9392505050565b600080600060608486031215610270578182fd5b8335925060208401356001600160a01b038116811461028d578283fd5b929592945050506040919091013590565b6001600160a01b03929092168252602082015260400190565b60208082526010908201526f1d1a5b59481b9bdd081b595d081e595d60821b604082015260600190565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b602080825260099082015268302062616c616e636560b81b604082015260600190565b6000821982111561033b5761033b610357565b500190565b60008282101561035257610352610357565b500390565b634e487b7160e01b600052601160045260246000fdfea264697066735822122052e34665d6b6143ecf6be984fd46ff5b7f2958df5c43fcdd35b34c169863eb0764736f6c634300080100330000000000000000000000009196e18bc349b1f64bc08784eae259525329a1ad

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c80638068092a1461003b578063f248415514610045575b600080fd5b610043610058565b005b61004361005336600461025c565b6101ac565b3360009081526020819052604090205461008d5760405162461bcd60e51b815260040161008490610305565b60405180910390fd5b336000908152602081905260409020600101544210156100bf5760405162461bcd60e51b8152600401610084906102b7565b336000908152602081905260408120600281015481549092906100e3908490610340565b9091555050336000908152602081905260408120600101805462093a80929061010d908490610328565b909155505060028054336000818152602081905260409081902090930154925163a9059cbb60e01b81526001600160a01b039092169263a9059cbb9261015792919060040161029e565b602060405180830381600087803b15801561017157600080fd5b505af1158015610185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a99190610235565b50565b6001546001600160a01b031633146101d65760405162461bcd60e51b8152600401610084906102e1565b60405180606001604052808481526020014262093a806101f69190610328565b81526020908101929092526001600160a01b03909216600090815280825260409081902083518155918301516001830155919091015160029091015550565b600060208284031215610246578081fd5b81518015158114610255578182fd5b9392505050565b600080600060608486031215610270578182fd5b8335925060208401356001600160a01b038116811461028d578283fd5b929592945050506040919091013590565b6001600160a01b03929092168252602082015260400190565b60208082526010908201526f1d1a5b59481b9bdd081b595d081e595d60821b604082015260600190565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b602080825260099082015268302062616c616e636560b81b604082015260600190565b6000821982111561033b5761033b610357565b500190565b60008282101561035257610352610357565b500390565b634e487b7160e01b600052601160045260246000fdfea264697066735822122052e34665d6b6143ecf6be984fd46ff5b7f2958df5c43fcdd35b34c169863eb0764736f6c63430008010033

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

0000000000000000000000009196e18bc349b1f64bc08784eae259525329a1ad

-----Decoded View---------------
Arg [0] : _token (address): 0x9196E18Bc349B1F64Bc08784eaE259525329a1ad

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009196e18bc349b1f64bc08784eae259525329a1ad


Deployed Bytecode Sourcemap

575:922:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;895:376;;;:::i;:::-;;1279:215;;;;;;:::i;:::-;;:::i;895:376::-;955:10;975:1;946:20;;;;;;;;;;:26;938:52;;;;-1:-1:-1;;;938:52:0;;;;;;;:::i;:::-;;;;;;;;;1018:10;1009:8;:20;;;;;;;;;;:30;;;1043:15;-1:-1:-1;1009:49:0;1001:78;;;;-1:-1:-1;;;1001:78:0;;;;;;;:::i;:::-;1131:10;1122:8;:20;;;;;;;;;;:25;;;;1092:55;;1122:25;;:8;1092:55;;1122:25;;1092:55;:::i;:::-;;;;-1:-1:-1;;1167:10:0;1158:8;:20;;;;;;;;;;:30;;:41;;1192:7;;1158:8;:41;;1192:7;;1158:41;:::i;:::-;;;;-1:-1:-1;;1210:5:0;;;1225:10;1210:5;1237:20;;;;;;;;;;;;:25;;;;1210:53;;-1:-1:-1;;;1210:53:0;;-1:-1:-1;;;;;1210:5:0;;;;:14;;:53;;1225:10;1237:25;1210:53;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;895:376::o;1279:215::-;1386:5;;-1:-1:-1;;;;;1386:5:0;1372:10;:19;1364:42;;;;-1:-1:-1;;;1364:42:0;;;;;;;:::i;:::-;1437:49;;;;;;;;1445:6;1437:49;;;;1453:15;1471:7;1453:25;;;;:::i;:::-;1437:49;;;;;;;;;;-1:-1:-1;;;;;1417:17:0;;;-1:-1:-1;1417:17:0;;;;;;;;;;;:69;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1279:215:0:o;14:297:1:-;;134:2;122:9;113:7;109:23;105:32;102:2;;;155:6;147;140:22;102:2;192:9;186:16;245:5;238:13;231:21;224:5;221:32;211:2;;272:6;264;257:22;211:2;300:5;92:219;-1:-1:-1;;;92:219:1:o;316:442::-;;;;462:2;450:9;441:7;437:23;433:32;430:2;;;483:6;475;468:22;430:2;511:23;;;-1:-1:-1;584:2:1;569:18;;556:32;-1:-1:-1;;;;;617:31:1;;607:42;;597:2;;668:6;660;653:22;597:2;420:338;;696:5;;-1:-1:-1;;;748:2:1;733:18;;;;720:32;;420:338::o;763:274::-;-1:-1:-1;;;;;955:32:1;;;;937:51;;1019:2;1004:18;;997:34;925:2;910:18;;892:145::o;1042:340::-;1244:2;1226:21;;;1283:2;1263:18;;;1256:30;-1:-1:-1;;;1317:2:1;1302:18;;1295:46;1373:2;1358:18;;1216:166::o;1387:334::-;1589:2;1571:21;;;1628:2;1608:18;;;1601:30;-1:-1:-1;;;1662:2:1;1647:18;;1640:40;1712:2;1697:18;;1561:160::o;1726:332::-;1928:2;1910:21;;;1967:1;1947:18;;;1940:29;-1:-1:-1;;;2000:2:1;1985:18;;1978:39;2049:2;2034:18;;1900:158::o;2063:128::-;;2134:1;2130:6;2127:1;2124:13;2121:2;;;2140:18;;:::i;:::-;-1:-1:-1;2176:9:1;;2111:80::o;2196:125::-;;2264:1;2261;2258:8;2255:2;;;2269:18;;:::i;:::-;-1:-1:-1;2306:9:1;;2245:76::o;2326:127::-;2387:10;2382:3;2378:20;2375:1;2368:31;2418:4;2415:1;2408:15;2442:4;2439:1;2432:15

Swarm Source

ipfs://52e34665d6b6143ecf6be984fd46ff5b7f2958df5c43fcdd35b34c169863eb07

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.