ERC-20
Deflationary Token
Overview
Max Total Supply
36,293,463,302.4 MTC
Holders
1,947 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 1 Decimals)
Balance
6,901,381.1 MTCValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Martinicoin
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-08-22 */ // created by cryptodo.app // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor(address initialOwner) { _transferOwnership(initialOwner); } function owner() public view virtual returns (address) { return _owner; } modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } interface IERC20 { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address to, 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 from, address to, uint256 amount ) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } abstract contract Pausable is Context, Ownable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } function pause() public onlyOwner whenNotPaused{ _paused = true; emit Paused(_msgSender()); } function unpause() public onlyOwner whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } abstract contract ERC20Blacklist is Ownable { event Blacklisted(address account); event Whitelisted(address account); mapping(address => bool) internal _blacklist; modifier onlyWhitelisted() { require(!_blacklist[_msgSender()], "Wallet is blacklisted"); _; } function isBlacklisted(address account) public view returns (bool) { return _blacklist[account]; } function addToBlacklist(address account) external onlyOwner { require(account != address(0), "Zero address not allowed"); require(!_blacklist[account], "Address is already blacklisted"); _blacklist[account] = true; emit Blacklisted(account); } function removeFromBlacklist(address account) external onlyOwner { require(account != address(0), "Zero address not allowed"); require(_blacklist[account], "Address is not blacklisted"); _blacklist[account] = false; emit Whitelisted(account); } } contract ERC20 is IERC20, Ownable { using Address for address; mapping(address => uint256) internal _rOwned; mapping(address => uint256) internal _tOwned; mapping(address => mapping(address => uint256)) internal _allowances; mapping(address => bool) internal _isExcludedFromFee; mapping(address => bool) internal _isExcluded; address[] internal _excluded; uint256 internal _tFeeTotal; uint8 internal _decimals; uint256 internal constant MAX = ~uint256(0); uint256 internal _tTotal; uint256 internal _rTotal; string internal _name; string internal _symbol; constructor(address initialOwner_, string memory name_, string memory symbol_, uint8 decimals_, uint256 totalSupply_ ) Ownable(initialOwner_) { _decimals = decimals_; _tTotal = totalSupply_ * 10 ** uint256(decimals_); _rTotal = (MAX - (MAX % _tTotal)); _name = name_; _symbol = symbol_; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _rOwned[initialOwner_] = _rTotal; emit Transfer(address(0), initialOwner_, _tTotal); } function name() public view override returns (string memory) { return _name; } function symbol() public view override returns (string memory) { return _symbol; } function decimals() public view override returns (uint8) { return _decimals; } function totalSupply() public view override returns (uint256) { return _tTotal; } function balanceOf(address account) public view virtual override returns (uint256) { if (_isExcluded[account]) return _tOwned[account]; return tokenFromReflection(_rOwned[account]); } function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] - subtractedValue); return true; } function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } function tokenFromReflection(uint256 rAmount) public view returns (uint256) { require(rAmount <= _rTotal, "Amount must be less than total reflections"); uint256 currentRate = _getRate(); return rAmount / currentRate; } function _getRate() internal view returns (uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply / tSupply; } function _getCurrentSupply() private view returns (uint256, uint256) { uint256 rSupply = _rTotal; uint256 tSupply = _tTotal; for (uint256 i = 0; i < _excluded.length; i++) { if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal); rSupply = rSupply - _rOwned[_excluded[i]]; tSupply = tSupply - _tOwned[_excluded[i]]; } if (rSupply < _rTotal / _tTotal) return (_rTotal, _tTotal); return (rSupply, tSupply); } function _transfer( address from, address to, uint256 amount ) internal { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); _beforeTokenTransfer(from, to, amount); _tokenTransfer(from, to, amount); } function _tokenTransfer(address sender, address recipient, uint256 tAmount) private { uint tTransferAmount; if (_isExcludedFromFee[sender] || _isExcludedFromFee[recipient]) { tTransferAmount = takeFee(sender, recipient, tAmount); } else { tTransferAmount = tAmount; } uint256 currentRate = _getRate(); uint256 rAmount = tAmount * currentRate; uint256 rTransferAmount = tTransferAmount * currentRate; if (_isExcluded[sender] && !_isExcluded[recipient]) { _tOwned[sender] = _tOwned[sender] - tAmount; _rOwned[sender] = _rOwned[sender] - rAmount; _rOwned[recipient] = _rOwned[recipient] + rTransferAmount; } else if (!_isExcluded[sender] && _isExcluded[recipient]) { _rOwned[sender] = _rOwned[sender] - rAmount; _tOwned[recipient] = _tOwned[recipient] + tTransferAmount; _rOwned[recipient] = _rOwned[recipient] + rTransferAmount; } else if (_isExcluded[sender] && _isExcluded[recipient]) { _tOwned[sender] = _tOwned[sender] - tAmount; _rOwned[sender] = _rOwned[sender] - rAmount; _tOwned[recipient] = _tOwned[recipient] + tTransferAmount; _rOwned[recipient] = _rOwned[recipient] + rTransferAmount; } else { _rOwned[sender] = _rOwned[sender] - rAmount; _rOwned[recipient] = _rOwned[recipient] + rTransferAmount; } emit Transfer(sender, recipient, tTransferAmount); } function takeFee(address, address, uint256 amount) internal virtual returns(uint256) { return amount; } function totalFees() public view returns (uint256) { return _tFeeTotal; } function isExcludedFromReward(address account) public view returns (bool) { return _isExcluded[account]; } function excludeFromReward(address account) public onlyOwner() { require(!_isExcluded[account], "Account is already excluded"); if (_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } function includeInReward(address account) external onlyOwner() { require(_isExcluded[account], "Account is already excluded"); for (uint256 i = 0; i < _excluded.length; i++) { if (_excluded[i] == account) { _excluded[i] = _excluded[_excluded.length - 1]; uint256 currentRate = _getRate(); _rOwned[account] = _tOwned[account] *currentRate; _tOwned[account] = 0; _isExcluded[account] = false; _excluded.pop(); break; } } } function isExcludedFromFee(address account) public view returns (bool) { return _isExcludedFromFee[account]; } function excludeFromFee(address account) public onlyOwner { _isExcludedFromFee[account] = true; } function includeInFee(address account) public onlyOwner { _isExcludedFromFee[account] = false; } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } abstract contract ERC20Burnable is Context, ERC20 { uint256 public _burnFee = 800; function _burn(address account, uint256 tAmount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), tAmount); uint256 accountBalance = balanceOf(account); require(accountBalance >= tAmount, "ERC20: burn amount exceeds balance"); uint256 currentRate = _getRate(); uint256 rAmount = tAmount * currentRate; _rOwned[account] -= rAmount; _rTotal -= rAmount; _tTotal -= tAmount; if (_isExcluded[account]) { _tOwned[account] -= tAmount; } emit Transfer(account, address(0), tAmount); } function setBurnFee(uint256 _fee) external onlyOwner { _burnFee = _fee; } function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } function takeFee(address sender, address recipient, uint256 amount) internal virtual override returns(uint256) { uint tFee = amount * _burnFee / 10000; uint256 currentRate = _getRate(); uint256 rFee = tFee * currentRate; _rTotal -= rFee; _tTotal -= tFee; emit Transfer(sender, address(0), amount); return super.takeFee(sender, recipient, amount) - tFee; } } abstract contract ERC20Mintable is ERC20 { uint256 private immutable _cap; constructor(uint256 cap_) { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } function _mint(address account, uint256 tAmount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, tAmount); uint256 currentRate = _getRate(); uint256 rAmount = tAmount * currentRate; _rOwned[account] += rAmount; if (_isExcluded[account]) { _tOwned[account] += tAmount; } _tTotal += tAmount; _rTotal = (MAX - (MAX % _tTotal)); emit Transfer(address(0), account, tAmount); } function mint(address to, uint256 amount) public onlyOwner { require(totalSupply() + amount <= _cap, "Total supply cannot exceed cap"); _mint(to, amount); } } abstract contract ERC20Taxable is ERC20 { uint256 public _taxFee = 1; function setTaxFee(uint256 _fee) external onlyOwner { _taxFee = _fee; } function takeFee(address sender, address recipient, uint256 amount) internal virtual override returns(uint256) { uint tFee = amount * _taxFee / 10000; uint256 currentRate = _getRate(); uint256 rFee = tFee * currentRate; _rTotal = _rTotal - rFee; _tFeeTotal = _tFeeTotal + tFee; return super.takeFee(sender, recipient, amount) - tFee; } } abstract contract ERC20Team is ERC20 { uint256 public _teamFee; address public _teamWallet; function setTeamFee(uint256 _fee) external onlyOwner { _teamFee = _fee; } function setTeamWallet(address account) external onlyOwner { require(account != address(0), "Zera address not allowed"); _teamWallet = account; } function takeFee(address sender, address recipient, uint256 amount) internal virtual override returns(uint256) { if (_teamWallet != address(0)) { uint tFee = amount * _teamFee / 10000; uint256 currentRate = _getRate(); uint256 rFee = tFee * currentRate; _rOwned[_teamWallet] += rFee; if (_isExcluded[_teamWallet]) { _tOwned[_teamWallet] += tFee; } emit Transfer(sender, _teamWallet, tFee); return super.takeFee(sender, recipient, amount) - tFee; } else { return super.takeFee(sender, recipient, amount); } } } interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } abstract contract ERC20Liquidity is ERC20 { mapping (address => bool) internal _isExcludedFromAutoLiquidity; uint256 public _liquidityFee; uint256 internal minimumTokensBeforeSwap; IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; bool inSwapAndLiquify; bool public swapAndLiquifyEnabled = false; event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); modifier lockTheSwap { inSwapAndLiquify = true; _; inSwapAndLiquify = false; } constructor(address _router) { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(_router); uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; _isExcludedFromAutoLiquidity[uniswapV2Pair] = true; _isExcludedFromAutoLiquidity[address(uniswapV2Router)] = true; } function setExcludedFromAutoLiquidity(address a, bool b) external onlyOwner { _isExcludedFromAutoLiquidity[a] = b; } function takeFee(address sender, address recipient, uint256 amount) internal virtual override returns(uint256) { uint tFee = amount * _liquidityFee / 10000; uint256 currentRate = _getRate(); uint256 rFee = tFee * currentRate; _rOwned[address(this)] = _rOwned[address(this)] + rFee; emit Transfer(sender, address(this), tFee); if (_isExcluded[address(this)]) _tOwned[address(this)] = _tOwned[address(this)] + tFee; uint256 contractTokenBalance = balanceOf(address(this)); bool isOverMinTokenBalance = contractTokenBalance >= minimumTokensBeforeSwap; if ( isOverMinTokenBalance && !inSwapAndLiquify && !_isExcludedFromAutoLiquidity[sender] && swapAndLiquifyEnabled ) { contractTokenBalance = minimumTokensBeforeSwap; swapAndLiquify(contractTokenBalance); } return super.takeFee(sender, recipient, amount) - tFee; } function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { uint256 half = contractTokenBalance / 2; uint256 otherHalf = contractTokenBalance - half; uint256 initialBalance = address(this).balance; swapTokensForBnb(half); uint256 newBalance = address(this).balance -initialBalance; addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function swapTokensForBnb(uint256 tokenAmount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of BNB path, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 bnbAmount) private { _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.addLiquidityETH{value: bnbAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable owner(), block.timestamp ); } function setNumTokensSellToAddToLiquidity(uint256 _minimumTokensBeforeSwap) external onlyOwner() { minimumTokensBeforeSwap = _minimumTokensBeforeSwap; } function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner { swapAndLiquifyEnabled = _enabled; } function setLiquidityFee(uint256 _fee) external onlyOwner { _liquidityFee = _fee; } function retriveBNB(address payable to, uint256 amount) external onlyOwner { require(to != address(0), "Zero address prohibited"); uint256 contractBalance = address(this).balance; require(amount <= contractBalance, "Insufficient contract BNB balance"); to.transfer(amount); } //to receive ETH from uniswapV2Router when swapping receive() external payable {} } contract Martinicoin is ERC20 ,ERC20Burnable ,ERC20Taxable { constructor(address initialOwner_, string memory name_, string memory symbol_, uint8 decimals_, uint256 totalSupply_ ) ERC20(initialOwner_, name_, symbol_, decimals_, totalSupply_) { } function takeFee(address sender, address recipient, uint256 amount) internal override(ERC20 ,ERC20Burnable ,ERC20Taxable ) returns(uint256) { return super.takeFee(sender, recipient, amount); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"initialOwner_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"totalSupply_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setBurnFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setTaxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610320600d556001600e553480156200001c57600080fd5b5060405162002054380380620020548339810160408190526200003f9162000297565b84848484848462000050816200017a565b506008805460ff191660ff84169081179091556200007090600a6200045c565b6200007c908262000471565b60098190556200008f9060001962000493565b6200009d90600019620004b6565b600a55600b620000ae85826200055f565b50600c620000bd84826200055f565b50600160046000620000d76000546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790553081526004845282812080549095166001908117909555600a54918a16808252949093528183205560095490517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91620001629190815260200190565b60405180910390a3505050505050505050506200062b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001f257600080fd5b81516001600160401b03808211156200020f576200020f620001ca565b604051601f8301601f19908116603f011681019082821181831017156200023a576200023a620001ca565b816040528381526020925086838588010111156200025757600080fd5b600091505b838210156200027b57858201830151818301840152908201906200025c565b838211156200028d5760008385830101525b9695505050505050565b600080600080600060a08688031215620002b057600080fd5b85516001600160a01b0381168114620002c857600080fd5b60208701519095506001600160401b0380821115620002e657600080fd5b620002f489838a01620001e0565b955060408801519150808211156200030b57600080fd5b506200031a88828901620001e0565b935050606086015160ff811681146200033257600080fd5b80925050608086015190509295509295909350565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200039e57816000190482111562000382576200038262000347565b808516156200039057918102915b93841c939080029062000362565b509250929050565b600082620003b75750600162000456565b81620003c65750600062000456565b8160018114620003df5760028114620003ea576200040a565b600191505062000456565b60ff841115620003fe57620003fe62000347565b50506001821b62000456565b5060208310610133831016604e8410600b84101617156200042f575081810a62000456565b6200043b83836200035d565b806000190482111562000452576200045262000347565b0290505b92915050565b60006200046a8383620003a6565b9392505050565b60008160001904831182151516156200048e576200048e62000347565b500290565b600082620004b157634e487b7160e01b600052601260045260246000fd5b500690565b600082821015620004cb57620004cb62000347565b500390565b600181811c90821680620004e557607f821691505b6020821081036200050657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200055a57600081815260208120601f850160051c81016020861015620005355750805b601f850160051c820191505b81811015620005565782815560010162000541565b5050505b505050565b81516001600160401b038111156200057b576200057b620001ca565b62000593816200058c8454620004d0565b846200050c565b602080601f831160018114620005cb5760008415620005b25750858301515b600019600386901b1c1916600185901b17855562000556565b600085815260208120601f198616915b82811015620005fc57888601518255948401946001909101908401620005db565b50858210156200061b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611a19806200063b6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80635342acb4116100f9578063a457c2d711610097578063c4081a4c11610071578063c4081a4c146103b4578063dd62ed3e146103c7578063ea2f0b3714610400578063f2fde38b1461041357600080fd5b8063a457c2d714610385578063a9059cbb14610398578063c0b0fda2146103ab57600080fd5b806379cc6790116100d357806379cc67901461032357806388f82020146103365780638da5cb5b1461036257806395d89b411461037d57600080fd5b80635342acb4146102dc57806370a0823114610308578063715018a61461031b57600080fd5b80633685d4191161016657806342966c681161014057806342966c6814610290578063437823ec146102a35780634bf2c7c9146102b657806352390c02146102c957600080fd5b80633685d4191461025f57806339509351146102745780633b124fe71461028757600080fd5b806318160ddd116101a257806318160ddd1461021c57806323b872dd146102245780632d83811914610237578063313ce5671461024a57600080fd5b806306fdde03146101c9578063095ea7b3146101e757806313114a9d1461020a575b600080fd5b6101d1610426565b6040516101de919061176b565b60405180910390f35b6101fa6101f53660046117dc565b6104b8565b60405190151581526020016101de565b6007545b6040519081526020016101de565b60095461020e565b6101fa610232366004611806565b6104ce565b61020e610245366004611842565b610520565b60085460405160ff90911681526020016101de565b61027261026d36600461185b565b6105a9565b005b6101fa6102823660046117dc565b6107a7565b61020e600e5481565b61027261029e366004611842565b6107de565b6102726102b136600461185b565b6107eb565b6102726102c4366004611842565b610839565b6102726102d736600461185b565b610868565b6101fa6102ea36600461185b565b6001600160a01b031660009081526004602052604090205460ff1690565b61020e61031636600461185b565b6109bb565b610272610a20565b6102726103313660046117dc565b610a56565b6101fa61034436600461185b565b6001600160a01b031660009081526005602052604090205460ff1690565b6000546040516001600160a01b0390911681526020016101de565b6101d1610a6b565b6101fa6103933660046117dc565b610a7a565b6101fa6103a63660046117dc565b610ab1565b61020e600d5481565b6102726103c2366004611842565b610abe565b61020e6103d5366004611876565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61027261040e36600461185b565b610aed565b61027261042136600461185b565b610b38565b6060600b8054610435906118a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610461906118a9565b80156104ae5780601f10610483576101008083540402835291602001916104ae565b820191906000526020600020905b81548152906001019060200180831161049157829003601f168201915b5050505050905090565b60006104c5338484610bd0565b50600192915050565b60006104db848484610cf4565b6001600160a01b0384166000908152600360209081526040808320338085529252909120546105169186916105119086906118f9565b610bd0565b5060019392505050565b6000600a5482111561058c5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084015b60405180910390fd5b6000610596610e2c565b90506105a28184611910565b9392505050565b6000546001600160a01b031633146105d35760405162461bcd60e51b815260040161058390611932565b6001600160a01b03811660009081526005602052604090205460ff1661063b5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610583565b60005b6006548110156107a357816001600160a01b03166006828154811061066557610665611967565b6000918252602090912001546001600160a01b031603610791576006805461068f906001906118f9565b8154811061069f5761069f611967565b600091825260209091200154600680546001600160a01b0390921691839081106106cb576106cb611967565b6000918252602082200180546001600160a01b0319166001600160a01b0393909316929092179091556106fc610e2c565b6001600160a01b03841660009081526002602052604090205490915061072390829061197d565b6001600160a01b038416600090815260016020908152604080832093909355600281528282208290556005905220805460ff19169055600680548061076a5761076a61199c565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b8061079b816119b2565b91505061063e565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916104c59185906105119086906119cb565b6107e83382610e4f565b50565b6000546001600160a01b031633146108155760405162461bcd60e51b815260040161058390611932565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000546001600160a01b031633146108635760405162461bcd60e51b815260040161058390611932565b600d55565b6000546001600160a01b031633146108925760405162461bcd60e51b815260040161058390611932565b6001600160a01b03811660009081526005602052604090205460ff16156108fb5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610583565b6001600160a01b03811660009081526001602052604090205415610955576001600160a01b03811660009081526001602052604090205461093b90610520565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6001600160a01b03811660009081526005602052604081205460ff16156109f857506001600160a01b031660009081526002602052604090205490565b6001600160a01b038216600090815260016020526040902054610a1a90610520565b92915050565b6000546001600160a01b03163314610a4a5760405162461bcd60e51b815260040161058390611932565b610a54600061102a565b565b610a6182338361107a565b6107a38282610e4f565b6060600c8054610435906118a9565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916104c59185906105119086906118f9565b60006104c5338484610cf4565b6000546001600160a01b03163314610ae85760405162461bcd60e51b815260040161058390611932565b600e55565b6000546001600160a01b03163314610b175760405162461bcd60e51b815260040161058390611932565b6001600160a01b03166000908152600460205260409020805460ff19169055565b6000546001600160a01b03163314610b625760405162461bcd60e51b815260040161058390611932565b6001600160a01b038116610bc75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610583565b6107e88161102a565b6001600160a01b038316610c325760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610583565b6001600160a01b038216610c935760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610583565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610d585760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610583565b6001600160a01b038216610dba5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610583565b60008111610e1c5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610583565b610e2783838361110c565b505050565b6000806000610e396114a4565b9092509050610e488183611910565b9250505090565b6001600160a01b038216610eaf5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610583565b6000610eba836109bb565b905081811015610f175760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610583565b6000610f21610e2c565b90506000610f2f828561197d565b6001600160a01b038616600090815260016020526040812080549293508392909190610f5c9084906118f9565b9250508190555080600a6000828254610f7591906118f9565b925050819055508360096000828254610f8e91906118f9565b90915550506001600160a01b03851660009081526005602052604090205460ff1615610fe2576001600160a01b03851660009081526002602052604081208054869290610fdc9084906118f9565b90915550505b6040518481526000906001600160a01b038716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03838116600090815260036020908152604080832093861683529290522054600019811461110657818110156110f95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610583565b6111068484848403610bd0565b50505050565b6001600160a01b03831660009081526004602052604081205460ff168061114b57506001600160a01b03831660009081526004602052604090205460ff165b156111625761115b848484611627565b9050611165565b50805b600061116f610e2c565b9050600061117d828561197d565b9050600061118b838561197d565b6001600160a01b03881660009081526005602052604090205490915060ff1680156111cf57506001600160a01b03861660009081526005602052604090205460ff16155b15611276576001600160a01b0387166000908152600260205260409020546111f89086906118f9565b6001600160a01b0388166000908152600260209081526040808320939093556001905220546112289083906118f9565b6001600160a01b0380891660009081526001602052604080822093909355908816815220546112589082906119cb565b6001600160a01b03871660009081526001602052604090205561144e565b6001600160a01b03871660009081526005602052604090205460ff161580156112b757506001600160a01b03861660009081526005602052604090205460ff165b15611347576001600160a01b0387166000908152600160205260409020546112e09083906118f9565b6001600160a01b038089166000908152600160209081526040808320949094559189168152600290915220546113179085906119cb565b6001600160a01b0387166000908152600260209081526040808320939093556001905220546112589082906119cb565b6001600160a01b03871660009081526005602052604090205460ff16801561138757506001600160a01b03861660009081526005602052604090205460ff165b156113e0576001600160a01b0387166000908152600260205260409020546113b09086906118f9565b6001600160a01b0388166000908152600260209081526040808320939093556001905220546112e09083906118f9565b6001600160a01b0387166000908152600160205260409020546114049083906118f9565b6001600160a01b0380891660009081526001602052604080822093909355908816815220546114349082906119cb565b6001600160a01b0387166000908152600160205260409020555b856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161149391815260200190565b60405180910390a350505050505050565b600a546009546000918291825b6006548110156115f6578260016000600684815481106114d3576114d3611967565b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061153e575081600260006006848154811061151757611517611967565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561155457600a54600954945094505050509091565b600160006006838154811061156b5761156b611967565b60009182526020808320909101546001600160a01b0316835282019290925260400190205461159a90846118f9565b925060026000600683815481106115b3576115b3611967565b60009182526020808320909101546001600160a01b031683528201929092526040019020546115e290836118f9565b9150806115ee816119b2565b9150506114b1565b50600954600a546116079190611910565b82101561161e57600a546009549350935050509091565b90939092509050565b600061163484848461163c565b949350505050565b600080612710600e5484611650919061197d565b61165a9190611910565b90506000611666610e2c565b90506000611674828461197d565b905080600a5461168491906118f9565b600a556007546116959084906119cb565b600755826116a48888886116b9565b6116ae91906118f9565b979650505050505050565b600080612710600d54846116cd919061197d565b6116d79190611910565b905060006116e3610e2c565b905060006116f1828461197d565b905080600a600082825461170591906118f9565b92505081905550826009600082825461171e91906118f9565b90915550506040518581526000906001600160a01b038916907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a382856116a4565b600060208083528351808285015260005b818110156117985785810183015185820160400152820161177c565b818111156117aa576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146117d757600080fd5b919050565b600080604083850312156117ef57600080fd5b6117f8836117c0565b946020939093013593505050565b60008060006060848603121561181b57600080fd5b611824846117c0565b9250611832602085016117c0565b9150604084013590509250925092565b60006020828403121561185457600080fd5b5035919050565b60006020828403121561186d57600080fd5b6105a2826117c0565b6000806040838503121561188957600080fd5b611892836117c0565b91506118a0602084016117c0565b90509250929050565b600181811c908216806118bd57607f821691505b6020821081036118dd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561190b5761190b6118e3565b500390565b60008261192d57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615611997576119976118e3565b500290565b634e487b7160e01b600052603160045260246000fd5b6000600182016119c4576119c46118e3565b5060010190565b600082198211156119de576119de6118e3565b50019056fea264697066735822122020e6454304d6bcbae2674a2319c1d5feac4c182fb57fd89df3f99c3f1cf260f464736f6c634300080f0033000000000000000000000000918a384df2872c4ecabc84785b50bfdb059da98f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000174876e800000000000000000000000000000000000000000000000000000000000000000b4d617274696e69636f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d54430000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80635342acb4116100f9578063a457c2d711610097578063c4081a4c11610071578063c4081a4c146103b4578063dd62ed3e146103c7578063ea2f0b3714610400578063f2fde38b1461041357600080fd5b8063a457c2d714610385578063a9059cbb14610398578063c0b0fda2146103ab57600080fd5b806379cc6790116100d357806379cc67901461032357806388f82020146103365780638da5cb5b1461036257806395d89b411461037d57600080fd5b80635342acb4146102dc57806370a0823114610308578063715018a61461031b57600080fd5b80633685d4191161016657806342966c681161014057806342966c6814610290578063437823ec146102a35780634bf2c7c9146102b657806352390c02146102c957600080fd5b80633685d4191461025f57806339509351146102745780633b124fe71461028757600080fd5b806318160ddd116101a257806318160ddd1461021c57806323b872dd146102245780632d83811914610237578063313ce5671461024a57600080fd5b806306fdde03146101c9578063095ea7b3146101e757806313114a9d1461020a575b600080fd5b6101d1610426565b6040516101de919061176b565b60405180910390f35b6101fa6101f53660046117dc565b6104b8565b60405190151581526020016101de565b6007545b6040519081526020016101de565b60095461020e565b6101fa610232366004611806565b6104ce565b61020e610245366004611842565b610520565b60085460405160ff90911681526020016101de565b61027261026d36600461185b565b6105a9565b005b6101fa6102823660046117dc565b6107a7565b61020e600e5481565b61027261029e366004611842565b6107de565b6102726102b136600461185b565b6107eb565b6102726102c4366004611842565b610839565b6102726102d736600461185b565b610868565b6101fa6102ea36600461185b565b6001600160a01b031660009081526004602052604090205460ff1690565b61020e61031636600461185b565b6109bb565b610272610a20565b6102726103313660046117dc565b610a56565b6101fa61034436600461185b565b6001600160a01b031660009081526005602052604090205460ff1690565b6000546040516001600160a01b0390911681526020016101de565b6101d1610a6b565b6101fa6103933660046117dc565b610a7a565b6101fa6103a63660046117dc565b610ab1565b61020e600d5481565b6102726103c2366004611842565b610abe565b61020e6103d5366004611876565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61027261040e36600461185b565b610aed565b61027261042136600461185b565b610b38565b6060600b8054610435906118a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610461906118a9565b80156104ae5780601f10610483576101008083540402835291602001916104ae565b820191906000526020600020905b81548152906001019060200180831161049157829003601f168201915b5050505050905090565b60006104c5338484610bd0565b50600192915050565b60006104db848484610cf4565b6001600160a01b0384166000908152600360209081526040808320338085529252909120546105169186916105119086906118f9565b610bd0565b5060019392505050565b6000600a5482111561058c5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084015b60405180910390fd5b6000610596610e2c565b90506105a28184611910565b9392505050565b6000546001600160a01b031633146105d35760405162461bcd60e51b815260040161058390611932565b6001600160a01b03811660009081526005602052604090205460ff1661063b5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610583565b60005b6006548110156107a357816001600160a01b03166006828154811061066557610665611967565b6000918252602090912001546001600160a01b031603610791576006805461068f906001906118f9565b8154811061069f5761069f611967565b600091825260209091200154600680546001600160a01b0390921691839081106106cb576106cb611967565b6000918252602082200180546001600160a01b0319166001600160a01b0393909316929092179091556106fc610e2c565b6001600160a01b03841660009081526002602052604090205490915061072390829061197d565b6001600160a01b038416600090815260016020908152604080832093909355600281528282208290556005905220805460ff19169055600680548061076a5761076a61199c565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b8061079b816119b2565b91505061063e565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916104c59185906105119086906119cb565b6107e83382610e4f565b50565b6000546001600160a01b031633146108155760405162461bcd60e51b815260040161058390611932565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000546001600160a01b031633146108635760405162461bcd60e51b815260040161058390611932565b600d55565b6000546001600160a01b031633146108925760405162461bcd60e51b815260040161058390611932565b6001600160a01b03811660009081526005602052604090205460ff16156108fb5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610583565b6001600160a01b03811660009081526001602052604090205415610955576001600160a01b03811660009081526001602052604090205461093b90610520565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6001600160a01b03811660009081526005602052604081205460ff16156109f857506001600160a01b031660009081526002602052604090205490565b6001600160a01b038216600090815260016020526040902054610a1a90610520565b92915050565b6000546001600160a01b03163314610a4a5760405162461bcd60e51b815260040161058390611932565b610a54600061102a565b565b610a6182338361107a565b6107a38282610e4f565b6060600c8054610435906118a9565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916104c59185906105119086906118f9565b60006104c5338484610cf4565b6000546001600160a01b03163314610ae85760405162461bcd60e51b815260040161058390611932565b600e55565b6000546001600160a01b03163314610b175760405162461bcd60e51b815260040161058390611932565b6001600160a01b03166000908152600460205260409020805460ff19169055565b6000546001600160a01b03163314610b625760405162461bcd60e51b815260040161058390611932565b6001600160a01b038116610bc75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610583565b6107e88161102a565b6001600160a01b038316610c325760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610583565b6001600160a01b038216610c935760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610583565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610d585760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610583565b6001600160a01b038216610dba5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610583565b60008111610e1c5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610583565b610e2783838361110c565b505050565b6000806000610e396114a4565b9092509050610e488183611910565b9250505090565b6001600160a01b038216610eaf5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610583565b6000610eba836109bb565b905081811015610f175760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610583565b6000610f21610e2c565b90506000610f2f828561197d565b6001600160a01b038616600090815260016020526040812080549293508392909190610f5c9084906118f9565b9250508190555080600a6000828254610f7591906118f9565b925050819055508360096000828254610f8e91906118f9565b90915550506001600160a01b03851660009081526005602052604090205460ff1615610fe2576001600160a01b03851660009081526002602052604081208054869290610fdc9084906118f9565b90915550505b6040518481526000906001600160a01b038716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03838116600090815260036020908152604080832093861683529290522054600019811461110657818110156110f95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610583565b6111068484848403610bd0565b50505050565b6001600160a01b03831660009081526004602052604081205460ff168061114b57506001600160a01b03831660009081526004602052604090205460ff165b156111625761115b848484611627565b9050611165565b50805b600061116f610e2c565b9050600061117d828561197d565b9050600061118b838561197d565b6001600160a01b03881660009081526005602052604090205490915060ff1680156111cf57506001600160a01b03861660009081526005602052604090205460ff16155b15611276576001600160a01b0387166000908152600260205260409020546111f89086906118f9565b6001600160a01b0388166000908152600260209081526040808320939093556001905220546112289083906118f9565b6001600160a01b0380891660009081526001602052604080822093909355908816815220546112589082906119cb565b6001600160a01b03871660009081526001602052604090205561144e565b6001600160a01b03871660009081526005602052604090205460ff161580156112b757506001600160a01b03861660009081526005602052604090205460ff165b15611347576001600160a01b0387166000908152600160205260409020546112e09083906118f9565b6001600160a01b038089166000908152600160209081526040808320949094559189168152600290915220546113179085906119cb565b6001600160a01b0387166000908152600260209081526040808320939093556001905220546112589082906119cb565b6001600160a01b03871660009081526005602052604090205460ff16801561138757506001600160a01b03861660009081526005602052604090205460ff165b156113e0576001600160a01b0387166000908152600260205260409020546113b09086906118f9565b6001600160a01b0388166000908152600260209081526040808320939093556001905220546112e09083906118f9565b6001600160a01b0387166000908152600160205260409020546114049083906118f9565b6001600160a01b0380891660009081526001602052604080822093909355908816815220546114349082906119cb565b6001600160a01b0387166000908152600160205260409020555b856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161149391815260200190565b60405180910390a350505050505050565b600a546009546000918291825b6006548110156115f6578260016000600684815481106114d3576114d3611967565b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061153e575081600260006006848154811061151757611517611967565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561155457600a54600954945094505050509091565b600160006006838154811061156b5761156b611967565b60009182526020808320909101546001600160a01b0316835282019290925260400190205461159a90846118f9565b925060026000600683815481106115b3576115b3611967565b60009182526020808320909101546001600160a01b031683528201929092526040019020546115e290836118f9565b9150806115ee816119b2565b9150506114b1565b50600954600a546116079190611910565b82101561161e57600a546009549350935050509091565b90939092509050565b600061163484848461163c565b949350505050565b600080612710600e5484611650919061197d565b61165a9190611910565b90506000611666610e2c565b90506000611674828461197d565b905080600a5461168491906118f9565b600a556007546116959084906119cb565b600755826116a48888886116b9565b6116ae91906118f9565b979650505050505050565b600080612710600d54846116cd919061197d565b6116d79190611910565b905060006116e3610e2c565b905060006116f1828461197d565b905080600a600082825461170591906118f9565b92505081905550826009600082825461171e91906118f9565b90915550506040518581526000906001600160a01b038916907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a382856116a4565b600060208083528351808285015260005b818110156117985785810183015185820160400152820161177c565b818111156117aa576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146117d757600080fd5b919050565b600080604083850312156117ef57600080fd5b6117f8836117c0565b946020939093013593505050565b60008060006060848603121561181b57600080fd5b611824846117c0565b9250611832602085016117c0565b9150604084013590509250925092565b60006020828403121561185457600080fd5b5035919050565b60006020828403121561186d57600080fd5b6105a2826117c0565b6000806040838503121561188957600080fd5b611892836117c0565b91506118a0602084016117c0565b90509250929050565b600181811c908216806118bd57607f821691505b6020821081036118dd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561190b5761190b6118e3565b500390565b60008261192d57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615611997576119976118e3565b500290565b634e487b7160e01b600052603160045260246000fd5b6000600182016119c4576119c46118e3565b5060010190565b600082198211156119de576119de6118e3565b50019056fea264697066735822122020e6454304d6bcbae2674a2319c1d5feac4c182fb57fd89df3f99c3f1cf260f464736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000918a384df2872c4ecabc84785b50bfdb059da98f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000174876e800000000000000000000000000000000000000000000000000000000000000000b4d617274696e69636f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d54430000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialOwner_ (address): 0x918a384dF2872c4EcABC84785b50BFdB059DA98f
Arg [1] : name_ (string): Martinicoin
Arg [2] : symbol_ (string): MTC
Arg [3] : decimals_ (uint8): 1
Arg [4] : totalSupply_ (uint256): 100000000000
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000918a384df2872c4ecabc84785b50bfdb059da98f
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 000000000000000000000000000000000000000000000000000000174876e800
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [6] : 4d617274696e69636f696e000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4d54430000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.