Contract Address Details

0xb56C11Ca5095a0e49e17a66F34456C63e99B8AfB

Contract Name
LOCK_LP_VELAS_DOGE
Creator
0xae87e6–faa9b5 at 0x5afa18–b3457c
Balance
0 VLX ( )
Tokens
Fetching tokens...
Transactions
18 Transactions
Transfers
17 Transfers
Gas Used
624,809
Last Balance Update
54171794
Contract name:
LOCK_LP_VELAS_DOGE




Optimization enabled
true
Compiler version
v0.7.0+commit.9e61f92b




Optimization runs
200
EVM Version
default




Verified at
2021-11-07 13:38:24.242164Z

Contract source code

/**
_____ _____ __ _____ _____ ____ _____ _____ _____
| | | __| | | _ | __| \| | __| __|
| | | __| |__| |__ | | | | | | | __|
\___/|_____|_____|__|__|_____|____/|_____|_____|_____|
__ _____ __ _____ _____ _____ _____ ____
| | | _ | | | | | | | | __| \
| |__| __| | |__| | | --| -| __| | |
|_____|__| |_____|_____|_____|__|__|_____|____/
TG: https://t.me/velasdoge
By Koko'Squad: https://t.me/kokocryptosignals
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity 0.7.0;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract LOCK_LP_VELAS_DOGE {
address public owner;
address public _LpAddress = 0x5868a7F0E48D7bF5AE20855c82d4B019fe43B4DD;
address public _VelasDogeAddress = 0xaE103F90c038b479A24DaE8d10439e964329407C;
address public _BurnAddress = 0x000000000000000000000000000000000000dEaD;
uint256 public _lockTime;
string public _name = "LOCK_LP_VELAS_DOGE";
constructor() {
owner = msg.sender;
_lockTime = block.timestamp;
}
////// function to see the lock time ///////
function getlockTime() public view returns (uint256) {
return _lockTime;
}
////// Function to lock LP on the contract ///////
function lock_more_time(uint256 day,uint256 month,int256 year) public {
require(msg.sender == owner, "only the owner can lock the liquidity");
int256 _period = int(day) * int(month)* int(year);
int _lockTimeMore = int(_lockTime) + _period;
_lockTime = uint256(_lockTimeMore);
}
///// function to send liquidity ///////
function sendLP(address _LpAddres) public {
require(block.timestamp > _lockTime , "The liquidity is locked");
require(msg.sender == owner, "only the owner can send LP after the lock period");
require(IERC20(_LpAddres).balanceOf(address(this)) > 0, "can not send 0 or negative");
require((IERC20(_LpAddres).transfer(owner, IERC20(_LpAddres).balanceOf(address(this))) ) == true);
}
}

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"_BurnAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"_LpAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"_VelasDogeAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_lockTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"_name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getlockTime","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"lock_more_time","inputs":[{"type":"uint256","name":"day","internalType":"uint256"},{"type":"uint256","name":"month","internalType":"uint256"},{"type":"int256","name":"year","internalType":"int256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"sendLP","inputs":[{"type":"address","name":"_LpAddres","internalType":"address"}]}]
            

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063a110b6ba11610066578063a110b6ba14610106578063a6298e7b1461010e578063be67cdd314610137578063c224627f1461013f578063d28d88521461014757610093565b80631c520b5f1461009857806379af25a6146100bc5780638989c954146100d65780638da5cb5b146100fe575b600080fd5b6100a06101c4565b604080516001600160a01b039092168252519081900360200190f35b6100c46101d3565b60408051918252519081900360200190f35b6100fc600480360360208110156100ec57600080fd5b50356001600160a01b03166101d9565b005b6100a0610452565b6100c4610461565b6100fc6004803603606081101561012457600080fd5b5080359060208101359060400135610467565b6100a06104be565b6100a06104cd565b61014f6104dc565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610189578181015183820152602001610171565b50505050905090810190601f1680156101b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6003546001600160a01b031681565b60045481565b600454421161022f576040805162461bcd60e51b815260206004820152601760248201527f546865206c6971756964697479206973206c6f636b6564000000000000000000604482015290519081900360640190fd5b6000546001600160a01b031633146102785760405162461bcd60e51b815260040180806020018281038252603081526020018061056b6030913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156102c757600080fd5b505afa1580156102db573d6000803e3d6000fd5b505050506040513d60208110156102f157600080fd5b505111610345576040805162461bcd60e51b815260206004820152601a60248201527f63616e206e6f742073656e642030206f72206e65676174697665000000000000604482015290519081900360640190fd5b600054604080516370a0823160e01b815230600482015290516001600160a01b038085169363a9059cbb9391169184916370a08231916024808301926020929190829003018186803b15801561039a57600080fd5b505afa1580156103ae573d6000803e3d6000fd5b505050506040513d60208110156103c457600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561041557600080fd5b505af1158015610429573d6000803e3d6000fd5b505050506040513d602081101561043f57600080fd5b5051151560011461044f57600080fd5b50565b6000546001600160a01b031681565b60045490565b6000546001600160a01b031633146104b05760405162461bcd60e51b815260040180806020018281038252602581526020018061059b6025913960400191505060405180910390fd5b600480549290930202019055565b6001546001600160a01b031681565b6002546001600160a01b031681565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105625780601f1061053757610100808354040283529160200191610562565b820191906000526020600020905b81548152906001019060200180831161054557829003601f168201915b50505050508156fe6f6e6c7920746865206f776e65722063616e2073656e64204c5020616674657220746865206c6f636b20706572696f646f6e6c7920746865206f776e65722063616e206c6f636b20746865206c6971756964697479a2646970667358221220426f7d3da76dc1016440b86c627c5a40b3af30daf41063840b5d39182f5b237364736f6c63430007000033