Contract: 0x75f888c0f9ca540290363f7cbcc010bb42cb114d
Overview
0 EVC
More Info
Not Available
TxHash | Method | Block | Age | From | To | Value | Txn Fee | |
---|---|---|---|---|---|---|---|---|
0x4d841a5fed91f6a612... |
0xdb2e21bc
|
6068192 | 5 months ago | 0xd014add67c9ca956e0... | 0x75f888c0f9ca540290... | 0 EVC | 0.000049 EVC | |
0x0f186699d4fb7eae72... |
0x1d25cb9c
|
1550887 | 1 year ago | 0xd014add67c9ca956e0... | 0x75f888c0f9ca540290... | 0 EVC | 0.000096 EVC | |
0xa75f14eccaaa8ee4ef... |
0x60806040
|
1550777 | 1 year ago | 0xd014add67c9ca956e0... | Contract Creation | 0 EVC | 0.000876 EVC |
TxHash | From | To | Value | Token | |
---|---|---|---|---|---|
0x4d841a5fed91f6a612... | 0x75f888c0f9ca540290... | 0xd014add67c9ca956e0... | 160000000 | Evadore (EVA) | |
0x0f186699d4fb7eae72... | 0xd014add67c9ca956e0... | 0x75f888c0f9ca540290... | 160000000 | Evadore (EVA) |
Contract Source Code Verified (Exact Match)
Contract Name:
EVAFOUNDATIONLOCK
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 EVAFOUNDATIONLOCK is Owned, ReentrancyGuard {
address public EVA;
uint256 public FoundationBalance = 160000000 * (10**18);
uint256 public WithdrawFoundationWalletPerDay = (FoundationBalance / 365);
address public FoundationWallet = 0x29A12a078f214077A1F6160087a20d4A5b8c4767;
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(FoundationWallet,WithdrawFoundationWalletPerDay);
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