false
true
0
PulseChain
Blockchain
Blocks
Blocks
Uncles
Forked Blocks (Reorgs)
Transactions
Confirmed
Pending
Verified contracts
Tokens
All
PLS
APIs
GraphQL
RPC
Eth RPC
Apps
PulseChain Beacon Explorer
PulseX
PulseChain Bridge
Become a Validator
PulseChain
Mainnets
PulseChain Mainnet
Testnets
Testnet V4
/
Search
/
Search
Connection Lost
New Solidity Smart Contract Verification
Contract Address
The 0x address supplied on contract creation.
Is Yul contract
No
Yes
Select Yes if you want to verify Yul contract.
Contract Name
Must match the name specified in the code. For example, in
contract MyContract {..}
MyContract
is the contract name.
Include nightly builds
No
Yes
Select yes if you want to show nightly builds.
Compiler
v0.8.34+commit.80d5c536
v0.8.33+commit.64118f21
v0.8.32+commit.ebbd65e5
v0.8.31+commit.fd3a2265
v0.8.31-pre.1+commit.b59566f6
v0.8.30+commit.73712a01
v0.8.29+commit.ab55807c
v0.8.28+commit.7893614a
v0.8.27+commit.40a35a09
v0.8.26+commit.8a97fa7a
v0.8.25+commit.b61c2a91
v0.8.24+commit.e11b9ed9
v0.8.23+commit.f704f362
v0.8.22+commit.4fc1097e
v0.8.21+commit.d9974bed
v0.8.20+commit.a1b79de6
v0.8.19+commit.7dd6d404
v0.8.18+commit.87f61d96
v0.8.17+commit.8df45f5f
v0.8.16+commit.07a7930e
v0.8.15+commit.e14f2714
v0.8.14+commit.80d49f37
v0.8.13+commit.abaa5c0e
v0.8.12+commit.f00d7308
v0.8.11+commit.d7f03943
v0.8.10+commit.fc410830
v0.8.9+commit.e5eed63a
v0.8.8+commit.dddeac2f
v0.8.7+commit.e28d00a7
v0.8.6+commit.11564f7e
v0.8.5+commit.a4f2e591
v0.8.4+commit.c7e474f2
v0.8.3+commit.8d00100c
v0.8.2+commit.661d1103
v0.8.1+commit.df193b15
v0.8.0+commit.c7dfd78e
v0.7.6+commit.7338295f
v0.7.5+commit.eb77ed08
v0.7.4+commit.3f05b770
v0.7.3+commit.9bfce1f6
v0.7.2+commit.51b20bc0
v0.7.1+commit.f4a555be
v0.7.0+commit.9e61f92b
v0.6.12+commit.27d51765
v0.6.11+commit.5ef660b1
v0.6.10+commit.00c0fcaf
v0.6.9+commit.3e3065ac
v0.6.8+commit.0bbfe453
v0.6.7+commit.b8d736ae
v0.6.6+commit.6c089d02
v0.6.5+commit.f956cc89
v0.6.4+commit.1dca32f3
v0.6.3+commit.8dda9521
v0.6.2+commit.bacdbe57
v0.6.1+commit.e6f7d5a4
v0.6.0+commit.26b70077
v0.5.17+commit.d19bba13
v0.5.16+commit.9c3226ce
v0.5.15+commit.6a57276f
v0.5.14+commit.01f1aaa4
v0.5.13+commit.5b0b510c
v0.5.12+commit.7709ece9
v0.5.11+commit.22be8592
v0.5.10+commit.5a6ea5b1
v0.5.9+commit.c68bc34e
v0.5.8+commit.23d335f2
v0.5.7+commit.6da8b019
v0.5.6+commit.b259423e
v0.5.5+commit.47a71e8f
v0.5.4+commit.9549d8ff
v0.5.3+commit.10d17f24
v0.5.2+commit.1df8f40c
v0.5.1+commit.c8a2cb62
v0.5.0+commit.1d4f565a
v0.4.26+commit.4563c3fc
v0.4.25+commit.59dbf8f1
v0.4.24+commit.e67f0147
v0.4.23+commit.124ca40d
v0.4.22+commit.4cb486ee
v0.4.21+commit.dfe3193c
v0.4.20+commit.3155dd80
v0.4.19+commit.c4cbbb05
v0.4.18+commit.9cf6e910
v0.4.17+commit.bdeb9e52
v0.4.16+commit.d7661dd9
v0.4.15+commit.8b45bddb
v0.4.14+commit.c2215d46
v0.4.13+commit.0fb4cb1a
v0.4.12+commit.194ff033
v0.4.11+commit.68ef5810
v0.4.10+commit.9e8cc01b
The compiler version is specified in
pragma solidity X.X.X
. Use the compiler version rather than the nightly build. If using the Solidity compiler, run
solc —version
to check.
EVM Version
homestead
tangerineWhistle
spuriousDragon
byzantium
constantinople
petersburg
istanbul
berlin
london
paris
shanghai
default
The EVM version the contract is written for. If the bytecode does not match the version, we try to verify using the latest EVM version.
EVM version details
.
Optimization
No
Yes
If you enabled optimization during compilation, select yes.
Optimization runs
Enter the Solidity Contract Code
// // // // ██╗ ██████╗ █████╗ ██████╗ ██╗ █████╗ ███████╗ ██████╗ ██████╗ ██████╗ ███████╗ // ██║██╔════╝██╔══██╗██╔══██╗██║██╔══██╗ ██╔════╝██╔═══██╗██╔══██╗██╔════╝ ██╔════╝ // ██║██║ ███████║██████╔╝██║███████║ █████╗ ██║ ██║██████╔╝██║ ███╗█████╗ // ██║██║ ██╔══██║██╔══██╗██║██╔══██║ ██╔══╝ ██║ ██║██╔══██╗██║ ██║██╔══╝ // ██║╚██████╗██║ ██║██║ ██║██║██║ ██║ ██║ ╚██████╔╝██║ ██║╚██████╔╝███████╗ // ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ // // // // Forge // Web: https://forge.icaria.pro // Tg: https://t.me/icariaforge // // Icaria // Web: https://icaria.pro // Tg: https://t.me/icarusprc20 // X: https://x.com/IcarusPRC20 // // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import { ERC20 } from "../ERC20.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { IcariaRYManager } from "./IcariaRYManager.sol"; import { Ownable }from "@openzeppelin/contracts/access/Ownable.sol"; import { IUniswapV2Factory } from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import { IUniswapV2Router02 } from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import { IUniswapV2Pair } from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import { IIcariaHelpers } from "./interfaces/IIcariaHelpers.sol"; import { IIcariaSmartTrader } from "./interfaces/IIcariaSmartTrader.sol"; import { IIcariaSmartTokenFactory } from "./interfaces/IIcariaSmartTokenFactory.sol"; import { IWETH } from "./interfaces/IWETH.sol"; contract IcariaSmartToken is ERC20, Ownable, IcariaRYManager { // --- Trading control --- bool public tradingEnabled; error TradingDisabled(); error AlreadyEnabled(); uint256 public constant tokenVersion = 2; uint256 public initialSupply; uint256 private constant GLOBAL_DIVIDER = 10000; address private icariaSmartTrader; address private deployer; address private factory; address[] private routers = [0x98bf93ebf5c380C0e6Ae8e192A7e2AE08edAcc02, 0x165C3410fC91EF562C50559f7d2289fEbed552d9, 0xcC73b59F8D7b7c532703bDfea2808a28a488cF47, 0xeB45a3c4aedd0F47F345fB4c8A1802BB5740d725]; mapping (address => bool) isTaxExcluded; uint256 private currentSwapAmount; uint256 private accumulatedIcariaFee; bool private icariaFeeEnabled = false; bool private shouldAccumulateIcariaFee = false; bool private reflectionsEnabled = false; bool private yieldEnabled = false; bool private firstPairInteractionHappened = false; bool private processedTaxesInTx; IIcariaHelpers.Tax[] public taxes; event TradingEnabled(); constructor( string memory name_, string memory symbol_, address _owner, address _mintTo, uint256 _initialSupply, IIcariaHelpers.Tax[] memory _taxes, address _icariaSmartTrader, address _factory, address _helpers, bool _tradingEnabled ) ERC20(name_, symbol_) Ownable(_owner) IcariaRYManager(_helpers) { tradingEnabled = _tradingEnabled; _mint(_mintTo, _initialSupply); deployer = _mintTo; initialSupply = _initialSupply; icariaSmartTrader = _icariaSmartTrader; factory = _factory; inititlizeTaxExclusions(); if(_taxes.length > 0) { address[] memory _yieldTokens; icariaFeeEnabled = true; (shouldAccumulateIcariaFee, reflectionsEnabled, yieldEnabled, taxes, _yieldTokens) = IIcariaHelpers(helpers).taxesInitialize(_taxes); if (reflectionsEnabled || yieldEnabled) initializeReflectionExclusions(); for(uint256 i = 0; i < _yieldTokens.length; i++) { addYieldToken(_yieldTokens[i]); } } } function _transfer(address from, address to, uint256 value) internal override { processedTaxesInTx = false; if(isDeadAddress(to)) { super._burn(from, value); return; } if(!tradingEnabled && !isTaxExcluded[from]) revert TradingDisabled(); if (taxes.length == 0 || !firstPairInteractionHappened || isTaxExcluded[from] || isTaxExcluded[to] || inSwap) { if(!firstPairInteractionHappened && isPair(to)) firstPairInteractionHappened = true; _claimYield(from, to); super._transfer(from, to, value); return; } if(isPair(to) && !isReflectionExcluded[to]) isReflectionExcluded[to] = true; currentSwapAmount = value; uint256 amountAfterTaxs = processTaxes(from, to, value); if (hasAccumulatedTaxes() && firstPairInteractionHappened && !inSwap && !processedTaxesInTx || shouldAccumulateIcariaFee ) { if(!isBuy(from, to)) { processAccumulatedTaxes(); processedTaxesInTx = true; } } _claimYield(from, to); _claimReflections(from, to); super._transfer(from, to, amountAfterTaxs); } function processTaxes(address from, address to, uint256 amount) internal returns (uint256) { uint256 totalTaxAmount = 0; uint256 totalIcariaFee = 0; for (uint256 i = 0; i < taxes.length; i++) { IIcariaHelpers.Tax memory tax = taxes[i]; uint256 taxAmount; uint256 icariaFee; if (tax.taxMoment == IIcariaHelpers.TaxMoment.Both) { (taxAmount, icariaFee) = calculateTaxAmount(amount, tax); processTaxType(from, taxAmount, tax); } else if (tax.taxMoment == IIcariaHelpers.TaxMoment.Buy && isBuy(from, to)) { (taxAmount, icariaFee) = calculateTaxAmount(amount, tax); processTaxType(from, taxAmount, tax); } else if (tax.taxMoment == IIcariaHelpers.TaxMoment.Sell && isSell(from, to)) { (taxAmount, icariaFee) = calculateTaxAmount(amount, tax); processTaxType(from, taxAmount, tax); } totalTaxAmount += taxAmount; totalIcariaFee += icariaFee; } if (totalIcariaFee > 0) { if (shouldAccumulateIcariaFee) { super._transfer(from, address(this), totalIcariaFee); accumulatedIcariaFee += totalIcariaFee; } else { super._transfer(from, getIcariaWallet(), totalIcariaFee); } } return amount - totalTaxAmount - totalIcariaFee; } function calculateTaxAmount(uint256 originalAmount, IIcariaHelpers.Tax memory tax) internal view returns (uint256 taxAmount, uint256 icariaFee) { return IIcariaHelpers(helpers).calculateTaxAmount( originalAmount, tax.percentage, getIcariaFee(), icariaFeeEnabled, GLOBAL_DIVIDER ); } function processTaxType(address from, uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal { if (isBurnTax(tax)) { processBurnTax(from, taxAmount, tax); } else if (isReflectionTax(tax)) { processReflectionTax(from, taxAmount, tax); } else if (isDevTax(tax)) { processDevTax(from, taxAmount, tax); } else if (isExternalBurnTax(tax)) { processExternalBurnTax(from, taxAmount, tax); } else if (isYieldTax(tax)) { processYieldTax(from, taxAmount, tax); } else if (isLiquifyTax(tax)) { processLiquifyTax(from, taxAmount, tax); } } function processBurnTax(address from, uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal { super._burn(from, taxAmount); addToTotal(taxAmount, tax); } function processDevTax(address from, uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal { if(!isTaxExcluded[tax.receiver]) isTaxExcluded[tax.receiver] = true; if (tax.rewardInPls) { getTaxAndAccumulate(from, taxAmount, tax); } else { super._transfer(from, tax.receiver, taxAmount); } } function processReflectionTax(address from, uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal { super._transfer(from, address(this), taxAmount); uint256 supply = totalSupply() - balanceOf(address(this)); if (supply > 0) { reflectionsPerShareAmount += (taxAmount * PRECISION) / supply; } addToTotal(taxAmount, tax); } function processExternalBurnTax(address from, uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal lockSwap { getTaxAndAccumulate(from, taxAmount, tax); } function processYieldTax(address from, uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal lockSwap { getTaxAndAccumulate(from, taxAmount, tax); } function processLiquifyTax(address from, uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal lockSwap { getTaxAndAccumulate(from, taxAmount, tax); } function getTaxAndAccumulate(address from, uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal { super._transfer(from, address(this), taxAmount); taxes[tax.id].amountAccumulated += taxAmount; } function addToTotal(uint256 taxAmount, IIcariaHelpers.Tax memory tax) internal { taxes[tax.id].total += taxAmount; } function processAccumulatedTaxes() internal lockSwap { uint256 totalToSwap = 0; uint256 totalTokenTypes = 0; bool[] memory taxesToProcess = new bool[](taxes.length); uint256[] memory taxAmounts = new uint256[](taxes.length); for (uint256 i = 0; i < taxes.length; i++) { IIcariaHelpers.Tax storage tax = taxes[i]; if (tax.amountAccumulated == 0) continue; // Check if this tax type should be processed bool shouldProcess = isExternalBurnTax(tax) || (isDevTax(tax) && tax.rewardInPls) || isYieldTax(tax) || isLiquifyTax(tax); if (!shouldProcess) continue; // Get the amount to process (uint256 swapAmount, uint256 newAccumulatedAmount) = getProcessingAmount(tax.amountAccumulated); if (swapAmount > 0) { uint256 amountToSwap = swapAmount; uint256 finalAccumulatedAmount = newAccumulatedAmount; // Special handling for Liquify tax type if (isLiquifyTax(tax)) { // For Liquify, we only swap half of the tokens amountToSwap = swapAmount / 2; // Keep the other half for liquidity finalAccumulatedAmount = newAccumulatedAmount + (swapAmount - amountToSwap); } taxesToProcess[i] = true; taxAmounts[i] = amountToSwap; totalToSwap += amountToSwap; totalTokenTypes++; taxes[i].amountAccumulated = finalAccumulatedAmount; } else { taxes[i].amountAccumulated = newAccumulatedAmount; } } (/*address bestPair*/, address bestRouter) = getBestPair(address(this), wethAddress); if (bestRouter == address(0)) return; (uint256 icariaToProcess, uint256 newAccumulatedIcariaAmount) = getProcessingAmount(accumulatedIcariaFee); totalToSwap += icariaToProcess; if (totalToSwap == 0) return; uint256 icariaToTaxesRatio = icariaToProcess * PRECISION / totalToSwap; accumulatedIcariaFee = newAccumulatedIcariaAmount; _approve(address(this), icariaSmartTrader, totalToSwap); try IIcariaSmartTrader(icariaSmartTrader).swapExactTokensForTokensSupportingFeeOnTransferTokens( bestRouter, address(this), totalToSwap, getTokenWETHPath(address(this)) ) { } catch { for (uint256 i = 0; i < taxes.length; i++) { if (taxesToProcess[i]) { taxes[i].amountAccumulated += taxAmounts[i]; } } accumulatedIcariaFee += icariaToProcess; return; } uint256 totalWethReceived = IERC20(wethAddress).balanceOf(address(this)) - wethYieldBalance; uint256 _icariaFee = totalWethReceived * icariaToTaxesRatio / PRECISION; sendWETH(_icariaFee, getIcariaWallet()); totalWethReceived -= _icariaFee; totalToSwap -= icariaToProcess; if (totalWethReceived == 0) return; for (uint256 i = 0; i < taxes.length; i++) { if (!taxesToProcess[i] || taxAmounts[i] == 0) continue; uint256 wethPortion = (taxAmounts[i] * totalWethReceived) / totalToSwap; IIcariaHelpers.Tax storage tax = taxes[i]; if (isExternalBurnTax(tax)) { processExternalBurnWeth(wethPortion, tax); } else if (isDevTax(tax) && tax.rewardInPls) { sendWETH(wethPortion, tax.receiver); } else if (isYieldTax(tax)) { processYieldWeth(wethPortion, tax); } else if (isLiquifyTax(tax)) { processLiquifyWeth(wethPortion, tax); addToTotal(wethPortion*2, tax); } } } function processExternalBurnWeth(uint256 wethAmount, IIcariaHelpers.Tax memory tax) internal { if (wethAmount == 0) return; if (tax.tokenAddress == wethAddress) { sendWETH(wethAmount, tax.receiver); return; } (/*address bestTargetPair*/, address bestTargetRouter) = getBestPair(wethAddress, tax.tokenAddress); uint256 initialBalance = IERC20(tax.tokenAddress).balanceOf(deadAddress); IERC20(wethAddress).approve(icariaSmartTrader, wethAmount); try IIcariaSmartTrader(icariaSmartTrader).buyToken(bestTargetRouter, deadAddress, wethAmount, getWETHBuyBurnPath(tax.tokenAddress)) { uint256 finalTokenBalance = IERC20(tax.tokenAddress).balanceOf(deadAddress); uint256 boughtAmount = finalTokenBalance - initialBalance; addToTotal(boughtAmount, tax); } catch { sendWETH(wethAmount, deadAddress); } } function sendWETH(uint256 wethAmount, address receiver) internal { if (wethAmount == 0) return; try IWETH(wethAddress).withdraw(wethAmount){ (bool success,) = receiver.call{value: wethAmount}(""); if (!success) { IERC20(wethAddress).transfer(receiver, wethAmount); } } catch { IERC20(wethAddress).transfer(receiver, wethAmount); } } function processYieldWeth(uint256 wethAmount, IIcariaHelpers.Tax memory tax) internal { if (wethAmount == 0) return; if (tax.tokenAddress == wethAddress) { wethYieldBalance += wethAmount; uint256 tokenIndex = addYieldToken(tax.tokenAddress); uint256 supply = totalSupply() - balanceOf(address(this)); if (supply > 0) { yieldTokens[tokenIndex].reflectionsPerShareAmount += (wethAmount * PRECISION) / supply; } return; } (/*address bestTargetPair*/, address bestTargetRouter) = getBestPair(wethAddress, tax.tokenAddress); uint256 initialTokenBalance = IERC20(tax.tokenAddress).balanceOf(address(this)); IERC20(wethAddress).approve(icariaSmartTrader, wethAmount); try IIcariaSmartTrader(icariaSmartTrader).buyToken(bestTargetRouter, address(this), wethAmount, getWETHBuyBurnPath(tax.tokenAddress)) { uint256 finalTokenBalance = IERC20(tax.tokenAddress).balanceOf(address(this)); uint256 boughtAmount = finalTokenBalance - initialTokenBalance; if (boughtAmount > 0) { uint256 tokenIndex = addYieldToken(tax.tokenAddress); uint256 supply = totalSupply() - balanceOf(address(this)); if (supply > 0) { yieldTokens[tokenIndex].reflectionsPerShareAmount += (boughtAmount * PRECISION) / supply; } addToTotal(boughtAmount, tax); } } catch {} } function processLiquifyWeth(uint256 wethAmount, IIcariaHelpers.Tax memory tax) internal { if (wethAmount == 0) return; // Use the tokens that were kept in the contract for liquidity uint256 tokensForLiquidity = tax.amountAccumulated; if (tokensForLiquidity == 0) return; (/*address bestPair*/, address bestRouter) = getBestPair(address(this), wethAddress); if (bestRouter == address(0)) return; // Approve tokens for liquidity _approve(address(this), icariaSmartTrader, tokensForLiquidity); IERC20(wethAddress).approve(icariaSmartTrader, wethAmount); try IIcariaSmartTrader(icariaSmartTrader).addLiquidity( bestRouter, address(this), wethAddress, tokensForLiquidity, wethAmount, deadAddress ) { // Successfully added liquidity and LP tokens are burned // Clear the accumulated amount since we've used it all taxes[tax.id].amountAccumulated = 0; } catch { // If adding liquidity fails, keep the tokens in the contract for the next cycle } } function _claimReflections(address from, address to) internal { if (!reflectionsEnabled) return; (uint256 fromAmount, uint256 toAmount, uint256 deployerAmount) = updateAndClaimReflections(from, to, deployer); if(fromAmount != 0){ if(!isPair(from)){ super._transfer(address(this), from, fromAmount); } } if(toAmount != 0){ if(!isPair(to)){ super._transfer(address(this), to, toAmount); } } if(deployerAmount != 0){ super._transfer(address(this), deployer, deployerAmount); } } function initializeReflectionExclusions() internal { isReflectionExcluded[address(0)] = true; isReflectionExcluded[address(this)] = true; for (uint256 i = 0; i < routers.length; ) { isReflectionExcluded[routers[i]] = true; unchecked { i++; } } } function isDeadAddress(address _address) internal view returns (bool) { return IIcariaHelpers(helpers).isDeadAddress(_address); } function isPair(address _address) internal view returns (bool) { return IIcariaHelpers(helpers).isPair(_address, address(this)); } function isBuy(address from, address to) internal view returns (bool) { return IIcariaHelpers(helpers).isBuy(from, to, address(this)); } function isSell(address from, address to) internal view returns (bool) { return IIcariaHelpers(helpers).isSell(from, to, address(this)); } function getProcessingAmount(uint256 accumulatedAmount) internal view returns (uint256 processAmount, uint256 newAccumulatedAmount) { return IIcariaHelpers(helpers).getProcessingAmount(accumulatedAmount, currentSwapAmount); } function getTokenWETHPath(address tokenAddress) internal view returns (address[] memory) { return IIcariaHelpers(helpers).getTokenWPLSPath(tokenAddress); } function getWETHBuyBurnPath(address tokenAddress) internal view returns (address[] memory) { return IIcariaHelpers(helpers).getWPLSBuyBurnPath(tokenAddress); } function getTaxes() public view returns (IIcariaHelpers.Tax[] memory) { return taxes; } function getIcariaFee() public view returns (uint256) { return IIcariaSmartTokenFactory(factory).ICARIA_FEE(); } function getIcariaWallet() public view returns (address) { return IIcariaSmartTokenFactory(factory).ICARIA_WALLET(); } function getAccumulatedIcariaFee() external view returns (uint256) { return accumulatedIcariaFee; } function enableTrading() external onlyOwner { if(tradingEnabled) revert AlreadyEnabled(); tradingEnabled = true; emit TradingEnabled(); } function getTotalTaxs() external view returns (uint256) { return IIcariaHelpers(helpers).getTotalTaxs(taxes); } function forceProcessAccumulatedTaxes() external onlyOwner { processAccumulatedTaxes(); } function _claimYield(address from, address to) internal { if (yieldEnabled) { updateAndClaimYield(from, to, deployer); } } function claimYield() external returns (bool) { _claimYield(msg.sender, msg.sender); return true; } function hasAccumulatedTaxes() internal view returns (bool) { return IIcariaHelpers(helpers).hasAccumulatedTaxes(taxes); } function addTaxExclusion(address _address) external onlyOwner { if(!isPair(_address)) { isTaxExcluded[_address] = true; } } function removeTaxExclusion(address _address) external onlyOwner { isTaxExcluded[_address] = false; } function getBestPair(address tokenA, address tokenB) internal view returns (address bestPair, address bestRouter) { return IIcariaHelpers(helpers).getBestPair(tokenA, tokenB, routers); } function inititlizeTaxExclusions() internal { isTaxExcluded[deployer] = true; isTaxExcluded[address(this)] = true; isTaxExcluded[icariaSmartTrader] = true; } function isBurnTax(IIcariaHelpers.Tax memory tax) internal pure returns (bool) { return tax.taxType == IIcariaHelpers.TaxType.Burn; } function isReflectionTax(IIcariaHelpers.Tax memory tax) internal pure returns (bool) { return tax.taxType == IIcariaHelpers.TaxType.Reflection; } function isDevTax(IIcariaHelpers.Tax memory tax) internal pure returns (bool) { return tax.taxType == IIcariaHelpers.TaxType.Dev; } function isExternalBurnTax(IIcariaHelpers.Tax memory tax) internal pure returns (bool) { return tax.taxType == IIcariaHelpers.TaxType.ExternalBurn; } function isYieldTax(IIcariaHelpers.Tax memory tax) internal pure returns (bool) { return tax.taxType == IIcariaHelpers.TaxType.Yield; } function isLiquifyTax(IIcariaHelpers.Tax memory tax) internal pure returns (bool) { return tax.taxType == IIcariaHelpers.TaxType.Liquify; } receive() external payable {} }
We recommend using flattened code. This is necessary if your code utilizes a library or inherits dependencies. Use the
POA solidity flattener or the
truffle flattener
.
Try to fetch constructor arguments automatically
No
Yes
ABI-encoded Constructor Arguments (if required by the contract)
0x00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000f5ae65f5fc19e5404ed746581a6d7f4f73f3216a000000000000000000000000115fd824466274997f7cb70ddee904314f6337710000000000000000000000000000000000000000011bb91342149262b700000000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000007329702b34b8405591ac6bedb69ead82cf4b2661000000000000000000000000f5ae65f5fc19e5404ed746581a6d7f4f73f3216a000000000000000000000000e2f8eea237439b28bd66a62c3f42f27afe60ea940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f49726f6e2053686172702049726f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007495349f09f9c9d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000369000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000463413c579d29c26d59a65312657dfce30d545a10000000000000000000000000000000000000000000000000000000000000369000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000000000036900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000770cfa2fb975e7bcaedde234d92c3858c517adca000000000000000000000000000000000000000000000000000000000000036900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000369000000000000000000000000b3781607f5d3ff89940facb9a0722de86fc4435c0000000000000000000000000000000000000000000000000000000000000369000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000003690000000000000000000000009b334c49821d36d435e684e7cb9b564b328126e50000000000000000000000000000000000000000000000000000000000000369000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Add arguments in
ABI hex encoded form
. Constructor arguments are written right to left, and will be found at the end of the input created bytecode. They may also be
parsed here.
Add Contract Libraries
Contract Libraries
Library 1 Name
A library name called in the .sol file. Multiple libraries (up to 10) may be added for each contract. Click the Add Library button to add an additional one.
Library 1 Address
The 0x library address. This can be found in the generated json file or Truffle output (if using truffle).
Library 2 Name
Library 2 Address
Library 3 Name
Library 3 Address
Library 4 Name
Library 4 Address
Library 5 Name
Library 5 Address
Library 6 Name
Library 6 Address
Library 7 Name
Library 7 Address
Library 8 Name
Library 8 Address
Library 9 Name
Library 9 Address
Library 10 Name
Library 10 Address
Add Library
Loading...
Verify & publish
Cancel
Ok
Ok
Ok
No
Yes