Source Code
Overview
S Balance
More Info
ContractCreator
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x114198ae...5373d6E43 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
LPCreator
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.24; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "../interfaces/IUniswapV2Router02.sol"; import "../interfaces/IUniswapV2Pair.sol"; import "../interfaces/IBurnToken.sol"; import "../interfaces/IToken.sol"; import "../interfaces/IManager.sol"; contract LPCreator is ReentrancyGuard { IManager private Manager; IBurnToken private BurnToken; IUniswapV2Pair private Pair; IToken private Token; IUniswapV2Router02 private router; // Uniswap V2 Router uint256 public totalLPCreated; uint256 private accETHRewardPerToken; uint256 private accTokenRewardPerToken; struct UserInfos { uint256 lpQty; uint256 tokenDebt; uint256 ethDebt; } mapping(address => UserInfos) public userInfos; /*------------------------------------* CONSTRUCTOR *------------------------------------*/ constructor(address _manager) { Manager = IManager(_manager); router = IUniswapV2Router02(0xCf5d764c542e77b6eBDe2f4c292fAF7487d3E296); } /*------------------------------------* MODIFIERS *------------------------------------*/ modifier onlyOwner() { require(msg.sender == Manager.owner(), "Not authorized"); _; } /*------------------------------------* SETTERS *------------------------------------*/ function setManager(address _manager) external onlyOwner { Manager = IManager(_manager); } function setRouter(address _router) external onlyOwner { router = IUniswapV2Router02(_router); } function setPair(address _pair) external onlyOwner { Pair = IUniswapV2Pair(_pair); } function addETHRewards() external payable onlyOwner { accETHRewardPerToken += (msg.value * 1e18) / totalLPCreated; } function addTokenRewards(uint256 amount) external onlyOwner { accTokenRewardPerToken += (amount * 1e18) / totalLPCreated; } function update() external onlyOwner { BurnToken = IBurnToken(_getContract("Burn")); Token = IToken(_getContract("Token")); Token.approve(address(router), type(uint256).max); } /*------------------------------------* FUNCTIONS *------------------------------------*/ function addLp() external payable nonReentrant { uint256 amountWETH = msg.value; uint256 tokenAmount = getTokenRequired(amountWETH); require( BurnToken.getLpPower(msg.sender) >= tokenAmount, "Insufficient LP Power" ); Token.transferFrom(msg.sender, address(this), tokenAmount); (uint256 realAmount, uint256 realETH, uint256 lpReceived) = router .addLiquidityETH{value: amountWETH}( address(Token), tokenAmount, 0, 0, address(this), block.timestamp + 10 minutes ); BurnToken.manageLPPower(msg.sender, realAmount); UserInfos storage _userInfo = userInfos[msg.sender]; _userInfo.lpQty += lpReceived; _userInfo.tokenDebt = (_userInfo.lpQty * accTokenRewardPerToken) / 1e18; _userInfo.ethDebt = (_userInfo.lpQty * accETHRewardPerToken) / 1e18; totalLPCreated += lpReceived; uint256 excessToken = tokenAmount - realAmount; if (excessToken > 1e9) { Token.transfer(msg.sender, excessToken); } uint256 excessETH = msg.value - realETH; if (excessETH > 1e9) { (bool tmpSuccess, ) = payable(msg.sender).call{ value: excessETH, gas: 30000 }(""); require(tmpSuccess, "Transfer failed"); } } function claim() external nonReentrant { _claim(msg.sender); } /*------------------------------------* INTERNAL *------------------------------------*/ function _claim(address sender) private { (uint256 tokenRewards, uint256 ethRewards) = getPendingRewards(sender); if (tokenRewards > 0) { Token.transfer(sender, tokenRewards); } if (ethRewards > 0) { bool tmpSuccess1; (tmpSuccess1, ) = payable(sender).call{ value: ethRewards, gas: 500000 }(""); require(tmpSuccess1, "Transfer failed"); } } /*------------------------------------* GETTERS *------------------------------------*/ /** * @dev Get LP value in ETH of an account * @param account Account address */ function getLPValue(address account) external view returns (uint256) { (uint112 reserveETH, , ) = Pair.getReserves(); uint256 pairSupply = Pair.totalSupply(); return (userInfos[account].lpQty * reserveETH) / pairSupply; } function getPendingRewards( address account ) public view returns (uint256, uint256) { UserInfos memory _userInfo = userInfos[account]; return ( (_userInfo.lpQty * accTokenRewardPerToken) / 1e18, (_userInfo.lpQty * accETHRewardPerToken) / 1e18 ); } function getTokenRequired(uint256 ETHAmount) public view returns (uint256) { (uint256 reserveToken, uint256 reserveWETH, ) = Pair.getReserves(); return router.quote(ETHAmount, reserveWETH, reserveToken); } /*------------------------------------* UTILS *------------------------------------*/ function _getContract(string memory name) internal view returns (address) { return Manager.getContract(name); } function withdrawERC20(address token, uint256 amount) external onlyOwner { IToken(token).transfer(msg.sender, amount); } function withdrawETH(uint256 amount) external onlyOwner { bool tmpSuccess1; (tmpSuccess1, ) = payable(msg.sender).call{value: amount, gas: 5000000}( "" ); require(tmpSuccess1, "Transfer failed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IBurnToken is IERC20 { function mint(address account, uint256 amount) external; function manageLPPower(address sender, uint256 amount) external; function getLpPower(address account) external view returns (uint256); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.20; interface IManager { function getContract(string memory name) external view returns (address); function owner() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IToken is IERC20 { function mint(address to, uint256 value) external; function burnFrom(address account, uint256 value) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IUniswapV2Pair { function totalSupply() external view returns (uint); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); }
// SPDX-License-Identifier: MIT 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 swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function 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": true, "runs": 1000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"addETHRewards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"addLp","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addTokenRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLPValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getPendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ETHAmount","type":"uint256"}],"name":"getTokenRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pair","type":"address"}],"name":"setPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalLPCreated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfos","outputs":[{"internalType":"uint256","name":"lpQty","type":"uint256"},{"internalType":"uint256","name":"tokenDebt","type":"uint256"},{"internalType":"uint256","name":"ethDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x6080604052600436106100e85760003560e01c80638187f5161161008a578063c0d7865511610059578063c0d7865514610249578063d0ebdbe714610269578063f14210a614610289578063f6ed2017146102a957600080fd5b80638187f516146101d4578063a1db9782146101f4578063a27344b514610214578063a2e620451461023457600080fd5b806343b0215f116100c657806343b0215f1461014a5780634e71d92d146101a157806379d12755146101b65780637f501244146101cc57600080fd5b80631cde7d53146100ed5780632a977a4014610120578063427a5c0214610142575b600080fd5b3480156100f957600080fd5b5061010d610108366004611631565b6102de565b6040519081526020015b60405180910390f35b34801561012c57600080fd5b5061014061013b366004611631565b610412565b005b610140610517565b34801561015657600080fd5b5061018661016536600461165f565b60096020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610117565b3480156101ad57600080fd5b506101406109da565b3480156101c257600080fd5b5061010d60065481565b6101406109f5565b3480156101e057600080fd5b506101406101ef36600461165f565b610af4565b34801561020057600080fd5b5061014061020f366004611683565b610bde565b34801561022057600080fd5b5061010d61022f36600461165f565b610d1c565b34801561024057600080fd5b50610140610e56565b34801561025557600080fd5b5061014061026436600461165f565b611061565b34801561027557600080fd5b5061014061028436600461165f565b61114b565b34801561029557600080fd5b506101406102a4366004611631565b611235565b3480156102b557600080fd5b506102c96102c436600461165f565b611393565b60408051928352602083019190915201610117565b6000806000600360009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610336573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035a91906116d2565b506005546040517fad615dec000000000000000000000000000000000000000000000000000000008152600481018890526dffffffffffffffffffffffffffff92831660248201819052939092166044830181905294509192506001600160a01b039091169063ad615dec90606401602060405180830381865afa1580156103e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040a9190611722565b949350505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610465573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610489919061173b565b6001600160a01b0316336001600160a01b0316146104df5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b6006546104f482670de0b6b3a764000061176e565b6104fe9190611785565b6008600082825461050f91906117a7565b909155505050565b61051f611422565b34600061052b826102de565b6002546040517feb5a6d3a00000000000000000000000000000000000000000000000000000000815233600482015291925082916001600160a01b039091169063eb5a6d3a90602401602060405180830381865afa158015610591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b59190611722565b10156106035760405162461bcd60e51b815260206004820152601560248201527f496e73756666696369656e74204c5020506f776572000000000000000000000060448201526064016104d6565b600480546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523392810192909252306024830152604482018390526001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069891906117ba565b50600554600454600091829182916001600160a01b039081169163f305d71991889116878580306106cb426102586117a7565b60405160e089901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015610750573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061077591906117dc565b6002546040517f59905fa80000000000000000000000000000000000000000000000000000000081523360048201526024810185905293965091945092506001600160a01b0316906359905fa890604401600060405180830381600087803b1580156107e057600080fd5b505af11580156107f4573d6000803e3d6000fd5b5050336000908152600960205260408120805490935084925083919061081b9084906117a7565b90915550506008548154670de0b6b3a7640000916108389161176e565b6108429190611785565b60018201556007548154670de0b6b3a76400009161085f9161176e565b6108699190611785565b8160020181905550816006600082825461088391906117a7565b9091555060009050610895858761180a565b9050633b9aca0081111561091b576004805460405163a9059cbb60e01b81523392810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156108f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091991906117ba565b505b6000610927853461180a565b9050633b9aca008111156109c657604051600090339061753090849084818181858888f193505050503d806000811461097c576040519150601f19603f3d011682016040523d82523d6000602084013e610981565b606091505b50509050806109c45760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016104d6565b505b50505050505050506109d86001600055565b565b6109e2611422565b6109eb33611465565b6109d86001600055565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6c919061173b565b6001600160a01b0316336001600160a01b031614610abd5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016104d6565b600654610ad234670de0b6b3a764000061176e565b610adc9190611785565b60076000828254610aed91906117a7565b9091555050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6b919061173b565b6001600160a01b0316336001600160a01b031614610bbc5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016104d6565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c55919061173b565b6001600160a01b0316336001600160a01b031614610ca65760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016104d6565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610cf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1791906117ba565b505050565b600080600360009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610d72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9691906116d2565b505090506000600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610def573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e139190611722565b6001600160a01b0385166000908152600960205260409020549091508190610e4c906dffffffffffffffffffffffffffff85169061176e565b61040a9190611785565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ea9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecd919061173b565b6001600160a01b0316336001600160a01b031614610f1e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016104d6565b610f5c6040518060400160405280600481526020017f4275726e000000000000000000000000000000000000000000000000000000008152506115a0565b600280546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600581527f546f6b656e0000000000000000000000000000000000000000000000000000006020820152610fb9906115a0565b600480546001600160a01b0319166001600160a01b0392831690811782556005546040517f095ea7b300000000000000000000000000000000000000000000000000000000815293169183019190915260001960248301529063095ea7b3906044016020604051808303816000875af115801561103a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105e91906117ba565b50565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d8919061173b565b6001600160a01b0316336001600160a01b0316146111295760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016104d6565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561119e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c2919061173b565b6001600160a01b0316336001600160a01b0316146112135760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016104d6565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611288573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ac919061173b565b6001600160a01b0316336001600160a01b0316146112fd5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016104d6565b6040516000903390624c4b4090849084818181858888f193505050503d8060008114611345576040519150601f19603f3d011682016040523d82523d6000602084013e61134a565b606091505b5050809150508061138f5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016104d6565b5050565b6001600160a01b038116600090815260096020908152604080832081516060810183528154808252600183015494820194909452600290910154918101919091526008548392670de0b6b3a7640000916113ec9161176e565b6113f69190611785565b6007548251670de0b6b3a76400009161140e9161176e565b6114189190611785565b9250925050915091565b60026000540361145e576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b60008061147183611393565b909250905081156114f7576004805460405163a9059cbb60e01b81526001600160a01b03868116938201939093526024810185905291169063a9059cbb906044016020604051808303816000875af11580156114d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f591906117ba565b505b8015610d17576000836001600160a01b0316826207a12090604051600060405180830381858888f193505050503d8060008114611550576040519150601f19603f3d011682016040523d82523d6000602084013e611555565b606091505b5050809150508061159a5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016104d6565b50505050565b6001546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906335817773906115ea90859060040161181d565b602060405180830381865afa158015611607573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162b919061173b565b92915050565b60006020828403121561164357600080fd5b5035919050565b6001600160a01b038116811461105e57600080fd5b60006020828403121561167157600080fd5b813561167c8161164a565b9392505050565b6000806040838503121561169657600080fd5b82356116a18161164a565b946020939093013593505050565b80516dffffffffffffffffffffffffffff811681146116cd57600080fd5b919050565b6000806000606084860312156116e757600080fd5b6116f0846116af565b92506116fe602085016116af565b9150604084015163ffffffff8116811461171757600080fd5b809150509250925092565b60006020828403121561173457600080fd5b5051919050565b60006020828403121561174d57600080fd5b815161167c8161164a565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761162b5761162b611758565b6000826117a257634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561162b5761162b611758565b6000602082840312156117cc57600080fd5b8151801515811461167c57600080fd5b6000806000606084860312156117f157600080fd5b5050815160208301516040909301519094929350919050565b8181038181111561162b5761162b611758565b602081526000825180602084015260005b8181101561184b576020818601810151604086840101520161182e565b506000604082850101526040601f19601f8301168401019150509291505056fea2646970667358221220e7fd1f07075b6c1e25fe1dd4cb4aa5683423df9984b0147ae81b3d77c8754ab464736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ 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.