Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000,000 PONZIE
Holders
187
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
159,423.681993820238591429 PONZIEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
PonziExpress
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@% &@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@ .%&&&&&&&&&. @@@@@@@@@@@@@@@ @@@@@@@@@@@@@ %%&&&&&&&&&&&&&&&&. %%%&&&%. *@@@@@@@@@@@@ @@@@@@@@@@@ %%&%%&&&&&&&&&&&&&&&&&&&&&&&&%& .@@@@@@@@@@ @@@@@@@@@, &%&&&&&&&&&&&&&&&&&&&&&% &@@@@@@@@ @@@@@@@@ &&&&&&&%% @@@@@@@ @@@@@@@ /&&& @@@@@@ @@@@@@ /&&& @@@@@ @@@@@ /&&% @@@@ @@@@ .%&&&&&&&&&&&&&&&&&&&&%%%%%%%%%%%%%%%%%%%%%%%%%%%&%%%%% /@@@ @@@@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%, @@@ @@@@ %%%%&&&&&&&&&&&&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %& @@@ @@@& %%%%&&&&&&&&&&&&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %& @@@ @@@@ %%%%&&&&&&&&&&&&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%, @@@ @@@@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&%%%%%%%%%*,&&&&&&% @@@ @@@@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&%%%%%%%%%**&&&&&&% &# #@@@ @@@@@ .%%%%%%%%%%%%%%%%%%%*************************%&&&&&&&&&&&# @@@@ @@@@@@ &&&&%&&%*,,,%&&&&&&&&&&&%,,,*&&&&&&&&&&*,,,&&&&&&&&&&&&&&&&&&% @@@@@ @@@@@@@ (%&%,%&&&(,&&&&&&&%&,%&&&&.&&%&&&&#.%&&&*,&&&&&&&&&&&&&&&%& @@@@@@ @@@@@@@@ &,*&# &&%%&%%%%%%&%&%%%&&&% %,*%%#,% &&&&&&% @@@@@@@ @@@@@@@@@# @@@@@@@@@ @@@@@@@@@@@. /@@@@@@@@@@ @@@@@@@@@@@@@, %@@@@@@@@@@@@ @@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ .@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@. *@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@. ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Your ticket to first class Ethereum launches 🚂 🎟️ Website: https://ponzi.express X: https://x.com/ponziexpress TG: https://t.me/ponziexpress Whitepaper: https://ponzi.express/whitepaper.pdf */ pragma solidity >=0.5.0; interface PONZI { /** * @dev Called by the REBASE contract when tokens are received from source chain. * @param _srcChainId The chain id of the source chain. * @param _srcAddress The address of the REBASE token contract on the source chain. * @param _nonce The nonce of the transaction on the source chain. * @param _from The address of the account who calls the sendAndCall() on the source chain. * @param _amount The amount of tokens to transfer. * @param _payload Additional data with no specified format. */ function onREBASEReceived(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes32 _from, uint _amount, bytes calldata _payload) external; } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: contracts/Ponzi/token/REBASE/v2/interfaces/ICommonREBASE.sol pragma solidity >=0.5.0; /** * @dev Interface of the IREBASE core standard */ interface ICommonREBASE is IERC165 { struct LzCallParams { address payable refundAddress; address zroPaymentAddress; bytes adapterParams; } /** * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`) * _dstChainId - L0 defined chain id to send tokens too * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain * _amount - amount of the tokens to transfer * _useZro - indicates to use zro to pay L0 fees * _adapterParam - flexible bytes array to indicate messaging adapter services in L0 */ function estimateSendFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); function estimateSendAndCallFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); /** * @dev returns the circulating amount of tokens on current chain */ function circulatingSupply() external view returns (uint); /** * @dev returns the address of the ERC20 token */ function token() external view returns (address); } // File: contracts/Ponzi/token/REBASE/v2/interfaces/IREBASEV2.sol pragma solidity >=0.5.0; /** * @dev Interface of the IREBASE core standard */ interface IREBASEV2 is ICommonREBASE { /** * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from` * `_from` the owner of token * `_dstChainId` the destination chain identifier * `_toAddress` can be any size depending on the `dstChainId`. * `_amount` the quantity of tokens in wei * `_refundAddress` the address Ponzi refunds if too much message fee is sent * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (Ponzi Token) * `_adapterParams` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, LzCallParams calldata _callParams) external payable; function sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, LzCallParams calldata _callParams) external payable; } // File: contracts/Ponzi/libraries/ExcessivelySafeCall.sol pragma solidity >=0.7.6; library ExcessivelySafeCall { uint constant LOW_28_MASK = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff; /// @notice Use when you _really_ really _really_ don't trust the called /// contract. This prevents the called contract from causing reversion of /// the caller in as many ways as we can. /// @dev The main difference between this and a solidity low-level call is /// that we limit the number of bytes that the callee can cause to be /// copied to caller memory. This prevents stupid things like malicious /// contracts returning 10,000,000 bytes causing a local OOG when copying /// to memory. /// @param _target The address to call /// @param _gas The amount of gas to forward to the remote contract /// @param _maxCopy The maximum number of bytes of returndata to copy /// to memory. /// @param _calldata The data to send to the remote contract /// @return success and returndata, as `.call()`. Returndata is capped to /// `_maxCopy` bytes. function excessivelySafeCall( address _target, uint _gas, uint16 _maxCopy, bytes memory _calldata ) internal returns (bool, bytes memory) { // set up for assembly call uint _toCopy; bool _success; bytes memory _returnData = new bytes(_maxCopy); // dispatch message to recipient // by assembly calling "handle" function // we call via assembly to avoid memcopying a very large returndata // returned by a malicious contract assembly { _success := call( _gas, // gas _target, // recipient 0, // ether value add(_calldata, 0x20), // inloc mload(_calldata), // inlen 0, // outloc 0 // outlen ) // limit our copy to 256 bytes _toCopy := returndatasize() if gt(_toCopy, _maxCopy) { _toCopy := _maxCopy } // Store the length of the copied bytes mstore(_returnData, _toCopy) // copy the bytes from returndata[0:_toCopy] returndatacopy(add(_returnData, 0x20), 0, _toCopy) } return (_success, _returnData); } /// @notice Use when you _really_ really _really_ don't trust the called /// contract. This prevents the called contract from causing reversion of /// the caller in as many ways as we can. /// @dev The main difference between this and a solidity low-level call is /// that we limit the number of bytes that the callee can cause to be /// copied to caller memory. This prevents stupid things like malicious /// contracts returning 10,000,000 bytes causing a local OOG when copying /// to memory. /// @param _target The address to call /// @param _gas The amount of gas to forward to the remote contract /// @param _maxCopy The maximum number of bytes of returndata to copy /// to memory. /// @param _calldata The data to send to the remote contract /// @return success and returndata, as `.call()`. Returndata is capped to /// `_maxCopy` bytes. function excessivelySafeStaticCall( address _target, uint _gas, uint16 _maxCopy, bytes memory _calldata ) internal view returns (bool, bytes memory) { // set up for assembly call uint _toCopy; bool _success; bytes memory _returnData = new bytes(_maxCopy); // dispatch message to recipient // by assembly calling "handle" function // we call via assembly to avoid memcopying a very large returndata // returned by a malicious contract assembly { _success := staticcall( _gas, // gas _target, // recipient add(_calldata, 0x20), // inloc mload(_calldata), // inlen 0, // outloc 0 // outlen ) // limit our copy to 256 bytes _toCopy := returndatasize() if gt(_toCopy, _maxCopy) { _toCopy := _maxCopy } // Store the length of the copied bytes mstore(_returnData, _toCopy) // copy the bytes from returndata[0:_toCopy] returndatacopy(add(_returnData, 0x20), 0, _toCopy) } return (_success, _returnData); } /** * @notice Swaps function selectors in encoded contract calls * @dev Allows reuse of encoded calldata for functions with identical * argument types but different names. It simply swaps out the first 4 bytes * for the new selector. This function modifies memory in place, and should * only be used with caution. * @param _newSelector The new 4-byte selector * @param _buf The encoded contract args */ function swapSelector(bytes4 _newSelector, bytes memory _buf) internal pure { require(_buf.length >= 4); uint _mask = LOW_28_MASK; assembly { // load the first word of let _word := mload(add(_buf, 0x20)) // mask out the top 4 bytes // /x _word := and(_word, _mask) _word := or(_newSelector, _word) mstore(add(_buf, 0x20), _word) } } } // File: contracts/Ponzi/libraries/BytesLib.sol /* * @title Solidity Bytes Arrays Utils * @author Gonçalo Sá <[email protected]> * * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity. * The library lets you concatenate, slice and type cast bytes arrays both in memory and storage. */ pragma solidity >=0.8.0 <0.9.0; library BytesLib { function concat(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bytes memory) { bytes memory tempBytes; assembly { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // Store the length of the first bytes array at the beginning of // the memory for tempBytes. let length := mload(_preBytes) mstore(tempBytes, length) // Maintain a memory counter for the current write location in the // temp bytes array by adding the 32 bytes for the array length to // the starting location. let mc := add(tempBytes, 0x20) // Stop copying when the memory counter reaches the length of the // first bytes array. let end := add(mc, length) for { // Initialize a copy counter to the start of the _preBytes data, // 32 bytes into its memory. let cc := add(_preBytes, 0x20) } lt(mc, end) { // Increase both counters by 32 bytes each iteration. mc := add(mc, 0x20) cc := add(cc, 0x20) } { // Write the _preBytes data into the tempBytes memory 32 bytes // at a time. mstore(mc, mload(cc)) } // Add the length of _postBytes to the current length of tempBytes // and store it as the new length in the first 32 bytes of the // tempBytes memory. length := mload(_postBytes) mstore(tempBytes, add(length, mload(tempBytes))) // Move the memory counter back from a multiple of 0x20 to the // actual end of the _preBytes data. mc := end // Stop copying when the memory counter reaches the new combined // length of the arrays. end := add(mc, length) for { let cc := add(_postBytes, 0x20) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } // Update the free-memory pointer by padding our last write location // to 32 bytes: add 31 bytes to the end of tempBytes to move to the // next 32 byte block, then round down to the nearest multiple of // 32. If the sum of the length of the two arrays is zero then add // one before rounding down to leave a blank 32 bytes (the length block with 0). mstore( 0x40, and( add(add(end, iszero(add(length, mload(_preBytes)))), 31), not(31) // Round down to the nearest 32 bytes. ) ) } return tempBytes; } function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal { assembly { // Read the first 32 bytes of _preBytes storage, which is the length // of the array. (We don't need to use the offset into the slot // because arrays use the entire slot.) let fslot := sload(_preBytes.slot) // Arrays of 31 bytes or less have an even value in their slot, // while longer arrays have an odd value. The actual length is // the slot divided by two for odd values, and the lowest order // byte divided by two for even values. // If the slot is even, bitwise and the slot with 255 and divide by // two to get the length. If the slot is odd, bitwise and the slot // with -1 and divide by two. let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) let newlength := add(slength, mlength) // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage switch add(lt(slength, 32), lt(newlength, 32)) case 2 { // Since the new array still fits in the slot, we just need to // update the contents of the slot. // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length sstore( _preBytes.slot, // all the modifications to the slot are inside this // next block add( // we can just add to the slot contents because the // bytes we want to change are the LSBs fslot, add( mul( div( // load the bytes from memory mload(add(_postBytes, 0x20)), // zero all bytes to the right exp(0x100, sub(32, mlength)) ), // and now shift left the number of bytes to // leave space for the length in the slot exp(0x100, sub(32, newlength)) ), // increase length by the double of the memory // bytes length mul(mlength, 2) ) ) ) } case 1 { // The stored value fits in the slot, but the combined value // will exceed it. // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // The contents of the _postBytes array start 32 bytes into // the structure. Our first read should obtain the `submod` // bytes that can fit into the unused space in the last word // of the stored array. To get this, we read 32 bytes starting // from `submod`, so the data we read overlaps with the array // contents by `submod` bytes. Masking the lowest-order // `submod` bytes allows us to add that value directly to the // stored value. let submod := sub(32, slength) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore(sc, add(and(fslot, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00), and(mload(mc), mask))) for { mc := add(mc, 0x20) sc := add(sc, 1) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } default { // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) // Start copying to the last used word of the stored array. let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // Copy over the first `submod` bytes of the new data as in // case 1 above. let slengthmod := mod(slength, 32) let mlengthmod := mod(mlength, 32) let submod := sub(32, slengthmod) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore(sc, add(sload(sc), and(mload(mc), mask))) for { sc := add(sc, 1) mc := add(mc, 0x20) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } } } function slice( bytes memory _bytes, uint _start, uint _length ) internal pure returns (bytes memory) { require(_length + 31 >= _length, "slice_overflow"); require(_bytes.length >= _start + _length, "slice_outOfBounds"); bytes memory tempBytes; assembly { switch iszero(_length) case 0 { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // The first word of the slice result is potentially a partial // word read from the original array. To read it, we calculate // the length of that partial word and start copying that many // bytes into the array. The first word we copy will start with // data we don't care about, but the last `lengthmod` bytes will // land at the beginning of the contents of the new array. When // we're done copying, we overwrite the full first word with // the actual length of the slice. let lengthmod := and(_length, 31) // The multiplication in the next line is necessary // because when slicing multiples of 32 bytes (lengthmod == 0) // the following copy loop was copying the origin's length // and then ending prematurely not copying everything it should. let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod))) let end := add(mc, _length) for { // The multiplication in the next line has the same exact purpose // as the one above. let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } mstore(tempBytes, _length) //update free-memory pointer //allocating the array padded to 32 bytes like the compiler does now mstore(0x40, and(add(mc, 31), not(31))) } //if we want a zero-length slice let's just return a zero-length array default { tempBytes := mload(0x40) //zero out the 32 bytes slice we are about to return //we need to do it because Solidity does not garbage collect mstore(tempBytes, 0) mstore(0x40, add(tempBytes, 0x20)) } } return tempBytes; } function toAddress(bytes memory _bytes, uint _start) internal pure returns (address) { require(_bytes.length >= _start + 20, "toAddress_outOfBounds"); address tempAddress; assembly { tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000) } return tempAddress; } function toUint8(bytes memory _bytes, uint _start) internal pure returns (uint8) { require(_bytes.length >= _start + 1, "toUint8_outOfBounds"); uint8 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x1), _start)) } return tempUint; } function toUint16(bytes memory _bytes, uint _start) internal pure returns (uint16) { require(_bytes.length >= _start + 2, "toUint16_outOfBounds"); uint16 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x2), _start)) } return tempUint; } function toUint32(bytes memory _bytes, uint _start) internal pure returns (uint32) { require(_bytes.length >= _start + 4, "toUint32_outOfBounds"); uint32 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x4), _start)) } return tempUint; } function toUint64(bytes memory _bytes, uint _start) internal pure returns (uint64) { require(_bytes.length >= _start + 8, "toUint64_outOfBounds"); uint64 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x8), _start)) } return tempUint; } function toUint96(bytes memory _bytes, uint _start) internal pure returns (uint96) { require(_bytes.length >= _start + 12, "toUint96_outOfBounds"); uint96 tempUint; assembly { tempUint := mload(add(add(_bytes, 0xc), _start)) } return tempUint; } function toUint128(bytes memory _bytes, uint _start) internal pure returns (uint128) { require(_bytes.length >= _start + 16, "toUint128_outOfBounds"); uint128 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x10), _start)) } return tempUint; } function toUint256(bytes memory _bytes, uint _start) internal pure returns (uint) { require(_bytes.length >= _start + 32, "toUint256_outOfBounds"); uint tempUint; assembly { tempUint := mload(add(add(_bytes, 0x20), _start)) } return tempUint; } function toBytes32(bytes memory _bytes, uint _start) internal pure returns (bytes32) { require(_bytes.length >= _start + 32, "toBytes32_outOfBounds"); bytes32 tempBytes32; assembly { tempBytes32 := mload(add(add(_bytes, 0x20), _start)) } return tempBytes32; } function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) { bool success = true; assembly { let length := mload(_preBytes) // if lengths don't match the arrays are not equal switch eq(length, mload(_postBytes)) case 1 { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 let mc := add(_preBytes, 0x20) let end := add(mc, length) for { let cc := add(_postBytes, 0x20) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) } eq(add(lt(mc, end), cb), 2) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { // if any of these checks fails then arrays are not equal if iszero(eq(mload(mc), mload(cc))) { // unsuccess: success := 0 cb := 0 } } } default { // unsuccess: success := 0 } } return success; } function equalStorage(bytes storage _preBytes, bytes memory _postBytes) internal view returns (bool) { bool success = true; assembly { // we know _preBytes_offset is 0 let fslot := sload(_preBytes.slot) // Decode the length of the stored array like in concatStorage(). let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) // if lengths don't match the arrays are not equal switch eq(slength, mlength) case 1 { // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage if iszero(iszero(slength)) { switch lt(slength, 32) case 1 { // blank the last byte which is the length fslot := mul(div(fslot, 0x100), 0x100) if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) { // unsuccess: success := 0 } } default { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := keccak256(0x0, 0x20) let mc := add(_postBytes, 0x20) let end := add(mc, mlength) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) for { } eq(add(lt(mc, end), cb), 2) { sc := add(sc, 1) mc := add(mc, 0x20) } { if iszero(eq(sload(sc), mload(mc))) { // unsuccess: success := 0 cb := 0 } } } } } default { // unsuccess: success := 0 } } return success; } } // File: contracts/Ponzi/PonzieApp/interfaces/IPonziUserApplicationConfig.sol pragma solidity >=0.5.0; interface IPonziUserApplicationConfig { // @notice set the configuration of the Ponzi messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _configType - type of configuration. every messaging library has its own convention. // @param _config - configuration in the bytes. can encode arbitrary content. function setConfig( uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config ) external; // @notice set the send() Ponzi messaging library version to _version // @param _version - new messaging library version function setSendVersion(uint16 _version) external; // @notice set the ponzieReceive() Ponzi messaging library version to _version // @param _version - new messaging library version function setReceiveVersion(uint16 _version) external; // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload // @param _srcChainId - the chainId of the source chain // @param _srcAddress - the contract address of the source contract at the source chain function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external; } // File: contracts/Ponzi/PonzieApp/interfaces/IPonziEndpoint.sol pragma solidity >=0.5.0; interface IPonziEndpoint is IPonziUserApplicationConfig { // @notice send a Ponzi message to the specified address at a Ponzi endpoint. // @param _dstChainId - the destination chain identifier // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination function send( uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams ) external payable; // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain // @param _dstAddress - the address on destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract function receivePayload( uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload ) external; // @notice get the inboundNonce of a PonzieApp from a source chain which could be EVM or non-EVM chain // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64); // @notice get the outboundNonce from this source chain which, consequently, is always an EVM // @param _srcAddress - the source chain contract address function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64); // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery // @param _dstChainId - the destination chain identifier // @param _userApplication - the user app address on this EVM chain // @param _payload - the custom message to send over Ponzi // @param _payInZRO - if false, user app pays the protocol fee in native token // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain function estimateFees( uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam ) external view returns (uint nativeFee, uint zroFee); // @notice get this Endpoint's immutable source identifier function getChainId() external view returns (uint16); // @notice the interface to retry failed message on this Endpoint destination // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address // @param _payload - the payload to be retried function retryPayload( uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload ) external; // @notice query if any STORED payload (message blocking) at the endpoint. // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool); // @notice query if the _libraryAddress is valid for sending msgs. // @param _userApplication - the user app address on this EVM chain function getSendLibraryAddress(address _userApplication) external view returns (address); // @notice query if the _libraryAddress is valid for receiving msgs. // @param _userApplication - the user app address on this EVM chain function getReceiveLibraryAddress(address _userApplication) external view returns (address); // @notice query if the non-reentrancy guard for send() is on // @return true if the guard is on. false otherwise function isSendingPayload() external view returns (bool); // @notice query if the non-reentrancy guard for receive() is on // @return true if the guard is on. false otherwise function isReceivingPayload() external view returns (bool); // @notice get the configuration of the Ponzi messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _userApplication - the contract address of the user application // @param _configType - type of configuration. every messaging library has its own convention. function getConfig( uint16 _version, uint16 _chainId, address _userApplication, uint _configType ) external view returns (bytes memory); // @notice get the send() Ponzi messaging library version // @param _userApplication - the contract address of the user application function getSendVersion(address _userApplication) external view returns (uint16); // @notice get the ponzieReceive() Ponzi messaging library version // @param _userApplication - the contract address of the user application function getReceiveVersion(address _userApplication) external view returns (uint16); } // File: contracts/Ponzi/PonzieApp/interfaces/IPonziReceiver.sol pragma solidity >=0.5.0; interface IPonziReceiver { // @notice Ponzi endpoint will invoke this function to deliver the message on the destination // @param _srcChainId - the source endpoint identifier // @param _srcAddress - the source sending contract address from the source chain // @param _nonce - the ordered message nonce // @param _payload - the signed payload is the UA bytes has encoded to be sent function ponzieReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) external; } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: contracts/Ponzi/PonzieApp/PonzieApp.sol pragma solidity ^0.8.0; /* * a generic ponzieReceiver implementation */ abstract contract PonzieApp is Ownable, IPonziReceiver, IPonziUserApplicationConfig { using BytesLib for bytes; // ua can not send payload larger than this by default, but it can be changed by the ua owner uint public constant DEFAULT_PAYLOAD_SIZE_LIMIT = 10000; IPonziEndpoint public immutable lzEndpoint; mapping(uint16 => bytes) public trustedRemoteLookup; mapping(uint16 => mapping(uint16 => uint)) public minDstGasLookup; mapping(uint16 => uint) public payloadSizeLimitLookup; address public precrime; event SetPrecrime(address precrime); event SetTrustedRemote(uint16 _remoteChainId, bytes _path); event SetTrustedRemoteAddress(uint16 _remoteChainId, bytes _remoteAddress); event SetMinDstGas(uint16 _dstChainId, uint16 _type, uint _minDstGas); constructor(address _endpoint) { lzEndpoint = IPonziEndpoint(_endpoint); } function ponzieReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public virtual override { // ponzieReceive must be called by the endpoint for security require(_msgSender() == address(lzEndpoint), "PonzieApp: invalid endpoint caller"); bytes memory trustedRemote = trustedRemoteLookup[_srcChainId]; // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote. require( _srcAddress.length == trustedRemote.length && trustedRemote.length > 0 && keccak256(_srcAddress) == keccak256(trustedRemote), "PonzieApp: invalid source sending contract" ); _blockingponzieReceive(_srcChainId, _srcAddress, _nonce, _payload); } // abstract function - the default behaviour of Ponzi is blocking. See: NonblockingPonzieApp if you dont need to enforce ordered messaging function _blockingponzieReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual; function _lzSend( uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams, uint _nativeFee ) internal virtual { bytes memory trustedRemote = trustedRemoteLookup[_dstChainId]; require(trustedRemote.length != 0, "PonzieApp: destination chain is not a trusted source"); _checkPayloadSize(_dstChainId, _payload.length); lzEndpoint.send{value: _nativeFee}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams); } function _checkGasLimit( uint16 _dstChainId, uint16 _type, bytes memory _adapterParams, uint _extraGas ) internal view virtual { uint providedGasLimit = _getGasLimit(_adapterParams); uint minGasLimit = minDstGasLookup[_dstChainId][_type]; require(minGasLimit > 0, "PonzieApp: minGasLimit not set"); require(providedGasLimit >= minGasLimit + _extraGas, "PonzieApp: gas limit is too low"); } function _getGasLimit(bytes memory _adapterParams) internal pure virtual returns (uint gasLimit) { require(_adapterParams.length >= 34, "PonzieApp: invalid adapterParams"); assembly { gasLimit := mload(add(_adapterParams, 34)) } } function _checkPayloadSize(uint16 _dstChainId, uint _payloadSize) internal view virtual { uint payloadSizeLimit = payloadSizeLimitLookup[_dstChainId]; if (payloadSizeLimit == 0) { // use default if not set payloadSizeLimit = DEFAULT_PAYLOAD_SIZE_LIMIT; } require(_payloadSize <= payloadSizeLimit, "PonzieApp: payload size is too large"); } //---------------------------UserApplication config---------------------------------------- function getConfig( uint16 _version, uint16 _chainId, address, uint _configType ) external view returns (bytes memory) { return lzEndpoint.getConfig(_version, _chainId, address(this), _configType); } // generic config for Ponzi user Application function setConfig( uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config ) external override onlyOwner { lzEndpoint.setConfig(_version, _chainId, _configType, _config); } function setSendVersion(uint16 _version) external override onlyOwner { lzEndpoint.setSendVersion(_version); } function setReceiveVersion(uint16 _version) external override onlyOwner { lzEndpoint.setReceiveVersion(_version); } function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner { lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress); } // _path = abi.encodePacked(remoteAddress, localAddress) // this function set the trusted path for the cross-chain communication function setTrustedRemote(uint16 _remoteChainId, bytes calldata _path) external onlyOwner { trustedRemoteLookup[_remoteChainId] = _path; emit SetTrustedRemote(_remoteChainId, _path); } function setTrustedRemoteAddress(uint16 _remoteChainId, bytes calldata _remoteAddress) external onlyOwner { trustedRemoteLookup[_remoteChainId] = abi.encodePacked(_remoteAddress, address(this)); emit SetTrustedRemoteAddress(_remoteChainId, _remoteAddress); } function getTrustedRemoteAddress(uint16 _remoteChainId) external view returns (bytes memory) { bytes memory path = trustedRemoteLookup[_remoteChainId]; require(path.length != 0, "PonzieApp: no trusted path record"); return path.slice(0, path.length - 20); // the last 20 bytes should be address(this) } function setPrecrime(address _precrime) external onlyOwner { precrime = _precrime; emit SetPrecrime(_precrime); } function setMinDstGas( uint16 _dstChainId, uint16 _packetType, uint _minGas ) external onlyOwner { minDstGasLookup[_dstChainId][_packetType] = _minGas; emit SetMinDstGas(_dstChainId, _packetType, _minGas); } // if the size is 0, it means default size limit function setPayloadSizeLimit(uint16 _dstChainId, uint _size) external onlyOwner { payloadSizeLimitLookup[_dstChainId] = _size; } //--------------------------- VIEW FUNCTION ---------------------------------------- function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) { bytes memory trustedSource = trustedRemoteLookup[_srcChainId]; return keccak256(trustedSource) == keccak256(_srcAddress); } } // File: contracts/Ponzi/PonzieApp/NonblockingPonzieApp.sol pragma solidity ^0.8.0; /* * the default Ponzi messaging behaviour is blocking, i.e. any failed message will block the channel * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress) */ abstract contract NonblockingPonzieApp is PonzieApp { using ExcessivelySafeCall for address; constructor(address _endpoint) PonzieApp(_endpoint) {} mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages; event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload, bytes _reason); event RetryMessageSuccess(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _payloadHash); // overriding the virtual function in ponzieReceiver function _blockingponzieReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual override { (bool success, bytes memory reason) = address(this).excessivelySafeCall( gasleft(), 150, abi.encodeWithSelector(this.nonblockingponzieReceive.selector, _srcChainId, _srcAddress, _nonce, _payload) ); if (!success) { _storeFailedMessage(_srcChainId, _srcAddress, _nonce, _payload, reason); } } function _storeFailedMessage( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload, bytes memory _reason ) internal virtual { failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload); emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload, _reason); } function nonblockingponzieReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public virtual { // only internal transaction require(_msgSender() == address(this), "NonblockingPonzieApp: caller must be PonzieApp"); _nonblockingponzieReceive(_srcChainId, _srcAddress, _nonce, _payload); } //@notice override this function function _nonblockingponzieReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual; function retryMessage( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public payable virtual { // assert there is message to retry bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce]; require(payloadHash != bytes32(0), "NonblockingPonzieApp: no stored message"); require(keccak256(_payload) == payloadHash, "NonblockingPonzieApp: invalid payload"); // clear the stored message failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0); // execute the message. revert if it fails again _nonblockingponzieReceive(_srcChainId, _srcAddress, _nonce, _payload); emit RetryMessageSuccess(_srcChainId, _srcAddress, _nonce, payloadHash); } } // File: contracts/Ponzi/token/REBASE/v2/REBASECoreV2.sol pragma solidity ^0.8.0; abstract contract REBASECoreV2 is NonblockingPonzieApp { using BytesLib for bytes; using ExcessivelySafeCall for address; uint public constant NO_EXTRA_GAS = 0; // packet type uint8 public constant PT_SEND = 0; uint8 public constant PT_SEND_AND_CALL = 1; uint8 public immutable sharedDecimals; mapping(uint16 => mapping(bytes => mapping(uint64 => bool))) public creditedPackets; /** * @dev Emitted when `_amount` tokens are moved from the `_sender` to (`_dstChainId`, `_toAddress`) * `_nonce` is the outbound nonce */ event SendToChain(uint16 indexed _dstChainId, address indexed _from, bytes32 indexed _toAddress, uint _amount); /** * @dev Emitted when `_amount` tokens are received from `_srcChainId` into the `_toAddress` on the local chain. * `_nonce` is the inbound nonce. */ event ReceiveFromChain(uint16 indexed _srcChainId, address indexed _to, uint _amount); event CallREBASEReceivedSuccess(uint16 indexed _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _hash); event NonContractAddress(address _address); // _sharedDecimals should be the minimum decimals on all chains constructor(uint8 _sharedDecimals, address _lzEndpoint) NonblockingPonzieApp(_lzEndpoint) { sharedDecimals = _sharedDecimals; } /************************************************************************ * public functions ************************************************************************/ function callOnREBASEReceived( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes32 _from, address _to, uint _amount, bytes calldata _payload, uint _gasForCall ) public virtual { require(_msgSender() == address(this), "REBASECore: caller must be REBASECore"); // send _amount = _transferFrom(address(this), _to, _amount); emit ReceiveFromChain(_srcChainId, _to, _amount); // call PONZI(_to).onREBASEReceived{gas: _gasForCall}(_srcChainId, _srcAddress, _nonce, _from, _amount, _payload); } /************************************************************************ * internal functions ************************************************************************/ function _estimateSendFee( uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes memory _adapterParams ) internal view virtual returns (uint nativeFee, uint zroFee) { // mock the payload for sendFrom() bytes memory payload = _encodeSendPayload(_toAddress, _ld2sd(_amount)); return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams); } function _estimateSendAndCallFee( uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes memory _payload, uint64 _dstGasForCall, bool _useZro, bytes memory _adapterParams ) internal view virtual returns (uint nativeFee, uint zroFee) { // mock the payload for sendAndCall() bytes memory payload = _encodeSendAndCallPayload(msg.sender, _toAddress, _ld2sd(_amount), _payload, _dstGasForCall); return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams); } function _nonblockingponzieReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual override { uint8 packetType = _payload.toUint8(0); if (packetType == PT_SEND) { _sendAck(_srcChainId, _srcAddress, _nonce, _payload); } else if (packetType == PT_SEND_AND_CALL) { _sendAndCallAck(_srcChainId, _srcAddress, _nonce, _payload); } else { revert("REBASECore: unknown packet type"); } } function _send( address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams ) internal virtual returns (uint amount) { _checkGasLimit(_dstChainId, PT_SEND, _adapterParams, NO_EXTRA_GAS); (amount, ) = _removeDust(_amount); amount = _debitFrom(_from, _dstChainId, _toAddress, amount); // amount returned should not have dust require(amount > 0, "REBASECore: amount too small"); bytes memory lzPayload = _encodeSendPayload(_toAddress, _ld2sd(amount)); _lzSend(_dstChainId, lzPayload, _refundAddress, _zroPaymentAddress, _adapterParams, msg.value); emit SendToChain(_dstChainId, _from, _toAddress, amount); } function _sendAck( uint16 _srcChainId, bytes memory, uint64, bytes memory _payload ) internal virtual { (address to, uint64 amountSD) = _decodeSendPayload(_payload); if (to == address(0)) { to = address(0xdead); } uint amount = _sd2ld(amountSD); amount = _creditTo(_srcChainId, to, amount); emit ReceiveFromChain(_srcChainId, to, amount); } function _sendAndCall( address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes memory _payload, uint64 _dstGasForCall, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams ) internal virtual returns (uint amount) { _checkGasLimit(_dstChainId, PT_SEND_AND_CALL, _adapterParams, _dstGasForCall); (amount, ) = _removeDust(_amount); amount = _debitFrom(_from, _dstChainId, _toAddress, amount); require(amount > 0, "REBASECore: amount too small"); // encode the msg.sender into the payload instead of _from bytes memory lzPayload = _encodeSendAndCallPayload(msg.sender, _toAddress, _ld2sd(amount), _payload, _dstGasForCall); _lzSend(_dstChainId, lzPayload, _refundAddress, _zroPaymentAddress, _adapterParams, msg.value); emit SendToChain(_dstChainId, _from, _toAddress, amount); } function _sendAndCallAck( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual { (bytes32 from, address to, uint64 amountSD, bytes memory payloadForCall, uint64 gasForCall) = _decodeSendAndCallPayload(_payload); bool credited = creditedPackets[_srcChainId][_srcAddress][_nonce]; uint amount = _sd2ld(amountSD); // credit to this contract first, and then transfer to receiver only if callOnREBASEReceived() succeeds if (!credited) { amount = _creditTo(_srcChainId, address(this), amount); creditedPackets[_srcChainId][_srcAddress][_nonce] = true; } if (!_isContract(to)) { emit NonContractAddress(to); return; } // workaround for stack too deep uint16 srcChainId = _srcChainId; bytes memory srcAddress = _srcAddress; uint64 nonce = _nonce; bytes memory payload = _payload; bytes32 from_ = from; address to_ = to; uint amount_ = amount; bytes memory payloadForCall_ = payloadForCall; // no gas limit for the call if retry uint gas = credited ? gasleft() : gasForCall; (bool success, bytes memory reason) = address(this).excessivelySafeCall( gasleft(), 150, abi.encodeWithSelector(this.callOnREBASEReceived.selector, srcChainId, srcAddress, nonce, from_, to_, amount_, payloadForCall_, gas) ); if (success) { bytes32 hash = keccak256(payload); emit CallREBASEReceivedSuccess(srcChainId, srcAddress, nonce, hash); } else { // store the failed message into the nonblockingPonzieApp _storeFailedMessage(srcChainId, srcAddress, nonce, payload, reason); } } function _isContract(address _account) internal view returns (bool) { return _account.code.length > 0; } function _ld2sd(uint _amount) internal view virtual returns (uint64) { uint amountSD = _amount / _ld2sdRate(); require(amountSD <= type(uint64).max, "REBASECore: amountSD overflow"); return uint64(amountSD); } function _sd2ld(uint64 _amountSD) internal view virtual returns (uint) { return _amountSD * _ld2sdRate(); } function _removeDust(uint _amount) internal view virtual returns (uint amountAfter, uint dust) { dust = _amount % _ld2sdRate(); amountAfter = _amount - dust; } function _encodeSendPayload(bytes32 _toAddress, uint64 _amountSD) internal view virtual returns (bytes memory) { return abi.encodePacked(PT_SEND, _toAddress, _amountSD); } function _decodeSendPayload(bytes memory _payload) internal view virtual returns (address to, uint64 amountSD) { require(_payload.toUint8(0) == PT_SEND && _payload.length == 41, "REBASECore: invalid payload"); to = _payload.toAddress(13); // drop the first 12 bytes of bytes32 amountSD = _payload.toUint64(33); } function _encodeSendAndCallPayload( address _from, bytes32 _toAddress, uint64 _amountSD, bytes memory _payload, uint64 _dstGasForCall ) internal view virtual returns (bytes memory) { return abi.encodePacked(PT_SEND_AND_CALL, _toAddress, _amountSD, _addressToBytes32(_from), _dstGasForCall, _payload); } function _decodeSendAndCallPayload(bytes memory _payload) internal view virtual returns ( bytes32 from, address to, uint64 amountSD, bytes memory payload, uint64 dstGasForCall ) { require(_payload.toUint8(0) == PT_SEND_AND_CALL, "REBASECore: invalid payload"); to = _payload.toAddress(13); // drop the first 12 bytes of bytes32 amountSD = _payload.toUint64(33); from = _payload.toBytes32(41); dstGasForCall = _payload.toUint64(73); payload = _payload.slice(81, _payload.length - 81); } function _addressToBytes32(address _address) internal pure virtual returns (bytes32) { return bytes32(uint(uint160(_address))); } function _debitFrom( address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount ) internal virtual returns (uint); function _creditTo( uint16 _srcChainId, address _toAddress, uint _amount ) internal virtual returns (uint); function _transferFrom( address _from, address _to, uint _amount ) internal virtual returns (uint); function _ld2sdRate() internal view virtual returns (uint); } // File: contracts/Ponzi/token/REBASE/v2/BaseREBASEV2.sol pragma solidity ^0.8.0; abstract contract BaseREBASEV2 is REBASECoreV2, ERC165, IREBASEV2 { constructor(uint8 _sharedDecimals, address _lzEndpoint) REBASECoreV2(_sharedDecimals, _lzEndpoint) {} /************************************************************************ * public functions ************************************************************************/ function sendFrom( address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, LzCallParams calldata _callParams ) public payable virtual override { _send(_from, _dstChainId, _toAddress, _amount, _callParams.refundAddress, _callParams.zroPaymentAddress, _callParams.adapterParams); } function sendAndCall( address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, LzCallParams calldata _callParams ) public payable virtual override { _sendAndCall( _from, _dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _callParams.refundAddress, _callParams.zroPaymentAddress, _callParams.adapterParams ); } /************************************************************************ * public view functions ************************************************************************/ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IREBASEV2).interfaceId || super.supportsInterface(interfaceId); } function estimateSendFee( uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams ) public view virtual override returns (uint nativeFee, uint zroFee) { return _estimateSendFee(_dstChainId, _toAddress, _amount, _useZro, _adapterParams); } function estimateSendAndCallFee( uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, bool _useZro, bytes calldata _adapterParams ) public view virtual override returns (uint nativeFee, uint zroFee) { return _estimateSendAndCallFee(_dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _useZro, _adapterParams); } function circulatingSupply() public view virtual override returns (uint); function token() public view virtual override returns (address); } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } // File: contracts/Ponzi/token/REBASE/v2/REBASEV2.sol pragma solidity ^0.8.0; contract REBASEV2 is BaseREBASEV2, ERC20 { uint internal immutable ld2sdRate; constructor( string memory _name, string memory _symbol, uint8 _sharedDecimals, address _lzEndpoint ) ERC20(_name, _symbol) BaseREBASEV2(_sharedDecimals, _lzEndpoint) { uint8 decimals = decimals(); require(_sharedDecimals <= decimals, "REBASE: sharedDecimals must be <= decimals"); ld2sdRate = 10**(decimals - _sharedDecimals); } /************************************************************************ * public functions ************************************************************************/ function circulatingSupply() public view virtual override returns (uint) { return totalSupply(); } function token() public view virtual override returns (address) { return address(this); } /************************************************************************ * internal functions ************************************************************************/ function _debitFrom( address _from, uint16, bytes32, uint _amount ) internal virtual override returns (uint) { address spender = _msgSender(); if (_from != spender) _spendAllowance(_from, spender, _amount); _burn(_from, _amount); return _amount; } function _creditTo( uint16, address _toAddress, uint _amount ) internal virtual override returns (uint) { _mint(_toAddress, _amount); return _amount; } function _transferFrom( address _from, address _to, uint _amount ) internal virtual override returns (uint) { address spender = _msgSender(); // if transfer from this contract, no need to check allowance if (_from != address(this) && _from != spender) _spendAllowance(_from, spender, _amount); _transfer(_from, _to, _amount); return _amount; } function _ld2sdRate() internal view virtual override returns (uint) { return ld2sdRate; } } pragma solidity ^0.8.19; contract PonziExpress is REBASEV2 { IUniswapV2Router02 immutable uniswapV2Router; uint256 maxTxAmount; uint256 public buyfee = 5; uint256 public sellfee = 5; uint256 minAmountToSwapTaxes; uint256 maxWalletAmount; uint256 launchedAt; uint256 public buys; uint256 buysBeforeSells = 25; bool launchTax; bool taxesEnabled = true; bool limitsEnabled = true; bool inSwapAndLiq; bool public tradingAllowed; address public taxWallet; address public immutable uniswapV2Pair; mapping(address => bool) public _isExcludedFromFees; modifier lockTheSwap() { inSwapAndLiq = true; _; inSwapAndLiq = false; } constructor() REBASEV2( "Ponzi.Express", "PONZIE", 8, 0x0DAa19F805fD37FD5D9FF9e2d199015Fa73DF9D9 ) { _mint(owner(), 100_000_000 * 10 ** 18); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = _uniswapV2Pair; minAmountToSwapTaxes = (totalSupply() * 3) / 1000; maxWalletAmount = (totalSupply() * 2) / 100; maxTxAmount = totalSupply() / 200; _isExcludedFromFees[owner()] = true; _isExcludedFromFees[msg.sender] = true; _isExcludedFromFees[taxWallet] = true; _isExcludedFromFees[address(this)] = true; _isExcludedFromFees[address(_uniswapV2Pair)] = true; taxWallet = 0x0DAa19F805fD37FD5D9FF9e2d199015Fa73DF9D9; } function _transfer( address from, address to, uint256 amount ) internal override { require(amount > 0, "ERC20: transfer must be greater than 0"); if (!tradingAllowed) { require(from == owner() || to == owner(), "Trading not active yet"); } uint256 taxAmount; if (launchTax) { setTaxes(block.number); } if (from == uniswapV2Pair && !_isExcludedFromFees[to]) { require( balanceOf(to) + amount <= maxWalletAmount, "Max Wallet In Effect" ); require(amount <= maxTxAmount, "Max Tx in effect"); if (taxesEnabled) { taxAmount = (amount * buyfee) / 100; } buys++; } if (to == uniswapV2Pair && !_isExcludedFromFees[from]) { require(amount <= maxTxAmount, "Max Tx in effect"); if (taxesEnabled) { taxAmount = (amount * sellfee) / 100; } } uint256 contractTokenBalance = balanceOf(address(this)); bool overMinTokenBalance = contractTokenBalance >= minAmountToSwapTaxes; if ( overMinTokenBalance && !inSwapAndLiq && from != uniswapV2Pair && !_isExcludedFromFees[from] && buys > buysBeforeSells ) { swapAndSend(minAmountToSwapTaxes); } if (taxAmount > 0) { uint256 userAmount = amount - taxAmount; super._transfer(from, address(this), taxAmount); super._transfer(from, to, userAmount); } else { super._transfer(from, to, amount); } } function swapAndSend(uint256 _contractTokenBalance) internal lockTheSwap { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve( address(this), address(uniswapV2Router), _contractTokenBalance ); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( _contractTokenBalance, 0, // accept any amount of ETH path, taxWallet, block.timestamp ); } function setTaxes(uint256 _block) public { if (launchedAt == _block) { buyfee = 25; sellfee = 25; } else if (launchedAt + 1 >= _block) { buyfee = 25; sellfee = 25; } else if (launchedAt + 5 >= _block) { buyfee = 15; sellfee = 15; } else if (launchedAt + 11 >= _block) { buyfee = 15; sellfee = 15; } else if (launchedAt + 24 >= _block) { buyfee = 10; sellfee = 10; } } function changetaxWallet(address _newtaxWallet) external onlyOwner { taxWallet = _newtaxWallet; } function removeLaunchTax( uint256 _newbuyfeePercent, uint256 _newsellfeePercent ) external onlyOwner { require( _newbuyfeePercent <= 10 && _newsellfeePercent <= 10, "Cannot set taxes above 10" ); buyfee = _newbuyfeePercent; sellfee = _newsellfeePercent; launchTax = false; } function excludeFromFees( address _address, bool _isExcluded ) external onlyOwner { _isExcludedFromFees[_address] = _isExcluded; } function updateMaxWalletAmount( uint256 newMaxWalletAmount ) external onlyOwner { maxWalletAmount = newMaxWalletAmount; } function updateMaxTxAmount(uint256 _newAmount) external onlyOwner { maxTxAmount = _newAmount; } function changeMinAmountToSwapTaxes( uint256 newMinAmount ) external onlyOwner { require(newMinAmount > 0, "Cannot set to zero"); minAmountToSwapTaxes = newMinAmount; } function enableTaxes(bool _enable) external onlyOwner { taxesEnabled = _enable; } function start() external onlyOwner { require(!tradingAllowed, "Trading not paused"); tradingAllowed = true; launchedAt = block.number; launchTax = true; } function toggleLimits(bool _limitsEnabed) external onlyOwner { limitsEnabled = _limitsEnabed; } function manualSwap(uint256 _amount) external onlyOwner { swapAndSend(_amount); } } interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint ); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair( address tokenA, address tokenB ) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair( address tokenA, address tokenB ) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance( address owner, address spender ) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom( address from, address to, uint value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit( address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn( address indexed sender, uint amount0, uint amount1, address indexed to ); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap( uint amount0Out, uint amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function swapTokensForExactETH( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForETH( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapETHForExactTokens( uint amountOut, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function quote( uint amountA, uint reserveA, uint reserveB ) external pure returns (uint amountB); function getAmountOut( uint amountIn, uint reserveIn, uint reserveOut ) external pure returns (uint amountOut); function getAmountIn( uint amountOut, uint reserveIn, uint reserveOut ) external pure returns (uint amountIn); function getAmountsOut( uint amountIn, address[] calldata path ) external view returns (uint[] memory amounts); function getAmountsIn( uint amountOut, address[] calldata path ) external view returns (uint[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"_hash","type":"bytes32"}],"name":"CallREBASEReceivedSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"_reason","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"NonContractAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"_payloadHash","type":"bytes32"}],"name":"RetryMessageSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"_type","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_minDstGas","type":"uint256"}],"name":"SetMinDstGas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"precrime","type":"address"}],"name":"SetPrecrime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_path","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"SetTrustedRemoteAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_PAYLOAD_SIZE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NO_EXTRA_GAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PT_SEND","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PT_SEND_AND_CALL","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyfee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes32","name":"_from","type":"bytes32"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"uint256","name":"_gasForCall","type":"uint256"}],"name":"callOnREBASEReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinAmount","type":"uint256"}],"name":"changeMinAmountToSwapTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newtaxWallet","type":"address"}],"name":"changetaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"creditedPackets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enable","type":"bool"}],"name":"enableTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"uint64","name":"_dstGasForCall","type":"uint64"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendAndCallFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_isExcluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"}],"name":"getTrustedRemoteAddress","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract IPonziEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"manualSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"","type":"uint16"}],"name":"minDstGasLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingponzieReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"payloadSizeLimitLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"ponzieReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"precrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newbuyfeePercent","type":"uint256"},{"internalType":"uint256","name":"_newsellfeePercent","type":"uint256"}],"name":"removeLaunchTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"sellfee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"uint64","name":"_dstGasForCall","type":"uint64"},{"components":[{"internalType":"address payable","name":"refundAddress","type":"address"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct ICommonREBASE.LzCallParams","name":"_callParams","type":"tuple"}],"name":"sendAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"components":[{"internalType":"address payable","name":"refundAddress","type":"address"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct ICommonREBASE.LzCallParams","name":"_callParams","type":"tuple"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint16","name":"_packetType","type":"uint16"},{"internalType":"uint256","name":"_minGas","type":"uint256"}],"name":"setMinDstGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setPayloadSizeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_precrime","type":"address"}],"name":"setPrecrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_block","type":"uint256"}],"name":"setTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_path","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"setTrustedRemoteAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharedDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_limitsEnabed","type":"bool"}],"name":"toggleLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"updateMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxWalletAmount","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040526005600d819055600e5560196013556014805462ffff00191662010100179055348015610030575f80fd5b506040518060400160405280600d81526020016c506f6e7a692e4578707265737360981b81525060405180604001604052806006815260200165504f4e5a494560d01b8152506008730daa19f805fd37fd5d9ff9e2d199015fa73df9d983838383818180806100ab6100a661042c60201b60201c565b610430565b6001600160a01b0316608052505060ff1660a05250600a90506100ce83826105ed565b50600b6100db82826105ed565b5050505f6100ed61047f60201b60201c565b90508060ff168360ff16111561015d5760405162461bcd60e51b815260206004820152602a60248201527f5245424153453a20736861726564446563696d616c73206d757374206265203c6044820152693d20646563696d616c7360b01b60648201526084015b60405180910390fd5b61016783826106c0565b61017290600a6107bf565b60c0525061019993506101889250506104849050565b6a52b7d2dcc80cd2e4000000610492565b5f737a250d5630b4cf539739df2c5dacb4c659f2488d90505f816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101ee573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061021291906107d4565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561025d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061028191906107d4565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156102cb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102ef91906107d4565b6001600160a01b0380841660e05281166101005290506103e861031160095490565b61031c9060036107fa565b6103269190610811565b600f55606461033460095490565b61033f9060026107fa565b6103499190610811565b60105560c861035760095490565b6103619190610811565b600c55600160155f61037a5f546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff199687161790553381526015909352818320805485166001908117909155601480546501000000000090048316855283852080548716831790553085528385208054871683179055959091168352912080549092161790558054780daa19f805fd37fd5d9ff9e2d199015fa73df9d90000000000600160281b600160c81b031990911617905550610843565b3390565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b601290565b5f546001600160a01b031690565b6001600160a01b0382166104e85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610154565b8060095f8282546104f99190610830565b90915550506001600160a01b0382165f818152600760209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061057e57607f821691505b60208210810361059c57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561055157805f5260205f20601f840160051c810160208510156105c75750805b601f840160051c820191505b818110156105e6575f81556001016105d3565b5050505050565b81516001600160401b0381111561060657610606610556565b61061a81610614845461056a565b846105a2565b602080601f83116001811461064d575f84156106365750858301515b5f19600386901b1c1916600185901b1785556106a4565b5f85815260208120601f198616915b8281101561067b5788860151825594840194600190910190840161065c565b508582101561069857878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b60ff82811682821603908111156106d9576106d96106ac565b92915050565b600181815b8085111561071957815f19048211156106ff576106ff6106ac565b8085161561070c57918102915b93841c93908002906106e4565b509250929050565b5f8261072f575060016106d9565b8161073b57505f6106d9565b8160018114610751576002811461075b57610777565b60019150506106d9565b60ff84111561076c5761076c6106ac565b50506001821b6106d9565b5060208310610133831016604e8410600b841016171561079a575081810a6106d9565b6107a483836106df565b805f19048211156107b7576107b76106ac565b029392505050565b5f6107cd60ff841683610721565b9392505050565b5f602082840312156107e4575f80fd5b81516001600160a01b03811681146107cd575f80fd5b80820281158282048414176106d9576106d96106ac565b5f8261082b57634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156106d9576106d96106ac565b60805160a05160c05160e05161010051614dde6108f05f395f818161069b015281816123b80152818161250e015261261201525f8181612cdc01528181612d930152612dd201525f818161308f015281816133050152613ad901525f61081a01525f8181610a2e01528181610d6501528181610e1e0152818161104c015281816110ba01528181611aee01528181611f7a0152818161272901528181612be801526134970152614dde5ff3fe6080604052600436106103d4575f3560e01c80638da5cb5b116101ff578063be9a655511610113578063df47e373116100a8578063eb8d72b711610078578063eb8d72b714610bf0578063f2fde38b14610c0f578063f5ecbdbc14610c2e578063fc0c546a14610c4d578063fd545fe014610c5f575f80fd5b8063df47e37314610b7a578063e0bf7fd114610b99578063e6a20ae614610bc7578063e9451f5f14610bdb575f80fd5b8063cbed8b9c116100e3578063cbed8b9c14610b0a578063d1deba1f14610b29578063dd62ed3e14610b3c578063df2a5b3b14610b5b575f80fd5b8063be9a655514610aa3578063c024666814610ab7578063c18bc19514610ad6578063c446183414610af5575f80fd5b8063a4c51df511610194578063b256f7b711610164578063b256f7b7146109fe578063b353aaa714610a1d578063b70143c914610a50578063baf3292d14610a6f578063bccb468714610a8e575f80fd5b8063a4c51df514610982578063a6c3d165146109a1578063a6fb5dfd146109c0578063a9059cbb146109df575f80fd5b80639a2095a5116101cf5780639a2095a5146108d55780639bdb9812146108f45780639f38369a14610944578063a457c2d714610963575f80fd5b80638da5cb5b146108725780639358928b1461088e578063950c8a74146108a257806395d89b41146108c1575f80fd5b80633f1f4fa4116102f65780635b8c41e61161028b578063715018a61161025b578063715018a6146107c35780637533d788146107d757806376203b48146107f6578063857749b0146108095780638cfd8f5c1461083c575f80fd5b80635b8c41e6146107105780636256d1811461075d578063695ef6bf1461077c57806370a082311461078f575f80fd5b806349bd5a5e116102c657806349bd5a5e1461068a5780634c42899a146106bd5780634ebc552d146106d057806353371be0146106ef575f80fd5b80633f1f4fa41461060e57806342d65a8d14610639578063441f4339146106585780634477051514610677575f80fd5b806323b872dd1161036c578063365260b41161033c578063365260b41461057d57806339509351146105b15780633d5369f6146105d05780633d8b38f6146105ef575f80fd5b806323b872dd146104de5780632dc0562d146104fd578063302757441461053d578063313ce5671461055c575f80fd5b80630df37483116103a75780630df374831461046d57806310ddb1371461048c57806318160ddd146104ab5780631dc36945146104c9575f80fd5b806301ffc9a7146103d857806306fdde031461040c57806307e0db171461042d578063095ea7b31461044e575b5f80fd5b3480156103e3575f80fd5b506103f76103f2366004613db0565b610c7e565b60405190151581526020015b60405180910390f35b348015610417575f80fd5b50610420610cb4565b6040516104039190613e05565b348015610438575f80fd5b5061044c610447366004613e2d565b610d44565b005b348015610459575f80fd5b506103f7610468366004613e5a565b610dc8565b348015610478575f80fd5b5061044c610487366004613e84565b610ddf565b348015610497575f80fd5b5061044c6104a6366004613e2d565b610dfd565b3480156104b6575f80fd5b506009545b604051908152602001610403565b3480156104d4575f80fd5b506104bb600d5481565b3480156104e9575f80fd5b506103f76104f8366004613e9e565b610e55565b348015610508575f80fd5b50601454610525906501000000000090046001600160a01b031681565b6040516001600160a01b039091168152602001610403565b348015610548575f80fd5b5061044c610557366004613eeb565b610e78565b348015610567575f80fd5b5060125b60405160ff9091168152602001610403565b348015610588575f80fd5b5061059c610597366004613f48565b610e9a565b60408051928352602083019190915201610403565b3480156105bc575f80fd5b506103f76105cb366004613e5a565b610eed565b3480156105db575f80fd5b5061044c6105ea366004613fba565b610f0e565b3480156105fa575f80fd5b506103f7610609366004613fd1565b610f64565b348015610619575f80fd5b506104bb610628366004613e2d565b60036020525f908152604090205481565b348015610644575f80fd5b5061044c610653366004613fd1565b61102d565b348015610663575f80fd5b5061044c610672366004614035565b6110b7565b348015610682575f80fd5b506104bb5f81565b348015610695575f80fd5b506105257f000000000000000000000000000000000000000000000000000000000000000081565b3480156106c8575f80fd5b5061056b5f81565b3480156106db575f80fd5b5061044c6106ea366004613fba565b6112e3565b3480156106fa575f80fd5b506014546103f790640100000000900460ff1681565b34801561071b575f80fd5b506104bb61072a36600461411a565b600560209081525f9384526040808520845180860184018051928152908401958401959095209452929052825290205481565b348015610768575f80fd5b5061044c610777366004613fba565b611382565b61044c61078a3660046141c9565b61138f565b34801561079a575f80fd5b506104bb6107a9366004614237565b6001600160a01b03165f9081526007602052604090205490565b3480156107ce575f80fd5b5061044c611401565b3480156107e2575f80fd5b506104206107f1366004613e2d565b611414565b61044c610804366004614252565b6114ab565b348015610814575f80fd5b5061056b7f000000000000000000000000000000000000000000000000000000000000000081565b348015610847575f80fd5b506104bb6108563660046142fd565b600260209081525f928352604080842090915290825290205481565b34801561087d575f80fd5b505f546001600160a01b0316610525565b348015610899575f80fd5b506104bb611558565b3480156108ad575f80fd5b50600454610525906001600160a01b031681565b3480156108cc575f80fd5b50610420611567565b3480156108e0575f80fd5b5061044c6108ef36600461432e565b611576565b3480156108ff575f80fd5b506103f761090e36600461411a565b600660209081525f9384526040808520845180860184018051928152908401958401959095209452929052825290205460ff1681565b34801561094f575f80fd5b5061042061095e366004613e2d565b61169e565b34801561096e575f80fd5b506103f761097d366004613e5a565b6117b9565b34801561098d575f80fd5b5061059c61099c3660046143ee565b611833565b3480156109ac575f80fd5b5061044c6109bb366004613fd1565b6118bf565b3480156109cb575f80fd5b5061044c6109da366004614237565b611947565b3480156109ea575f80fd5b506103f76109f9366004613e5a565b61197f565b348015610a09575f80fd5b5061044c610a18366004613eeb565b61198c565b348015610a28575f80fd5b506105257f000000000000000000000000000000000000000000000000000000000000000081565b348015610a5b575f80fd5b5061044c610a6a366004613fba565b6119b0565b348015610a7a575f80fd5b5061044c610a89366004614237565b6119c1565b348015610a99575f80fd5b506104bb60125481565b348015610aae575f80fd5b5061044c611a1d565b348015610ac2575f80fd5b5061044c610ad136600461449f565b611a90565b348015610ae1575f80fd5b5061044c610af0366004613fba565b611ac2565b348015610b00575f80fd5b506104bb61271081565b348015610b15575f80fd5b5061044c610b243660046144c9565b611acf565b61044c610b37366004614035565b611b54565b348015610b47575f80fd5b506104bb610b56366004614532565b611d6c565b348015610b66575f80fd5b5061044c610b75366004614569565b611d96565b348015610b85575f80fd5b5061044c610b943660046145a2565b611dff565b348015610ba4575f80fd5b506103f7610bb3366004614237565b60156020525f908152604090205460ff1681565b348015610bd2575f80fd5b5061056b600181565b348015610be6575f80fd5b506104bb600e5481565b348015610bfb575f80fd5b5061044c610c0a366004613fd1565b611e7a565b348015610c1a575f80fd5b5061044c610c29366004614237565b611ed3565b348015610c39575f80fd5b50610420610c483660046145c2565b611f49565b348015610c58575f80fd5b5030610525565b348015610c6a575f80fd5b5061044c610c79366004614035565b611ff6565b5f6001600160e01b03198216631f7ecdf760e01b1480610cae57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600a8054610cc39061460c565b80601f0160208091040260200160405190810160405280929190818152602001828054610cef9061460c565b8015610d3a5780601f10610d1157610100808354040283529160200191610d3a565b820191905f5260205f20905b815481529060010190602001808311610d1d57829003601f168201915b5050505050905090565b610d4c6120d0565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b5f604051808303815f87803b158015610daf575f80fd5b505af1158015610dc1573d5f803e3d5ffd5b5050505050565b5f33610dd5818585612129565b5060019392505050565b610de76120d0565b61ffff9091165f90815260036020526040902055565b610e056120d0565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb13790602401610d98565b5f33610e6285828561224c565b610e6d8585856122c4565b506001949350505050565b610e806120d0565b601480549115156101000261ff0019909216919091179055565b5f80610ede8888888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506126c492505050565b91509150965096945050505050565b5f33610dd5818585610eff8383611d6c565b610f099190614652565b612129565b610f166120d0565b5f8111610f5f5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f742073657420746f207a65726f60701b60448201526064015b60405180910390fd5b600f55565b61ffff83165f9081526001602052604081208054829190610f849061460c565b80601f0160208091040260200160405190810160405280929190818152602001828054610fb09061460c565b8015610ffb5780601f10610fd257610100808354040283529160200191610ffb565b820191905f5260205f20905b815481529060010190602001808311610fde57829003601f168201915b505050505090508383604051611012929190614665565b60405180910390208180519060200120149150509392505050565b6110356120d0565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d906110859086908690869060040161469c565b5f604051808303815f87803b15801561109c575f80fd5b505af11580156110ae573d5f803e3d5ffd5b50505050505050565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461113a5760405162461bcd60e51b815260206004820152602260248201527f506f6e7a69654170703a20696e76616c696420656e64706f696e742063616c6c60448201526132b960f11b6064820152608401610f56565b61ffff86165f90815260016020526040812080546111579061460c565b80601f01602080910402602001604051908101604052809291908181526020018280546111839061460c565b80156111ce5780601f106111a5576101008083540402835291602001916111ce565b820191905f5260205f20905b8154815290600101906020018083116111b157829003601f168201915b505050505090508051868690501480156111e857505f8151115b80156112105750805160208201206040516112069088908890614665565b6040518091039020145b61126f5760405162461bcd60e51b815260206004820152602a60248201527f506f6e7a69654170703a20696e76616c696420736f757263652073656e64696e60448201526919c818dbdb9d1c9858dd60b21b6064820152608401610f56565b6110ae8787878080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525050604080516020601f8a018190048102820181019092528881528a9350915088908890819084018382808284375f920191909152506127b392505050565b80601154036112f9576019600d819055600e5550565b8060115460016113099190614652565b1061131b576019600d819055600e5550565b80601154600561132b9190614652565b1061133d57600f600d819055600e5550565b80601154600b61134d9190614652565b1061135f57600f600d819055600e5550565b80601154601861136f9190614652565b1061137f57600a600d819055600e555b50565b61138a6120d0565b600c55565b6113f9858585856113a36020870187614237565b6113b36040880160208901614237565b6113c060408901896146b9565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061282b92505050565b505050505050565b6114096120d0565b6114125f612914565b565b60016020525f90815260409020805461142c9061460c565b80601f01602080910402602001604051908101604052809291908181526020018280546114589061460c565b80156114a35780601f1061147a576101008083540402835291602001916114a3565b820191905f5260205f20905b81548152906001019060200180831161148657829003601f168201915b505050505081565b61154d8888888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152508a92506114f79150506020890189614237565b61150760408a0160208b01614237565b61151460408b018b6146b9565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061296392505050565b505050505050505050565b5f61156260095490565b905090565b6060600b8054610cc39061460c565b3330146115d35760405162461bcd60e51b815260206004820152602560248201527f524542415345436f72653a2063616c6c6572206d75737420626520524542415360448201526445436f726560d81b6064820152608401610f56565b6115de308686612a60565b9350846001600160a01b03168a61ffff167fbf551ec93859b170f9b2141bd9298bf3f64322c6f7beb2543a0cb669834118bf8660405161162091815260200190565b60405180910390a3604051631d9f3d3160e11b81526001600160a01b03861690633b3e7a62908390611664908e908e908e908e908e908d908d908d906004016146fb565b5f604051808303815f88803b15801561167b575f80fd5b5087f115801561168d573d5f803e3d5ffd5b505050505050505050505050505050565b61ffff81165f908152600160205260408120805460609291906116c09061460c565b80601f01602080910402602001604051908101604052809291908181526020018280546116ec9061460c565b80156117375780601f1061170e57610100808354040283529160200191611737565b820191905f5260205f20905b81548152906001019060200180831161171a57829003601f168201915b5050505050905080515f036117985760405162461bcd60e51b815260206004820152602160248201527f506f6e7a69654170703a206e6f20747275737465642070617468207265636f726044820152601960fa1b6064820152608401610f56565b6117b25f601483516117aa9190614755565b839190612ab1565b9392505050565b5f33816117c68286611d6c565b9050838110156118265760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610f56565b610e6d8286868403612129565b5f806118ad8b8b8b8b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525050604080516020601f8d018190048102820181019092528b81528e93508d9250908c908c90819084018382808284375f92019190915250612bbd92505050565b91509150995099975050505050505050565b6118c76120d0565b8181306040516020016118dc93929190614768565b60408051601f1981840301815291815261ffff85165f9081526001602052209061190690826147d2565b507f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce83838360405161193a9392919061469c565b60405180910390a1505050565b61194f6120d0565b601480546001600160a01b03909216650100000000000265010000000000600160c81b0319909216919091179055565b5f33610dd58185856122c4565b6119946120d0565b60148054911515620100000262ff000019909216919091179055565b6119b86120d0565b61137f81612c74565b6119c96120d0565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b9060200160405180910390a150565b611a256120d0565b601454640100000000900460ff1615611a755760405162461bcd60e51b8152602060048201526012602482015271151c98591a5b99c81b9bdd081c185d5cd95960721b6044820152606401610f56565b601480544360115564ff000000ff1916640100000001179055565b611a986120d0565b6001600160a01b03919091165f908152601560205260409020805460ff1916911515919091179055565b611aca6120d0565b601055565b611ad76120d0565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90611b2b908890889088908890889060040161488d565b5f604051808303815f87803b158015611b42575f80fd5b505af115801561154d573d5f803e3d5ffd5b61ffff86165f908152600560205260408082209051611b769088908890614665565b90815260408051602092819003830190206001600160401b0387165f9081529252902054905080611bf95760405162461bcd60e51b815260206004820152602760248201527f4e6f6e626c6f636b696e67506f6e7a69654170703a206e6f2073746f726564206044820152666d65737361676560c81b6064820152608401610f56565b808383604051611c0a929190614665565b604051809103902014611c6d5760405162461bcd60e51b815260206004820152602560248201527f4e6f6e626c6f636b696e67506f6e7a69654170703a20696e76616c69642070616044820152641e5b1bd85960da1b6064820152608401610f56565b61ffff87165f908152600560205260408082209051611c8f9089908990614665565b90815260408051602092819003830181206001600160401b0389165f90815290845282902093909355601f88018290048202830182019052868252611d2491899189908990819084018382808284375f9201919091525050604080516020601f8a018190048102820181019092528881528a9350915088908890819084018382808284375f92019190915250612e5a92505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e58787878785604051611d5b9594939291906148c5565b60405180910390a150505050505050565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205490565b611d9e6120d0565b61ffff8381165f8181526002602090815260408083209487168084529482529182902085905581519283528201929092529081018290527f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac09060600161193a565b611e076120d0565b600a8211158015611e195750600a8111155b611e655760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207365742074617865732061626f7665203130000000000000006044820152606401610f56565b600d91909155600e556014805460ff19169055565b611e826120d0565b61ffff83165f908152600160205260409020611e9f8284836148ff565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab83838360405161193a9392919061469c565b611edb6120d0565b6001600160a01b038116611f405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f56565b61137f81612914565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc906084015f60405180830381865afa158015611fc6573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052611fed91908101906149b8565b95945050505050565b33301461205c5760405162461bcd60e51b815260206004820152602e60248201527f4e6f6e626c6f636b696e67506f6e7a69654170703a2063616c6c6572206d757360448201526d07420626520506f6e7a69654170760941b6064820152608401610f56565b6113f98686868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525050604080516020601f8901819004810282018101909252878152899350915087908790819084018382808284375f92019190915250612e5a92505050565b5f546001600160a01b031633146114125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f56565b6001600160a01b03831661218b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610f56565b6001600160a01b0382166121ec5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610f56565b6001600160a01b038381165f8181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f6122578484611d6c565b90505f1981146122be57818110156122b15760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610f56565b6122be8484848403612129565b50505050565b5f81116123225760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e73666572206d75737420626520677265617465722060448201526507468616e20360d41b6064820152608401610f56565b601454640100000000900460ff166123a0575f546001600160a01b038481169116148061235b57505f546001600160a01b038381169116145b6123a05760405162461bcd60e51b8152602060048201526016602482015275151c98591a5b99c81b9bdd081858dd1a5d99481e595d60521b6044820152606401610f56565b6014545f9060ff16156123b6576123b6436112e3565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614801561240f57506001600160a01b0383165f9081526015602052604090205460ff16155b1561250c5760105482612436856001600160a01b03165f9081526007602052604090205490565b6124409190614652565b11156124855760405162461bcd60e51b815260206004820152601460248201527313585e0815d85b1b195d08125b881159999958dd60621b6044820152606401610f56565b600c548211156124ca5760405162461bcd60e51b815260206004820152601060248201526f13585e08151e081a5b881959999958dd60821b6044820152606401610f56565b601454610100900460ff16156124f7576064600d54836124ea9190614a2c565b6124f49190614a57565b90505b60128054905f61250683614a6a565b91905055505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614801561256557506001600160a01b0384165f9081526015602052604090205460ff16155b156125dc57600c548211156125af5760405162461bcd60e51b815260206004820152601060248201526f13585e08151e081a5b881959999958dd60821b6044820152606401610f56565b601454610100900460ff16156125dc576064600e54836125cf9190614a2c565b6125d99190614a57565b90505b305f90815260076020526040902054600f548110801590819061260957506014546301000000900460ff16155b801561264757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b031614155b801561266b57506001600160a01b0386165f9081526015602052604090205460ff16155b801561267a5750601354601254115b1561268a5761268a600f54612c74565b82156126b9575f61269b8486614755565b90506126a8873086612edf565b6126b3878783612edf565b506113f9565b6113f9868686612edf565b5f805f61270f876126d488613088565b604080515f6020820152602181019390935260c09190911b6001600160c01b0319166041830152805160298184030181526049909201905290565b60405163040a7bb160e41b81529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090612766908b90309086908b908b90600401614a82565b6040805180830381865afa158015612780573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127a49190614ad5565b92509250509550959350505050565b5f806128155a609663fd545fe060e01b898989896040516024016127da9493929190614af7565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091523092919061310d565b91509150816113f9576113f98686868685613191565b5f6128388782848161322b565b612841856132fe565b5090506128508888888461333d565b90505f81116128a15760405162461bcd60e51b815260206004820152601c60248201527f524542415345436f72653a20616d6f756e7420746f6f20736d616c6c000000006044820152606401610f56565b5f6128af876126d484613088565b90506128bf88828787873461336e565b86896001600160a01b03168961ffff167fd81fc9b8523134ed613870ed029d6170cbb73aa6a6bc311b9a642689fb9df59a8560405161290091815260200190565b60405180910390a450979650505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f61297a896001846001600160401b03891661322b565b612983876132fe565b5090506129928a8a8a8461333d565b90505f81116129e35760405162461bcd60e51b815260206004820152601c60248201527f524542415345436f72653a20616d6f756e7420746f6f20736d616c6c000000006044820152606401610f56565b5f6129f9338a6129f285613088565b8a8a61350f565b9050612a098a828787873461336e565b888b6001600160a01b03168b61ffff167fd81fc9b8523134ed613870ed029d6170cbb73aa6a6bc311b9a642689fb9df59a85604051612a4a91815260200190565b60405180910390a4509998505050505050505050565b5f33306001600160a01b03861614801590612a8d5750806001600160a01b0316856001600160a01b031614155b15612a9d57612a9d85828561224c565b612aa88585856122c4565b50909392505050565b606081612abf81601f614652565b1015612afe5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606401610f56565b612b088284614652565b84511015612b4c5760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606401610f56565b606082158015612b6a5760405191505f825260208201604052612bb4565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015612ba3578051835260209283019201612b8b565b5050858452601f01601f1916604052505b50949350505050565b5f805f612bce338a6129f28b613088565b60405163040a7bb160e41b81529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090612c25908d90309086908b908b90600401614a82565b6040805180830381865afa158015612c3f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c639190614ad5565b925092505097509795505050505050565b6014805463ff000000191663010000001790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110612cba57612cba614b34565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d36573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d5a9190614b48565b81600181518110612d6d57612d6d614b34565b60200260200101906001600160a01b031690816001600160a01b031681525050612db8307f000000000000000000000000000000000000000000000000000000000000000084612129565b60145460405163791ac94760e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169263791ac94792612e1c9287925f92889265010000000000909204909116904290600401614b63565b5f604051808303815f87803b158015612e33575f80fd5b505af1158015612e45573d5f803e3d5ffd5b50506014805463ff0000001916905550505050565b5f612e658282613550565b905060ff8116612e8057612e7b858585856135ab565b610dc1565b5f1960ff821601612e9757612e7b85858585613639565b60405162461bcd60e51b815260206004820152601f60248201527f524542415345436f72653a20756e6b6e6f776e207061636b65742074797065006044820152606401610f56565b6001600160a01b038316612f435760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610f56565b6001600160a01b038216612fa55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610f56565b6001600160a01b0383165f908152600760205260409020548181101561301c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610f56565b6001600160a01b038085165f8181526007602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061307b9086815260200190565b60405180910390a36122be565b5f806130b47f000000000000000000000000000000000000000000000000000000000000000084614a57565b90506001600160401b03811115610cae5760405162461bcd60e51b815260206004820152601d60248201527f524542415345436f72653a20616d6f756e745344206f766572666c6f770000006044820152606401610f56565b5f60605f805f8661ffff166001600160401b0381111561312f5761312f6140b0565b6040519080825280601f01601f191660200182016040528015613159576020820181803683370190505b5090505f808751602089015f8d8df191503d925086831115613179578692505b828152825f602083013e909890975095505050505050565b818051906020012060055f8761ffff1661ffff1681526020019081526020015f20856040516131c09190614beb565b9081526040805191829003602090810183206001600160401b0388165f908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c9061321c9087908790879087908790614bf6565b60405180910390a15050505050565b5f61323583613841565b61ffff8087165f90815260026020908152604080832093891683529290522054909150806132a55760405162461bcd60e51b815260206004820152601e60248201527f506f6e7a69654170703a206d696e4761734c696d6974206e6f742073657400006044820152606401610f56565b6132af8382614652565b8210156113f95760405162461bcd60e51b815260206004820152601f60248201527f506f6e7a69654170703a20676173206c696d697420697320746f6f206c6f77006044820152606401610f56565b5f8061332a7f000000000000000000000000000000000000000000000000000000000000000084614c47565b90506133368184614755565b9150915091565b5f336001600160a01b038616811461335a5761335a86828561224c565b613364868461389c565b5090949350505050565b61ffff86165f908152600160205260408120805461338b9061460c565b80601f01602080910402602001604051908101604052809291908181526020018280546133b79061460c565b80156134025780601f106133d957610100808354040283529160200191613402565b820191905f5260205f20905b8154815290600101906020018083116133e557829003601f168201915b5050505050905080515f036134765760405162461bcd60e51b815260206004820152603460248201527f506f6e7a69654170703a2064657374696e6174696f6e20636861696e206973206044820152736e6f742061207472757374656420736f7572636560601b6064820152608401610f56565b6134818787516139ce565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c58031009084906134d8908b9086908c908c908c908c90600401614c5a565b5f604051808303818588803b1580156134ef575f80fd5b505af1158015613501573d5f803e3d5ffd5b505050505050505050505050565b6060600185856001600160a01b038916858760405160200161353696959493929190614cc0565b604051602081830303815290604052905095945050505050565b5f61355c826001614652565b835110156135a25760405162461bcd60e51b8152602060048201526013602482015272746f55696e74385f6f75744f66426f756e647360681b6044820152606401610f56565b50016001015190565b5f806135b683613a4a565b90925090506001600160a01b0382166135cf5761dead91505b5f6135d982613ad3565b90506135e6878483613b07565b9050826001600160a01b03168761ffff167fbf551ec93859b170f9b2141bd9298bf3f64322c6f7beb2543a0cb669834118bf8360405161362891815260200190565b60405180910390a350505050505050565b5f805f805f61364786613b19565b945094509450945094505f60065f8b61ffff1661ffff1681526020019081526020015f20896040516136799190614beb565b90815260408051602092819003830190206001600160401b038b165f908152925281205460ff1691506136ab85613ad3565b905081613717576136bd8b3083613b07565b61ffff8c165f908152600660205260409081902090519192506001916136e4908d90614beb565b90815260408051602092819003830190206001600160401b038d165f90815292529020805460ff19169115159190911790555b6001600160a01b0386163b61376e576040516001600160a01b03871681527f9aedf5fdba8716db3b6705ca00150643309995d4f818a249ed6dde6677e7792d9060200160405180910390a1505050505050506122be565b8a8a8a8a8a8a868a5f8a61378b578b6001600160401b031661378d565b5a5b90505f806137be5a6096639a2095a560e01b8e8e8e8d8d8d8d8d6040516024016127da989796959493929190614d08565b915091508115613817578751602089012060405161ffff8d16907f6d76c6b2837f234f610c722403fa5f92d7d05f167f2918924b59b8e34f3a43bf90613809908e908e908690614d7b565b60405180910390a250613824565b6138248b8b8b8b85613191565b50505050505050505050505050505050505050505050565b505050565b5f6022825110156138945760405162461bcd60e51b815260206004820181905260248201527f506f6e7a69654170703a20696e76616c69642061646170746572506172616d736044820152606401610f56565b506022015190565b6001600160a01b0382166138fc5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610f56565b6001600160a01b0382165f908152600760205260409020548181101561396f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610f56565b6001600160a01b0383165f8181526007602090815260408083208686039055600980548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b61ffff82165f90815260036020526040812054908190036139ee57506127105b8082111561383c5760405162461bcd60e51b8152602060048201526024808201527f506f6e7a69654170703a207061796c6f61642073697a6520697320746f6f206c6044820152636172676560e01b6064820152608401610f56565b5f8080613a578482613550565b60ff16148015613a68575082516029145b613ab45760405162461bcd60e51b815260206004820152601b60248201527f524542415345436f72653a20696e76616c6964207061796c6f616400000000006044820152606401610f56565b613abf83600d613bd4565b9150613acc836021613c38565b9050915091565b5f610cae7f00000000000000000000000000000000000000000000000000000000000000006001600160401b038416614a2c565b5f613b128383613c94565b5092915050565b5f80806060816001613b2b8783613550565b60ff1614613b7b5760405162461bcd60e51b815260206004820152601b60248201527f524542415345436f72653a20696e76616c6964207061796c6f616400000000006044820152606401610f56565b613b8686600d613bd4565b9350613b93866021613c38565b9250613ba0866029613d53565b9450613bad866049613c38565b9050613bc96051808851613bc19190614755565b889190612ab1565b915091939590929450565b5f613be0826014614652565b83511015613c285760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606401610f56565b500160200151600160601b900490565b5f613c44826008614652565b83511015613c8b5760405162461bcd60e51b8152602060048201526014602482015273746f55696e7436345f6f75744f66426f756e647360601b6044820152606401610f56565b50016008015190565b6001600160a01b038216613cea5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610f56565b8060095f828254613cfb9190614652565b90915550506001600160a01b0382165f818152600760209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f613d5f826020614652565b83511015613da75760405162461bcd60e51b8152602060048201526015602482015274746f427974657333325f6f75744f66426f756e647360581b6044820152606401610f56565b50016020015190565b5f60208284031215613dc0575f80fd5b81356001600160e01b0319811681146117b2575f80fd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6117b26020830184613dd7565b803561ffff81168114613e28575f80fd5b919050565b5f60208284031215613e3d575f80fd5b6117b282613e17565b6001600160a01b038116811461137f575f80fd5b5f8060408385031215613e6b575f80fd5b8235613e7681613e46565b946020939093013593505050565b5f8060408385031215613e95575f80fd5b613e7683613e17565b5f805f60608486031215613eb0575f80fd5b8335613ebb81613e46565b92506020840135613ecb81613e46565b929592945050506040919091013590565b80358015158114613e28575f80fd5b5f60208284031215613efb575f80fd5b6117b282613edc565b5f8083601f840112613f14575f80fd5b5081356001600160401b03811115613f2a575f80fd5b602083019150836020828501011115613f41575f80fd5b9250929050565b5f805f805f8060a08789031215613f5d575f80fd5b613f6687613e17565b95506020870135945060408701359350613f8260608801613edc565b925060808701356001600160401b03811115613f9c575f80fd5b613fa889828a01613f04565b979a9699509497509295939492505050565b5f60208284031215613fca575f80fd5b5035919050565b5f805f60408486031215613fe3575f80fd5b613fec84613e17565b925060208401356001600160401b03811115614006575f80fd5b61401286828701613f04565b9497909650939450505050565b80356001600160401b0381168114613e28575f80fd5b5f805f805f806080878903121561404a575f80fd5b61405387613e17565b955060208701356001600160401b038082111561406e575f80fd5b61407a8a838b01613f04565b909750955085915061408e60408a0161401f565b945060608901359150808211156140a3575f80fd5b50613fa889828a01613f04565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b03811182821017156140ec576140ec6140b0565b604052919050565b5f6001600160401b0382111561410c5761410c6140b0565b50601f01601f191660200190565b5f805f6060848603121561412c575f80fd5b61413584613e17565b925060208401356001600160401b0381111561414f575f80fd5b8401601f8101861361415f575f80fd5b803561417261416d826140f4565b6140c4565b818152876020838501011115614186575f80fd5b816020840160208301375f602083830101528094505050506141aa6040850161401f565b90509250925092565b5f606082840312156141c3575f80fd5b50919050565b5f805f805f60a086880312156141dd575f80fd5b85356141e881613e46565b94506141f660208701613e17565b9350604086013592506060860135915060808601356001600160401b0381111561421e575f80fd5b61422a888289016141b3565b9150509295509295909350565b5f60208284031215614247575f80fd5b81356117b281613e46565b5f805f805f805f8060e0898b031215614269575f80fd5b883561427481613e46565b975061428260208a01613e17565b9650604089013595506060890135945060808901356001600160401b03808211156142ab575f80fd5b6142b78c838d01613f04565b90965094508491506142cb60a08c0161401f565b935060c08b01359150808211156142e0575f80fd5b506142ed8b828c016141b3565b9150509295985092959890939650565b5f806040838503121561430e575f80fd5b61431783613e17565b915061432560208401613e17565b90509250929050565b5f805f805f805f805f806101008b8d031215614348575f80fd5b6143518b613e17565b995060208b01356001600160401b038082111561436c575f80fd5b6143788e838f01613f04565b909b50995089915061438c60408e0161401f565b985060608d0135975060808d013591506143a582613e46565b90955060a08c0135945060c08c013590808211156143c1575f80fd5b506143ce8d828e01613f04565b9150809450508092505060e08b013590509295989b9194979a5092959850565b5f805f805f805f805f60e08a8c031215614406575f80fd5b61440f8a613e17565b985060208a0135975060408a0135965060608a01356001600160401b0380821115614438575f80fd5b6144448d838e01613f04565b909850965086915061445860808d0161401f565b955061446660a08d01613edc565b945060c08c013591508082111561447b575f80fd5b506144888c828d01613f04565b915080935050809150509295985092959850929598565b5f80604083850312156144b0575f80fd5b82356144bb81613e46565b915061432560208401613edc565b5f805f805f608086880312156144dd575f80fd5b6144e686613e17565b94506144f460208701613e17565b93506040860135925060608601356001600160401b03811115614515575f80fd5b61452188828901613f04565b969995985093965092949392505050565b5f8060408385031215614543575f80fd5b823561454e81613e46565b9150602083013561455e81613e46565b809150509250929050565b5f805f6060848603121561457b575f80fd5b61458484613e17565b925061459260208501613e17565b9150604084013590509250925092565b5f80604083850312156145b3575f80fd5b50508035926020909101359150565b5f805f80608085870312156145d5575f80fd5b6145de85613e17565b93506145ec60208601613e17565b925060408501356145fc81613e46565b9396929550929360600135925050565b600181811c9082168061462057607f821691505b6020821081036141c357634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610cae57610cae61463e565b818382375f9101908152919050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201525f611fed604083018486614674565b5f808335601e198436030181126146ce575f80fd5b8301803591506001600160401b038211156146e7575f80fd5b602001915036819003821315613f41575f80fd5b61ffff8916815260c060208201525f61471860c08301898b614674565b6001600160401b038816604084015286606084015285608084015282810360a0840152614746818587614674565b9b9a5050505050505050505050565b81810381811115610cae57610cae61463e565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b601f82111561383c57805f5260205f20601f840160051c810160208510156147b35750805b601f840160051c820191505b81811015610dc1575f81556001016147bf565b81516001600160401b038111156147eb576147eb6140b0565b6147ff816147f9845461460c565b8461478e565b602080601f831160018114614832575f841561481b5750858301515b5f19600386901b1c1916600185901b1785556113f9565b5f85815260208120601f198616915b8281101561486057888601518255948401946001909101908401614841565b508582101561487d57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f61ffff8088168352808716602084015250846040830152608060608301526148ba608083018486614674565b979650505050505050565b61ffff86168152608060208201525f6148e2608083018688614674565b6001600160401b0394909416604083015250606001529392505050565b6001600160401b03831115614916576149166140b0565b61492a83614924835461460c565b8361478e565b5f601f84116001811461495b575f85156149445750838201355b5f19600387901b1c1916600186901b178355610dc1565b5f83815260208120601f198716915b8281101561498a578685013582556020948501946001909201910161496a565b50868210156149a6575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f602082840312156149c8575f80fd5b81516001600160401b038111156149dd575f80fd5b8201601f810184136149ed575f80fd5b80516149fb61416d826140f4565b818152856020838501011115614a0f575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b8082028115828204841417610cae57610cae61463e565b634e487b7160e01b5f52601260045260245ffd5b5f82614a6557614a65614a43565b500490565b5f60018201614a7b57614a7b61463e565b5060010190565b61ffff861681526001600160a01b038516602082015260a0604082018190525f90614aaf90830186613dd7565b84151560608401528281036080840152614ac98185613dd7565b98975050505050505050565b5f8060408385031215614ae6575f80fd5b505080516020909101519092909150565b61ffff85168152608060208201525f614b136080830186613dd7565b6001600160401b038516604084015282810360608401526148ba8185613dd7565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215614b58575f80fd5b81516117b281613e46565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b81811015614bb35784516001600160a01b031683529383019391830191600101614b8e565b50506001600160a01b03969096166060850152505050608001529392505050565b5f81518060208401855e5f93019283525090919050565b5f6117b28284614bd4565b61ffff8616815260a060208201525f614c1260a0830187613dd7565b6001600160401b03861660408401528281036060840152614c338186613dd7565b90508281036080840152614ac98185613dd7565b5f82614c5557614c55614a43565b500690565b61ffff8716815260c060208201525f614c7660c0830188613dd7565b8281036040840152614c888188613dd7565b6001600160a01b0387811660608601528616608085015283810360a08501529050614cb38185613dd7565b9998505050505050505050565b60ff60f81b8760f81b1681528560018201525f6001600160401b0360c01b808760c01b166021840152856029840152808560c01b16604984015250614ac96051830184614bd4565b5f61010061ffff8b168352806020840152614d258184018b613dd7565b6001600160401b038a166040850152606084018990526001600160a01b038816608085015260a0840187905283810360c08501529050614d658186613dd7565b9150508260e08301529998505050505050505050565b606081525f614d8d6060830186613dd7565b6001600160401b03949094166020830152506040015291905056fea2646970667358221220ad7cdc6aa449ba377d9e834064219682f56984ecf6fe5d0fa87bb1d740d8efb864736f6c63430008190033
Deployed Bytecode
0x6080604052600436106103d4575f3560e01c80638da5cb5b116101ff578063be9a655511610113578063df47e373116100a8578063eb8d72b711610078578063eb8d72b714610bf0578063f2fde38b14610c0f578063f5ecbdbc14610c2e578063fc0c546a14610c4d578063fd545fe014610c5f575f80fd5b8063df47e37314610b7a578063e0bf7fd114610b99578063e6a20ae614610bc7578063e9451f5f14610bdb575f80fd5b8063cbed8b9c116100e3578063cbed8b9c14610b0a578063d1deba1f14610b29578063dd62ed3e14610b3c578063df2a5b3b14610b5b575f80fd5b8063be9a655514610aa3578063c024666814610ab7578063c18bc19514610ad6578063c446183414610af5575f80fd5b8063a4c51df511610194578063b256f7b711610164578063b256f7b7146109fe578063b353aaa714610a1d578063b70143c914610a50578063baf3292d14610a6f578063bccb468714610a8e575f80fd5b8063a4c51df514610982578063a6c3d165146109a1578063a6fb5dfd146109c0578063a9059cbb146109df575f80fd5b80639a2095a5116101cf5780639a2095a5146108d55780639bdb9812146108f45780639f38369a14610944578063a457c2d714610963575f80fd5b80638da5cb5b146108725780639358928b1461088e578063950c8a74146108a257806395d89b41146108c1575f80fd5b80633f1f4fa4116102f65780635b8c41e61161028b578063715018a61161025b578063715018a6146107c35780637533d788146107d757806376203b48146107f6578063857749b0146108095780638cfd8f5c1461083c575f80fd5b80635b8c41e6146107105780636256d1811461075d578063695ef6bf1461077c57806370a082311461078f575f80fd5b806349bd5a5e116102c657806349bd5a5e1461068a5780634c42899a146106bd5780634ebc552d146106d057806353371be0146106ef575f80fd5b80633f1f4fa41461060e57806342d65a8d14610639578063441f4339146106585780634477051514610677575f80fd5b806323b872dd1161036c578063365260b41161033c578063365260b41461057d57806339509351146105b15780633d5369f6146105d05780633d8b38f6146105ef575f80fd5b806323b872dd146104de5780632dc0562d146104fd578063302757441461053d578063313ce5671461055c575f80fd5b80630df37483116103a75780630df374831461046d57806310ddb1371461048c57806318160ddd146104ab5780631dc36945146104c9575f80fd5b806301ffc9a7146103d857806306fdde031461040c57806307e0db171461042d578063095ea7b31461044e575b5f80fd5b3480156103e3575f80fd5b506103f76103f2366004613db0565b610c7e565b60405190151581526020015b60405180910390f35b348015610417575f80fd5b50610420610cb4565b6040516104039190613e05565b348015610438575f80fd5b5061044c610447366004613e2d565b610d44565b005b348015610459575f80fd5b506103f7610468366004613e5a565b610dc8565b348015610478575f80fd5b5061044c610487366004613e84565b610ddf565b348015610497575f80fd5b5061044c6104a6366004613e2d565b610dfd565b3480156104b6575f80fd5b506009545b604051908152602001610403565b3480156104d4575f80fd5b506104bb600d5481565b3480156104e9575f80fd5b506103f76104f8366004613e9e565b610e55565b348015610508575f80fd5b50601454610525906501000000000090046001600160a01b031681565b6040516001600160a01b039091168152602001610403565b348015610548575f80fd5b5061044c610557366004613eeb565b610e78565b348015610567575f80fd5b5060125b60405160ff9091168152602001610403565b348015610588575f80fd5b5061059c610597366004613f48565b610e9a565b60408051928352602083019190915201610403565b3480156105bc575f80fd5b506103f76105cb366004613e5a565b610eed565b3480156105db575f80fd5b5061044c6105ea366004613fba565b610f0e565b3480156105fa575f80fd5b506103f7610609366004613fd1565b610f64565b348015610619575f80fd5b506104bb610628366004613e2d565b60036020525f908152604090205481565b348015610644575f80fd5b5061044c610653366004613fd1565b61102d565b348015610663575f80fd5b5061044c610672366004614035565b6110b7565b348015610682575f80fd5b506104bb5f81565b348015610695575f80fd5b506105257f000000000000000000000000a9bd9f4f9bf25c498cd1bbb4a28cd6942afd08f581565b3480156106c8575f80fd5b5061056b5f81565b3480156106db575f80fd5b5061044c6106ea366004613fba565b6112e3565b3480156106fa575f80fd5b506014546103f790640100000000900460ff1681565b34801561071b575f80fd5b506104bb61072a36600461411a565b600560209081525f9384526040808520845180860184018051928152908401958401959095209452929052825290205481565b348015610768575f80fd5b5061044c610777366004613fba565b611382565b61044c61078a3660046141c9565b61138f565b34801561079a575f80fd5b506104bb6107a9366004614237565b6001600160a01b03165f9081526007602052604090205490565b3480156107ce575f80fd5b5061044c611401565b3480156107e2575f80fd5b506104206107f1366004613e2d565b611414565b61044c610804366004614252565b6114ab565b348015610814575f80fd5b5061056b7f000000000000000000000000000000000000000000000000000000000000000881565b348015610847575f80fd5b506104bb6108563660046142fd565b600260209081525f928352604080842090915290825290205481565b34801561087d575f80fd5b505f546001600160a01b0316610525565b348015610899575f80fd5b506104bb611558565b3480156108ad575f80fd5b50600454610525906001600160a01b031681565b3480156108cc575f80fd5b50610420611567565b3480156108e0575f80fd5b5061044c6108ef36600461432e565b611576565b3480156108ff575f80fd5b506103f761090e36600461411a565b600660209081525f9384526040808520845180860184018051928152908401958401959095209452929052825290205460ff1681565b34801561094f575f80fd5b5061042061095e366004613e2d565b61169e565b34801561096e575f80fd5b506103f761097d366004613e5a565b6117b9565b34801561098d575f80fd5b5061059c61099c3660046143ee565b611833565b3480156109ac575f80fd5b5061044c6109bb366004613fd1565b6118bf565b3480156109cb575f80fd5b5061044c6109da366004614237565b611947565b3480156109ea575f80fd5b506103f76109f9366004613e5a565b61197f565b348015610a09575f80fd5b5061044c610a18366004613eeb565b61198c565b348015610a28575f80fd5b506105257f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d981565b348015610a5b575f80fd5b5061044c610a6a366004613fba565b6119b0565b348015610a7a575f80fd5b5061044c610a89366004614237565b6119c1565b348015610a99575f80fd5b506104bb60125481565b348015610aae575f80fd5b5061044c611a1d565b348015610ac2575f80fd5b5061044c610ad136600461449f565b611a90565b348015610ae1575f80fd5b5061044c610af0366004613fba565b611ac2565b348015610b00575f80fd5b506104bb61271081565b348015610b15575f80fd5b5061044c610b243660046144c9565b611acf565b61044c610b37366004614035565b611b54565b348015610b47575f80fd5b506104bb610b56366004614532565b611d6c565b348015610b66575f80fd5b5061044c610b75366004614569565b611d96565b348015610b85575f80fd5b5061044c610b943660046145a2565b611dff565b348015610ba4575f80fd5b506103f7610bb3366004614237565b60156020525f908152604090205460ff1681565b348015610bd2575f80fd5b5061056b600181565b348015610be6575f80fd5b506104bb600e5481565b348015610bfb575f80fd5b5061044c610c0a366004613fd1565b611e7a565b348015610c1a575f80fd5b5061044c610c29366004614237565b611ed3565b348015610c39575f80fd5b50610420610c483660046145c2565b611f49565b348015610c58575f80fd5b5030610525565b348015610c6a575f80fd5b5061044c610c79366004614035565b611ff6565b5f6001600160e01b03198216631f7ecdf760e01b1480610cae57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600a8054610cc39061460c565b80601f0160208091040260200160405190810160405280929190818152602001828054610cef9061460c565b8015610d3a5780601f10610d1157610100808354040283529160200191610d3a565b820191905f5260205f20905b815481529060010190602001808311610d1d57829003601f168201915b5050505050905090565b610d4c6120d0565b6040516307e0db1760e01b815261ffff821660048201527f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d96001600160a01b0316906307e0db17906024015b5f604051808303815f87803b158015610daf575f80fd5b505af1158015610dc1573d5f803e3d5ffd5b5050505050565b5f33610dd5818585612129565b5060019392505050565b610de76120d0565b61ffff9091165f90815260036020526040902055565b610e056120d0565b6040516310ddb13760e01b815261ffff821660048201527f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d96001600160a01b0316906310ddb13790602401610d98565b5f33610e6285828561224c565b610e6d8585856122c4565b506001949350505050565b610e806120d0565b601480549115156101000261ff0019909216919091179055565b5f80610ede8888888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506126c492505050565b91509150965096945050505050565b5f33610dd5818585610eff8383611d6c565b610f099190614652565b612129565b610f166120d0565b5f8111610f5f5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f742073657420746f207a65726f60701b60448201526064015b60405180910390fd5b600f55565b61ffff83165f9081526001602052604081208054829190610f849061460c565b80601f0160208091040260200160405190810160405280929190818152602001828054610fb09061460c565b8015610ffb5780601f10610fd257610100808354040283529160200191610ffb565b820191905f5260205f20905b815481529060010190602001808311610fde57829003601f168201915b505050505090508383604051611012929190614665565b60405180910390208180519060200120149150509392505050565b6110356120d0565b6040516342d65a8d60e01b81526001600160a01b037f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d916906342d65a8d906110859086908690869060040161469c565b5f604051808303815f87803b15801561109c575f80fd5b505af11580156110ae573d5f803e3d5ffd5b50505050505050565b337f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d96001600160a01b03161461113a5760405162461bcd60e51b815260206004820152602260248201527f506f6e7a69654170703a20696e76616c696420656e64706f696e742063616c6c60448201526132b960f11b6064820152608401610f56565b61ffff86165f90815260016020526040812080546111579061460c565b80601f01602080910402602001604051908101604052809291908181526020018280546111839061460c565b80156111ce5780601f106111a5576101008083540402835291602001916111ce565b820191905f5260205f20905b8154815290600101906020018083116111b157829003601f168201915b505050505090508051868690501480156111e857505f8151115b80156112105750805160208201206040516112069088908890614665565b6040518091039020145b61126f5760405162461bcd60e51b815260206004820152602a60248201527f506f6e7a69654170703a20696e76616c696420736f757263652073656e64696e60448201526919c818dbdb9d1c9858dd60b21b6064820152608401610f56565b6110ae8787878080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525050604080516020601f8a018190048102820181019092528881528a9350915088908890819084018382808284375f920191909152506127b392505050565b80601154036112f9576019600d819055600e5550565b8060115460016113099190614652565b1061131b576019600d819055600e5550565b80601154600561132b9190614652565b1061133d57600f600d819055600e5550565b80601154600b61134d9190614652565b1061135f57600f600d819055600e5550565b80601154601861136f9190614652565b1061137f57600a600d819055600e555b50565b61138a6120d0565b600c55565b6113f9858585856113a36020870187614237565b6113b36040880160208901614237565b6113c060408901896146b9565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061282b92505050565b505050505050565b6114096120d0565b6114125f612914565b565b60016020525f90815260409020805461142c9061460c565b80601f01602080910402602001604051908101604052809291908181526020018280546114589061460c565b80156114a35780601f1061147a576101008083540402835291602001916114a3565b820191905f5260205f20905b81548152906001019060200180831161148657829003601f168201915b505050505081565b61154d8888888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152508a92506114f79150506020890189614237565b61150760408a0160208b01614237565b61151460408b018b6146b9565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061296392505050565b505050505050505050565b5f61156260095490565b905090565b6060600b8054610cc39061460c565b3330146115d35760405162461bcd60e51b815260206004820152602560248201527f524542415345436f72653a2063616c6c6572206d75737420626520524542415360448201526445436f726560d81b6064820152608401610f56565b6115de308686612a60565b9350846001600160a01b03168a61ffff167fbf551ec93859b170f9b2141bd9298bf3f64322c6f7beb2543a0cb669834118bf8660405161162091815260200190565b60405180910390a3604051631d9f3d3160e11b81526001600160a01b03861690633b3e7a62908390611664908e908e908e908e908e908d908d908d906004016146fb565b5f604051808303815f88803b15801561167b575f80fd5b5087f115801561168d573d5f803e3d5ffd5b505050505050505050505050505050565b61ffff81165f908152600160205260408120805460609291906116c09061460c565b80601f01602080910402602001604051908101604052809291908181526020018280546116ec9061460c565b80156117375780601f1061170e57610100808354040283529160200191611737565b820191905f5260205f20905b81548152906001019060200180831161171a57829003601f168201915b5050505050905080515f036117985760405162461bcd60e51b815260206004820152602160248201527f506f6e7a69654170703a206e6f20747275737465642070617468207265636f726044820152601960fa1b6064820152608401610f56565b6117b25f601483516117aa9190614755565b839190612ab1565b9392505050565b5f33816117c68286611d6c565b9050838110156118265760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610f56565b610e6d8286868403612129565b5f806118ad8b8b8b8b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525050604080516020601f8d018190048102820181019092528b81528e93508d9250908c908c90819084018382808284375f92019190915250612bbd92505050565b91509150995099975050505050505050565b6118c76120d0565b8181306040516020016118dc93929190614768565b60408051601f1981840301815291815261ffff85165f9081526001602052209061190690826147d2565b507f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce83838360405161193a9392919061469c565b60405180910390a1505050565b61194f6120d0565b601480546001600160a01b03909216650100000000000265010000000000600160c81b0319909216919091179055565b5f33610dd58185856122c4565b6119946120d0565b60148054911515620100000262ff000019909216919091179055565b6119b86120d0565b61137f81612c74565b6119c96120d0565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b9060200160405180910390a150565b611a256120d0565b601454640100000000900460ff1615611a755760405162461bcd60e51b8152602060048201526012602482015271151c98591a5b99c81b9bdd081c185d5cd95960721b6044820152606401610f56565b601480544360115564ff000000ff1916640100000001179055565b611a986120d0565b6001600160a01b03919091165f908152601560205260409020805460ff1916911515919091179055565b611aca6120d0565b601055565b611ad76120d0565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d9169063cbed8b9c90611b2b908890889088908890889060040161488d565b5f604051808303815f87803b158015611b42575f80fd5b505af115801561154d573d5f803e3d5ffd5b61ffff86165f908152600560205260408082209051611b769088908890614665565b90815260408051602092819003830190206001600160401b0387165f9081529252902054905080611bf95760405162461bcd60e51b815260206004820152602760248201527f4e6f6e626c6f636b696e67506f6e7a69654170703a206e6f2073746f726564206044820152666d65737361676560c81b6064820152608401610f56565b808383604051611c0a929190614665565b604051809103902014611c6d5760405162461bcd60e51b815260206004820152602560248201527f4e6f6e626c6f636b696e67506f6e7a69654170703a20696e76616c69642070616044820152641e5b1bd85960da1b6064820152608401610f56565b61ffff87165f908152600560205260408082209051611c8f9089908990614665565b90815260408051602092819003830181206001600160401b0389165f90815290845282902093909355601f88018290048202830182019052868252611d2491899189908990819084018382808284375f9201919091525050604080516020601f8a018190048102820181019092528881528a9350915088908890819084018382808284375f92019190915250612e5a92505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e58787878785604051611d5b9594939291906148c5565b60405180910390a150505050505050565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205490565b611d9e6120d0565b61ffff8381165f8181526002602090815260408083209487168084529482529182902085905581519283528201929092529081018290527f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac09060600161193a565b611e076120d0565b600a8211158015611e195750600a8111155b611e655760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207365742074617865732061626f7665203130000000000000006044820152606401610f56565b600d91909155600e556014805460ff19169055565b611e826120d0565b61ffff83165f908152600160205260409020611e9f8284836148ff565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab83838360405161193a9392919061469c565b611edb6120d0565b6001600160a01b038116611f405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f56565b61137f81612914565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d96001600160a01b03169063f5ecbdbc906084015f60405180830381865afa158015611fc6573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052611fed91908101906149b8565b95945050505050565b33301461205c5760405162461bcd60e51b815260206004820152602e60248201527f4e6f6e626c6f636b696e67506f6e7a69654170703a2063616c6c6572206d757360448201526d07420626520506f6e7a69654170760941b6064820152608401610f56565b6113f98686868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525050604080516020601f8901819004810282018101909252878152899350915087908790819084018382808284375f92019190915250612e5a92505050565b5f546001600160a01b031633146114125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f56565b6001600160a01b03831661218b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610f56565b6001600160a01b0382166121ec5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610f56565b6001600160a01b038381165f8181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f6122578484611d6c565b90505f1981146122be57818110156122b15760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610f56565b6122be8484848403612129565b50505050565b5f81116123225760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e73666572206d75737420626520677265617465722060448201526507468616e20360d41b6064820152608401610f56565b601454640100000000900460ff166123a0575f546001600160a01b038481169116148061235b57505f546001600160a01b038381169116145b6123a05760405162461bcd60e51b8152602060048201526016602482015275151c98591a5b99c81b9bdd081858dd1a5d99481e595d60521b6044820152606401610f56565b6014545f9060ff16156123b6576123b6436112e3565b7f000000000000000000000000a9bd9f4f9bf25c498cd1bbb4a28cd6942afd08f56001600160a01b0316846001600160a01b031614801561240f57506001600160a01b0383165f9081526015602052604090205460ff16155b1561250c5760105482612436856001600160a01b03165f9081526007602052604090205490565b6124409190614652565b11156124855760405162461bcd60e51b815260206004820152601460248201527313585e0815d85b1b195d08125b881159999958dd60621b6044820152606401610f56565b600c548211156124ca5760405162461bcd60e51b815260206004820152601060248201526f13585e08151e081a5b881959999958dd60821b6044820152606401610f56565b601454610100900460ff16156124f7576064600d54836124ea9190614a2c565b6124f49190614a57565b90505b60128054905f61250683614a6a565b91905055505b7f000000000000000000000000a9bd9f4f9bf25c498cd1bbb4a28cd6942afd08f56001600160a01b0316836001600160a01b031614801561256557506001600160a01b0384165f9081526015602052604090205460ff16155b156125dc57600c548211156125af5760405162461bcd60e51b815260206004820152601060248201526f13585e08151e081a5b881959999958dd60821b6044820152606401610f56565b601454610100900460ff16156125dc576064600e54836125cf9190614a2c565b6125d99190614a57565b90505b305f90815260076020526040902054600f548110801590819061260957506014546301000000900460ff16155b801561264757507f000000000000000000000000a9bd9f4f9bf25c498cd1bbb4a28cd6942afd08f56001600160a01b0316866001600160a01b031614155b801561266b57506001600160a01b0386165f9081526015602052604090205460ff16155b801561267a5750601354601254115b1561268a5761268a600f54612c74565b82156126b9575f61269b8486614755565b90506126a8873086612edf565b6126b3878783612edf565b506113f9565b6113f9868686612edf565b5f805f61270f876126d488613088565b604080515f6020820152602181019390935260c09190911b6001600160c01b0319166041830152805160298184030181526049909201905290565b60405163040a7bb160e41b81529091506001600160a01b037f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d916906340a7bb1090612766908b90309086908b908b90600401614a82565b6040805180830381865afa158015612780573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127a49190614ad5565b92509250509550959350505050565b5f806128155a609663fd545fe060e01b898989896040516024016127da9493929190614af7565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091523092919061310d565b91509150816113f9576113f98686868685613191565b5f6128388782848161322b565b612841856132fe565b5090506128508888888461333d565b90505f81116128a15760405162461bcd60e51b815260206004820152601c60248201527f524542415345436f72653a20616d6f756e7420746f6f20736d616c6c000000006044820152606401610f56565b5f6128af876126d484613088565b90506128bf88828787873461336e565b86896001600160a01b03168961ffff167fd81fc9b8523134ed613870ed029d6170cbb73aa6a6bc311b9a642689fb9df59a8560405161290091815260200190565b60405180910390a450979650505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f61297a896001846001600160401b03891661322b565b612983876132fe565b5090506129928a8a8a8461333d565b90505f81116129e35760405162461bcd60e51b815260206004820152601c60248201527f524542415345436f72653a20616d6f756e7420746f6f20736d616c6c000000006044820152606401610f56565b5f6129f9338a6129f285613088565b8a8a61350f565b9050612a098a828787873461336e565b888b6001600160a01b03168b61ffff167fd81fc9b8523134ed613870ed029d6170cbb73aa6a6bc311b9a642689fb9df59a85604051612a4a91815260200190565b60405180910390a4509998505050505050505050565b5f33306001600160a01b03861614801590612a8d5750806001600160a01b0316856001600160a01b031614155b15612a9d57612a9d85828561224c565b612aa88585856122c4565b50909392505050565b606081612abf81601f614652565b1015612afe5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606401610f56565b612b088284614652565b84511015612b4c5760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606401610f56565b606082158015612b6a5760405191505f825260208201604052612bb4565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015612ba3578051835260209283019201612b8b565b5050858452601f01601f1916604052505b50949350505050565b5f805f612bce338a6129f28b613088565b60405163040a7bb160e41b81529091506001600160a01b037f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d916906340a7bb1090612c25908d90309086908b908b90600401614a82565b6040805180830381865afa158015612c3f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c639190614ad5565b925092505097509795505050505050565b6014805463ff000000191663010000001790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110612cba57612cba614b34565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d36573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d5a9190614b48565b81600181518110612d6d57612d6d614b34565b60200260200101906001600160a01b031690816001600160a01b031681525050612db8307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612129565b60145460405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81169263791ac94792612e1c9287925f92889265010000000000909204909116904290600401614b63565b5f604051808303815f87803b158015612e33575f80fd5b505af1158015612e45573d5f803e3d5ffd5b50506014805463ff0000001916905550505050565b5f612e658282613550565b905060ff8116612e8057612e7b858585856135ab565b610dc1565b5f1960ff821601612e9757612e7b85858585613639565b60405162461bcd60e51b815260206004820152601f60248201527f524542415345436f72653a20756e6b6e6f776e207061636b65742074797065006044820152606401610f56565b6001600160a01b038316612f435760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610f56565b6001600160a01b038216612fa55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610f56565b6001600160a01b0383165f908152600760205260409020548181101561301c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610f56565b6001600160a01b038085165f8181526007602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061307b9086815260200190565b60405180910390a36122be565b5f806130b47f00000000000000000000000000000000000000000000000000000002540be40084614a57565b90506001600160401b03811115610cae5760405162461bcd60e51b815260206004820152601d60248201527f524542415345436f72653a20616d6f756e745344206f766572666c6f770000006044820152606401610f56565b5f60605f805f8661ffff166001600160401b0381111561312f5761312f6140b0565b6040519080825280601f01601f191660200182016040528015613159576020820181803683370190505b5090505f808751602089015f8d8df191503d925086831115613179578692505b828152825f602083013e909890975095505050505050565b818051906020012060055f8761ffff1661ffff1681526020019081526020015f20856040516131c09190614beb565b9081526040805191829003602090810183206001600160401b0388165f908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c9061321c9087908790879087908790614bf6565b60405180910390a15050505050565b5f61323583613841565b61ffff8087165f90815260026020908152604080832093891683529290522054909150806132a55760405162461bcd60e51b815260206004820152601e60248201527f506f6e7a69654170703a206d696e4761734c696d6974206e6f742073657400006044820152606401610f56565b6132af8382614652565b8210156113f95760405162461bcd60e51b815260206004820152601f60248201527f506f6e7a69654170703a20676173206c696d697420697320746f6f206c6f77006044820152606401610f56565b5f8061332a7f00000000000000000000000000000000000000000000000000000002540be40084614c47565b90506133368184614755565b9150915091565b5f336001600160a01b038616811461335a5761335a86828561224c565b613364868461389c565b5090949350505050565b61ffff86165f908152600160205260408120805461338b9061460c565b80601f01602080910402602001604051908101604052809291908181526020018280546133b79061460c565b80156134025780601f106133d957610100808354040283529160200191613402565b820191905f5260205f20905b8154815290600101906020018083116133e557829003601f168201915b5050505050905080515f036134765760405162461bcd60e51b815260206004820152603460248201527f506f6e7a69654170703a2064657374696e6174696f6e20636861696e206973206044820152736e6f742061207472757374656420736f7572636560601b6064820152608401610f56565b6134818787516139ce565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000daa19f805fd37fd5d9ff9e2d199015fa73df9d9169063c58031009084906134d8908b9086908c908c908c908c90600401614c5a565b5f604051808303818588803b1580156134ef575f80fd5b505af1158015613501573d5f803e3d5ffd5b505050505050505050505050565b6060600185856001600160a01b038916858760405160200161353696959493929190614cc0565b604051602081830303815290604052905095945050505050565b5f61355c826001614652565b835110156135a25760405162461bcd60e51b8152602060048201526013602482015272746f55696e74385f6f75744f66426f756e647360681b6044820152606401610f56565b50016001015190565b5f806135b683613a4a565b90925090506001600160a01b0382166135cf5761dead91505b5f6135d982613ad3565b90506135e6878483613b07565b9050826001600160a01b03168761ffff167fbf551ec93859b170f9b2141bd9298bf3f64322c6f7beb2543a0cb669834118bf8360405161362891815260200190565b60405180910390a350505050505050565b5f805f805f61364786613b19565b945094509450945094505f60065f8b61ffff1661ffff1681526020019081526020015f20896040516136799190614beb565b90815260408051602092819003830190206001600160401b038b165f908152925281205460ff1691506136ab85613ad3565b905081613717576136bd8b3083613b07565b61ffff8c165f908152600660205260409081902090519192506001916136e4908d90614beb565b90815260408051602092819003830190206001600160401b038d165f90815292529020805460ff19169115159190911790555b6001600160a01b0386163b61376e576040516001600160a01b03871681527f9aedf5fdba8716db3b6705ca00150643309995d4f818a249ed6dde6677e7792d9060200160405180910390a1505050505050506122be565b8a8a8a8a8a8a868a5f8a61378b578b6001600160401b031661378d565b5a5b90505f806137be5a6096639a2095a560e01b8e8e8e8d8d8d8d8d6040516024016127da989796959493929190614d08565b915091508115613817578751602089012060405161ffff8d16907f6d76c6b2837f234f610c722403fa5f92d7d05f167f2918924b59b8e34f3a43bf90613809908e908e908690614d7b565b60405180910390a250613824565b6138248b8b8b8b85613191565b50505050505050505050505050505050505050505050565b505050565b5f6022825110156138945760405162461bcd60e51b815260206004820181905260248201527f506f6e7a69654170703a20696e76616c69642061646170746572506172616d736044820152606401610f56565b506022015190565b6001600160a01b0382166138fc5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610f56565b6001600160a01b0382165f908152600760205260409020548181101561396f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610f56565b6001600160a01b0383165f8181526007602090815260408083208686039055600980548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b61ffff82165f90815260036020526040812054908190036139ee57506127105b8082111561383c5760405162461bcd60e51b8152602060048201526024808201527f506f6e7a69654170703a207061796c6f61642073697a6520697320746f6f206c6044820152636172676560e01b6064820152608401610f56565b5f8080613a578482613550565b60ff16148015613a68575082516029145b613ab45760405162461bcd60e51b815260206004820152601b60248201527f524542415345436f72653a20696e76616c6964207061796c6f616400000000006044820152606401610f56565b613abf83600d613bd4565b9150613acc836021613c38565b9050915091565b5f610cae7f00000000000000000000000000000000000000000000000000000002540be4006001600160401b038416614a2c565b5f613b128383613c94565b5092915050565b5f80806060816001613b2b8783613550565b60ff1614613b7b5760405162461bcd60e51b815260206004820152601b60248201527f524542415345436f72653a20696e76616c6964207061796c6f616400000000006044820152606401610f56565b613b8686600d613bd4565b9350613b93866021613c38565b9250613ba0866029613d53565b9450613bad866049613c38565b9050613bc96051808851613bc19190614755565b889190612ab1565b915091939590929450565b5f613be0826014614652565b83511015613c285760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606401610f56565b500160200151600160601b900490565b5f613c44826008614652565b83511015613c8b5760405162461bcd60e51b8152602060048201526014602482015273746f55696e7436345f6f75744f66426f756e647360601b6044820152606401610f56565b50016008015190565b6001600160a01b038216613cea5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610f56565b8060095f828254613cfb9190614652565b90915550506001600160a01b0382165f818152600760209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f613d5f826020614652565b83511015613da75760405162461bcd60e51b8152602060048201526015602482015274746f427974657333325f6f75744f66426f756e647360581b6044820152606401610f56565b50016020015190565b5f60208284031215613dc0575f80fd5b81356001600160e01b0319811681146117b2575f80fd5b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6117b26020830184613dd7565b803561ffff81168114613e28575f80fd5b919050565b5f60208284031215613e3d575f80fd5b6117b282613e17565b6001600160a01b038116811461137f575f80fd5b5f8060408385031215613e6b575f80fd5b8235613e7681613e46565b946020939093013593505050565b5f8060408385031215613e95575f80fd5b613e7683613e17565b5f805f60608486031215613eb0575f80fd5b8335613ebb81613e46565b92506020840135613ecb81613e46565b929592945050506040919091013590565b80358015158114613e28575f80fd5b5f60208284031215613efb575f80fd5b6117b282613edc565b5f8083601f840112613f14575f80fd5b5081356001600160401b03811115613f2a575f80fd5b602083019150836020828501011115613f41575f80fd5b9250929050565b5f805f805f8060a08789031215613f5d575f80fd5b613f6687613e17565b95506020870135945060408701359350613f8260608801613edc565b925060808701356001600160401b03811115613f9c575f80fd5b613fa889828a01613f04565b979a9699509497509295939492505050565b5f60208284031215613fca575f80fd5b5035919050565b5f805f60408486031215613fe3575f80fd5b613fec84613e17565b925060208401356001600160401b03811115614006575f80fd5b61401286828701613f04565b9497909650939450505050565b80356001600160401b0381168114613e28575f80fd5b5f805f805f806080878903121561404a575f80fd5b61405387613e17565b955060208701356001600160401b038082111561406e575f80fd5b61407a8a838b01613f04565b909750955085915061408e60408a0161401f565b945060608901359150808211156140a3575f80fd5b50613fa889828a01613f04565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b03811182821017156140ec576140ec6140b0565b604052919050565b5f6001600160401b0382111561410c5761410c6140b0565b50601f01601f191660200190565b5f805f6060848603121561412c575f80fd5b61413584613e17565b925060208401356001600160401b0381111561414f575f80fd5b8401601f8101861361415f575f80fd5b803561417261416d826140f4565b6140c4565b818152876020838501011115614186575f80fd5b816020840160208301375f602083830101528094505050506141aa6040850161401f565b90509250925092565b5f606082840312156141c3575f80fd5b50919050565b5f805f805f60a086880312156141dd575f80fd5b85356141e881613e46565b94506141f660208701613e17565b9350604086013592506060860135915060808601356001600160401b0381111561421e575f80fd5b61422a888289016141b3565b9150509295509295909350565b5f60208284031215614247575f80fd5b81356117b281613e46565b5f805f805f805f8060e0898b031215614269575f80fd5b883561427481613e46565b975061428260208a01613e17565b9650604089013595506060890135945060808901356001600160401b03808211156142ab575f80fd5b6142b78c838d01613f04565b90965094508491506142cb60a08c0161401f565b935060c08b01359150808211156142e0575f80fd5b506142ed8b828c016141b3565b9150509295985092959890939650565b5f806040838503121561430e575f80fd5b61431783613e17565b915061432560208401613e17565b90509250929050565b5f805f805f805f805f806101008b8d031215614348575f80fd5b6143518b613e17565b995060208b01356001600160401b038082111561436c575f80fd5b6143788e838f01613f04565b909b50995089915061438c60408e0161401f565b985060608d0135975060808d013591506143a582613e46565b90955060a08c0135945060c08c013590808211156143c1575f80fd5b506143ce8d828e01613f04565b9150809450508092505060e08b013590509295989b9194979a5092959850565b5f805f805f805f805f60e08a8c031215614406575f80fd5b61440f8a613e17565b985060208a0135975060408a0135965060608a01356001600160401b0380821115614438575f80fd5b6144448d838e01613f04565b909850965086915061445860808d0161401f565b955061446660a08d01613edc565b945060c08c013591508082111561447b575f80fd5b506144888c828d01613f04565b915080935050809150509295985092959850929598565b5f80604083850312156144b0575f80fd5b82356144bb81613e46565b915061432560208401613edc565b5f805f805f608086880312156144dd575f80fd5b6144e686613e17565b94506144f460208701613e17565b93506040860135925060608601356001600160401b03811115614515575f80fd5b61452188828901613f04565b969995985093965092949392505050565b5f8060408385031215614543575f80fd5b823561454e81613e46565b9150602083013561455e81613e46565b809150509250929050565b5f805f6060848603121561457b575f80fd5b61458484613e17565b925061459260208501613e17565b9150604084013590509250925092565b5f80604083850312156145b3575f80fd5b50508035926020909101359150565b5f805f80608085870312156145d5575f80fd5b6145de85613e17565b93506145ec60208601613e17565b925060408501356145fc81613e46565b9396929550929360600135925050565b600181811c9082168061462057607f821691505b6020821081036141c357634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610cae57610cae61463e565b818382375f9101908152919050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201525f611fed604083018486614674565b5f808335601e198436030181126146ce575f80fd5b8301803591506001600160401b038211156146e7575f80fd5b602001915036819003821315613f41575f80fd5b61ffff8916815260c060208201525f61471860c08301898b614674565b6001600160401b038816604084015286606084015285608084015282810360a0840152614746818587614674565b9b9a5050505050505050505050565b81810381811115610cae57610cae61463e565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b601f82111561383c57805f5260205f20601f840160051c810160208510156147b35750805b601f840160051c820191505b81811015610dc1575f81556001016147bf565b81516001600160401b038111156147eb576147eb6140b0565b6147ff816147f9845461460c565b8461478e565b602080601f831160018114614832575f841561481b5750858301515b5f19600386901b1c1916600185901b1785556113f9565b5f85815260208120601f198616915b8281101561486057888601518255948401946001909101908401614841565b508582101561487d57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f61ffff8088168352808716602084015250846040830152608060608301526148ba608083018486614674565b979650505050505050565b61ffff86168152608060208201525f6148e2608083018688614674565b6001600160401b0394909416604083015250606001529392505050565b6001600160401b03831115614916576149166140b0565b61492a83614924835461460c565b8361478e565b5f601f84116001811461495b575f85156149445750838201355b5f19600387901b1c1916600186901b178355610dc1565b5f83815260208120601f198716915b8281101561498a578685013582556020948501946001909201910161496a565b50868210156149a6575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f602082840312156149c8575f80fd5b81516001600160401b038111156149dd575f80fd5b8201601f810184136149ed575f80fd5b80516149fb61416d826140f4565b818152856020838501011115614a0f575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b8082028115828204841417610cae57610cae61463e565b634e487b7160e01b5f52601260045260245ffd5b5f82614a6557614a65614a43565b500490565b5f60018201614a7b57614a7b61463e565b5060010190565b61ffff861681526001600160a01b038516602082015260a0604082018190525f90614aaf90830186613dd7565b84151560608401528281036080840152614ac98185613dd7565b98975050505050505050565b5f8060408385031215614ae6575f80fd5b505080516020909101519092909150565b61ffff85168152608060208201525f614b136080830186613dd7565b6001600160401b038516604084015282810360608401526148ba8185613dd7565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215614b58575f80fd5b81516117b281613e46565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b81811015614bb35784516001600160a01b031683529383019391830191600101614b8e565b50506001600160a01b03969096166060850152505050608001529392505050565b5f81518060208401855e5f93019283525090919050565b5f6117b28284614bd4565b61ffff8616815260a060208201525f614c1260a0830187613dd7565b6001600160401b03861660408401528281036060840152614c338186613dd7565b90508281036080840152614ac98185613dd7565b5f82614c5557614c55614a43565b500690565b61ffff8716815260c060208201525f614c7660c0830188613dd7565b8281036040840152614c888188613dd7565b6001600160a01b0387811660608601528616608085015283810360a08501529050614cb38185613dd7565b9998505050505050505050565b60ff60f81b8760f81b1681528560018201525f6001600160401b0360c01b808760c01b166021840152856029840152808560c01b16604984015250614ac96051830184614bd4565b5f61010061ffff8b168352806020840152614d258184018b613dd7565b6001600160401b038a166040850152606084018990526001600160a01b038816608085015260a0840187905283810360c08501529050614d658186613dd7565b9150508260e08301529998505050505050505050565b606081525f614d8d6060830186613dd7565b6001600160401b03949094166020830152506040015291905056fea2646970667358221220ad7cdc6aa449ba377d9e834064219682f56984ecf6fe5d0fa87bb1d740d8efb864736f6c63430008190033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.