Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00Token Holdings
Could not find any matches!
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
0x60806040 | 30038351 | 2022-10-18 9:01:46 | 728 days ago | 1666083706 | IN | 0 ETH$0.00 | 0.001480872515 | 0.001 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
OneInchCodec
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.8.15; import "../interfaces/IERC20.sol"; import "../interfaces/ICodec.sol"; import "../interfaces/IUniswapV3Pool.sol"; import "../interfaces/IUniswapV2Pair.sol"; contract OneInchCodec is ICodec { uint256 private constant _ONE_FOR_ZERO_MASK = 1 << 255; uint256 private constant _REVERSE_MASK = 0x8000000000000000000000000000000000000000000000000000000000000000; struct OrderRFQ { // lowest 64 bits is the order id, next 64 bits is the expiration timestamp // highest bit is unwrap WETH flag which is set on taker's side // [unwrap eth(1 bit) | unused (127 bits) | expiration timestamp(64 bits) | orderId (64 bits)] uint256 info; IERC20 makerAsset; IERC20 takerAsset; address maker; address allowedSender; // equals to Zero address on public orders uint256 makingAmount; uint256 takingAmount; } struct SwapDesc { IERC20 srcToken; IERC20 dstToken; address payable srcReceiver; address payable dstReceiver; uint256 amount; uint256 minReturnAmount; uint256 flags; bytes permit; } function decodeCalldata(ICodec.SwapDescription calldata _swap) external view returns ( uint256 amountIn, address tokenIn, address tokenOut ) { bytes4 selector = bytes4(_swap.data); if (selector == 0xb0431182) { // "b0431182": "clipperSwap(address srcToken, address dstToken, uint256 amount, uint256 minReturn)", (address srcToken, address dstToken, uint256 amount,) = abi.decode( (_swap.data[4 :]), (address, address, uint256, uint256) ); return (amount, srcToken, dstToken); } else if (selector == 0xd0a3b665) { // "d0a3b665": "fillOrderRFQ((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes signature, uint256 makingAmount, uint256 takingAmount)", (OrderRFQ memory order, , ,) = abi.decode((_swap.data[4 :]), (OrderRFQ, bytes, uint256, uint256)); return (order.takingAmount, address(order.takerAsset), address(order.makerAsset)); } else if (selector == 0x7c025200) { // "7c025200": "swap(address caller,(address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit) desc, bytes data)", (, SwapDesc memory desc,) = abi.decode((_swap.data[4 :]), (address, SwapDesc, bytes)); return (desc.amount, address(desc.srcToken), address(desc.dstToken)); } else if (selector == 0xe449022e) { // "e449022e": "uniswapV3Swap(uint256 amount,uint256 minReturn,uint256[] pools)", (uint256 amount, , uint256[] memory pools) = abi.decode((_swap.data[4 :]), (uint256, uint256, uint256[])); (address srcToken,) = decodeV3Pool(pools[0]); (, address dstToken) = decodeV3Pool(pools[pools.length - 1]); return (amount, srcToken, dstToken); } else if (selector == 0x2e95b6c8) { // "2e95b6c8": "unoswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools)" (address srcToken, uint256 amount, , bytes32[] memory pools) = abi.decode( (_swap.data[4:]), (address, uint256, uint256, bytes32[]) ); (, address dstToken) = decodeV2Pool(uint256(pools[pools.length - 1])); return (amount, srcToken, dstToken); } else { // error, unknown selector revert("unknown selector"); } } function encodeCalldataWithOverride( bytes calldata _data, uint256 _amountInOverride, address _receiverOverride ) external pure returns (bytes memory swapCalldata) { bytes4 selector = bytes4(_data); if (selector == 0xb0431182) { // "b0431182": "clipperSwap(address srcToken, address dstToken, uint256 amount, uint256 minReturn)", (address srcToken, address dstToken, , uint256 minReturn) = abi.decode( (_data[4 :]), (address, address, uint256, uint256) ); return abi.encodeWithSelector(selector, srcToken, dstToken, _amountInOverride, minReturn); } else if (selector == 0xd0a3b665) { // "d0a3b665": "fillOrderRFQ((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes signature, uint256 makingAmount, uint256 takingAmount)", (OrderRFQ memory order, bytes memory signature, uint256 makingAmount,) = abi.decode( (_data[4 :]), (OrderRFQ, bytes, uint256, uint256) ); order.takingAmount = _amountInOverride; return abi.encodeWithSelector(selector, order, signature, makingAmount, _amountInOverride); } else if (selector == 0x7c025200) { // "7c025200": "swap(address caller,(address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit) desc, bytes data)", (address caller, SwapDesc memory desc, bytes memory data) = abi.decode( (_data[4 :]), (address, SwapDesc, bytes) ); desc.dstReceiver = payable(_receiverOverride); desc.amount = _amountInOverride; return abi.encodeWithSelector(selector, caller, desc, data); } else if (selector == 0xe449022e) { // "e449022e": "uniswapV3Swap(uint256 amount,uint256 minReturn,uint256[] pools)", (, uint256 minReturn, uint256[] memory pools) = abi.decode((_data[4 :]), (uint256, uint256, uint256[])); return abi.encodeWithSelector(selector, _amountInOverride, minReturn, pools); } else if (selector == 0x2e95b6c8) { // "2e95b6c8": "unoswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools)" (address srcToken, , uint256 minReturn, bytes32[] memory pools) = abi.decode( (_data[4 :]), (address, uint256, uint256, bytes32[]) ); return abi.encodeWithSelector(selector, srcToken, _amountInOverride, minReturn, pools); } else { // error, unknown selector revert("unknown selector"); } } function decodeV3Pool(uint256 pool) private view returns (address srcToken, address dstToken) { bool zeroForOne = pool & _ONE_FOR_ZERO_MASK == 0; address poolAddr = address(uint160(pool)); if (zeroForOne) { return (IUniswapV3Pool(poolAddr).token0(), IUniswapV3Pool(poolAddr).token1()); } else { return (IUniswapV3Pool(poolAddr).token1(), IUniswapV3Pool(poolAddr).token0()); } } function decodeV2Pool(uint256 pool) private view returns (address srcToken, address dstToken) { bool zeroForOne = pool & _REVERSE_MASK == 0; address poolAddr = address(uint160(pool)); if (zeroForOne) { return (IUniswapV2Pair(poolAddr).token0(), IUniswapV2Pair(poolAddr).token1()); } else { return (IUniswapV2Pair(poolAddr).token1(), IUniswapV2Pair(poolAddr).token0()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @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); }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.8.0; interface ICodec { struct SwapDescription { address dex; // the DEX to use for the swap, zero address implies no swap needed bytes data; // the data to call the dex with } function decodeCalldata(SwapDescription calldata swap) external view returns ( uint256 amountIn, address tokenIn, address tokenOut ); function encodeCalldataWithOverride( bytes calldata data, uint256 amountInOverride, address receiverOverride ) external pure returns (bytes memory swapCalldata); }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.8.15; interface IUniswapV3Pool { /// @notice Swap token0 for token1, or token1 for token0 /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback /// @param recipient The address to receive the output of the swap /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0 /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this /// value after the swap. If one for zero, the price cannot be greater than this value after the swap /// @param data Any data to be passed through to the callback /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive function swap( address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data ) external returns (int256 amount0, int256 amount1); /// @notice The first of the two tokens of the pool, sorted by address /// @return The token contract address function token0() external view returns (address); /// @notice The second of the two tokens of the pool, sorted by address /// @return The token contract address function token1() external view returns (address); /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6 /// @return The fee function fee() external view returns (uint24); }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.8.15; interface IUniswapV2Pair { function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function token0() external view returns (address); function token1() external view returns (address); }
{ "optimizer": { "enabled": true, "runs": 800, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"components":[{"internalType":"address","name":"dex","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct ICodec.SwapDescription","name":"_swap","type":"tuple"}],"name":"decodeCalldata","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"uint256","name":"_amountInOverride","type":"uint256"},{"internalType":"address","name":"_receiverOverride","type":"address"}],"name":"encodeCalldataWithOverride","outputs":[{"internalType":"bytes","name":"swapCalldata","type":"bytes"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506113cb806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063358f0e1c1461003b5780634c6da26914610066575b600080fd5b61004e61004936600461073a565b610086565b60405161005d93929190610799565b60405180910390f35b610079610074366004610842565b61031e565b60405161005d9190610913565b6000808080610098602086018661092b565b6100a19161098a565b90506001600160e01b0319811663582188c160e11b036100f957600080806100cc602089018961092b565b6100da9160049082906109c5565b8101906100e791906109f5565b50985090965094506103179350505050565b6001600160e01b0319811663d0a3b66560e01b0361015c576000610120602087018761092b565b61012e9160049082906109c5565b81019061013b9190610c15565b50505090508060c00151816040015182602001519450945094505050610317565b6001600160e01b03198116623e012960e91b036101bd576000610182602087018761092b565b6101909160049082906109c5565b81019061019d9190610d6a565b509150508060800151816000015182602001519450945094505050610317565b6001600160e01b03198116637224811760e11b03610264576000806101e5602088018861092b565b6101f39160049082906109c5565b8101906102009190610e93565b9250509150600061022a8260008151811061021d5761021d610ef4565b602002602001015161059e565b509050600061025183600185516102419190610f20565b8151811061021d5761021d610ef4565b9498509196509294506103179350505050565b6001600160e01b031981166305d2b6d960e31b036102f6576000808061028d602089018961092b565b61029b9160049082906109c5565b8101906102a89190610fac565b9350509250925060006102e382600184516102c39190610f20565b815181106102d3576102d3610ef4565b602002602001015160001c61059e565b9398509396509194506103179350505050565b60405162461bcd60e51b815260040161030e9061101f565b60405180910390fd5b9193909250565b6060600061032c858761098a565b90506001600160e01b0319811663582188c160e11b036103d65760008080610357886004818c6109c5565b81019061036491906109f5565b935050925092508383838984604051602401610383949392919061105a565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915294506105969350505050565b6001600160e01b0319811663d0a3b66560e01b0361043557600080806103ff886004818c6109c5565b81019061040c9190610c15565b50925092509250868360c0018181525050838383838a604051602401610383949392919061114b565b6001600160e01b03198116623e012960e91b0361049f576000808061045d886004818c6109c5565b81019061046a9190610d6a565b6001600160a01b0389166060830152608082018a90526040519295509093509150849061038390859085908590602401611229565b6001600160e01b03198116637224811760e11b03610541576000806104c7876004818b6109c5565b8101906104d49190610e93565b9250925050828683836040516024016104ef939291906112ba565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152935061059692505050565b6001600160e01b031981166305d2b6d960e31b036102f6576000808061056a886004818c6109c5565b8101906105779190610fac565b9350935050925083838884846040516024016103839493929190611325565b949350505050565b600080600160ff1b83161583811561067f57806001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106129190611374565b816001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610650573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106749190611374565b935093505050915091565b806001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e19190611374565b816001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610650573d6000803e3d6000fd5b60006040828403121561073457610734600080fd5b50919050565b60006020828403121561074f5761074f600080fd5b813567ffffffffffffffff81111561076957610769600080fd5b6105968482850161071f565b805b82525050565b60006001600160a01b0382165b92915050565b6107778161077d565b606081016107a78286610775565b6107b46020830185610790565b6105966040830184610790565b60008083601f8401126107d6576107d6600080fd5b50813567ffffffffffffffff8111156107f1576107f1600080fd5b60208301915083600182028301111561080c5761080c600080fd5b9250929050565b805b811461082057600080fd5b50565b803561078a81610813565b6108158161077d565b803561078a8161082e565b6000806000806060858703121561085b5761085b600080fd5b843567ffffffffffffffff81111561087557610875600080fd5b610881878288016107c1565b9450945050602061089487828801610823565b92505060406108a587828801610837565b91505092959194509250565b60005b838110156108cc5781810151838201526020016108b4565b838111156108db576000848401525b50505050565b60006108eb825190565b8084526020840193506109028185602086016108b1565b601f01601f19169290920192915050565b6020808252810161092481846108e1565b9392505050565b6000808335601e193685900301811261094657610946600080fd5b80840192508235915067ffffffffffffffff82111561096757610967600080fd5b60208301925060018202360383131561098257610982600080fd5b509250929050565b80356001600160e01b031916828260048210156109bd576109b86001600160e01b0319836004036008021b90565b831692505b505092915050565b600080858511156109d8576109d8600080fd5b838611156109e8576109e8600080fd5b5050820193919092039150565b60008060008060808587031215610a0e57610a0e600080fd5b6000610a1a8787610837565b9450506020610a2b87828801610837565b9350506040610a3c87828801610823565b92505060606108a587828801610823565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715610a8957610a89610a4d565b6040525050565b6000610a9b60405190565b9050610aa78282610a63565b919050565b600061078a8261077d565b61081581610aac565b803561078a81610ab7565b600060e08284031215610ae057610ae0600080fd5b610aea60e0610a90565b90506000610af88484610823565b8252506020610b0984848301610ac0565b6020830152506040610b1d84828501610ac0565b6040830152506060610b3184828501610837565b6060830152506080610b4584828501610837565b60808301525060a0610b5984828501610823565b60a08301525060c0610b6d84828501610823565b60c08301525092915050565b600067ffffffffffffffff821115610b9357610b93610a4d565b601f19601f83011660200192915050565b82818337506000910152565b6000610bc3610bbe84610b79565b610a90565b905082815260208101848484011115610bde57610bde600080fd5b610be9848285610ba4565b509392505050565b600082601f830112610c0557610c05600080fd5b8135610596848260208601610bb0565b6000806000806101408587031215610c2f57610c2f600080fd5b6000610c3b8787610acb565b94505060e085013567ffffffffffffffff811115610c5b57610c5b600080fd5b610c6787828801610bf1565b935050610100610c7987828801610823565b9250506101206108a587828801610823565b60006101008284031215610ca157610ca1600080fd5b610cac610100610a90565b90506000610cba8484610ac0565b8252506020610ccb84848301610ac0565b6020830152506040610cdf84828501610837565b6040830152506060610cf384828501610837565b6060830152506080610d0784828501610823565b60808301525060a0610d1b84828501610823565b60a08301525060c0610d2f84828501610823565b60c08301525060e082013567ffffffffffffffff811115610d5257610d52600080fd5b610d5e84828501610bf1565b60e08301525092915050565b600080600060608486031215610d8257610d82600080fd5b6000610d8e8686610837565b935050602084013567ffffffffffffffff811115610dae57610dae600080fd5b610dba86828701610c8b565b925050604084013567ffffffffffffffff811115610dda57610dda600080fd5b610de686828701610bf1565b9150509250925092565b600067ffffffffffffffff821115610e0a57610e0a610a4d565b5060209081020190565b6000610e22610bbe84610df0565b83815290506020808201908402830185811115610e4157610e41600080fd5b835b81811015610e655780610e568882610823565b84525060209283019201610e43565b5050509392505050565b600082601f830112610e8357610e83600080fd5b8135610596848260208601610e14565b600080600060608486031215610eab57610eab600080fd5b6000610eb78686610823565b9350506020610ec886828701610823565b925050604084013567ffffffffffffffff811115610ee857610ee8600080fd5b610de686828701610e6f565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015610f3257610f32610f0a565b500390565b6000610f45610bbe84610df0565b83815290506020808201908402830185811115610f6457610f64600080fd5b835b81811015610e655780610f798882610823565b84525060209283019201610f66565b600082601f830112610f9c57610f9c600080fd5b8135610596848260208601610f37565b60008060008060808587031215610fc557610fc5600080fd5b6000610fd18787610837565b9450506020610fe287828801610823565b9350506040610ff387828801610823565b925050606085013567ffffffffffffffff81111561101357611013600080fd5b6108a587828801610f88565b6020808252810161078a81601081527f756e6b6e6f776e2073656c6563746f7200000000000000000000000000000000602082015260400190565b608081016110688287610790565b6110756020830186610790565b6110826040830185610775565b61108f6060830184610775565b95945050505050565b60006001600160a01b03821661078a565b600061078a82611098565b600061078a826110a9565b610777816110b4565b805160e08301906110d98482610775565b5060208201516110ec60208501826110bf565b5060408201516110ff60408501826110bf565b5060608201516111126060850182610790565b5060808201516111256080850182610790565b5060a082015161113860a0850182610775565b5060c08201516108db60c0850182610775565b610140810161115a82876110c8565b81810360e083015261116c81866108e1565b905061117c610100830185610775565b61108f610120830184610775565b805160009061010084019061119f85826110bf565b5060208301516111b260208601826110bf565b5060408301516111c56040860182610790565b5060608301516111d86060860182610790565b5060808301516111eb6080860182610775565b5060a08301516111fe60a0860182610775565b5060c083015161121160c0860182610775565b5060e083015184820360e086015261108f82826108e1565b606081016112378286610790565b8181036020830152611249818561118a565b9050818103604083015261108f81846108e1565b60006112698383610775565b505060200190565b600061127b825190565b80845260209384019383018060005b838110156112af57815161129e888261125d565b97506020830192505060010161128a565b509495945050505050565b606081016112c88286610775565b6112d56020830185610775565b818103604083015261108f8184611271565b60006112f1825190565b80845260209384019383018060005b838110156112af578151611314888261125d565b975060208301925050600101611300565b608081016113338287610790565b6113406020830186610775565b61134d6040830185610775565b818103606083015261135f81846112e7565b9695505050505050565b805161078a8161082e565b60006020828403121561138957611389600080fd5b6000610596848461136956fea2646970667358221220f74e8d1a2eda81eb0e2bc2818a548357f22ef00d08629c9f81f6b3a36a3725bc64736f6c634300080f0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063358f0e1c1461003b5780634c6da26914610066575b600080fd5b61004e61004936600461073a565b610086565b60405161005d93929190610799565b60405180910390f35b610079610074366004610842565b61031e565b60405161005d9190610913565b6000808080610098602086018661092b565b6100a19161098a565b90506001600160e01b0319811663582188c160e11b036100f957600080806100cc602089018961092b565b6100da9160049082906109c5565b8101906100e791906109f5565b50985090965094506103179350505050565b6001600160e01b0319811663d0a3b66560e01b0361015c576000610120602087018761092b565b61012e9160049082906109c5565b81019061013b9190610c15565b50505090508060c00151816040015182602001519450945094505050610317565b6001600160e01b03198116623e012960e91b036101bd576000610182602087018761092b565b6101909160049082906109c5565b81019061019d9190610d6a565b509150508060800151816000015182602001519450945094505050610317565b6001600160e01b03198116637224811760e11b03610264576000806101e5602088018861092b565b6101f39160049082906109c5565b8101906102009190610e93565b9250509150600061022a8260008151811061021d5761021d610ef4565b602002602001015161059e565b509050600061025183600185516102419190610f20565b8151811061021d5761021d610ef4565b9498509196509294506103179350505050565b6001600160e01b031981166305d2b6d960e31b036102f6576000808061028d602089018961092b565b61029b9160049082906109c5565b8101906102a89190610fac565b9350509250925060006102e382600184516102c39190610f20565b815181106102d3576102d3610ef4565b602002602001015160001c61059e565b9398509396509194506103179350505050565b60405162461bcd60e51b815260040161030e9061101f565b60405180910390fd5b9193909250565b6060600061032c858761098a565b90506001600160e01b0319811663582188c160e11b036103d65760008080610357886004818c6109c5565b81019061036491906109f5565b935050925092508383838984604051602401610383949392919061105a565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915294506105969350505050565b6001600160e01b0319811663d0a3b66560e01b0361043557600080806103ff886004818c6109c5565b81019061040c9190610c15565b50925092509250868360c0018181525050838383838a604051602401610383949392919061114b565b6001600160e01b03198116623e012960e91b0361049f576000808061045d886004818c6109c5565b81019061046a9190610d6a565b6001600160a01b0389166060830152608082018a90526040519295509093509150849061038390859085908590602401611229565b6001600160e01b03198116637224811760e11b03610541576000806104c7876004818b6109c5565b8101906104d49190610e93565b9250925050828683836040516024016104ef939291906112ba565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152935061059692505050565b6001600160e01b031981166305d2b6d960e31b036102f6576000808061056a886004818c6109c5565b8101906105779190610fac565b9350935050925083838884846040516024016103839493929190611325565b949350505050565b600080600160ff1b83161583811561067f57806001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106129190611374565b816001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610650573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106749190611374565b935093505050915091565b806001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e19190611374565b816001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610650573d6000803e3d6000fd5b60006040828403121561073457610734600080fd5b50919050565b60006020828403121561074f5761074f600080fd5b813567ffffffffffffffff81111561076957610769600080fd5b6105968482850161071f565b805b82525050565b60006001600160a01b0382165b92915050565b6107778161077d565b606081016107a78286610775565b6107b46020830185610790565b6105966040830184610790565b60008083601f8401126107d6576107d6600080fd5b50813567ffffffffffffffff8111156107f1576107f1600080fd5b60208301915083600182028301111561080c5761080c600080fd5b9250929050565b805b811461082057600080fd5b50565b803561078a81610813565b6108158161077d565b803561078a8161082e565b6000806000806060858703121561085b5761085b600080fd5b843567ffffffffffffffff81111561087557610875600080fd5b610881878288016107c1565b9450945050602061089487828801610823565b92505060406108a587828801610837565b91505092959194509250565b60005b838110156108cc5781810151838201526020016108b4565b838111156108db576000848401525b50505050565b60006108eb825190565b8084526020840193506109028185602086016108b1565b601f01601f19169290920192915050565b6020808252810161092481846108e1565b9392505050565b6000808335601e193685900301811261094657610946600080fd5b80840192508235915067ffffffffffffffff82111561096757610967600080fd5b60208301925060018202360383131561098257610982600080fd5b509250929050565b80356001600160e01b031916828260048210156109bd576109b86001600160e01b0319836004036008021b90565b831692505b505092915050565b600080858511156109d8576109d8600080fd5b838611156109e8576109e8600080fd5b5050820193919092039150565b60008060008060808587031215610a0e57610a0e600080fd5b6000610a1a8787610837565b9450506020610a2b87828801610837565b9350506040610a3c87828801610823565b92505060606108a587828801610823565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715610a8957610a89610a4d565b6040525050565b6000610a9b60405190565b9050610aa78282610a63565b919050565b600061078a8261077d565b61081581610aac565b803561078a81610ab7565b600060e08284031215610ae057610ae0600080fd5b610aea60e0610a90565b90506000610af88484610823565b8252506020610b0984848301610ac0565b6020830152506040610b1d84828501610ac0565b6040830152506060610b3184828501610837565b6060830152506080610b4584828501610837565b60808301525060a0610b5984828501610823565b60a08301525060c0610b6d84828501610823565b60c08301525092915050565b600067ffffffffffffffff821115610b9357610b93610a4d565b601f19601f83011660200192915050565b82818337506000910152565b6000610bc3610bbe84610b79565b610a90565b905082815260208101848484011115610bde57610bde600080fd5b610be9848285610ba4565b509392505050565b600082601f830112610c0557610c05600080fd5b8135610596848260208601610bb0565b6000806000806101408587031215610c2f57610c2f600080fd5b6000610c3b8787610acb565b94505060e085013567ffffffffffffffff811115610c5b57610c5b600080fd5b610c6787828801610bf1565b935050610100610c7987828801610823565b9250506101206108a587828801610823565b60006101008284031215610ca157610ca1600080fd5b610cac610100610a90565b90506000610cba8484610ac0565b8252506020610ccb84848301610ac0565b6020830152506040610cdf84828501610837565b6040830152506060610cf384828501610837565b6060830152506080610d0784828501610823565b60808301525060a0610d1b84828501610823565b60a08301525060c0610d2f84828501610823565b60c08301525060e082013567ffffffffffffffff811115610d5257610d52600080fd5b610d5e84828501610bf1565b60e08301525092915050565b600080600060608486031215610d8257610d82600080fd5b6000610d8e8686610837565b935050602084013567ffffffffffffffff811115610dae57610dae600080fd5b610dba86828701610c8b565b925050604084013567ffffffffffffffff811115610dda57610dda600080fd5b610de686828701610bf1565b9150509250925092565b600067ffffffffffffffff821115610e0a57610e0a610a4d565b5060209081020190565b6000610e22610bbe84610df0565b83815290506020808201908402830185811115610e4157610e41600080fd5b835b81811015610e655780610e568882610823565b84525060209283019201610e43565b5050509392505050565b600082601f830112610e8357610e83600080fd5b8135610596848260208601610e14565b600080600060608486031215610eab57610eab600080fd5b6000610eb78686610823565b9350506020610ec886828701610823565b925050604084013567ffffffffffffffff811115610ee857610ee8600080fd5b610de686828701610e6f565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015610f3257610f32610f0a565b500390565b6000610f45610bbe84610df0565b83815290506020808201908402830185811115610f6457610f64600080fd5b835b81811015610e655780610f798882610823565b84525060209283019201610f66565b600082601f830112610f9c57610f9c600080fd5b8135610596848260208601610f37565b60008060008060808587031215610fc557610fc5600080fd5b6000610fd18787610837565b9450506020610fe287828801610823565b9350506040610ff387828801610823565b925050606085013567ffffffffffffffff81111561101357611013600080fd5b6108a587828801610f88565b6020808252810161078a81601081527f756e6b6e6f776e2073656c6563746f7200000000000000000000000000000000602082015260400190565b608081016110688287610790565b6110756020830186610790565b6110826040830185610775565b61108f6060830184610775565b95945050505050565b60006001600160a01b03821661078a565b600061078a82611098565b600061078a826110a9565b610777816110b4565b805160e08301906110d98482610775565b5060208201516110ec60208501826110bf565b5060408201516110ff60408501826110bf565b5060608201516111126060850182610790565b5060808201516111256080850182610790565b5060a082015161113860a0850182610775565b5060c08201516108db60c0850182610775565b610140810161115a82876110c8565b81810360e083015261116c81866108e1565b905061117c610100830185610775565b61108f610120830184610775565b805160009061010084019061119f85826110bf565b5060208301516111b260208601826110bf565b5060408301516111c56040860182610790565b5060608301516111d86060860182610790565b5060808301516111eb6080860182610775565b5060a08301516111fe60a0860182610775565b5060c083015161121160c0860182610775565b5060e083015184820360e086015261108f82826108e1565b606081016112378286610790565b8181036020830152611249818561118a565b9050818103604083015261108f81846108e1565b60006112698383610775565b505060200190565b600061127b825190565b80845260209384019383018060005b838110156112af57815161129e888261125d565b97506020830192505060010161128a565b509495945050505050565b606081016112c88286610775565b6112d56020830185610775565b818103604083015261108f8184611271565b60006112f1825190565b80845260209384019383018060005b838110156112af578151611314888261125d565b975060208301925050600101611300565b608081016113338287610790565b6113406020830186610775565b61134d6040830185610775565b818103606083015261135f81846112e7565b9695505050505050565b805161078a8161082e565b60006020828403121561138957611389600080fd5b6000610596848461136956fea2646970667358221220f74e8d1a2eda81eb0e2bc2818a548357f22ef00d08629c9f81f6b3a36a3725bc64736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Name Tags (up to 35 characters) can be used for easy identification of addresses
Private Note:
A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.
Please DO NOT store any passwords or private keys here.
Compiler specific version warnings:
The compiled contract might be susceptible to VerbatimInvalidDeduplication (low-severity), FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), StorageWriteRemovalBeforeConditionalTermination (medium/high-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity) Solidity Compiler Bugs.
The compiled contract might be susceptible to VerbatimInvalidDeduplication (low-severity), FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), StorageWriteRemovalBeforeConditionalTermination (medium/high-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity) Solidity Compiler Bugs.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.
Before You Copy
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.