More Info
Private Name Tags
ContractCreator
Latest 21 from a total of 21 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 20254028 | 139 days ago | IN | 0 ETH | 0.0001285 | ||||
Unstake | 20254024 | 139 days ago | IN | 0 ETH | 0.00012761 | ||||
Stake | 20106473 | 159 days ago | IN | 0 ETH | 0.00023024 | ||||
Claim | 20106455 | 159 days ago | IN | 0 ETH | 0.00019263 | ||||
Stake | 19988448 | 176 days ago | IN | 0 ETH | 0.00062494 | ||||
Stake | 19945174 | 182 days ago | IN | 0 ETH | 0.00044389 | ||||
Stake | 19915631 | 186 days ago | IN | 0 ETH | 0.0010086 | ||||
Stake | 19905249 | 188 days ago | IN | 0 ETH | 0.00035914 | ||||
Unstake | 19759761 | 208 days ago | IN | 0 ETH | 0.00053646 | ||||
Unstake | 19759756 | 208 days ago | IN | 0 ETH | 0.00018772 | ||||
Stake | 19747812 | 210 days ago | IN | 0 ETH | 0.00055088 | ||||
Stake | 19747780 | 210 days ago | IN | 0 ETH | 0.0006211 | ||||
Claim | 19745647 | 210 days ago | IN | 0 ETH | 0.00031613 | ||||
Claim | 19737419 | 211 days ago | IN | 0 ETH | 0.00044274 | ||||
Stake | 19734021 | 211 days ago | IN | 0 ETH | 0.00103941 | ||||
Claim | 19734018 | 211 days ago | IN | 0 ETH | 0.00083866 | ||||
0x2a52a3c8 | 19734010 | 211 days ago | IN | 0 ETH | 0.00034195 | ||||
Stake | 19733731 | 212 days ago | IN | 0 ETH | 0.00230962 | ||||
Unstake | 19733142 | 212 days ago | IN | 0 ETH | 0.00223621 | ||||
Stake | 19733126 | 212 days ago | IN | 0 ETH | 0.00163959 | ||||
0x60806040 | 19726920 | 212 days ago | IN | 0 ETH | 0.0181969 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LLMStaking
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./LLMToken.sol"; import "./ILLMStaking.sol"; import "../openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../openzeppelin/contracts/access/Ownable.sol"; contract LLMStaking is Ownable, ILLMStaking { using SafeERC20 for IERC20; event Stake(address indexed user, uint256 amount); event Unstake(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 amount); uint256 public accPerLLM1e30; uint256 public totalLLMStaked; LLMToken public llmToken; uint256 private uuid = 7503918; struct UserInfo { uint256 amount; uint256 rewardDebtLLM; } mapping(address => UserInfo) public userInfos; constructor(LLMToken _llmToken) { llmToken = _llmToken; } function postProcessLLMReward(uint256 _amount) external { require(msg.sender==address(llmToken)); if (_amount > 0 && totalLLMStaked > 0) { accPerLLM1e30 += (_amount * 1e30 / totalLLMStaked); } } function removeLLMReward(uint256 _amount) public onlyOwner { if (totalLLMStaked > 0) { accPerLLM1e30 -= (_amount * 1e30 / totalLLMStaked); } IERC20(llmToken).safeTransfer(address(msg.sender), _amount); } function pendingLLMReward(address _user) external view returns (uint256) { UserInfo storage user = userInfos[_user]; return (user.amount * accPerLLM1e30 / 1e30) - user.rewardDebtLLM; } function stake(uint256 _amount) public { require(_amount > 0); IERC20(llmToken).safeTransferFrom( address(msg.sender), address(this), _amount); UserInfo storage user = userInfos[msg.sender]; payAndUpdateUser(user, user.amount + _amount); totalLLMStaked += _amount; emit Stake(msg.sender, _amount); } function claim() public { UserInfo storage user = userInfos[msg.sender]; payAndUpdateUser(user, user.amount); } function unstake(uint256 _amount) public { require(_amount > 0); UserInfo storage user = userInfos[msg.sender]; require(user.amount >= _amount); payAndUpdateUser(user, user.amount - _amount); totalLLMStaked -= _amount; IERC20(llmToken).safeTransfer( address(msg.sender), _amount); emit Unstake(msg.sender, _amount); } function payAndUpdateUser(UserInfo storage user, uint256 newAmount) internal { uint256 pendingLLM = (user.amount * accPerLLM1e30 / 1e30) - user.rewardDebtLLM; if (pendingLLM > 0) { IERC20(llmToken).safeTransfer(address(msg.sender), pendingLLM); } user.amount = newAmount; user.rewardDebtLLM = newAmount * accPerLLM1e30 / 1e30; if (pendingLLM > 0) { emit RewardPaid(msg.sender, pendingLLM); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface ILLMStaking { function postProcessLLMReward(uint256 _amount) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./ILLMStaking.sol"; import "../openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "../openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../openzeppelin/contracts/access/Ownable.sol"; import "../openzeppelin/contracts/utils/Context.sol"; import "../uniswap/IUniswapV2Factory.sol"; import "../uniswap/IUniswapV2Router02.sol"; import "../uniswap/IUniswapV2Pair.sol"; contract LLMToken is Context, IERC20, IERC20Metadata, Ownable { string private _name; string private _symbol; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) public excludeFromFees; uint256 private _totalSupply; uint16 public feeBpsTotal; uint16 public feeBpsToStakers; uint16 public maxBpsPerWallet; address public dexPair; address public feeWallet; ILLMStaking public stakingContract; uint256 private uuid = 7503918; constructor( string memory name_, string memory symbol_, address feeWallet_, uint16 feeBpsTotal_, uint16 feeBpsToStakers_, uint16 maxBpsPerWallet_) { require(feeWallet_!=address(0)); require(feeBpsTotal_ <= 10000); require(feeBpsToStakers_ <= feeBpsTotal_); require(maxBpsPerWallet_ <= 10000); _name = name_; _symbol = symbol_; feeWallet = feeWallet_; feeBpsTotal = feeBpsTotal_; feeBpsToStakers = feeBpsToStakers_; maxBpsPerWallet = maxBpsPerWallet_; excludeFromFees[msg.sender] = true; excludeFromFees[feeWallet_] = true; if (block.chainid == 1) { IUniswapV2Factory factory = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f); // Uniswap dexPair = factory.createPair(address(this), 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); // WETH } _mint(msg.sender, 100 * 1000 * 1000 * (10**18)); } function setFees(uint16 feeBptsTotal_, uint16 feeBpsToStakers_) public onlyOwner { require(feeBptsTotal_ <= 10000); require(feeBpsToStakers_ <= feeBptsTotal_); feeBpsTotal = feeBptsTotal_; feeBpsToStakers = feeBpsToStakers_; } function setMaxBpsPerWallet(uint16 maxBpsPerWallet_) public onlyOwner { require(maxBpsPerWallet_ <= 10000); maxBpsPerWallet = maxBpsPerWallet_; } function setExcludeFromFees(address account, bool value) public onlyOwner { excludeFromFees[account] = value; } function setFeeWallet(address feeWallet_) public onlyOwner { require(feeWallet_!=address(0)); feeWallet = feeWallet_; excludeFromFees[feeWallet_] = true; } function setStakingContract(ILLMStaking stakingContract_) public onlyOwner { require(address(stakingContract_)!=address(0)); stakingContract = stakingContract_; excludeFromFees[address(stakingContract_)] = true; } function setDexPair(address dexPair_) public onlyOwner { dexPair = dexPair_; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function decimals() public view virtual override returns (uint8) { return 18; } function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); if ((from==dexPair || to==dexPair) && !excludeFromFees[from] && !excludeFromFees[to]) { uint256 feeTotal = amount * feeBpsTotal / 10000; uint256 feeToStakers = amount * feeBpsToStakers / 10000; require(feeToStakers <= feeTotal); // Sanity check uint256 feeRemaining = feeTotal - feeToStakers; uint256 receiveAmount = amount - feeTotal; _balances[from] = fromBalance - amount; require( to==dexPair || maxBpsPerWallet == 0 || (_balances[to]+receiveAmount) <= (_totalSupply * maxBpsPerWallet / 10000) ); _balances[to] += receiveAmount; emit Transfer(from, to, receiveAmount); if (feeRemaining > 0) { require(feeWallet!=address(0)); _balances[feeWallet] += feeRemaining; emit Transfer(from, feeWallet, feeRemaining); } if (feeToStakers > 0) { require(address(stakingContract)!=address(0)); _balances[address(stakingContract)] += feeToStakers; stakingContract.postProcessLLMReward(feeToStakers); emit Transfer(from, address(stakingContract), feeToStakers); } } else { _balances[from] = fromBalance - amount; _balances[to] += amount; emit Transfer(from, to, amount); } } function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); } function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); } function _approve(address owner, address spender, uint256 amount) internal virtual { 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ 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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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 { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
pragma solidity >=0.5.0; 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; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.6.2; 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); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; 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; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract LLMToken","name":"_llmToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstake","type":"event"},{"inputs":[],"name":"accPerLLM1e30","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"llmToken","outputs":[{"internalType":"contract LLMToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingLLMReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"postProcessLLMReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"removeLLMReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalLLMStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfos","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebtLLM","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526272802e6004553480156200001857600080fd5b50604051620017ea380380620017ea83398181016040528101906200003e9190620001f0565b6200005e62000052620000a660201b60201c565b620000ae60201b60201c565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000222565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001a48262000177565b9050919050565b6000620001b88262000197565b9050919050565b620001ca81620001ab565b8114620001d657600080fd5b50565b600081519050620001ea81620001bf565b92915050565b60006020828403121562000209576200020862000172565b5b60006200021984828501620001d9565b91505092915050565b6115b880620002326000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063a694fc3a11610066578063a694fc3a146101db578063ae7ccb85146101f7578063f2fde38b14610213578063f635e51f1461022f576100cf565b80638da5cb5b1461016f578063923fda781461018d578063983d7231146101bd576100cf565b80632e17de78146100d457806343b0215f146100f05780634e71d92d146101215780635917b8521461012b578063715018a61461014757806388cbe40714610151575b600080fd5b6100ee60048036038101906100e99190610e37565b61024d565b005b61010a60048036038101906101059190610ec2565b61037f565b604051610118929190610efe565b60405180910390f35b6101296103a3565b005b61014560048036038101906101409190610e37565b6103f7565b005b61014f6104aa565b005b6101596104be565b6040516101669190610f27565b60405180910390f35b6101776104c4565b6040516101849190610f51565b60405180910390f35b6101a760048036038101906101a29190610ec2565b6104ed565b6040516101b49190610f27565b60405180910390f35b6101c5610572565b6040516101d29190610fcb565b60405180910390f35b6101f560048036038101906101f09190610e37565b610598565b005b610211600480360381019061020c9190610e37565b6106bb565b005b61022d60048036038101906102289190610ec2565b61075d565b005b6102376107e0565b6040516102449190610f27565b60405180910390f35b6000811161025a57600080fd5b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905081816000015410156102ae57600080fd5b6102c7818383600001546102c29190611015565b6107e6565b81600260008282546102d99190611015565b9250508190555061032d3383600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661090e9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd836040516103739190610f27565b60405180910390a25050565b60056020528060005260406000206000915090508060000154908060010154905082565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506103f48182600001546107e6565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461045157600080fd5b60008111801561046357506000600254115b156104a7576002546c0c9f2c9cd04674edea40000000826104849190611049565b61048e91906110ba565b6001600082825461049f91906110eb565b925050819055505b50565b6104b2610994565b6104bc6000610a12565b565b60025481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600101546c0c9f2c9cd04674edea4000000060015483600001546105569190611049565b61056091906110ba565b61056a9190611015565b915050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600081116105a557600080fd5b6105f4333083600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610ad6909392919063ffffffff16565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506106508183836000015461064b91906110eb565b6107e6565b816002600082825461066291906110eb565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a836040516106af9190610f27565b60405180910390a25050565b6106c3610994565b6000600254111561070d576002546c0c9f2c9cd04674edea40000000826106ea9190611049565b6106f491906110ba565b600160008282546107059190611015565b925050819055505b61075a3382600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661090e9092919063ffffffff16565b50565b610765610994565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107cb906111a2565b60405180910390fd5b6107dd81610a12565b50565b60015481565b600082600101546c0c9f2c9cd04674edea40000000600154856000015461080d9190611049565b61081791906110ba565b6108219190611015565b9050600081111561087a576108793382600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661090e9092919063ffffffff16565b5b8183600001819055506c0c9f2c9cd04674edea400000006001548361089f9190611049565b6108a991906110ba565b83600101819055506000811115610909573373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516109009190610f27565b60405180910390a25b505050565b61098f8363a9059cbb60e01b848460405160240161092d9291906111c2565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610b5f565b505050565b61099c610c27565b73ffffffffffffffffffffffffffffffffffffffff166109ba6104c4565b73ffffffffffffffffffffffffffffffffffffffff1614610a10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0790611237565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610b59846323b872dd60e01b858585604051602401610af793929190611257565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610b5f565b50505050565b6000610bc1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610c2f9092919063ffffffff16565b9050600081511480610be3575080806020019051810190610be291906112c6565b5b610c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1990611365565b60405180910390fd5b505050565b600033905090565b6060610c3e8484600085610c47565b90509392505050565b606082471015610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c83906113f7565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cb59190611488565b60006040518083038185875af1925050503d8060008114610cf2576040519150601f19603f3d011682016040523d82523d6000602084013e610cf7565b606091505b5091509150610d0887838387610d14565b92505050949350505050565b60608315610d76576000835103610d6e57610d2e85610d89565b610d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d64906114eb565b60405180910390fd5b5b829050610d81565b610d808383610dac565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115610dbf5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df39190611560565b60405180910390fd5b600080fd5b6000819050919050565b610e1481610e01565b8114610e1f57600080fd5b50565b600081359050610e3181610e0b565b92915050565b600060208284031215610e4d57610e4c610dfc565b5b6000610e5b84828501610e22565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610e8f82610e64565b9050919050565b610e9f81610e84565b8114610eaa57600080fd5b50565b600081359050610ebc81610e96565b92915050565b600060208284031215610ed857610ed7610dfc565b5b6000610ee684828501610ead565b91505092915050565b610ef881610e01565b82525050565b6000604082019050610f136000830185610eef565b610f206020830184610eef565b9392505050565b6000602082019050610f3c6000830184610eef565b92915050565b610f4b81610e84565b82525050565b6000602082019050610f666000830184610f42565b92915050565b6000819050919050565b6000610f91610f8c610f8784610e64565b610f6c565b610e64565b9050919050565b6000610fa382610f76565b9050919050565b6000610fb582610f98565b9050919050565b610fc581610faa565b82525050565b6000602082019050610fe06000830184610fbc565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061102082610e01565b915061102b83610e01565b925082820390508181111561104357611042610fe6565b5b92915050565b600061105482610e01565b915061105f83610e01565b925082820261106d81610e01565b9150828204841483151761108457611083610fe6565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006110c582610e01565b91506110d083610e01565b9250826110e0576110df61108b565b5b828204905092915050565b60006110f682610e01565b915061110183610e01565b925082820190508082111561111957611118610fe6565b5b92915050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061118c60268361111f565b915061119782611130565b604082019050919050565b600060208201905081810360008301526111bb8161117f565b9050919050565b60006040820190506111d76000830185610f42565b6111e46020830184610eef565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061122160208361111f565b915061122c826111eb565b602082019050919050565b6000602082019050818103600083015261125081611214565b9050919050565b600060608201905061126c6000830186610f42565b6112796020830185610f42565b6112866040830184610eef565b949350505050565b60008115159050919050565b6112a38161128e565b81146112ae57600080fd5b50565b6000815190506112c08161129a565b92915050565b6000602082840312156112dc576112db610dfc565b5b60006112ea848285016112b1565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061134f602a8361111f565b915061135a826112f3565b604082019050919050565b6000602082019050818103600083015261137e81611342565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006113e160268361111f565b91506113ec82611385565b604082019050919050565b60006020820190508181036000830152611410816113d4565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561144b578082015181840152602081019050611430565b60008484015250505050565b600061146282611417565b61146c8185611422565b935061147c81856020860161142d565b80840191505092915050565b60006114948284611457565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006114d5601d8361111f565b91506114e08261149f565b602082019050919050565b60006020820190508181036000830152611504816114c8565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006115328261150b565b61153c818561111f565b935061154c81856020860161142d565b61155581611516565b840191505092915050565b6000602082019050818103600083015261157a8184611527565b90509291505056fea2646970667358221220b6c8f82d564317278b343cb20a52cf66127d35f2a7bdbe310bfed1c8485cef4864736f6c634300081300330000000000000000000000002d618d7cf1de4911684336d5f973c113ea452cc3
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063a694fc3a11610066578063a694fc3a146101db578063ae7ccb85146101f7578063f2fde38b14610213578063f635e51f1461022f576100cf565b80638da5cb5b1461016f578063923fda781461018d578063983d7231146101bd576100cf565b80632e17de78146100d457806343b0215f146100f05780634e71d92d146101215780635917b8521461012b578063715018a61461014757806388cbe40714610151575b600080fd5b6100ee60048036038101906100e99190610e37565b61024d565b005b61010a60048036038101906101059190610ec2565b61037f565b604051610118929190610efe565b60405180910390f35b6101296103a3565b005b61014560048036038101906101409190610e37565b6103f7565b005b61014f6104aa565b005b6101596104be565b6040516101669190610f27565b60405180910390f35b6101776104c4565b6040516101849190610f51565b60405180910390f35b6101a760048036038101906101a29190610ec2565b6104ed565b6040516101b49190610f27565b60405180910390f35b6101c5610572565b6040516101d29190610fcb565b60405180910390f35b6101f560048036038101906101f09190610e37565b610598565b005b610211600480360381019061020c9190610e37565b6106bb565b005b61022d60048036038101906102289190610ec2565b61075d565b005b6102376107e0565b6040516102449190610f27565b60405180910390f35b6000811161025a57600080fd5b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905081816000015410156102ae57600080fd5b6102c7818383600001546102c29190611015565b6107e6565b81600260008282546102d99190611015565b9250508190555061032d3383600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661090e9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd836040516103739190610f27565b60405180910390a25050565b60056020528060005260406000206000915090508060000154908060010154905082565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506103f48182600001546107e6565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461045157600080fd5b60008111801561046357506000600254115b156104a7576002546c0c9f2c9cd04674edea40000000826104849190611049565b61048e91906110ba565b6001600082825461049f91906110eb565b925050819055505b50565b6104b2610994565b6104bc6000610a12565b565b60025481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600101546c0c9f2c9cd04674edea4000000060015483600001546105569190611049565b61056091906110ba565b61056a9190611015565b915050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600081116105a557600080fd5b6105f4333083600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610ad6909392919063ffffffff16565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506106508183836000015461064b91906110eb565b6107e6565b816002600082825461066291906110eb565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a836040516106af9190610f27565b60405180910390a25050565b6106c3610994565b6000600254111561070d576002546c0c9f2c9cd04674edea40000000826106ea9190611049565b6106f491906110ba565b600160008282546107059190611015565b925050819055505b61075a3382600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661090e9092919063ffffffff16565b50565b610765610994565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107cb906111a2565b60405180910390fd5b6107dd81610a12565b50565b60015481565b600082600101546c0c9f2c9cd04674edea40000000600154856000015461080d9190611049565b61081791906110ba565b6108219190611015565b9050600081111561087a576108793382600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661090e9092919063ffffffff16565b5b8183600001819055506c0c9f2c9cd04674edea400000006001548361089f9190611049565b6108a991906110ba565b83600101819055506000811115610909573373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516109009190610f27565b60405180910390a25b505050565b61098f8363a9059cbb60e01b848460405160240161092d9291906111c2565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610b5f565b505050565b61099c610c27565b73ffffffffffffffffffffffffffffffffffffffff166109ba6104c4565b73ffffffffffffffffffffffffffffffffffffffff1614610a10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0790611237565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610b59846323b872dd60e01b858585604051602401610af793929190611257565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610b5f565b50505050565b6000610bc1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610c2f9092919063ffffffff16565b9050600081511480610be3575080806020019051810190610be291906112c6565b5b610c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1990611365565b60405180910390fd5b505050565b600033905090565b6060610c3e8484600085610c47565b90509392505050565b606082471015610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c83906113f7565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cb59190611488565b60006040518083038185875af1925050503d8060008114610cf2576040519150601f19603f3d011682016040523d82523d6000602084013e610cf7565b606091505b5091509150610d0887838387610d14565b92505050949350505050565b60608315610d76576000835103610d6e57610d2e85610d89565b610d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d64906114eb565b60405180910390fd5b5b829050610d81565b610d808383610dac565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115610dbf5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df39190611560565b60405180910390fd5b600080fd5b6000819050919050565b610e1481610e01565b8114610e1f57600080fd5b50565b600081359050610e3181610e0b565b92915050565b600060208284031215610e4d57610e4c610dfc565b5b6000610e5b84828501610e22565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610e8f82610e64565b9050919050565b610e9f81610e84565b8114610eaa57600080fd5b50565b600081359050610ebc81610e96565b92915050565b600060208284031215610ed857610ed7610dfc565b5b6000610ee684828501610ead565b91505092915050565b610ef881610e01565b82525050565b6000604082019050610f136000830185610eef565b610f206020830184610eef565b9392505050565b6000602082019050610f3c6000830184610eef565b92915050565b610f4b81610e84565b82525050565b6000602082019050610f666000830184610f42565b92915050565b6000819050919050565b6000610f91610f8c610f8784610e64565b610f6c565b610e64565b9050919050565b6000610fa382610f76565b9050919050565b6000610fb582610f98565b9050919050565b610fc581610faa565b82525050565b6000602082019050610fe06000830184610fbc565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061102082610e01565b915061102b83610e01565b925082820390508181111561104357611042610fe6565b5b92915050565b600061105482610e01565b915061105f83610e01565b925082820261106d81610e01565b9150828204841483151761108457611083610fe6565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006110c582610e01565b91506110d083610e01565b9250826110e0576110df61108b565b5b828204905092915050565b60006110f682610e01565b915061110183610e01565b925082820190508082111561111957611118610fe6565b5b92915050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061118c60268361111f565b915061119782611130565b604082019050919050565b600060208201905081810360008301526111bb8161117f565b9050919050565b60006040820190506111d76000830185610f42565b6111e46020830184610eef565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061122160208361111f565b915061122c826111eb565b602082019050919050565b6000602082019050818103600083015261125081611214565b9050919050565b600060608201905061126c6000830186610f42565b6112796020830185610f42565b6112866040830184610eef565b949350505050565b60008115159050919050565b6112a38161128e565b81146112ae57600080fd5b50565b6000815190506112c08161129a565b92915050565b6000602082840312156112dc576112db610dfc565b5b60006112ea848285016112b1565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061134f602a8361111f565b915061135a826112f3565b604082019050919050565b6000602082019050818103600083015261137e81611342565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006113e160268361111f565b91506113ec82611385565b604082019050919050565b60006020820190508181036000830152611410816113d4565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561144b578082015181840152602081019050611430565b60008484015250505050565b600061146282611417565b61146c8185611422565b935061147c81856020860161142d565b80840191505092915050565b60006114948284611457565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006114d5601d8361111f565b91506114e08261149f565b602082019050919050565b60006020820190508181036000830152611504816114c8565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006115328261150b565b61153c818561111f565b935061154c81856020860161142d565b61155581611516565b840191505092915050565b6000602082019050818103600083015261157a8184611527565b90509291505056fea2646970667358221220b6c8f82d564317278b343cb20a52cf66127d35f2a7bdbe310bfed1c8485cef4864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002d618d7cf1de4911684336d5f973c113ea452cc3
-----Decoded View---------------
Arg [0] : _llmToken (address): 0x2D618D7Cf1de4911684336D5F973C113eA452Cc3
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002d618d7cf1de4911684336d5f973c113ea452cc3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.