Spend less on fees, more on crypto. Buy crypto easily with MoonPay Balance. 20M+ users trust MoonPay worldwide.
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
Don’t invest unless you’re prepared to lose all the money you invest.
Ready to simplify your web3 experience? Try the all-in-one web3 app trusted by millions worldwide.
No gas? No problem. MetaMask Gas Station includes gas fees directly in your quote.
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Slots, Roulette, Poker & more - Proud sponsors of UFC, Everton & StakeF1 team!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Anonymous play on awesome games - sign up now for 25 free jackpot spins - worth $100s!
100s of games, generous bonuses, 20+ years of trusted gaming. Join CryptoWins & start winning today!
Overview
ETH Balance
Eth Value
$0.00Token Holdings
Could not find any matches!
- ERC-20 Tokens (98)113,305,443.13 WELLWell (WELL)$49,415.90@0.00045 0000 Token (00)$0.21@0.04214.9051 1INCH1INCH Token (1INCH)$1.93@0.393610 AIXAIgentX (AIX)$0.77@0.07691 BAGBag (BAG)$0.00@0.0015,573,723.56386338 BWBBitget Walle... (BWB)$3,159,582.35@0.56690.005 CRECarryToken (CRE)$0.00@0.00472 LINKChainLink To... (LINK)$42.60@21.304,156.22281448 TIMEChronoTech T... (TIME)$83,082.89@19.99210,918.92732303 CGT2.0Curio Gas To... (CGT2.0)$2,395.01@0.0114105 DFdForce (DF)$7.39@0.0704350.15 ELONDogelon (ELON)$0.00@0.00150 FIDOFido (FIDO)$0.00@0.0056.872 FLOKIFLOKI (FLOKI)$0.01@0.000213,047,316.3070848 GMEEGAMEE (GMEE)$143,339.64@0.011100 GMTGoMining Tok... (GMT)$49.34@0.4934100,000 HANDYHandy Token (HANDY)$32.46@0.0003998.97009089 HOKKHokkaidu Inu (HOKK)$0.00@0.0010,000 IDOIdexo Token (IDO)$221.73@0.0222613.21341254 INJInjective To... (INJ)$12,606.37@20.55790.00001 stBTCLorenzo stBT... (stBTC)$0.93@93,422.0049,727,886.386 MVLMass Vehicle... (MVL)$213,170.02@0.0043341 MTAMeta (MTA)$10.79@0.0316215,000,000 MTKMetaToken (MTK)$427,185.21@0.0023 MILK2MilkyWay Tok... (MILK2)$0.01@0.00441,900 MNDMind (MND)$30.68@0.01611,000 MTVMultiVAC (MTV)$0.97@0.0013,481,935.3506 PEPEPepe (PEPE)$62.57@0.001 PDAPlayDapp (PDA)$0.05@0.047150 SEXYSettled ETHX... (SEXY)$19.10@0.12737,577,140.992 SHIBSHIBA INU (SHIB)$164.05@0.005,758,102.99618347 SIDUSSIDUS (SIDUS)$27,822.29@0.00480.00120908 stETHstETH (stETH)$4.03@3,336.3310 SUPERSuperVerse (SUPER)$15.10@1.511 SUSHISushiToken (SUSHI)$1.40@1.40117.56264572 TONTokamak Netw... (TON)$190.45@1.6215,814,701.0374933 TOWERTOWER (TOWER)$25,403.31@0.00160.5005 USDVUSDV (USDV)$0.50@0.996944 ARBArbitrum (ARB)$33.28@0.756420,245.74303696 DAIDai Stableco... (DAI)$20,235.26@0.9995112,138.95610154 MNTMantle (MNT)$133,445.36@1.190.1 MATICMatic Token (MATIC)$0.05@0.4790.124 SAISai Stableco... (SAI)$2.35@18.941,372,241.779261 USDTTether USD (USDT)$1,370,478.45@0.9987146,168.219503 USDCUSDC (USDC)$146,168.22@1.004.2706977 WBTCWrapped BTC (WBTC)$403,482.71@94,477.0048,000 Earn $TUSD airdrops at https://www.tenorusd.orgERC-20: $ te... (Earn $...)4.75ERC20 ***1 MeERC-20: Abo (Me)450 AIDIAidi Finance$0.08@0.00021 AMBRERC-20: Ambr... (AMBR)8 ANDYAndy$0.00@0.0002982,478,124.283688 ARBUZARBUZ$69,627,799.65@0.0709610.82760172 BGBGBigMouthFrog8,888 BOMEERC-20: BOOK... (BOME)5,000,000 BROMERC-20: BROM (BROM)20,000,000 CATIZENERC-20: Cati... (CATIZE...)2,626,689.7783 CHKNChickencoin$0.19@0.001 BobrCRVERC-20: CURV... (BobrCR...)80.015 DEGOTestERC-20: dego... (DEGOTe...)51,169,313.3241316 MOEWERC-20: dono... (MOEW)0.001 EFOLIOEdgefolio99,999,999 ETLGERC-20: Ethe... (ETLG)1,000 ZCHFFrankencoin$1,097.00@1.097150 GFUERC-20: GFU_... (GFU)10 GRGROM$0.01@0.00050.01 MAXCOIN2ERC-20: MAXC... (MAXCOI...)1,000 MTKERC-20: Meta... (MTK)200,300,960.09 MTK6.0ERC-20: My T... (MTK6.0)0.57341625 RDTERC-20: Real... (RDT)200 RPKRepubliK$0.75@0.00381,000 SONESbercoinOne16,654,183,836,701 SLOPYSlopy120 SQUADERC-20: Squa... (SQUAD)1 STRIKEERC-20: Stri... (STRIKE)96,208,582.96595 SybzeroSybilZero110 TADAERC-20: TADA (TADA)10 TALKTalken$0.21@0.0211100 TEST2ERC-20: TEST (TEST2)5,000,000,000 TOKIToki$29.14@0.0015,437,038.48453 FRENERC-20: Tons... (FREN)100 TTERC-20: Trig... (TT)951,129.02771932 VGXVoyager Token$89,580.67@0.0942290 WEVERWrapped Ever10 YUMYum$0.15@0.01511,000 CAPSCapsule Coin$5.05@0.00525,285.651 GALAGala$876.05@0.0346807.06747 WPUNKWrapped Punk$490.39@0.60761.2 TokenERC-20 TOKEN*[Suspicious]3,999.99 TokenERC-20 TOKEN*[Suspicious]1.4 TokenERC-20 TOKEN*[Suspicious]525,235,396 TokenERC-20 TOKEN*[Suspicious]3,999.99 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]9,000 TokenERC-20 TOKEN*[Suspicious]75,539,184.44 TokenERC-20 TOKEN*[Spam]50,000 TokenERC-20 TOKEN*[Spam]50,000 TokenERC-20 TOKEN*[Spam]NFT Tokens (33)claim rewards on apyusd.netapyusd.netERC-1155claim rewards on clinkevent.orgclinkevent.orgERC-1155nft-dai.comDAI Mysterybox NFTERC-1155claim rewards on galaportal.netgalaportal.netERC-1155claim rewards on injectivepool.orginjectivepool.orgERC-1155claim rewards on link-prize.netlink-prize.netERC-1155Reward Club [QEfkfA1G]Reward Club [w7cIVAag]ERC-1155claim rewards on stakedeth.iostakedeth.ioERC-1155claim rewards on wbtcnetwork.netwbtcnetwork.netERC-1155debridgeth.comWithdrawal Badge debridgeth.comERC-1155Let's Go!🎁ERC-1155ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]
More Info
Private Name Tags
ContractCreator
Multichain Info
1 address found via- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
- Cards New
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Transaction Hash MethodBlockFromTo0x3b86e70018bb1fcec4948a8037cff18ff153105a6bb295695ed5312591a9699f Lock (pending) 2024-12-28 3:46:16 57 mins ago 1735357576 IN 0 ETH$0.00 (Pending) (Pending) Unlock 21498410 2024-12-28 3:55:23 48 mins ago 1735358123 IN 0 ETH$0.00 0.00091092 5.51837013 Unlock 21498350 2024-12-28 3:43:23 1 hr ago 1735357403 IN 0 ETH$0.00 0.00088908 6.00661869 Unlock 21497475 2024-12-28 0:47:59 3 hrs ago 1735346879 IN 0 ETH$0.00 0.00097979 6.61891954 Unlock 21497431 2024-12-28 0:39:11 4 hrs ago 1735346351 IN 0 ETH$0.00 0.00108017 6.5430135 Unlock 21497246 2024-12-28 0:02:11 4 hrs ago 1735344131 IN 0 ETH$0.00 0.00110164 6.67257468 Unlock 21496607 2024-12-27 21:53:11 6 hrs ago 1735336391 IN 0 ETH$0.00 0.00103965 7.02585982 Unlock 21496470 2024-12-27 21:25:35 7 hrs ago 1735334735 IN 0 ETH$0.00 0.00126777 7.67904042 Unlock 21495884 2024-12-27 19:27:59 9 hrs ago 1735327679 IN 0 ETH$0.00 0.00163585 9.90898599 Unlock 21494674 2024-12-27 15:24:35 13 hrs ago 1735313075 IN 0 ETH$0.00 0.00278961 16.89552394 Unlock 21494347 2024-12-27 14:19:11 14 hrs ago 1735309151 IN 0 ETH$0.00 0.0013962 8.45609855 Unlock 21494276 2024-12-27 14:04:59 14 hrs ago 1735308299 IN 0 ETH$0.00 0.0014513 8.79236202 Unlock 21493532 2024-12-27 11:35:47 17 hrs ago 1735299347 IN 0 ETH$0.00 0.00132101 8.00469272 Unlock 21492217 2024-12-27 7:10:23 21 hrs ago 1735283423 IN 0 ETH$0.00 0.00089366 6.03785899 Unlock 21491864 2024-12-27 5:59:35 22 hrs ago 1735279175 IN 0 ETH$0.00 0.00104446 7.05661689 Unlock 21491539 2024-12-27 4:54:11 23 hrs ago 1735275251 IN 0 ETH$0.00 0.00087439 5.90892677 Unlock 21490482 2024-12-27 1:21:23 27 hrs ago 1735262483 IN 0 ETH$0.00 0.00091906 6.20937492 Unlock 21490202 2024-12-27 0:24:59 28 hrs ago 1735259099 IN 0 ETH$0.00 0.00106252 7.18118301 Unlock 21490177 2024-12-27 0:19:59 28 hrs ago 1735258799 IN 0 ETH$0.00 0.00110717 6.70678047 Lock 21490176 2024-12-27 0:19:47 28 hrs ago 1735258787 IN 0 ETH$0.00 0.00039719 6.60813431 Unlock 21490089 2024-12-27 0:02:23 28 hrs ago 1735257743 IN 0 ETH$0.00 0.00105968 7.15970074 Unlock 21487046 2024-12-26 13:50:11 38 hrs ago 1735221011 IN 0 ETH$0.00 0.00108972 7.63379536 Unlock 21486952 2024-12-26 13:31:23 39 hrs ago 1735219883 IN 0 ETH$0.00 0.00133697 9.03289086 Unlock 21486549 2024-12-26 12:10:11 40 hrs ago 1735215011 IN 0 ETH$0.00 0.00105625 7.13600509 Unlock 21485966 2024-12-26 10:13:11 42 hrs ago 1735207991 IN 0 ETH$0.00 0.00094359 7.21163043 View more zero value Internal Transactions in Advanced View mode
Advanced mode:Loading...LoadingContract Name:Bridge
Compiler Versionv0.8.9+commit.e5eed63a
Optimization Enabled:Yes with 5000 runs
Other Settings:default evmVersionContract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./SignatureChecker.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; interface IWrappedJetton { function isWrappedJetton() external pure returns (bool); } interface IDecimals { function decimals() external view returns (uint8); } contract Bridge is SignatureChecker, ReentrancyGuard { using SafeERC20 for IERC20; address[] oracleSet; mapping(address => bool) public isOracle; mapping(address => bool) public disabledTokens; mapping(bytes32 => bool) public finishedVotings; bool public allowLock; event Lock( address indexed from, address indexed token, bytes32 indexed to_addr_hash, uint256 value, uint256 new_bridge_balance, uint8 decimals ); event Unlock( address indexed token, bytes32 ton_address_hash, bytes32 indexed ton_tx_hash, uint64 lt, address indexed to, uint256 value, uint256 new_bridge_balance ); event NewOracleSet(uint256 oracleSetHash, address[] newOracles); constructor(address[] memory initialSet) { _updateOracleSet(0, initialSet); disabledTokens[address(0)] = true; disabledTokens[address(0x582d872A1B094FC48F5DE31D3B73F2D9bE47def1)] = true; // wrapped toncoin disabledTokens[address(0x76A797A59Ba2C17726896976B7B3747BfD1d220f)] = true; // wrapped toncoin } function _generalVote(bytes32 digest, Signature[] memory signatures) internal view { require( signatures.length >= (2 * oracleSet.length + 2) / 3, "Not enough signatures" ); require(!finishedVotings[digest], "Vote is already finished"); uint256 signum = signatures.length; uint256 last_signer = 0; for (uint256 i = 0; i < signum; i++) { address signer = signatures[i].signer; require(isOracle[signer], "Unauthorized signer"); uint256 next_signer = uint256(uint160(signer)); require(next_signer > last_signer, "Signatures are not sorted"); last_signer = next_signer; checkSignature(digest, signatures[i]); } } function lock( address token, uint256 amount, bytes32 to_address_hash ) external nonReentrant { require(allowLock, "Lock is currently disabled"); require(!disabledTokens[token], "lock: disabled token"); require(!checkTokenIsWrappedJetton(token), "lock wrapped jetton"); uint256 oldBalance = IERC20(token).balanceOf(address(this)); IERC20(token).safeTransferFrom(msg.sender, address(this), amount); uint256 newBalance = IERC20(token).balanceOf(address(this)); require(newBalance > oldBalance, "newBalance must be greater than oldBalance"); require(newBalance <= 2 ** 120 - 1, "Max jetton totalSupply 2 ** 120 - 1"); emit Lock( msg.sender, token, to_address_hash, newBalance - oldBalance, newBalance, getDecimals(token) ); } function unlock(SwapData calldata data, Signature[] calldata signatures) external nonReentrant { bytes32 _id = getSwapDataId(data); _generalVote(_id, signatures); finishedVotings[_id] = true; IERC20(data.token).safeTransfer(data.receiver, data.amount); uint256 newBalance = IERC20(data.token).balanceOf(address(this)); emit Unlock(data.token, data.tx.address_hash, data.tx.tx_hash, data.tx.lt, data.receiver, data.amount, newBalance); } function voteForNewOracleSet( uint256 oracleSetHash, address[] calldata newOracles, Signature[] calldata signatures ) external { bytes32 _id = getNewSetId(oracleSetHash, newOracles); _generalVote(_id, signatures); finishedVotings[_id] = true; _updateOracleSet(oracleSetHash, newOracles); } function voteForSwitchLock( bool newLockStatus, uint256 nonce, Signature[] calldata signatures ) external { bytes32 _id = getNewLockStatusId(newLockStatus, nonce); _generalVote(_id, signatures); finishedVotings[_id] = true; allowLock = newLockStatus; } function voteForDisableToken( bool isDisable, address tokenAddress, uint256 nonce, Signature[] calldata signatures ) external { bytes32 _id = getNewDisableToken(isDisable, tokenAddress, nonce); _generalVote(_id, signatures); finishedVotings[_id] = true; if (isDisable) { disabledTokens[tokenAddress] = true; } else { delete disabledTokens[tokenAddress]; } } function _updateOracleSet(uint256 oracleSetHash, address[] memory newOracles) internal { require(newOracles.length > 2, "New set is too short"); uint256 oldSetLen = oracleSet.length; for (uint256 i = 0; i < oldSetLen; i++) { isOracle[oracleSet[i]] = false; } oracleSet = newOracles; uint256 newSetLen = oracleSet.length; for (uint256 i = 0; i < newSetLen; i++) { require(newOracles[i] != address(0), "zero signer"); require(!isOracle[newOracles[i]], "Duplicate oracle in Set"); isOracle[newOracles[i]] = true; } emit NewOracleSet(oracleSetHash, newOracles); } function getFullOracleSet() external view returns (address[] memory) { return oracleSet; } function checkTokenIsWrappedJetton(address token) public pure returns (bool) { try IWrappedJetton(token).isWrappedJetton() returns ( bool isWrappedJetton ) { return isWrappedJetton; } catch { return false; } } function getDecimals(address token) public view returns (uint8) { try IDecimals(token).decimals() returns ( uint8 decimals ) { return decimals; } catch { return 0; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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; 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 require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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.6.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.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-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; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } 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)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } 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"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } 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"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 * ==== * * [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://diligence.consensys.net/posts/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.5.11/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: GPL-3.0 pragma solidity ^0.8.9; import "./TonUtils.sol"; contract SignatureChecker is TonUtils { function checkSignature(bytes32 digest, Signature memory sig) public pure { require(sig.signer != address(0), "ECDSA: zero signer"); // The `ecrecover` function returns zero on failure, so if sig.signer == 0 then any signature will be accepted regardless of whether it is cryptographically valid. require(sig.signature.length == 65, "ECDSA: invalid signature length"); // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; bytes memory signature = sig.signature; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); bytes memory prefix = "\x19Ethereum Signed Message:\n32"; bytes32 prefixedHash = keccak256(abi.encodePacked(prefix, digest)); require( ecrecover(prefixedHash, v, r, s) == sig.signer, "Wrong signature" ); } function getSwapDataId(SwapData memory data) public view returns (bytes32 result) { result = keccak256( abi.encode( 0xDA7A, address(this), block.chainid, data.receiver, data.token, data.amount, data.tx.address_hash, data.tx.tx_hash, data.tx.lt ) ); } function getNewSetId(uint256 oracleSetHash, address[] memory set) public view returns (bytes32 result) { result = keccak256( abi.encode(0x5e7, address(this), block.chainid, oracleSetHash, set) ); } function getNewLockStatusId(bool newLockStatus, uint256 nonce) public view returns (bytes32 result) { result = keccak256( abi.encode(0xB012, address(this), block.chainid, newLockStatus, nonce) ); } function getNewDisableToken(bool isDisable, address tokenAddress, uint256 nonce) public view returns (bytes32 result) { result = keccak256( abi.encode(0xD15A, address(this), block.chainid, isDisable, tokenAddress, nonce) ); } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.9; interface TonUtils { struct TonTxID { bytes32 address_hash; // sender user address bytes32 tx_hash; // transaction hash on bridge smart contract uint64 lt; // transaction LT (logical time) on bridge smart contract } struct SwapData { address receiver; // user's EVM-address to receive tokens address token; // ERC-20 token address uint256 amount; // token amount in units to receive in EVM-network TonTxID tx; } struct Signature { address signer; // oracle's EVM-address bytes signature; // oracle's signature } }
{ "optimizer": { "enabled": true, "runs": 5000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"address[]","name":"initialSet","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"bytes32","name":"to_addr_hash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"new_bridge_balance","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oracleSetHash","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"newOracles","type":"address[]"}],"name":"NewOracleSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bytes32","name":"ton_address_hash","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"ton_tx_hash","type":"bytes32"},{"indexed":false,"internalType":"uint64","name":"lt","type":"uint64"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"new_bridge_balance","type":"uint256"}],"name":"Unlock","type":"event"},{"inputs":[],"name":"allowLock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"digest","type":"bytes32"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature","name":"sig","type":"tuple"}],"name":"checkSignature","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"checkTokenIsWrappedJetton","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"disabledTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"finishedVotings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFullOracleSet","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isDisable","type":"bool"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"getNewDisableToken","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"newLockStatus","type":"bool"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"getNewLockStatusId","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"oracleSetHash","type":"uint256"},{"internalType":"address[]","name":"set","type":"address[]"}],"name":"getNewSetId","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"bytes32","name":"address_hash","type":"bytes32"},{"internalType":"bytes32","name":"tx_hash","type":"bytes32"},{"internalType":"uint64","name":"lt","type":"uint64"}],"internalType":"struct TonUtils.TonTxID","name":"tx","type":"tuple"}],"internalType":"struct TonUtils.SwapData","name":"data","type":"tuple"}],"name":"getSwapDataId","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isOracle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"to_address_hash","type":"bytes32"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"bytes32","name":"address_hash","type":"bytes32"},{"internalType":"bytes32","name":"tx_hash","type":"bytes32"},{"internalType":"uint64","name":"lt","type":"uint64"}],"internalType":"struct TonUtils.TonTxID","name":"tx","type":"tuple"}],"internalType":"struct TonUtils.SwapData","name":"data","type":"tuple"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature[]","name":"signatures","type":"tuple[]"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isDisable","type":"bool"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature[]","name":"signatures","type":"tuple[]"}],"name":"voteForDisableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"oracleSetHash","type":"uint256"},{"internalType":"address[]","name":"newOracles","type":"address[]"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature[]","name":"signatures","type":"tuple[]"}],"name":"voteForNewOracleSet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newLockStatus","type":"bool"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature[]","name":"signatures","type":"tuple[]"}],"name":"voteForSwitchLock","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200284838038062002848833981016040819052620000349162000436565b60016000908155620000479082620000ef565b5060036020527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff8054600160ff1991821681179092557fb731312720be1a318692033072630c5aff6230bdb450430fe2e606960b85981f80548216831790557376a797a59ba2c17726896976b7b3747bfd1d220f6000527f6eae23bc7c313bc0c25064722be30f0e0df4408c16a87b8059377e7723894a5e80549091169091179055620005a1565b6002815111620001465760405162461bcd60e51b815260206004820152601460248201527f4e65772073657420697320746f6f2073686f727400000000000000000000000060448201526064015b60405180910390fd5b60015460005b81811015620001ba576000600260006001848154811062000171576200017162000508565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905580620001b1816200051e565b9150506200014c565b508151620001d090600190602085019062000382565b5060015460005b81811015620003405760006001600160a01b031684828151811062000200576200020062000508565b60200260200101516001600160a01b031614156200024f5760405162461bcd60e51b815260206004820152600b60248201526a3d32b9379039b4b3b732b960a91b60448201526064016200013d565b6002600085838151811062000268576200026862000508565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615620002de5760405162461bcd60e51b815260206004820152601760248201527f4475706c6963617465206f7261636c6520696e2053657400000000000000000060448201526064016200013d565b600160026000868481518110620002f957620002f962000508565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558062000337816200051e565b915050620001d7565b507f9486a6c41bd991eda1bcabe983ebe4fe4a19b8109acdea68feebd49c8cc1d25a84846040516200037492919062000548565b60405180910390a150505050565b828054828255906000526020600020908101928215620003da579160200282015b82811115620003da57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620003a3565b50620003e8929150620003ec565b5090565b5b80821115620003e85760008155600101620003ed565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200043157600080fd5b919050565b600060208083850312156200044a57600080fd5b82516001600160401b03808211156200046257600080fd5b818501915085601f8301126200047757600080fd5b8151818111156200048c576200048c62000403565b8060051b604051601f19603f83011681018181108582111715620004b457620004b462000403565b604052918252848201925083810185019188831115620004d357600080fd5b938501935b82851015620004fc57620004ec8562000419565b84529385019392850192620004d8565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156200054157634e487b7160e01b600052601160045260246000fd5b5060010190565b6000604082018483526020604081850152818551808452606086019150828701935060005b81811015620005945784516001600160a01b0316835293830193918301916001016200056d565b5090979650505050505050565b61229780620005b16000396000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c80639f208c0e116100b2578063c2c5e12911610081578063cf1a0ce111610066578063cf1a0ce11461034f578063cf54aaa014610372578063e84b50291461039757600080fd5b8063c2c5e12914610329578063ca3369c61461033c57600080fd5b80639f208c0e146102cd578063a2d7cab8146102e0578063a97e5c93146102f3578063b48105471461031657600080fd5b806369d38e1c116100ee57806369d38e1c146102835780636dd85ef91461029057806375f2d82b146102a35780637ecd81a5146102b857600080fd5b806302dd2d5714610120578063181cdc421461015857806350a814941461017957806363591bfb1461021e575b600080fd5b61014361012e3660046118df565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61016b610166366004611912565b6103aa565b60405190815260200161014f565b61016b610187366004611a02565b805160208083015160408085015160609586015180518186015191840151845161da7a81890152308187015246998101999099526001600160a01b0397881660808a01529690941660a088015260c087019190915260e086019290925261010085019190915267ffffffffffffffff9092166101208085019190915282518085039091018152610140909301909152815191012090565b61016b61022c366004611acc565b6040805161d15a602080830191909152308284015246606083015294151560808201526001600160a01b039390931660a084015260c0808401929092528051808403909201825260e0909201909152805191012090565b6005546101439060ff1681565b61014361029e3660046118df565b6103f8565b6102ab61047a565b60405161014f9190611b4e565b6102cb6102c6366004611bad565b6104dc565b005b6102cb6102db366004611c27565b61058d565b6102cb6102ee366004611d32565b6105db565b6101436103013660046118df565b60026020526000908152604090205460ff1681565b6102cb610324366004611d79565b6108f3565b61016b610337366004611dfd565b6109bf565b6102cb61034a366004611ea6565b6109dc565b61014361035d366004611ed9565b60046020526000908152604090205460ff1681565b6103856103803660046118df565b610da2565b60405160ff909116815260200161014f565b6102cb6103a5366004611ef2565b610e0a565b6040805161b01260208201523091810191909152466060820152821515608082015260a0810182905260009060c0015b60405160208183030381529060405280519060200120905092915050565b6000816001600160a01b031663ce12cfc76040518163ffffffff1660e01b815260040160206040518083038186803b15801561043357600080fd5b505afa925050508015610463575060408051601f3d908101601f1916820190925261046091810190611f4d565b60015b61046f57506000919050565b92915050565b919050565b606060018054806020026020016040519081016040528092919081815260200182805480156104d257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116104b4575b5050505050905090565b600061051b868686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506109bf92505050565b90506105308161052b8486611f6a565b610fc5565b600081815260046020908152604091829020805460ff1916600117905581518682028181018301909352868152610585928992899189918291908501908490808284376000920191909152506111d092505050565b505050505050565b600061059985856103aa565b90506105a98161052b8486611f6a565b60009081526004602052604090208054600160ff19918216179091556005805490911694151594909417909355505050565b80516001600160a01b03166106375760405162461bcd60e51b815260206004820152601260248201527f45434453413a207a65726f207369676e6572000000000000000000000000000060448201526064015b60405180910390fd5b80602001515160411461068c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161062e565b60208082015190810151604082015160608301519192909160001a907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561073e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161062e565b8160ff16601b148061075357508160ff16601c145b6107c55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161062e565b60006040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a33320000000081525090506000818860405160200161081492919061200a565b60408051601f1981840301815282825280516020918201208a516000855291840180845281905260ff88169284019290925260608301899052608083018890529092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015610889573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146108e95760405162461bcd60e51b815260206004820152600f60248201527f57726f6e67207369676e61747572650000000000000000000000000000000000604482015260640161062e565b5050505050505050565b6040805161d15a602080830191909152308284015246606083015287151560808301526001600160a01b03871660a083015260c08083018790528351808403909101815260e090920190925280519101206109528161052b8486611f6a565b6000818152600460205260409020805460ff191660011790558515610999576001600160a01b0385166000908152600360205260409020805460ff19166001179055610585565b505050506001600160a01b03166000908152600360205260409020805460ff1916905550565b60006105e7304685856040516020016103da95949392919061202c565b6109e4611453565b60055460ff16610a365760405162461bcd60e51b815260206004820152601a60248201527f4c6f636b2069732063757272656e746c792064697361626c6564000000000000604482015260640161062e565b6001600160a01b03831660009081526003602052604090205460ff1615610a9f5760405162461bcd60e51b815260206004820152601460248201527f6c6f636b3a2064697361626c656420746f6b656e000000000000000000000000604482015260640161062e565b610aa8836103f8565b15610af55760405162461bcd60e51b815260206004820152601360248201527f6c6f636b2077726170706564206a6574746f6e00000000000000000000000000604482015260640161062e565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015610b5057600080fd5b505afa158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b889190612064565b9050610b9f6001600160a01b0385163330866114ad565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038616906370a082319060240160206040518083038186803b158015610bfa57600080fd5b505afa158015610c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c329190612064565b9050818111610ca95760405162461bcd60e51b815260206004820152602a60248201527f6e657742616c616e6365206d7573742062652067726561746572207468616e2060448201527f6f6c6442616c616e636500000000000000000000000000000000000000000000606482015260840161062e565b6effffffffffffffffffffffffffffff811115610d2e5760405162461bcd60e51b815260206004820152602360248201527f4d6178206a6574746f6e20746f74616c537570706c792032202a2a203132302060448201527f2d20310000000000000000000000000000000000000000000000000000000000606482015260840161062e565b826001600160a01b038616337fb63d8201cdffedbd3acaf1b529eaf1fe511144b988c0c97c6a0166c17e135b7c610d6586866120ac565b85610d6f8b610da2565b60408051938452602084019290925260ff16908201526060015b60405180910390a45050610d9d6001600055565b505050565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610ddd57600080fd5b505afa925050508015610463575060408051601f3d908101601f19168201909252610460918101906120c3565b610e12611453565b6000610e2661018736869003860186611a02565b9050610e368161052b8486611f6a565b6000818152600460209081526040909120805460ff19166001179055610e8690610e62908601866118df565b60408601803590610e7690602089016118df565b6001600160a01b03169190611564565b6000610e9860408601602087016118df565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610ef257600080fd5b505afa158015610f06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2a9190612064565b9050610f3960208601866118df565b6001600160a01b03166080860135610f5760408801602089016118df565b6001600160a01b03167f7288db6a9257374290bd46846c6c7a988c10fad7aeba335d3ed9b30da2bea91c6060890135610f9660c08b0160a08c016120e6565b6040805192835267ffffffffffffffff9091166020830152808b01359082015260608101869052608001610d89565b600154600390610fd6906002612101565b610fe190600261213e565b610feb9190612156565b8151101561103b5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e6174757265730000000000000000000000604482015260640161062e565b60008281526004602052604090205460ff161561109a5760405162461bcd60e51b815260206004820152601860248201527f566f746520697320616c72656164792066696e69736865640000000000000000604482015260640161062e565b80516000805b828110156111c95760008482815181106110bc576110bc612191565b602090810291909101810151516001600160a01b0381166000908152600290925260409091205490915060ff166111355760405162461bcd60e51b815260206004820152601360248201527f556e617574686f72697a6564207369676e657200000000000000000000000000604482015260640161062e565b6001600160a01b03811683811161118e5760405162461bcd60e51b815260206004820152601960248201527f5369676e61747572657320617265206e6f7420736f7274656400000000000000604482015260640161062e565b8093506111b4878785815181106111a7576111a7612191565b60200260200101516105db565b505080806111c1906121c0565b9150506110a0565b5050505050565b60028151116112215760405162461bcd60e51b815260206004820152601460248201527f4e65772073657420697320746f6f2073686f7274000000000000000000000000604482015260640161062e565b60015460005b8181101561128e576000600260006001848154811061124857611248612191565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905580611286816121c0565b915050611227565b5081516112a2906001906020850190611836565b5060015460005b818110156114135760006001600160a01b03168482815181106112ce576112ce612191565b60200260200101516001600160a01b0316141561132d5760405162461bcd60e51b815260206004820152600b60248201527f7a65726f207369676e6572000000000000000000000000000000000000000000604482015260640161062e565b6002600085838151811061134357611343612191565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16156113b75760405162461bcd60e51b815260206004820152601760248201527f4475706c6963617465206f7261636c6520696e20536574000000000000000000604482015260640161062e565b6001600260008684815181106113cf576113cf612191565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061140b816121c0565b9150506112a9565b507f9486a6c41bd991eda1bcabe983ebe4fe4a19b8109acdea68feebd49c8cc1d25a84846040516114459291906121f9565b60405180910390a150505050565b600260005414156114a65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161062e565b6002600055565b6040516001600160a01b038085166024830152831660448201526064810182905261155e9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526115ad565b50505050565b6040516001600160a01b038316602482015260448101829052610d9d9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064016114fa565b6000611602826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116929092919063ffffffff16565b805190915015610d9d57808060200190518101906116209190611f4d565b610d9d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161062e565b60606116a184846000856116a9565b949350505050565b6060824710156117215760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161062e565b600080866001600160a01b0316858760405161173d9190612212565b60006040518083038185875af1925050503d806000811461177a576040519150601f19603f3d011682016040523d82523d6000602084013e61177f565b606091505b50915091506117908783838761179b565b979650505050505050565b60608315611807578251611800576001600160a01b0385163b6118005760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161062e565b50816116a1565b6116a1838381511561181c5781518083602001fd5b8060405162461bcd60e51b815260040161062e919061222e565b8280548282559060005260206000209081019282156118a3579160200282015b828111156118a357825182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255602090920191600190910190611856565b506118af9291506118b3565b5090565b5b808211156118af57600081556001016118b4565b80356001600160a01b038116811461047557600080fd5b6000602082840312156118f157600080fd5b6118fa826118c8565b9392505050565b801515811461190f57600080fd5b50565b6000806040838503121561192557600080fd5b823561193081611901565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156119905761199061193e565b60405290565b6040805190810167ffffffffffffffff811182821017156119905761199061193e565b604051601f8201601f1916810167ffffffffffffffff811182821017156119e2576119e261193e565b604052919050565b803567ffffffffffffffff8116811461047557600080fd5b600081830360c0811215611a1557600080fd5b6040516080810181811067ffffffffffffffff82111715611a3857611a3861193e565b604052611a44846118c8565b8152611a52602085016118c8565b60208201526040840135604082015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa083011215611a9157600080fd5b611a9961196d565b91506060840135825260808401356020830152611ab860a085016119ea565b604083015260608101919091529392505050565b600080600060608486031215611ae157600080fd5b8335611aec81611901565b9250611afa602085016118c8565b9150604084013590509250925092565b600081518084526020808501945080840160005b83811015611b435781516001600160a01b031687529582019590820190600101611b1e565b509495945050505050565b6020815260006118fa6020830184611b0a565b60008083601f840112611b7357600080fd5b50813567ffffffffffffffff811115611b8b57600080fd5b6020830191508360208260051b8501011115611ba657600080fd5b9250929050565b600080600080600060608688031215611bc557600080fd5b85359450602086013567ffffffffffffffff80821115611be457600080fd5b611bf089838a01611b61565b90965094506040880135915080821115611c0957600080fd5b50611c1688828901611b61565b969995985093965092949392505050565b60008060008060608587031215611c3d57600080fd5b8435611c4881611901565b935060208501359250604085013567ffffffffffffffff811115611c6b57600080fd5b611c7787828801611b61565b95989497509550505050565b600060408284031215611c9557600080fd5b611c9d611996565b9050611ca8826118c8565b815260208083013567ffffffffffffffff80821115611cc657600080fd5b818501915085601f830112611cda57600080fd5b813581811115611cec57611cec61193e565b611cfe84601f19601f840116016119b9565b91508082528684828501011115611d1457600080fd5b80848401858401376000908201840152918301919091525092915050565b60008060408385031215611d4557600080fd5b82359150602083013567ffffffffffffffff811115611d6357600080fd5b611d6f85828601611c83565b9150509250929050565b600080600080600060808688031215611d9157600080fd5b8535611d9c81611901565b9450611daa602087016118c8565b935060408601359250606086013567ffffffffffffffff811115611dcd57600080fd5b611c1688828901611b61565b600067ffffffffffffffff821115611df357611df361193e565b5060051b60200190565b60008060408385031215611e1057600080fd5b8235915060208084013567ffffffffffffffff811115611e2f57600080fd5b8401601f81018613611e4057600080fd5b8035611e53611e4e82611dd9565b6119b9565b81815260059190911b82018301908381019088831115611e7257600080fd5b928401925b82841015611e9757611e88846118c8565b82529284019290840190611e77565b80955050505050509250929050565b600080600060608486031215611ebb57600080fd5b611ec4846118c8565b95602085013595506040909401359392505050565b600060208284031215611eeb57600080fd5b5035919050565b600080600083850360e0811215611f0857600080fd5b60c0811215611f1657600080fd5b5083925060c084013567ffffffffffffffff811115611f3457600080fd5b611f4086828701611b61565b9497909650939450505050565b600060208284031215611f5f57600080fd5b81516118fa81611901565b6000611f78611e4e84611dd9565b80848252602080830192508560051b850136811115611f9657600080fd5b855b81811015611fd257803567ffffffffffffffff811115611fb85760008081fd5b611fc436828a01611c83565b865250938201938201611f98565b50919695505050505050565b60005b83811015611ff9578181015183820152602001611fe1565b8381111561155e5750506000910152565b6000835161201c818460208801611fde565b9190910191825250602001919050565b61ffff861681526001600160a01b038516602082015283604082015282606082015260a06080820152600061179060a0830184611b0a565b60006020828403121561207657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156120be576120be61207d565b500390565b6000602082840312156120d557600080fd5b815160ff811681146118fa57600080fd5b6000602082840312156120f857600080fd5b6118fa826119ea565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156121395761213961207d565b500290565b600082198211156121515761215161207d565b500190565b60008261218c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156121f2576121f261207d565b5060010190565b8281526040602082015260006116a16040830184611b0a565b60008251612224818460208701611fde565b9190910192915050565b602081526000825180602084015261224d816040850160208701611fde565b601f01601f1916919091016040019291505056fea26469706673582212200d8d65379ad66ea236e1658657519fe56f2f574a7e2b0ef98ae5a806ee52540c64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000090000000000000000000000003154e640c56d023a98890426a24d1a772f5a38b20000000000000000000000008b06a5d37625f41ee9d9f543482b6562c657ea6f0000000000000000000000006d5e361f7e15eba73e41904f4fb2a7d2ca04516200000000000000000000000043931b8c29e34a8c16695408cd56327f511cf0860000000000000000000000007a0d3c42f795ba2db707d421add31deda9f1fec100000000000000000000000088352632350690ef22f9a580e6b413c747c01fb2000000000000000000000000eb8975966daf0c86721c14b8bb7dfb89fcbb99ca00000000000000000000000048bf4a783ecfb7f9aacab68d28b06fdaff37ac43000000000000000000000000954ae64bb0268b06ffefbb6f454867a5f2cb3177Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061011b5760003560e01c80639f208c0e116100b2578063c2c5e12911610081578063cf1a0ce111610066578063cf1a0ce11461034f578063cf54aaa014610372578063e84b50291461039757600080fd5b8063c2c5e12914610329578063ca3369c61461033c57600080fd5b80639f208c0e146102cd578063a2d7cab8146102e0578063a97e5c93146102f3578063b48105471461031657600080fd5b806369d38e1c116100ee57806369d38e1c146102835780636dd85ef91461029057806375f2d82b146102a35780637ecd81a5146102b857600080fd5b806302dd2d5714610120578063181cdc421461015857806350a814941461017957806363591bfb1461021e575b600080fd5b61014361012e3660046118df565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61016b610166366004611912565b6103aa565b60405190815260200161014f565b61016b610187366004611a02565b805160208083015160408085015160609586015180518186015191840151845161da7a81890152308187015246998101999099526001600160a01b0397881660808a01529690941660a088015260c087019190915260e086019290925261010085019190915267ffffffffffffffff9092166101208085019190915282518085039091018152610140909301909152815191012090565b61016b61022c366004611acc565b6040805161d15a602080830191909152308284015246606083015294151560808201526001600160a01b039390931660a084015260c0808401929092528051808403909201825260e0909201909152805191012090565b6005546101439060ff1681565b61014361029e3660046118df565b6103f8565b6102ab61047a565b60405161014f9190611b4e565b6102cb6102c6366004611bad565b6104dc565b005b6102cb6102db366004611c27565b61058d565b6102cb6102ee366004611d32565b6105db565b6101436103013660046118df565b60026020526000908152604090205460ff1681565b6102cb610324366004611d79565b6108f3565b61016b610337366004611dfd565b6109bf565b6102cb61034a366004611ea6565b6109dc565b61014361035d366004611ed9565b60046020526000908152604090205460ff1681565b6103856103803660046118df565b610da2565b60405160ff909116815260200161014f565b6102cb6103a5366004611ef2565b610e0a565b6040805161b01260208201523091810191909152466060820152821515608082015260a0810182905260009060c0015b60405160208183030381529060405280519060200120905092915050565b6000816001600160a01b031663ce12cfc76040518163ffffffff1660e01b815260040160206040518083038186803b15801561043357600080fd5b505afa925050508015610463575060408051601f3d908101601f1916820190925261046091810190611f4d565b60015b61046f57506000919050565b92915050565b919050565b606060018054806020026020016040519081016040528092919081815260200182805480156104d257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116104b4575b5050505050905090565b600061051b868686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506109bf92505050565b90506105308161052b8486611f6a565b610fc5565b600081815260046020908152604091829020805460ff1916600117905581518682028181018301909352868152610585928992899189918291908501908490808284376000920191909152506111d092505050565b505050505050565b600061059985856103aa565b90506105a98161052b8486611f6a565b60009081526004602052604090208054600160ff19918216179091556005805490911694151594909417909355505050565b80516001600160a01b03166106375760405162461bcd60e51b815260206004820152601260248201527f45434453413a207a65726f207369676e6572000000000000000000000000000060448201526064015b60405180910390fd5b80602001515160411461068c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161062e565b60208082015190810151604082015160608301519192909160001a907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561073e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161062e565b8160ff16601b148061075357508160ff16601c145b6107c55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161062e565b60006040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a33320000000081525090506000818860405160200161081492919061200a565b60408051601f1981840301815282825280516020918201208a516000855291840180845281905260ff88169284019290925260608301899052608083018890529092506001600160a01b03169060019060a0016020604051602081039080840390855afa158015610889573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146108e95760405162461bcd60e51b815260206004820152600f60248201527f57726f6e67207369676e61747572650000000000000000000000000000000000604482015260640161062e565b5050505050505050565b6040805161d15a602080830191909152308284015246606083015287151560808301526001600160a01b03871660a083015260c08083018790528351808403909101815260e090920190925280519101206109528161052b8486611f6a565b6000818152600460205260409020805460ff191660011790558515610999576001600160a01b0385166000908152600360205260409020805460ff19166001179055610585565b505050506001600160a01b03166000908152600360205260409020805460ff1916905550565b60006105e7304685856040516020016103da95949392919061202c565b6109e4611453565b60055460ff16610a365760405162461bcd60e51b815260206004820152601a60248201527f4c6f636b2069732063757272656e746c792064697361626c6564000000000000604482015260640161062e565b6001600160a01b03831660009081526003602052604090205460ff1615610a9f5760405162461bcd60e51b815260206004820152601460248201527f6c6f636b3a2064697361626c656420746f6b656e000000000000000000000000604482015260640161062e565b610aa8836103f8565b15610af55760405162461bcd60e51b815260206004820152601360248201527f6c6f636b2077726170706564206a6574746f6e00000000000000000000000000604482015260640161062e565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015610b5057600080fd5b505afa158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b889190612064565b9050610b9f6001600160a01b0385163330866114ad565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038616906370a082319060240160206040518083038186803b158015610bfa57600080fd5b505afa158015610c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c329190612064565b9050818111610ca95760405162461bcd60e51b815260206004820152602a60248201527f6e657742616c616e6365206d7573742062652067726561746572207468616e2060448201527f6f6c6442616c616e636500000000000000000000000000000000000000000000606482015260840161062e565b6effffffffffffffffffffffffffffff811115610d2e5760405162461bcd60e51b815260206004820152602360248201527f4d6178206a6574746f6e20746f74616c537570706c792032202a2a203132302060448201527f2d20310000000000000000000000000000000000000000000000000000000000606482015260840161062e565b826001600160a01b038616337fb63d8201cdffedbd3acaf1b529eaf1fe511144b988c0c97c6a0166c17e135b7c610d6586866120ac565b85610d6f8b610da2565b60408051938452602084019290925260ff16908201526060015b60405180910390a45050610d9d6001600055565b505050565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610ddd57600080fd5b505afa925050508015610463575060408051601f3d908101601f19168201909252610460918101906120c3565b610e12611453565b6000610e2661018736869003860186611a02565b9050610e368161052b8486611f6a565b6000818152600460209081526040909120805460ff19166001179055610e8690610e62908601866118df565b60408601803590610e7690602089016118df565b6001600160a01b03169190611564565b6000610e9860408601602087016118df565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610ef257600080fd5b505afa158015610f06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2a9190612064565b9050610f3960208601866118df565b6001600160a01b03166080860135610f5760408801602089016118df565b6001600160a01b03167f7288db6a9257374290bd46846c6c7a988c10fad7aeba335d3ed9b30da2bea91c6060890135610f9660c08b0160a08c016120e6565b6040805192835267ffffffffffffffff9091166020830152808b01359082015260608101869052608001610d89565b600154600390610fd6906002612101565b610fe190600261213e565b610feb9190612156565b8151101561103b5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e6174757265730000000000000000000000604482015260640161062e565b60008281526004602052604090205460ff161561109a5760405162461bcd60e51b815260206004820152601860248201527f566f746520697320616c72656164792066696e69736865640000000000000000604482015260640161062e565b80516000805b828110156111c95760008482815181106110bc576110bc612191565b602090810291909101810151516001600160a01b0381166000908152600290925260409091205490915060ff166111355760405162461bcd60e51b815260206004820152601360248201527f556e617574686f72697a6564207369676e657200000000000000000000000000604482015260640161062e565b6001600160a01b03811683811161118e5760405162461bcd60e51b815260206004820152601960248201527f5369676e61747572657320617265206e6f7420736f7274656400000000000000604482015260640161062e565b8093506111b4878785815181106111a7576111a7612191565b60200260200101516105db565b505080806111c1906121c0565b9150506110a0565b5050505050565b60028151116112215760405162461bcd60e51b815260206004820152601460248201527f4e65772073657420697320746f6f2073686f7274000000000000000000000000604482015260640161062e565b60015460005b8181101561128e576000600260006001848154811061124857611248612191565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905580611286816121c0565b915050611227565b5081516112a2906001906020850190611836565b5060015460005b818110156114135760006001600160a01b03168482815181106112ce576112ce612191565b60200260200101516001600160a01b0316141561132d5760405162461bcd60e51b815260206004820152600b60248201527f7a65726f207369676e6572000000000000000000000000000000000000000000604482015260640161062e565b6002600085838151811061134357611343612191565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16156113b75760405162461bcd60e51b815260206004820152601760248201527f4475706c6963617465206f7261636c6520696e20536574000000000000000000604482015260640161062e565b6001600260008684815181106113cf576113cf612191565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061140b816121c0565b9150506112a9565b507f9486a6c41bd991eda1bcabe983ebe4fe4a19b8109acdea68feebd49c8cc1d25a84846040516114459291906121f9565b60405180910390a150505050565b600260005414156114a65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161062e565b6002600055565b6040516001600160a01b038085166024830152831660448201526064810182905261155e9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526115ad565b50505050565b6040516001600160a01b038316602482015260448101829052610d9d9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064016114fa565b6000611602826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116929092919063ffffffff16565b805190915015610d9d57808060200190518101906116209190611f4d565b610d9d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161062e565b60606116a184846000856116a9565b949350505050565b6060824710156117215760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161062e565b600080866001600160a01b0316858760405161173d9190612212565b60006040518083038185875af1925050503d806000811461177a576040519150601f19603f3d011682016040523d82523d6000602084013e61177f565b606091505b50915091506117908783838761179b565b979650505050505050565b60608315611807578251611800576001600160a01b0385163b6118005760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161062e565b50816116a1565b6116a1838381511561181c5781518083602001fd5b8060405162461bcd60e51b815260040161062e919061222e565b8280548282559060005260206000209081019282156118a3579160200282015b828111156118a357825182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255602090920191600190910190611856565b506118af9291506118b3565b5090565b5b808211156118af57600081556001016118b4565b80356001600160a01b038116811461047557600080fd5b6000602082840312156118f157600080fd5b6118fa826118c8565b9392505050565b801515811461190f57600080fd5b50565b6000806040838503121561192557600080fd5b823561193081611901565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156119905761199061193e565b60405290565b6040805190810167ffffffffffffffff811182821017156119905761199061193e565b604051601f8201601f1916810167ffffffffffffffff811182821017156119e2576119e261193e565b604052919050565b803567ffffffffffffffff8116811461047557600080fd5b600081830360c0811215611a1557600080fd5b6040516080810181811067ffffffffffffffff82111715611a3857611a3861193e565b604052611a44846118c8565b8152611a52602085016118c8565b60208201526040840135604082015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa083011215611a9157600080fd5b611a9961196d565b91506060840135825260808401356020830152611ab860a085016119ea565b604083015260608101919091529392505050565b600080600060608486031215611ae157600080fd5b8335611aec81611901565b9250611afa602085016118c8565b9150604084013590509250925092565b600081518084526020808501945080840160005b83811015611b435781516001600160a01b031687529582019590820190600101611b1e565b509495945050505050565b6020815260006118fa6020830184611b0a565b60008083601f840112611b7357600080fd5b50813567ffffffffffffffff811115611b8b57600080fd5b6020830191508360208260051b8501011115611ba657600080fd5b9250929050565b600080600080600060608688031215611bc557600080fd5b85359450602086013567ffffffffffffffff80821115611be457600080fd5b611bf089838a01611b61565b90965094506040880135915080821115611c0957600080fd5b50611c1688828901611b61565b969995985093965092949392505050565b60008060008060608587031215611c3d57600080fd5b8435611c4881611901565b935060208501359250604085013567ffffffffffffffff811115611c6b57600080fd5b611c7787828801611b61565b95989497509550505050565b600060408284031215611c9557600080fd5b611c9d611996565b9050611ca8826118c8565b815260208083013567ffffffffffffffff80821115611cc657600080fd5b818501915085601f830112611cda57600080fd5b813581811115611cec57611cec61193e565b611cfe84601f19601f840116016119b9565b91508082528684828501011115611d1457600080fd5b80848401858401376000908201840152918301919091525092915050565b60008060408385031215611d4557600080fd5b82359150602083013567ffffffffffffffff811115611d6357600080fd5b611d6f85828601611c83565b9150509250929050565b600080600080600060808688031215611d9157600080fd5b8535611d9c81611901565b9450611daa602087016118c8565b935060408601359250606086013567ffffffffffffffff811115611dcd57600080fd5b611c1688828901611b61565b600067ffffffffffffffff821115611df357611df361193e565b5060051b60200190565b60008060408385031215611e1057600080fd5b8235915060208084013567ffffffffffffffff811115611e2f57600080fd5b8401601f81018613611e4057600080fd5b8035611e53611e4e82611dd9565b6119b9565b81815260059190911b82018301908381019088831115611e7257600080fd5b928401925b82841015611e9757611e88846118c8565b82529284019290840190611e77565b80955050505050509250929050565b600080600060608486031215611ebb57600080fd5b611ec4846118c8565b95602085013595506040909401359392505050565b600060208284031215611eeb57600080fd5b5035919050565b600080600083850360e0811215611f0857600080fd5b60c0811215611f1657600080fd5b5083925060c084013567ffffffffffffffff811115611f3457600080fd5b611f4086828701611b61565b9497909650939450505050565b600060208284031215611f5f57600080fd5b81516118fa81611901565b6000611f78611e4e84611dd9565b80848252602080830192508560051b850136811115611f9657600080fd5b855b81811015611fd257803567ffffffffffffffff811115611fb85760008081fd5b611fc436828a01611c83565b865250938201938201611f98565b50919695505050505050565b60005b83811015611ff9578181015183820152602001611fe1565b8381111561155e5750506000910152565b6000835161201c818460208801611fde565b9190910191825250602001919050565b61ffff861681526001600160a01b038516602082015283604082015282606082015260a06080820152600061179060a0830184611b0a565b60006020828403121561207657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156120be576120be61207d565b500390565b6000602082840312156120d557600080fd5b815160ff811681146118fa57600080fd5b6000602082840312156120f857600080fd5b6118fa826119ea565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156121395761213961207d565b500290565b600082198211156121515761215161207d565b500190565b60008261218c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156121f2576121f261207d565b5060010190565b8281526040602082015260006116a16040830184611b0a565b60008251612224818460208701611fde565b9190910192915050565b602081526000825180602084015261224d816040850160208701611fde565b601f01601f1916919091016040019291505056fea26469706673582212200d8d65379ad66ea236e1658657519fe56f2f574a7e2b0ef98ae5a806ee52540c64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000090000000000000000000000003154e640c56d023a98890426a24d1a772f5a38b20000000000000000000000008b06a5d37625f41ee9d9f543482b6562c657ea6f0000000000000000000000006d5e361f7e15eba73e41904f4fb2a7d2ca04516200000000000000000000000043931b8c29e34a8c16695408cd56327f511cf0860000000000000000000000007a0d3c42f795ba2db707d421add31deda9f1fec100000000000000000000000088352632350690ef22f9a580e6b413c747c01fb2000000000000000000000000eb8975966daf0c86721c14b8bb7dfb89fcbb99ca00000000000000000000000048bf4a783ecfb7f9aacab68d28b06fdaff37ac43000000000000000000000000954ae64bb0268b06ffefbb6f454867a5f2cb3177
-----Decoded View---------------
Arg [0] : initialSet (address[]): 0x3154E640c56D023a98890426A24D1A772f5A38B2,0x8B06A5D37625F41eE9D9F543482b6562C657EA6F,0x6D5E361F7E15ebA73e41904F4fB2A7d2ca045162,0x43931B8c29e34a8C16695408CD56327F511Cf086,0x7a0d3C42f795BA2dB707D421Add31deda9F1fEc1,0x88352632350690EF22F9a580e6B413c747c01FB2,0xeB8975966dAF0C86721C14b8Bb7DFb89FCBB99cA,0x48Bf4a783ECFb7f9AACab68d28B06fDafF37ac43,0x954AE64BB0268b06ffEFbb6f454867a5F2CB3177
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [2] : 0000000000000000000000003154e640c56d023a98890426a24d1a772f5a38b2
Arg [3] : 0000000000000000000000008b06a5d37625f41ee9d9f543482b6562c657ea6f
Arg [4] : 0000000000000000000000006d5e361f7e15eba73e41904f4fb2a7d2ca045162
Arg [5] : 00000000000000000000000043931b8c29e34a8c16695408cd56327f511cf086
Arg [6] : 0000000000000000000000007a0d3c42f795ba2db707d421add31deda9f1fec1
Arg [7] : 00000000000000000000000088352632350690ef22f9a580e6b413c747c01fb2
Arg [8] : 000000000000000000000000eb8975966daf0c86721c14b8bb7dfb89fcbb99ca
Arg [9] : 00000000000000000000000048bf4a783ecfb7f9aacab68d28b06fdaff37ac43
Arg [10] : 000000000000000000000000954ae64bb0268b06ffefbb6f454867a5f2cb3177Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingMultichain Portfolio | 30 Chains
Chain Token Portfolio % Price Amount Value ETH 91.69% $0.07087 982,478,124.2837 $69,627,799.65 ETH 4.16% $0.566871 5,573,723.5639 $3,159,582.35 ETH 1.80% $0.998715 1,372,241.7793 $1,370,478.45 ETH 0.56% $0.001987 215,000,000 $427,185.21 ETH 0.53% $94,477 4.2707 $403,482.71 ETH 0.28% $0.004287 49,727,886.386 $213,170.02 ETH 0.19% $1 146,168.2195 $146,168.22 ETH 0.19% $0.010986 13,047,316.3071 $143,339.64 ETH 0.18% $1.19 112,138.9561 $133,445.36 ETH 0.12% $0.094184 951,129.0277 $89,580.67 ETH 0.11% $19.99 4,156.2228 $83,082.89 ETH 0.07% $0.000436 113,305,443.13 $49,415.9 ETH 0.04% $0.004832 5,758,102.9962 $27,822.29 ETH 0.03% $0.001606 15,814,701.0375 $25,403.31 ETH 0.03% $0.999482 20,245.743 $20,235.26 ETH 0.02% $20.56 613.2134 $12,606.37 ETH <0.01% $0.011355 210,918.9273 $2,395.01 ETH <0.01% $1.1 1,000 $1,097 ETH <0.01% $0.034646 25,285.651 $876.05 ETH <0.01% $0.607619 807.0675 $490.39 ETH <0.01% $0.022173 10,000 $221.73 ETH <0.01% $1.62 117.5626 $190.45 ETH <0.01% $0.000022 7,577,140.992 $164.05 ETH <0.01% $0.000018 3,481,935.3506 $62.57 ETH <0.01% $0.493438 100 $49.34 ETH <0.01% $21.3 2 $42.6 ETH <0.01% $0.756357 44 $33.28 ETH <0.01% $0.000325 100,000 $32.46 ETH <0.01% $0.01615 1,900 $30.68 ETH <0.01% <$0.000001 5,000,000,000 $29.14 ETH <0.01% $0.12732 150 $19.1 ETH <0.01% $1.51 10 $15.1 ETH <0.01% $0.03163 341 $10.79 ETH <0.01% $0.070411 105 $7.39 ETH <0.01% $0.005047 1,000 $5.05 ETH <0.01% $3,336.33 0.00120908 $4.03 ETH <0.01% $18.94 0.124 $2.35 ETH <0.01% $0.393608 4.9051 $1.93 ETH <0.01% $1.4 1 $1.4 ETH <0.01% $0.000968 1,000 $0.9682 ETH <0.01% $93,422 0.00001 $0.9342 ETH <0.01% $0.076947 10 $0.7694 ETH <0.01% $0.00377 200 $0.7539 ETH <0.01% $0.996949 0.5005 $0.4989 ETH <0.01% $0.021086 10 $0.2108 ETH <0.01% $0.042115 5 $0.2105 ETH <0.01% <$0.000001 2,626,689.7783 $0.1937 ETH <0.01% $0.015087 10 $0.1508 BASE <0.01% $0.022491 110 $2.47 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 addressesPrivate Note:
A private note (up to 500 characters) can be attached to this address.
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), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), DataLocationChangeInInternalOverride (very low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-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.SignIn
Address Cards
To use this feature, please login to your Etherscan account and return to this page.Before You Copy
Transaction Private Note
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.