UXLINK's UX Self Claim contract on Arbitrum. This nametag was submitted by Kleros Scout.
Latest 25 from a total of 856,841 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 410603954 | 33 mins ago | IN | 0 ETH | 0.00000101 | ||||
| Claim | 410343709 | 18 hrs ago | IN | 0 ETH | 0.00000101 | ||||
| Claim | 410333562 | 19 hrs ago | IN | 0 ETH | 0.00000118 | ||||
| Claim | 410073770 | 37 hrs ago | IN | 0 ETH | 0.00000118 | ||||
| Claim | 409936315 | 46 hrs ago | IN | 0 ETH | 0.00000126 | ||||
| Claim | 409800980 | 2 days ago | IN | 0 ETH | 0.00000101 | ||||
| Claim | 409516648 | 3 days ago | IN | 0 ETH | 0.00000101 | ||||
| Claim | 409096307 | 4 days ago | IN | 0 ETH | 0.00000101 | ||||
| Claim | 409063154 | 4 days ago | IN | 0 ETH | 0.00000101 | ||||
| Claim | 408828869 | 5 days ago | IN | 0 ETH | 0.00000118 | ||||
| Claim | 408737928 | 5 days ago | IN | 0 ETH | 0.00000118 | ||||
| Claim | 408523510 | 6 days ago | IN | 0 ETH | 0.00000121 | ||||
| Claim | 408509914 | 6 days ago | IN | 0 ETH | 0.00000771 | ||||
| Claim | 407928068 | 7 days ago | IN | 0 ETH | 0.00000101 | ||||
| Claim | 407874127 | 7 days ago | IN | 0 ETH | 0.00000101 | ||||
| Claim | 407517717 | 8 days ago | IN | 0 ETH | 0.00000367 | ||||
| Claim | 407436983 | 9 days ago | IN | 0 ETH | 0.00000696 | ||||
| Claim | 406890050 | 10 days ago | IN | 0 ETH | 0.00000354 | ||||
| Claim | 406363491 | 12 days ago | IN | 0 ETH | 0.00000102 | ||||
| Claim | 406340678 | 12 days ago | IN | 0 ETH | 0.00000111 | ||||
| Claim | 406174152 | 12 days ago | IN | 0 ETH | 0.00000262 | ||||
| Claim | 406137681 | 12 days ago | IN | 0 ETH | 0.00000271 | ||||
| Claim | 405294876 | 15 days ago | IN | 0 ETH | 0.00000102 | ||||
| Claim | 404728372 | 16 days ago | IN | 0 ETH | 0.00000102 | ||||
| Claim | 404674166 | 17 days ago | IN | 0 ETH | 0.00000102 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
UXSelfClaim
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
pragma abicoder v2;
import '@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol';
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
interface UxuyToken {
function reward(uint256 amount, address toUser) external returns (bool);
}
contract UXSelfClaim {
using ECDSA for bytes32;
UxuyToken private _uxuyToken;
address public UXUYTOKEN = 0xebd792134a53A4B304A8f6A0A9319B99fDC3fd35;
bool public claimStatus = true;
address private signer;
/// _exists transId
mapping(uint256 => bool) private transIds;
/// @notice Addresses of super operators
mapping(address => bool) public superOperators;
/// @notice Requires sender to be contract super operator
modifier isSuperOperator() {
// Ensure sender is super operator
require(superOperators[msg.sender], "Not super operator");
_;
}
event ClaimedSuccess(
address wallet,
uint256 amount,
string transId
);
event ClaimedFailed(
address wallet,
uint256 amount,
string transId
);
/// constructor
constructor() {
superOperators[msg.sender] = true;
_uxuyToken = UxuyToken(UXUYTOKEN);
}
function claim(
uint256 amount,
bytes memory signature,
string memory transId
) public payable {
require(claimStatus, "claimStatus is false");
require(amount > 0, " UxuyToken is zero");
require(existsTransId(transId) == false, "Exists transId");
require(verifySignature(transId,amount, msg.sender, signature), "Signature is invalid");
// record
setTransId(transId);
try _uxuyToken.reward(amount, msg.sender) {
emit ClaimedSuccess(msg.sender, amount, transId);
} catch {
emit ClaimedFailed(msg.sender, amount, transId);
}
}
function setTransId(string memory transId) internal {
bytes32 label = keccak256(bytes(transId));
uint256 id = uint256(label);
transIds[id] = true;
}
function existsTransId(string memory transId) internal view returns (bool){
bytes32 label = keccak256(bytes(transId));
uint256 id = uint256(label);
if(transIds[id]){
return true;
}else{
return false;
}
}
function toMessageHash(string memory transId,uint256 amount, address to) public pure returns (bytes32) {
return keccak256(abi.encodePacked(transId, amount, to));
}
function verifySignature(string memory transId, uint256 amount, address to, bytes memory signature) public view returns (bool){
bytes32 hash = toMessageHash(transId, amount, to);
return (signer == hash.toEthSignedMessageHash().recover(signature));
}
receive() external payable {}
function getSigner() public view isSuperOperator returns (address) {
return signer;
}
function setSigner(address _addr) external isSuperOperator {
signer = _addr;
}
function setUXUYToken(address _uxuytoken) external isSuperOperator {
UXUYTOKEN = _uxuytoken;
_uxuyToken = UxuyToken(UXUYTOKEN);
}
function setClaimStatus(bool _flag) external isSuperOperator {
claimStatus = _flag;
}
function withdrawStuckToken(address _token, address _to) external isSuperOperator {
require(_token != address(0), "_token address cannot be 0");
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
TransferHelper.safeTransfer(_token, _to, _contractBalance);
}
function withdrawStuckEth(address toAddr) external isSuperOperator {
(bool success, ) = toAddr.call{
value: address(this).balance
} ("");
require(success);
}
/// @notice Allows super operator to update super operator
function authorizeOperator(address _operator) external isSuperOperator {
superOperators[_operator] = true;
}
/// @notice Allows super operator to update super operator
function revokeOperator(address _operator) external isSuperOperator {
superOperators[_operator] = false;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV // Deprecated in v4.8
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32")
mstore(0x1c, hash)
message := keccak256(0x00, 0x3c)
}
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, "\x19\x01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
data := keccak256(ptr, 0x42)
}
}
/**
* @dev Returns an Ethereum Signed Data with intended validator, created from a
* `validator` and `data` according to the version 0 of EIP-191.
*
* See {recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x00", validator, data));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1, "Math: mulDiv overflow");
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
import "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toString(int256 value) internal pure returns (string memory) {
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return keccak256(bytes(a)) == keccak256(bytes(b));
}
}// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
library TransferHelper {
/// @notice Transfers tokens from the targeted address to the given destination
/// @notice Errors with 'STF' if transfer fails
/// @param token The contract address of the token to be transferred
/// @param from The originating address from which the tokens will be transferred
/// @param to The destination address of the transfer
/// @param value The amount to be transferred
function safeTransferFrom(
address token,
address from,
address to,
uint256 value
) internal {
(bool success, bytes memory data) =
token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');
}
/// @notice Transfers tokens from msg.sender to a recipient
/// @dev Errors with ST if transfer fails
/// @param token The contract address of the token which will be transferred
/// @param to The recipient of the transfer
/// @param value The value of the transfer
function safeTransfer(
address token,
address to,
uint256 value
) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST');
}
/// @notice Approves the stipulated contract to spend the given allowance in the given token
/// @dev Errors with 'SA' if transfer fails
/// @param token The contract address of the token to be approved
/// @param to The target of the approval
/// @param value The amount of the given token the target will be allowed to spend
function safeApprove(
address token,
address to,
uint256 value
) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA');
}
/// @notice Transfers ETH to the recipient address
/// @dev Fails with `STE`
/// @param to The destination of the transfer
/// @param value The value to be transferred
function safeTransferETH(address to, uint256 value) internal {
(bool success, ) = to.call{value: value}(new bytes(0));
require(success, 'STE');
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"transId","type":"string"}],"name":"ClaimedFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"transId","type":"string"}],"name":"ClaimedSuccess","type":"event"},{"inputs":[],"name":"UXUYTOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"authorizeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"transId","type":"string"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"revokeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_uxuytoken","type":"address"}],"name":"setUXUYToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"superOperators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"transId","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"toMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"transId","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verifySignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toAddr","type":"address"}],"name":"withdrawStuckEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawStuckToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405273ebd792134a53a4b304a8f6a0a9319b99fdc3fd35600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018060146101000a81548160ff02191690831515021790555034801561007f57600080fd5b506001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612126806101496000396000f3fe6080604052600436106100e15760003560e01c8063959b8c3f1161007f578063ae87fc4b11610059578063ae87fc4b146102c7578063bc205ad3146102f2578063dc4c20b61461031b578063fad8b32a14610337576100e8565b8063959b8c3f146102245780639f40c9a71461024d578063a0fff09e1461028a576100e8565b80636c19e783116100bb5780636c19e7831461017c5780637ac3c02f146101a55780637ca8448a146101d05780639010de85146101f9576100e8565b80631757d36f146100ed57806364cb36b81461012a578063654f97a314610153576100e8565b366100e857005b600080fd5b3480156100f957600080fd5b50610114600480360381019061010f9190611555565b610360565b60405161012191906115dd565b60405180910390f35b34801561013657600080fd5b50610151600480360381019061014c91906115f8565b610396565b005b34801561015f57600080fd5b5061017a6004803603810190610175919061165d565b6104c8565b005b34801561018857600080fd5b506101a3600480360381019061019e91906115f8565b610571565b005b3480156101b157600080fd5b506101ba610641565b6040516101c79190611699565b60405180910390f35b3480156101dc57600080fd5b506101f760048036038101906101f291906115f8565b6106f7565b005b34801561020557600080fd5b5061020e6107fd565b60405161021b9190611699565b60405180910390f35b34801561023057600080fd5b5061024b600480360381019061024691906115f8565b610823565b005b34801561025957600080fd5b50610274600480360381019061026f91906115f8565b61090a565b60405161028191906116c3565b60405180910390f35b34801561029657600080fd5b506102b160048036038101906102ac919061177f565b61092a565b6040516102be91906116c3565b60405180910390f35b3480156102d357600080fd5b506102dc6109b0565b6040516102e991906116c3565b60405180910390f35b3480156102fe57600080fd5b506103196004803603810190610314919061181e565b6109c3565b005b6103356004803603810190610330919061185e565b610b4c565b005b34801561034357600080fd5b5061035e600480360381019061035991906115f8565b610d9e565b005b6000838383604051602001610377939291906119c3565b6040516020818303038152906040528051906020012090509392505050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161041990611a59565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054b90611a59565b60405180910390fd5b80600160146101000a81548160ff02191690831515021790555050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166105fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f490611a59565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166106cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c690611a59565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077a90611a59565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516107a990611aaa565b60006040518083038185875af1925050503d80600081146107e6576040519150601f19603f3d011682016040523d82523d6000602084013e6107eb565b606091505b50509050806107f957600080fd5b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166108af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a690611a59565b60405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60046020528060005260406000206000915054906101000a900460ff1681565b600080610938868686610360565b90506109558361094783610e85565b610ebb90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614915050949350505050565b600160149054906101000a900460ff1681565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610a4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4690611a59565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab590611b0b565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610af99190611699565b602060405180830381865afa158015610b16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3a9190611b40565b9050610b47838383610ee2565b505050565b600160149054906101000a900460ff16610b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9290611bb9565b60405180910390fd5b60008311610bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd590611c25565b60405180910390fd5b60001515610beb82611037565b151514610c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2490611c91565b60405180910390fd5b610c398184338561092a565b610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90611cfd565b60405180910390fd5b610c8181611089565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166371bb61f384336040518363ffffffff1660e01b8152600401610cdc929190611d2c565b6020604051808303816000875af1925050508015610d1857506040513d601f19601f82011682018060405250810190610d159190611d6a565b60015b610d5c577f66795cbc29e94ca85177b1565b877e1c139eeaf15baaaedec3d22a84b3584eb1338483604051610d4f93929190611dd0565b60405180910390a1610d99565b507f5471252e0e324f403b7c879e3ea5f07f97330994cb54e52233ec2c9dd7b2408d338483604051610d9093929190611dd0565b60405180910390a15b505050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610e2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2190611a59565b60405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000610eca85856110ce565b91509150610ed78161111f565b819250505092915050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b8585604051602401610f17929190611e0e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610f819190611e73565b6000604051808303816000865af19150503d8060008114610fbe576040519150601f19603f3d011682016040523d82523d6000602084013e610fc3565b606091505b5091509150818015610ff15750600081511480610ff0575080806020019051810190610fef9190611d6a565b5b5b611030576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102790611ed6565b60405180910390fd5b5050505050565b6000808280519060200120905060008160001c90506003600082815260200190815260200160002060009054906101000a900460ff161561107d57600192505050611084565b6000925050505b919050565b60008180519060200120905060008160001c905060016003600083815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600080604183510361110f5760008060006020860151925060408601519150606086015160001a905061110387828585611285565b94509450505050611118565b60006002915091505b9250929050565b6000600481111561113357611132611ef6565b5b81600481111561114657611145611ef6565b5b031561128257600160048111156111605761115f611ef6565b5b81600481111561117357611172611ef6565b5b036111b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111aa90611f71565b60405180910390fd5b600260048111156111c7576111c6611ef6565b5b8160048111156111da576111d9611ef6565b5b0361121a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121190611fdd565b60405180910390fd5b6003600481111561122e5761122d611ef6565b5b81600481111561124157611240611ef6565b5b03611281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112789061206f565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156112c057600060039150915061135e565b6000600187878787604051600081526020016040526040516112e594939291906120ab565b6020604051602081039080840390855afa158015611307573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113555760006001925092505061135e565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6113ce82611385565b810181811067ffffffffffffffff821117156113ed576113ec611396565b5b80604052505050565b6000611400611367565b905061140c82826113c5565b919050565b600067ffffffffffffffff82111561142c5761142b611396565b5b61143582611385565b9050602081019050919050565b82818337600083830152505050565b600061146461145f84611411565b6113f6565b9050828152602081018484840111156114805761147f611380565b5b61148b848285611442565b509392505050565b600082601f8301126114a8576114a761137b565b5b81356114b8848260208601611451565b91505092915050565b6000819050919050565b6114d4816114c1565b81146114df57600080fd5b50565b6000813590506114f1816114cb565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611522826114f7565b9050919050565b61153281611517565b811461153d57600080fd5b50565b60008135905061154f81611529565b92915050565b60008060006060848603121561156e5761156d611371565b5b600084013567ffffffffffffffff81111561158c5761158b611376565b5b61159886828701611493565b93505060206115a9868287016114e2565b92505060406115ba86828701611540565b9150509250925092565b6000819050919050565b6115d7816115c4565b82525050565b60006020820190506115f260008301846115ce565b92915050565b60006020828403121561160e5761160d611371565b5b600061161c84828501611540565b91505092915050565b60008115159050919050565b61163a81611625565b811461164557600080fd5b50565b60008135905061165781611631565b92915050565b60006020828403121561167357611672611371565b5b600061168184828501611648565b91505092915050565b61169381611517565b82525050565b60006020820190506116ae600083018461168a565b92915050565b6116bd81611625565b82525050565b60006020820190506116d860008301846116b4565b92915050565b600067ffffffffffffffff8211156116f9576116f8611396565b5b61170282611385565b9050602081019050919050565b600061172261171d846116de565b6113f6565b90508281526020810184848401111561173e5761173d611380565b5b611749848285611442565b509392505050565b600082601f8301126117665761176561137b565b5b813561177684826020860161170f565b91505092915050565b6000806000806080858703121561179957611798611371565b5b600085013567ffffffffffffffff8111156117b7576117b6611376565b5b6117c387828801611493565b94505060206117d4878288016114e2565b93505060406117e587828801611540565b925050606085013567ffffffffffffffff81111561180657611805611376565b5b61181287828801611751565b91505092959194509250565b6000806040838503121561183557611834611371565b5b600061184385828601611540565b925050602061185485828601611540565b9150509250929050565b60008060006060848603121561187757611876611371565b5b6000611885868287016114e2565b935050602084013567ffffffffffffffff8111156118a6576118a5611376565b5b6118b286828701611751565b925050604084013567ffffffffffffffff8111156118d3576118d2611376565b5b6118df86828701611493565b9150509250925092565b600081519050919050565b600081905092915050565b60005b8381101561191d578082015181840152602081019050611902565b60008484015250505050565b6000611934826118e9565b61193e81856118f4565b935061194e8185602086016118ff565b80840191505092915050565b6000819050919050565b611975611970826114c1565b61195a565b82525050565b60008160601b9050919050565b60006119938261197b565b9050919050565b60006119a582611988565b9050919050565b6119bd6119b882611517565b61199a565b82525050565b60006119cf8286611929565b91506119db8285611964565b6020820191506119eb82846119ac565b601482019150819050949350505050565b600082825260208201905092915050565b7f4e6f74207375706572206f70657261746f720000000000000000000000000000600082015250565b6000611a436012836119fc565b9150611a4e82611a0d565b602082019050919050565b60006020820190508181036000830152611a7281611a36565b9050919050565b600081905092915050565b50565b6000611a94600083611a79565b9150611a9f82611a84565b600082019050919050565b6000611ab582611a87565b9150819050919050565b7f5f746f6b656e20616464726573732063616e6e6f742062652030000000000000600082015250565b6000611af5601a836119fc565b9150611b0082611abf565b602082019050919050565b60006020820190508181036000830152611b2481611ae8565b9050919050565b600081519050611b3a816114cb565b92915050565b600060208284031215611b5657611b55611371565b5b6000611b6484828501611b2b565b91505092915050565b7f636c61696d5374617475732069732066616c7365000000000000000000000000600082015250565b6000611ba36014836119fc565b9150611bae82611b6d565b602082019050919050565b60006020820190508181036000830152611bd281611b96565b9050919050565b7f2055787579546f6b656e206973207a65726f0000000000000000000000000000600082015250565b6000611c0f6012836119fc565b9150611c1a82611bd9565b602082019050919050565b60006020820190508181036000830152611c3e81611c02565b9050919050565b7f457869737473207472616e734964000000000000000000000000000000000000600082015250565b6000611c7b600e836119fc565b9150611c8682611c45565b602082019050919050565b60006020820190508181036000830152611caa81611c6e565b9050919050565b7f5369676e617475726520697320696e76616c6964000000000000000000000000600082015250565b6000611ce76014836119fc565b9150611cf282611cb1565b602082019050919050565b60006020820190508181036000830152611d1681611cda565b9050919050565b611d26816114c1565b82525050565b6000604082019050611d416000830185611d1d565b611d4e602083018461168a565b9392505050565b600081519050611d6481611631565b92915050565b600060208284031215611d8057611d7f611371565b5b6000611d8e84828501611d55565b91505092915050565b6000611da2826118e9565b611dac81856119fc565b9350611dbc8185602086016118ff565b611dc581611385565b840191505092915050565b6000606082019050611de5600083018661168a565b611df26020830185611d1d565b8181036040830152611e048184611d97565b9050949350505050565b6000604082019050611e23600083018561168a565b611e306020830184611d1d565b9392505050565b600081519050919050565b6000611e4d82611e37565b611e578185611a79565b9350611e678185602086016118ff565b80840191505092915050565b6000611e7f8284611e42565b915081905092915050565b7f5354000000000000000000000000000000000000000000000000000000000000600082015250565b6000611ec06002836119fc565b9150611ecb82611e8a565b602082019050919050565b60006020820190508181036000830152611eef81611eb3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000611f5b6018836119fc565b9150611f6682611f25565b602082019050919050565b60006020820190508181036000830152611f8a81611f4e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000611fc7601f836119fc565b9150611fd282611f91565b602082019050919050565b60006020820190508181036000830152611ff681611fba565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006120596022836119fc565b915061206482611ffd565b604082019050919050565b600060208201905081810360008301526120888161204c565b9050919050565b600060ff82169050919050565b6120a58161208f565b82525050565b60006080820190506120c060008301876115ce565b6120cd602083018661209c565b6120da60408301856115ce565b6120e760608301846115ce565b9594505050505056fea26469706673582212209b634542bf8d12520a08697963070df40b1e959c91d38ec8b6085056d16f2f6564736f6c63430008130033
Deployed Bytecode
0x6080604052600436106100e15760003560e01c8063959b8c3f1161007f578063ae87fc4b11610059578063ae87fc4b146102c7578063bc205ad3146102f2578063dc4c20b61461031b578063fad8b32a14610337576100e8565b8063959b8c3f146102245780639f40c9a71461024d578063a0fff09e1461028a576100e8565b80636c19e783116100bb5780636c19e7831461017c5780637ac3c02f146101a55780637ca8448a146101d05780639010de85146101f9576100e8565b80631757d36f146100ed57806364cb36b81461012a578063654f97a314610153576100e8565b366100e857005b600080fd5b3480156100f957600080fd5b50610114600480360381019061010f9190611555565b610360565b60405161012191906115dd565b60405180910390f35b34801561013657600080fd5b50610151600480360381019061014c91906115f8565b610396565b005b34801561015f57600080fd5b5061017a6004803603810190610175919061165d565b6104c8565b005b34801561018857600080fd5b506101a3600480360381019061019e91906115f8565b610571565b005b3480156101b157600080fd5b506101ba610641565b6040516101c79190611699565b60405180910390f35b3480156101dc57600080fd5b506101f760048036038101906101f291906115f8565b6106f7565b005b34801561020557600080fd5b5061020e6107fd565b60405161021b9190611699565b60405180910390f35b34801561023057600080fd5b5061024b600480360381019061024691906115f8565b610823565b005b34801561025957600080fd5b50610274600480360381019061026f91906115f8565b61090a565b60405161028191906116c3565b60405180910390f35b34801561029657600080fd5b506102b160048036038101906102ac919061177f565b61092a565b6040516102be91906116c3565b60405180910390f35b3480156102d357600080fd5b506102dc6109b0565b6040516102e991906116c3565b60405180910390f35b3480156102fe57600080fd5b506103196004803603810190610314919061181e565b6109c3565b005b6103356004803603810190610330919061185e565b610b4c565b005b34801561034357600080fd5b5061035e600480360381019061035991906115f8565b610d9e565b005b6000838383604051602001610377939291906119c3565b6040516020818303038152906040528051906020012090509392505050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161041990611a59565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054b90611a59565b60405180910390fd5b80600160146101000a81548160ff02191690831515021790555050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166105fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f490611a59565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166106cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c690611a59565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077a90611a59565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516107a990611aaa565b60006040518083038185875af1925050503d80600081146107e6576040519150601f19603f3d011682016040523d82523d6000602084013e6107eb565b606091505b50509050806107f957600080fd5b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166108af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a690611a59565b60405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60046020528060005260406000206000915054906101000a900460ff1681565b600080610938868686610360565b90506109558361094783610e85565b610ebb90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614915050949350505050565b600160149054906101000a900460ff1681565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610a4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4690611a59565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab590611b0b565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610af99190611699565b602060405180830381865afa158015610b16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3a9190611b40565b9050610b47838383610ee2565b505050565b600160149054906101000a900460ff16610b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9290611bb9565b60405180910390fd5b60008311610bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd590611c25565b60405180910390fd5b60001515610beb82611037565b151514610c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2490611c91565b60405180910390fd5b610c398184338561092a565b610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90611cfd565b60405180910390fd5b610c8181611089565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166371bb61f384336040518363ffffffff1660e01b8152600401610cdc929190611d2c565b6020604051808303816000875af1925050508015610d1857506040513d601f19601f82011682018060405250810190610d159190611d6a565b60015b610d5c577f66795cbc29e94ca85177b1565b877e1c139eeaf15baaaedec3d22a84b3584eb1338483604051610d4f93929190611dd0565b60405180910390a1610d99565b507f5471252e0e324f403b7c879e3ea5f07f97330994cb54e52233ec2c9dd7b2408d338483604051610d9093929190611dd0565b60405180910390a15b505050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610e2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2190611a59565b60405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000610eca85856110ce565b91509150610ed78161111f565b819250505092915050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b8585604051602401610f17929190611e0e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610f819190611e73565b6000604051808303816000865af19150503d8060008114610fbe576040519150601f19603f3d011682016040523d82523d6000602084013e610fc3565b606091505b5091509150818015610ff15750600081511480610ff0575080806020019051810190610fef9190611d6a565b5b5b611030576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102790611ed6565b60405180910390fd5b5050505050565b6000808280519060200120905060008160001c90506003600082815260200190815260200160002060009054906101000a900460ff161561107d57600192505050611084565b6000925050505b919050565b60008180519060200120905060008160001c905060016003600083815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600080604183510361110f5760008060006020860151925060408601519150606086015160001a905061110387828585611285565b94509450505050611118565b60006002915091505b9250929050565b6000600481111561113357611132611ef6565b5b81600481111561114657611145611ef6565b5b031561128257600160048111156111605761115f611ef6565b5b81600481111561117357611172611ef6565b5b036111b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111aa90611f71565b60405180910390fd5b600260048111156111c7576111c6611ef6565b5b8160048111156111da576111d9611ef6565b5b0361121a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121190611fdd565b60405180910390fd5b6003600481111561122e5761122d611ef6565b5b81600481111561124157611240611ef6565b5b03611281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112789061206f565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156112c057600060039150915061135e565b6000600187878787604051600081526020016040526040516112e594939291906120ab565b6020604051602081039080840390855afa158015611307573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113555760006001925092505061135e565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6113ce82611385565b810181811067ffffffffffffffff821117156113ed576113ec611396565b5b80604052505050565b6000611400611367565b905061140c82826113c5565b919050565b600067ffffffffffffffff82111561142c5761142b611396565b5b61143582611385565b9050602081019050919050565b82818337600083830152505050565b600061146461145f84611411565b6113f6565b9050828152602081018484840111156114805761147f611380565b5b61148b848285611442565b509392505050565b600082601f8301126114a8576114a761137b565b5b81356114b8848260208601611451565b91505092915050565b6000819050919050565b6114d4816114c1565b81146114df57600080fd5b50565b6000813590506114f1816114cb565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611522826114f7565b9050919050565b61153281611517565b811461153d57600080fd5b50565b60008135905061154f81611529565b92915050565b60008060006060848603121561156e5761156d611371565b5b600084013567ffffffffffffffff81111561158c5761158b611376565b5b61159886828701611493565b93505060206115a9868287016114e2565b92505060406115ba86828701611540565b9150509250925092565b6000819050919050565b6115d7816115c4565b82525050565b60006020820190506115f260008301846115ce565b92915050565b60006020828403121561160e5761160d611371565b5b600061161c84828501611540565b91505092915050565b60008115159050919050565b61163a81611625565b811461164557600080fd5b50565b60008135905061165781611631565b92915050565b60006020828403121561167357611672611371565b5b600061168184828501611648565b91505092915050565b61169381611517565b82525050565b60006020820190506116ae600083018461168a565b92915050565b6116bd81611625565b82525050565b60006020820190506116d860008301846116b4565b92915050565b600067ffffffffffffffff8211156116f9576116f8611396565b5b61170282611385565b9050602081019050919050565b600061172261171d846116de565b6113f6565b90508281526020810184848401111561173e5761173d611380565b5b611749848285611442565b509392505050565b600082601f8301126117665761176561137b565b5b813561177684826020860161170f565b91505092915050565b6000806000806080858703121561179957611798611371565b5b600085013567ffffffffffffffff8111156117b7576117b6611376565b5b6117c387828801611493565b94505060206117d4878288016114e2565b93505060406117e587828801611540565b925050606085013567ffffffffffffffff81111561180657611805611376565b5b61181287828801611751565b91505092959194509250565b6000806040838503121561183557611834611371565b5b600061184385828601611540565b925050602061185485828601611540565b9150509250929050565b60008060006060848603121561187757611876611371565b5b6000611885868287016114e2565b935050602084013567ffffffffffffffff8111156118a6576118a5611376565b5b6118b286828701611751565b925050604084013567ffffffffffffffff8111156118d3576118d2611376565b5b6118df86828701611493565b9150509250925092565b600081519050919050565b600081905092915050565b60005b8381101561191d578082015181840152602081019050611902565b60008484015250505050565b6000611934826118e9565b61193e81856118f4565b935061194e8185602086016118ff565b80840191505092915050565b6000819050919050565b611975611970826114c1565b61195a565b82525050565b60008160601b9050919050565b60006119938261197b565b9050919050565b60006119a582611988565b9050919050565b6119bd6119b882611517565b61199a565b82525050565b60006119cf8286611929565b91506119db8285611964565b6020820191506119eb82846119ac565b601482019150819050949350505050565b600082825260208201905092915050565b7f4e6f74207375706572206f70657261746f720000000000000000000000000000600082015250565b6000611a436012836119fc565b9150611a4e82611a0d565b602082019050919050565b60006020820190508181036000830152611a7281611a36565b9050919050565b600081905092915050565b50565b6000611a94600083611a79565b9150611a9f82611a84565b600082019050919050565b6000611ab582611a87565b9150819050919050565b7f5f746f6b656e20616464726573732063616e6e6f742062652030000000000000600082015250565b6000611af5601a836119fc565b9150611b0082611abf565b602082019050919050565b60006020820190508181036000830152611b2481611ae8565b9050919050565b600081519050611b3a816114cb565b92915050565b600060208284031215611b5657611b55611371565b5b6000611b6484828501611b2b565b91505092915050565b7f636c61696d5374617475732069732066616c7365000000000000000000000000600082015250565b6000611ba36014836119fc565b9150611bae82611b6d565b602082019050919050565b60006020820190508181036000830152611bd281611b96565b9050919050565b7f2055787579546f6b656e206973207a65726f0000000000000000000000000000600082015250565b6000611c0f6012836119fc565b9150611c1a82611bd9565b602082019050919050565b60006020820190508181036000830152611c3e81611c02565b9050919050565b7f457869737473207472616e734964000000000000000000000000000000000000600082015250565b6000611c7b600e836119fc565b9150611c8682611c45565b602082019050919050565b60006020820190508181036000830152611caa81611c6e565b9050919050565b7f5369676e617475726520697320696e76616c6964000000000000000000000000600082015250565b6000611ce76014836119fc565b9150611cf282611cb1565b602082019050919050565b60006020820190508181036000830152611d1681611cda565b9050919050565b611d26816114c1565b82525050565b6000604082019050611d416000830185611d1d565b611d4e602083018461168a565b9392505050565b600081519050611d6481611631565b92915050565b600060208284031215611d8057611d7f611371565b5b6000611d8e84828501611d55565b91505092915050565b6000611da2826118e9565b611dac81856119fc565b9350611dbc8185602086016118ff565b611dc581611385565b840191505092915050565b6000606082019050611de5600083018661168a565b611df26020830185611d1d565b8181036040830152611e048184611d97565b9050949350505050565b6000604082019050611e23600083018561168a565b611e306020830184611d1d565b9392505050565b600081519050919050565b6000611e4d82611e37565b611e578185611a79565b9350611e678185602086016118ff565b80840191505092915050565b6000611e7f8284611e42565b915081905092915050565b7f5354000000000000000000000000000000000000000000000000000000000000600082015250565b6000611ec06002836119fc565b9150611ecb82611e8a565b602082019050919050565b60006020820190508181036000830152611eef81611eb3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000611f5b6018836119fc565b9150611f6682611f25565b602082019050919050565b60006020820190508181036000830152611f8a81611f4e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000611fc7601f836119fc565b9150611fd282611f91565b602082019050919050565b60006020820190508181036000830152611ff681611fba565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006120596022836119fc565b915061206482611ffd565b604082019050919050565b600060208201905081810360008301526120888161204c565b9050919050565b600060ff82169050919050565b6120a58161208f565b82525050565b60006080820190506120c060008301876115ce565b6120cd602083018661209c565b6120da60408301856115ce565b6120e760608301846115ce565b9594505050505056fea26469706673582212209b634542bf8d12520a08697963070df40b1e959c91d38ec8b6085056d16f2f6564736f6c63430008130033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.