Contract: 0xb489f8001a1995e739450da7ff9d882da7c2507d
Overview
0 EVC
More Info
Not Available
TxHash | Method | Block | Age | From | To | Value | Txn Fee | |
---|---|---|---|---|---|---|---|---|
0x6e47740b5f8a62d4d8... |
0xdb2e21bc
|
6068187 | 5 months ago | 0xd014add67c9ca956e0... | 0xb489f8001a1995e739... | 0 EVC | 0.000049 EVC | |
0x94c9ec4b79a9cd5b7e... |
0x1d25cb9c
|
1550688 | 1 year ago | 0xd014add67c9ca956e0... | 0xb489f8001a1995e739... | 0 EVC | 0.000096 EVC | |
0xb9481a63a0e64a3d81... |
0x60806040
|
1550547 | 1 year ago | 0xd014add67c9ca956e0... | Contract Creation | 0 EVC | 0.000876 EVC |
TxHash | From | To | Value | Token | |
---|---|---|---|---|---|
0x6e47740b5f8a62d4d8... | 0xb489f8001a1995e739... | 0xd014add67c9ca956e0... | 140000000 | Evadore (EVA) | |
0x94c9ec4b79a9cd5b7e... | 0xd014add67c9ca956e0... | 0xb489f8001a1995e739... | 140000000 | Evadore (EVA) |
Contract Source Code Verified (Exact Match)
Contract Name:
EVATEAMLOCK
Optimization Enabled:
No
Compiler Version:
v0.6.12+commit.27d51765
Other Settings:
istanbul Evm Version
Contract Source Code (Solidity)
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
// ----------------------------------------------------------------------------
// Owned contract
// ----------------------------------------------------------------------------
contract Owned {
address payable public owner;
event OwnershipTransferred(address indexed _from, address indexed _to);
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner,"Only Owner!");
_;
}
function transferOwnership(address payable _newOwner) public onlyOwner {
owner = _newOwner;
emit OwnershipTransferred(msg.sender, _newOwner);
}
}
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// ----------------------------------------------------------------------------
interface IERC20 {
function transfer(address to, uint256 tokens) external returns (bool success);
function burn(uint256 _amount) external;
function balanceOf(address tokenOwner) external view returns (uint256 balance);
function transferFrom(address sender,address recipient,uint amount) external returns (bool);
}
abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() public {
_status = _NOT_ENTERED;
}
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// 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;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
contract EVATEAMLOCK is Owned, ReentrancyGuard {
address public EVA;
uint256 public TeamBalance = 140000000 * (10**18);
uint256 public WithdrawTeamWalletPerDay = (TeamBalance / 365);
address public TeamWallet = 0x4982Cc5A45C14615690914b3c23139369D3A2D31;
uint256 public lockTimeOneYearEndDate;
constructor(address _eva) public {
lockTimeOneYearEndDate = block.timestamp + 365 days;
EVA = _eva;
}
function claim() public onlyOwner{
require(evaBalanceinContract() > 0,"Need Balance");
require(block.timestamp > lockTimeOneYearEndDate,"It's not time to withdraw");
IERC20(EVA).transfer(TeamWallet,WithdrawTeamWalletPerDay);
lockTimeOneYearEndDate = lockTimeOneYearEndDate + 1 days;
}
function evaBalanceinContract() public view returns(uint256){
return IERC20(EVA).balanceOf(address(this));
}
function emergencyWithdraw() public onlyOwner {
require(evaBalanceinContract() > 0,"Need Balance");
IERC20(EVA).transfer(owner,evaBalanceinContract());
}
function addEVA(uint256 _balance) public onlyOwner{
require(_balance > 0,"EVA:: balance must be greater than 0");
IERC20(EVA).transferFrom(msg.sender, address(this), _balance);
}
}
Contract Abi
Contract Creation Code
Read Contract Information