Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 23697936 | 85 days ago | IN | 0 ETH | 0.00002477 |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ProxyManager
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
contract ProxyManager is ReentrancyGuard {
using SafeERC20 for IERC20;
using Address for address;
address public owner;
bool public contractPaused;
// Address filter mode: false = blacklist mode (default), true = whitelist mode
bool public useWhitelistMode;
// 操作者结构体
struct Operator {
bool isActive; // Whether the operator is active
uint256 dailyLimit; // Daily limit (wei)
uint256 perTxLimit; // Per transaction limit (wei)
uint256 dailyUsed; // Amount used today
uint256 lastResetTime; // Last reset time for limits
uint256 cooldownPeriod; // Cooldown period (seconds)
uint256 lastOperationTime; // Last operation time
string description; // Operator description
}
mapping(address => Operator) public operators;
mapping(address => bool) public blacklist; // Blacklist
mapping(address => bool) public whitelist; // Whitelist
// Events
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event OperatorAdded(address indexed operator, uint256 dailyLimit, uint256 perTxLimit, string description);
event OperatorRemoved(address indexed operator);
event OperatorLimitsUpdated(address indexed operator, uint256 dailyLimit, uint256 perTxLimit);
event ContractPaused(bool paused);
event AddressAddedToBlacklist(address indexed addr);
event AddressRemovedFromBlacklist(address indexed addr);
event AddressAddedToWhitelist(address indexed addr);
event AddressRemovedFromWhitelist(address indexed addr);
event FilterModeChanged(bool useWhitelistMode);
event TokenTransfer(address indexed operator, address indexed token, address indexed to, uint256 amount);
event NativeTransfer(address indexed operator, address indexed to, uint256 amount);
event EmergencyWithdraw(address indexed token, uint256 amount);
event NativeDeposit(address indexed from, uint256 amount, string note);
event TokenDeposit(address indexed from, address indexed token, uint256 amount, string note);
constructor() {
owner = msg.sender;
contractPaused = false;
useWhitelistMode = false; // Default to blacklist mode
emit OwnershipTransferred(address(0), msg.sender);
}
// === Modifiers ===
modifier onlyOwner() {
require(msg.sender == owner, "Not the owner");
_;
}
modifier onlyActiveOperator() {
require(operators[msg.sender].isActive, "Not an active operator");
require(!contractPaused, "Contract is paused");
_;
}
modifier addressFilter(address target) {
if (useWhitelistMode) {
require(whitelist[target], "Address not in whitelist");
} else {
require(!blacklist[target], "Address is blacklisted");
}
_;
}
modifier checkLimits(uint256 amount) {
Operator storage op = operators[msg.sender];
// Reset daily limit
if (block.timestamp >= op.lastResetTime + 1 days) {
op.dailyUsed = 0;
op.lastResetTime = block.timestamp;
}
// Check per-transaction limit
require(amount <= op.perTxLimit, "Exceeds per-transaction limit");
// Check daily limit
require(op.dailyUsed + amount <= op.dailyLimit, "Exceeds daily limit");
// Check cooldown period
require(
block.timestamp >= op.lastOperationTime + op.cooldownPeriod,
"Operation in cooldown period"
);
_;
// Update usage and operation time
op.dailyUsed += amount;
op.lastOperationTime = block.timestamp;
}
// === Owner functions ===
// Transfer ownership
function transferOwnership(address newOwner) external onlyOwner {
require(newOwner != address(0), "New owner cannot be zero address");
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
// Add an operator
function addOperator(
address operatorAddr,
uint256 dailyLimit,
uint256 perTxLimit,
uint256 cooldownPeriod,
string memory description
) external onlyOwner {
require(operatorAddr != address(0), "Operator cannot be zero address");
require(!operators[operatorAddr].isActive, "Operator already exists");
require(operatorAddr != owner, "Owner cannot be operator");
require(perTxLimit <= dailyLimit, "Per-tx limit cannot exceed daily limit");
operators[operatorAddr] = Operator({
isActive: true,
dailyLimit: dailyLimit,
perTxLimit: perTxLimit,
dailyUsed: 0,
lastResetTime: block.timestamp,
cooldownPeriod: cooldownPeriod,
lastOperationTime: 0,
description: description
});
emit OperatorAdded(operatorAddr, dailyLimit, perTxLimit, description);
}
// Remove an operator
function removeOperator(address operatorAddr) external onlyOwner {
require(operators[operatorAddr].isActive, "Operator is not active");
delete operators[operatorAddr];
emit OperatorRemoved(operatorAddr);
}
// Update operator limits
function updateOperatorLimits(
address operatorAddr,
uint256 dailyLimit,
uint256 perTxLimit,
uint256 cooldownPeriod
) external onlyOwner {
require(operators[operatorAddr].isActive, "Operator is not active");
require(perTxLimit <= dailyLimit, "Per-tx limit cannot exceed daily limit");
Operator storage op = operators[operatorAddr];
op.dailyLimit = dailyLimit;
op.perTxLimit = perTxLimit;
op.cooldownPeriod = cooldownPeriod;
emit OperatorLimitsUpdated(operatorAddr, dailyLimit, perTxLimit);
}
// Pause/Resume contract
function setPaused(bool paused) external onlyOwner {
contractPaused = paused;
emit ContractPaused(paused);
}
// Switch filter mode
function setFilterMode(bool _useWhitelistMode) external onlyOwner {
useWhitelistMode = _useWhitelistMode;
emit FilterModeChanged(_useWhitelistMode);
}
// Blacklist management
function addToBlacklist(address addr) external onlyOwner {
require(addr != owner, "Cannot blacklist owner");
require(!whitelist[addr], "Address is whitelisted");
if (!blacklist[addr]) {
blacklist[addr] = true;
emit AddressAddedToBlacklist(addr);
}
}
function removeFromBlacklist(address addr) external onlyOwner {
blacklist[addr] = false;
emit AddressRemovedFromBlacklist(addr);
}
function batchAddToBlacklist(address[] memory addresses) external onlyOwner {
for (uint256 i = 0; i < addresses.length; i++) {
address a = addresses[i];
require(a != owner, "Cannot blacklist owner");
require(!whitelist[a], "Address is whitelisted");
if (!blacklist[a]) {
blacklist[a] = true;
emit AddressAddedToBlacklist(a);
}
}
}
// Whitelist management
function addToWhitelist(address addr) external onlyOwner {
require(!blacklist[addr], "Address is blacklisted");
if (!whitelist[addr]) {
whitelist[addr] = true;
emit AddressAddedToWhitelist(addr);
}
}
function removeFromWhitelist(address addr) external onlyOwner {
whitelist[addr] = false;
emit AddressRemovedFromWhitelist(addr);
}
function batchAddToWhitelist(address[] memory addresses) external onlyOwner {
for (uint256 i = 0; i < addresses.length; i++) {
address a = addresses[i];
require(!blacklist[a], "Address is blacklisted");
if (!whitelist[a]) {
whitelist[a] = true;
emit AddressAddedToWhitelist(a);
}
}
}
// Emergency withdrawal of funds
function emergencyWithdrawToken(address token, uint256 amount) external onlyOwner {
require(contractPaused, "Contract must be paused for emergency withdrawal");
if (token == address(0)) {
// Withdraw Native
require(address(this).balance >= amount, "Insufficient Native balance");
Address.sendValue(payable(owner), amount);
} else {
// Withdraw ERC20 tokens
IERC20 tokenContract = IERC20(token);
require(tokenContract.balanceOf(address(this)) >= amount, "Insufficient token balance");
tokenContract.safeTransfer(owner, amount);
}
emit EmergencyWithdraw(token, amount);
}
// === Operator functions ===
// Transfer ERC20 tokens
function transferToken(
address token,
address to,
uint256 amount
) external onlyActiveOperator addressFilter(to) checkLimits(amount) nonReentrant {
require(token != address(0), "Token address cannot be zero");
require(to != address(0), "Recipient cannot be zero address");
require(amount > 0, "Amount must be greater than zero");
IERC20 tokenContract = IERC20(token);
require(tokenContract.balanceOf(address(this)) >= amount, "Insufficient token balance");
tokenContract.safeTransfer(to, amount);
emit TokenTransfer(msg.sender, token, to, amount);
}
// Transfer Native
function transferNative(
address payable to,
uint256 amount
) external onlyActiveOperator addressFilter(to) checkLimits(amount) nonReentrant {
require(to != address(0), "Recipient cannot be zero address");
require(amount > 0, "Amount must be greater than zero");
require(address(this).balance >= amount, "Insufficient Native balance");
Address.sendValue(to, amount);
emit NativeTransfer(msg.sender, to, amount);
}
// Batch transfer ERC20
function batchTransferToken(
address token,
address[] memory recipients,
uint256[] memory amounts
) external onlyActiveOperator nonReentrant {
require(recipients.length == amounts.length, "Arrays length mismatch");
require(recipients.length > 0, "Empty arrays");
uint256 totalAmount = 0;
for (uint256 i = 0; i < amounts.length; i++) {
totalAmount += amounts[i];
}
// Check total amount limit
_checkLimitsInternal(totalAmount);
IERC20 tokenContract = IERC20(token);
require(tokenContract.balanceOf(address(this)) >= totalAmount, "Insufficient token balance");
for (uint256 i = 0; i < recipients.length; i++) {
require(recipients[i] != address(0), "Recipient cannot be zero address");
require(amounts[i] > 0, "Amount must be greater than zero");
// Check address filter
if (useWhitelistMode) {
require(whitelist[recipients[i]], "Address not in whitelist");
} else {
require(!blacklist[recipients[i]], "Address is blacklisted");
}
tokenContract.safeTransfer(recipients[i], amounts[i]);
emit TokenTransfer(msg.sender, token, recipients[i], amounts[i]);
}
// Update operator status
Operator storage op = operators[msg.sender];
op.dailyUsed += totalAmount;
op.lastOperationTime = block.timestamp;
}
// Internal function: check limits
function _checkLimitsInternal(uint256 amount) private {
Operator storage op = operators[msg.sender];
// Reset daily limit
if (block.timestamp >= op.lastResetTime + 1 days) {
op.dailyUsed = 0;
op.lastResetTime = block.timestamp;
}
require(amount <= op.perTxLimit, "Exceeds per-transaction limit");
require(op.dailyUsed + amount <= op.dailyLimit, "Exceeds daily limit");
require(
block.timestamp >= op.lastOperationTime + op.cooldownPeriod,
"Operation in cooldown period"
);
}
// === Query functions ===
// Get operator information
function getOperatorInfo(address operatorAddr) external view returns (
bool isActive,
uint256 dailyLimit,
uint256 perTxLimit,
uint256 dailyUsed,
uint256 remainingDaily,
uint256 cooldownPeriod,
uint256 remainingCooldown,
string memory description
) {
Operator memory op = operators[operatorAddr];
// Calculate remaining daily limit
uint256 currentDailyUsed = op.dailyUsed;
if (block.timestamp >= op.lastResetTime + 1 days) {
currentDailyUsed = 0;
}
uint256 remaining = op.dailyLimit > currentDailyUsed ?
op.dailyLimit - currentDailyUsed : 0;
// Calculate remaining cooldown time
uint256 remainingCool = 0;
if (op.lastOperationTime > 0) {
uint256 nextAvailable = op.lastOperationTime + op.cooldownPeriod;
if (block.timestamp < nextAvailable) {
remainingCool = nextAvailable - block.timestamp;
}
}
return (
op.isActive,
op.dailyLimit,
op.perTxLimit,
currentDailyUsed,
remaining,
op.cooldownPeriod,
remainingCool,
op.description
);
}
// Check if address is allowed
function isAddressAllowed(address addr) external view returns (bool) {
if (useWhitelistMode) {
return whitelist[addr];
} else {
return !blacklist[addr];
}
}
// Get contract status
function getContractStatus() external view returns (
bool paused,
bool whitelistMode,
uint256 nativeBalance,
address contractOwner
) {
return (contractPaused, useWhitelistMode, address(this).balance, owner);
}
function depositNativeWithNote(string calldata note) external payable nonReentrant {
require(msg.value > 0, "No native value sent");
emit NativeDeposit(msg.sender, msg.value, note);
}
function depositTokenWithNote(
address token,
uint256 amount,
string calldata note
) external nonReentrant {
require(token != address(0), "Token address cannot be zero");
require(amount > 0, "Amount must be greater than zero");
IERC20 tokenContract = IERC20(token);
tokenContract.safeTransferFrom(msg.sender, address(this), amount);
emit TokenDeposit(msg.sender, token, amount, note);
}
// === Receive Native ===
receive() external payable {}
fallback() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)
pragma solidity >=0.6.2;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)
pragma solidity >=0.4.16;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, bytes memory returndata) = recipient.call{value: amount}("");
if (!success) {
_revert(returndata);
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {Errors.FailedCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance(address(this).balance, value);
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
* of an unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {Errors.FailedCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly ("memory-safe") {
revert(add(returndata, 0x20), mload(returndata))
}
} else {
revert Errors.FailedCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"AddressAddedToBlacklist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"AddressAddedToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"AddressRemovedFromBlacklist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"AddressRemovedFromWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"paused","type":"bool"}],"name":"ContractPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"useWhitelistMode","type":"bool"}],"name":"FilterModeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"note","type":"string"}],"name":"NativeDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NativeTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"dailyLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"perTxLimit","type":"uint256"},{"indexed":false,"internalType":"string","name":"description","type":"string"}],"name":"OperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"dailyLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"perTxLimit","type":"uint256"}],"name":"OperatorLimitsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"OperatorRemoved","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":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"note","type":"string"}],"name":"TokenDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenTransfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"operatorAddr","type":"address"},{"internalType":"uint256","name":"dailyLimit","type":"uint256"},{"internalType":"uint256","name":"perTxLimit","type":"uint256"},{"internalType":"uint256","name":"cooldownPeriod","type":"uint256"},{"internalType":"string","name":"description","type":"string"}],"name":"addOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addToBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"batchAddToBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"batchAddToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"batchTransferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"note","type":"string"}],"name":"depositNativeWithNote","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"note","type":"string"}],"name":"depositTokenWithNote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getContractStatus","outputs":[{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"whitelistMode","type":"bool"},{"internalType":"uint256","name":"nativeBalance","type":"uint256"},{"internalType":"address","name":"contractOwner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operatorAddr","type":"address"}],"name":"getOperatorInfo","outputs":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint256","name":"dailyLimit","type":"uint256"},{"internalType":"uint256","name":"perTxLimit","type":"uint256"},{"internalType":"uint256","name":"dailyUsed","type":"uint256"},{"internalType":"uint256","name":"remainingDaily","type":"uint256"},{"internalType":"uint256","name":"cooldownPeriod","type":"uint256"},{"internalType":"uint256","name":"remainingCooldown","type":"uint256"},{"internalType":"string","name":"description","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isAddressAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint256","name":"dailyLimit","type":"uint256"},{"internalType":"uint256","name":"perTxLimit","type":"uint256"},{"internalType":"uint256","name":"dailyUsed","type":"uint256"},{"internalType":"uint256","name":"lastResetTime","type":"uint256"},{"internalType":"uint256","name":"cooldownPeriod","type":"uint256"},{"internalType":"uint256","name":"lastOperationTime","type":"uint256"},{"internalType":"string","name":"description","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operatorAddr","type":"address"}],"name":"removeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useWhitelistMode","type":"bool"}],"name":"setFilterMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operatorAddr","type":"address"},{"internalType":"uint256","name":"dailyLimit","type":"uint256"},{"internalType":"uint256","name":"perTxLimit","type":"uint256"},{"internalType":"uint256","name":"cooldownPeriod","type":"uint256"}],"name":"updateOperatorLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"useWhitelistMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080604052348015600f57600080fd5b506001600081815581546001600160b01b0319163361ffff60a01b198116919091179092556040517f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3612f9b8061006b6000396000f3fe60806040526004361061018a5760003560e01c80638ab1d681116100e0578063a4c3b09111610084578063e43252d711610061578063e43252d7146104e8578063f2fde38b14610508578063f5537ede14610528578063f9f92be41461054857005b8063a4c3b09114610456578063ac8a584a14610476578063c032846b1461049657005b80638fa2a903116100bd5780638fa2a903146103c55780639381f2d1146103e55780639b19251a14610405578063a226b0331461043557005b80638ab1d6811461034d5780638b8635441461036d5780638da5cb5b1461038d57005b806344337ea1116101475780635f377433116101245780635f377433146102bc578063679d665f146102dc5780637d2e90c2146102fc5780638a67456a1461031c57005b806344337ea11461025c5780634e31dca11461027c578063537df3b61461029c57005b806313e7c9d81461018c57806316c38b3c146101c95780631e4f4f6d146101e957806320651d5d146101fc57806327d9ab5d1461021c5780632db6fa361461023c575b005b34801561019857600080fd5b506101ac6101a73660046125bb565b610578565b6040516101c0989796959493929190612625565b60405180910390f35b3480156101d557600080fd5b5061018a6101e4366004612674565b61064b565b61018a6101f73660046126df565b6106d6565b34801561020857600080fd5b5061018a610217366004612802565b610778565b34801561022857600080fd5b506101ac6102373660046125bb565b610bb1565b34801561024857600080fd5b5061018a6102573660046128d8565b610d9b565b34801561026857600080fd5b5061018a6102773660046125bb565b610ea1565b34801561028857600080fd5b5061018a610297366004612915565b610ff1565b3480156102a857600080fd5b5061018a6102b73660046125bb565b61127d565b3480156102c857600080fd5b5061018a6102d73660046129df565b6112f0565b3480156102e857600080fd5b5061018a6102f73660046128d8565b6113e4565b34801561030857600080fd5b5061018a610317366004612a3b565b611568565b34801561032857600080fd5b5060015461033d90600160a01b900460ff1681565b60405190151581526020016101c0565b34801561035957600080fd5b5061018a6103683660046125bb565b611825565b34801561037957600080fd5b5061018a610388366004612674565b611898565b34801561039957600080fd5b506001546103ad906001600160a01b031681565b6040516001600160a01b0390911681526020016101c0565b3480156103d157600080fd5b5061033d6103e03660046125bb565b61190f565b3480156103f157600080fd5b5061018a610400366004612a67565b611963565b34801561041157600080fd5b5061033d6104203660046125bb565b60046020526000908152604090205460ff1681565b34801561044157600080fd5b5060015461033d90600160a81b900460ff1681565b34801561046257600080fd5b5061018a610471366004612a3b565b611a74565b34801561048257600080fd5b5061018a6104913660046125bb565b611c76565b3480156104a257600080fd5b506001546040805160ff600160a01b8404811615158252600160a81b8404161515602082015247918101919091526001600160a01b0390911660608201526080016101c0565b3480156104f457600080fd5b5061018a6105033660046125bb565b611d93565b34801561051457600080fd5b5061018a6105233660046125bb565b611e62565b34801561053457600080fd5b5061018a610543366004612aa2565b611f3e565b34801561055457600080fd5b5061033d6105633660046125bb565b60036020526000908152604090205460ff1681565b60026020819052600091825260409091208054600182015492820154600383015460048401546005850154600686015460078701805460ff9097169897959694959394929391926105c890612ae3565b80601f01602080910402602001604051908101604052809291908181526020018280546105f490612ae3565b80156106415780601f1061061657610100808354040283529160200191610641565b820191906000526020600020905b81548152906001019060200180831161062457829003601f168201915b5050505050905088565b6001546001600160a01b0316331461067e5760405162461bcd60e51b815260040161067590612b1d565b60405180910390fd5b60018054821515600160a01b0260ff60a01b199091161790556040517f752d7e161ff5146f80e3820893176eb40532811e5e20400dfdde57455213706a906106cb90831515815260200190565b60405180910390a150565b6106de6122ae565b600034116107255760405162461bcd60e51b8152602060048201526014602482015273139bc81b985d1a5d99481d985b1d59481cd95b9d60621b6044820152606401610675565b336001600160a01b03167f094dff22f7984d2fa0e28ca9df5cec393864495828cf48dd50e9c5d4cd86a9d334848460405161076293929190612b44565b60405180910390a26107746001600055565b5050565b3360009081526002602052604090205460ff166107a75760405162461bcd60e51b815260040161067590612b7a565b600154600160a01b900460ff16156107d15760405162461bcd60e51b815260040161067590612baa565b6107d96122ae565b80518251146108235760405162461bcd60e51b8152602060048201526016602482015275082e4e4c2f2e640d8cadccee8d040dad2e6dac2e8c6d60531b6044820152606401610675565b60008251116108635760405162461bcd60e51b815260206004820152600c60248201526b456d7074792061727261797360a01b6044820152606401610675565b6000805b825181101561089f5782818151811061088257610882612bd6565b6020026020010151826108959190612c02565b9150600101610867565b506108a9816122d8565b6040516370a0823160e01b8152306004820152849082906001600160a01b038316906370a0823190602401602060405180830381865afa1580156108f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109159190612c1b565b10156109335760405162461bcd60e51b815260040161067590612c34565b60005b8451811015610b6e5760006001600160a01b031685828151811061095c5761095c612bd6565b60200260200101516001600160a01b03160361098a5760405162461bcd60e51b815260040161067590612c6b565b600084828151811061099e5761099e612bd6565b6020026020010151116109c35760405162461bcd60e51b815260040161067590612ca0565b600154600160a81b900460ff1615610a3357600460008683815181106109eb576109eb612bd6565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16610a2e5760405162461bcd60e51b815260040161067590612cd5565b610a8d565b60036000868381518110610a4957610a49612bd6565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615610a8d5760405162461bcd60e51b815260040161067590612d0c565b610add858281518110610aa257610aa2612bd6565b6020026020010151858381518110610abc57610abc612bd6565b6020026020010151846001600160a01b03166123979092919063ffffffff16565b848181518110610aef57610aef612bd6565b60200260200101516001600160a01b0316866001600160a01b0316336001600160a01b03167fae33cb06d7303f889d953bb09540983050163c1c4c98b330db432a911cfb63fd878581518110610b4757610b47612bd6565b6020026020010151604051610b5e91815260200190565b60405180910390a4600101610936565b5033600090815260026020526040812060038101805491928592610b93908490612c02565b90915550504260069091015550610bac90506001600055565b505050565b600080600080600080600060606000600260008b6001600160a01b03166001600160a01b03168152602001908152602001600020604051806101000160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782018054610c5890612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8490612ae3565b8015610cd15780601f10610ca657610100808354040283529160200191610cd1565b820191906000526020600020905b815481529060010190602001808311610cb457829003601f168201915b505050919092525050506060810151608082015191925090610cf69062015180612c02565b4210610d00575060005b600081836020015111610d14576000610d24565b818360200151610d249190612d3c565b90506000808460c001511115610d635760008460a001518560c00151610d4a9190612c02565b905080421015610d6157610d5e4282612d3c565b91505b505b83516020850151604086015160a087015160e090970151929e50909c509a509298509096509194509092509050919395975091939597565b6001546001600160a01b03163314610dc55760405162461bcd60e51b815260040161067590612b1d565b60005b8151811015610774576000828281518110610de557610de5612bd6565b6020908102919091018101516001600160a01b0381166000908152600390925260409091205490915060ff1615610e2e5760405162461bcd60e51b815260040161067590612d0c565b6001600160a01b03811660009081526004602052604090205460ff16610e98576001600160a01b038116600081815260046020526040808220805460ff19166001179055517f534d18c8ff24ba5980906d732f3075704749427353734fbbf05d50485643b1249190a25b50600101610dc8565b6001546001600160a01b03163314610ecb5760405162461bcd60e51b815260040161067590612b1d565b6001546001600160a01b0390811690821603610f225760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba10313630b1b5b634b9ba1037bbb732b960511b6044820152606401610675565b6001600160a01b03811660009081526004602052604090205460ff1615610f845760405162461bcd60e51b81526020600482015260166024820152751059191c995cdcc81a5cc81dda1a5d195b1a5cdd195960521b6044820152606401610675565b6001600160a01b03811660009081526003602052604090205460ff16610fee576001600160a01b038116600081815260036020526040808220805460ff19166001179055517f2db1cf82e0e8dd94afa453cbb701c139592645ee1dfaa25f578a031966726b259190a25b50565b6001546001600160a01b0316331461101b5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b0385166110715760405162461bcd60e51b815260206004820152601f60248201527f4f70657261746f722063616e6e6f74206265207a65726f2061646472657373006044820152606401610675565b6001600160a01b03851660009081526002602052604090205460ff16156110da5760405162461bcd60e51b815260206004820152601760248201527f4f70657261746f7220616c7265616479206578697374730000000000000000006044820152606401610675565b6001546001600160a01b03908116908616036111385760405162461bcd60e51b815260206004820152601860248201527f4f776e65722063616e6e6f74206265206f70657261746f7200000000000000006044820152606401610675565b838311156111585760405162461bcd60e51b815260040161067590612d4f565b60405180610100016040528060011515815260200185815260200184815260200160008152602001428152602001838152602001600081526020018281525060026000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701908161122d9190612de3565b50905050846001600160a01b03167fef9be0ab254eb605f1e5a3fec8c323c6a876db4219a70e561c8b3e58f442aa2285858460405161126e93929190612ea2565b60405180910390a25050505050565b6001546001600160a01b031633146112a75760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b038116600081815260036020526040808220805460ff19169055517f5339e76deb16eade3efd8544d1f683635ff55e3866c7a2fae6aee23211cd5f039190a250565b6112f86122ae565b6001600160a01b03841661134e5760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e20616464726573732063616e6e6f74206265207a65726f000000006044820152606401610675565b6000831161136e5760405162461bcd60e51b815260040161067590612ca0565b836113846001600160a01b0382163330876123f6565b846001600160a01b0316336001600160a01b03167f1cbdf89ba7d7cd8303790e1d0c0dcbc95b421c3d27f4958e058ec003073df9468686866040516113cb93929190612b44565b60405180910390a3506113de6001600055565b50505050565b6001546001600160a01b0316331461140e5760405162461bcd60e51b815260040161067590612b1d565b60005b815181101561077457600082828151811061142e5761142e612bd6565b60209081029190910101516001549091506001600160a01b03908116908216036114935760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba10313630b1b5b634b9ba1037bbb732b960511b6044820152606401610675565b6001600160a01b03811660009081526004602052604090205460ff16156114f55760405162461bcd60e51b81526020600482015260166024820152751059191c995cdcc81a5cc81dda1a5d195b1a5cdd195960521b6044820152606401610675565b6001600160a01b03811660009081526003602052604090205460ff1661155f576001600160a01b038116600081815260036020526040808220805460ff19166001179055517f2db1cf82e0e8dd94afa453cbb701c139592645ee1dfaa25f578a031966726b259190a25b50600101611411565b3360009081526002602052604090205460ff166115975760405162461bcd60e51b815260040161067590612b7a565b600154600160a01b900460ff16156115c15760405162461bcd60e51b815260040161067590612baa565b6001548290600160a81b900460ff1615611612576001600160a01b03811660009081526004602052604090205460ff1661160d5760405162461bcd60e51b815260040161067590612cd5565b61164b565b6001600160a01b03811660009081526003602052604090205460ff161561164b5760405162461bcd60e51b815260040161067590612d0c565b336000908152600260205260409020600481015483919061166f9062015180612c02565b421061168357600060038201554260048201555b80600201548211156116a75760405162461bcd60e51b815260040161067590612eca565b80600101548282600301546116bc9190612c02565b11156116da5760405162461bcd60e51b815260040161067590612f01565b806005015481600601546116ee9190612c02565b42101561170d5760405162461bcd60e51b815260040161067590612f2e565b6117156122ae565b6001600160a01b03851661173b5760405162461bcd60e51b815260040161067590612c6b565b6000841161175b5760405162461bcd60e51b815260040161067590612ca0565b834710156117ab5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74204e61746976652062616c616e636500000000006044820152606401610675565b6117b5858561242f565b6040518481526001600160a01b0386169033907fce8688f853ffa65c042b72302433c25d7a230c322caba0901587534b6551091d9060200160405180910390a36117ff6001600055565b818160030160008282546118139190612c02565b90915550504260069091015550505050565b6001546001600160a01b0316331461184f5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b038116600081815260046020526040808220805460ff19169055517f535611fb62fa2a833988f283b779e417e996813e44046f521d76c17b5943b08c9190a250565b6001546001600160a01b031633146118c25760405162461bcd60e51b815260040161067590612b1d565b60018054821515600160a81b0260ff60a81b199091161790556040517ffe270d1de8aa5f37e9d13d719936209b912e68a35bb29f1dc56a000f33f56d73906106cb90831515815260200190565b600154600090600160a81b900460ff161561194357506001600160a01b031660009081526004602052604090205460ff1690565b506001600160a01b031660009081526003602052604090205460ff161590565b6001546001600160a01b0316331461198d5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b03841660009081526002602052604090205460ff166119ee5760405162461bcd60e51b81526020600482015260166024820152754f70657261746f72206973206e6f742061637469766560501b6044820152606401610675565b82821115611a0e5760405162461bcd60e51b815260040161067590612d4f565b6001600160a01b038416600081815260026020818152604092839020600181018890559182018690556005820185905582518781529081018690529092917f8cd6d39179b0686913c9b9dd30a1ec876eaa204555f6fe5008fa282d5e9bfbfb910161126e565b6001546001600160a01b03163314611a9e5760405162461bcd60e51b815260040161067590612b1d565b600154600160a01b900460ff16611b105760405162461bcd60e51b815260206004820152603060248201527f436f6e7472616374206d7573742062652070617573656420666f7220656d657260448201526f19d95b98de481dda5d1a191c985dd85b60821b6064820152608401610675565b6001600160a01b038216611b895780471015611b6e5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74204e61746976652062616c616e636500000000006044820152606401610675565b600154611b84906001600160a01b03168261242f565b611c2f565b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a0823190602401602060405180830381865afa158015611bd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf59190612c1b565b1015611c135760405162461bcd60e51b815260040161067590612c34565b600154611c2d906001600160a01b03838116911684612397565b505b816001600160a01b03167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969582604051611c6a91815260200190565b60405180910390a25050565b6001546001600160a01b03163314611ca05760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b03811660009081526002602052604090205460ff16611d015760405162461bcd60e51b81526020600482015260166024820152754f70657261746f72206973206e6f742061637469766560501b6044820152606401610675565b6001600160a01b03811660009081526002602081905260408220805460ff19168155600181018390559081018290556003810182905560048101829055600581018290556006810182905590611d5a6007830182612558565b50506040516001600160a01b038216907f80c0b871b97b595b16a7741c1b06fed0c6f6f558639f18ccbce50724325dc40d90600090a250565b6001546001600160a01b03163314611dbd5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b03811660009081526003602052604090205460ff1615611df65760405162461bcd60e51b815260040161067590612d0c565b6001600160a01b03811660009081526004602052604090205460ff16610fee576001600160a01b038116600081815260046020526040808220805460ff19166001179055517f534d18c8ff24ba5980906d732f3075704749427353734fbbf05d50485643b1249190a250565b6001546001600160a01b03163314611e8c5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b038116611ee25760405162461bcd60e51b815260206004820181905260248201527f4e6577206f776e65722063616e6e6f74206265207a65726f20616464726573736044820152606401610675565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526002602052604090205460ff16611f6d5760405162461bcd60e51b815260040161067590612b7a565b600154600160a01b900460ff1615611f975760405162461bcd60e51b815260040161067590612baa565b6001548290600160a81b900460ff1615611fe8576001600160a01b03811660009081526004602052604090205460ff16611fe35760405162461bcd60e51b815260040161067590612cd5565b612021565b6001600160a01b03811660009081526003602052604090205460ff16156120215760405162461bcd60e51b815260040161067590612d0c565b33600090815260026020526040902060048101548391906120459062015180612c02565b421061205957600060038201554260048201555b806002015482111561207d5760405162461bcd60e51b815260040161067590612eca565b80600101548282600301546120929190612c02565b11156120b05760405162461bcd60e51b815260040161067590612f01565b806005015481600601546120c49190612c02565b4210156120e35760405162461bcd60e51b815260040161067590612f2e565b6120eb6122ae565b6001600160a01b0386166121415760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e20616464726573732063616e6e6f74206265207a65726f000000006044820152606401610675565b6001600160a01b0385166121675760405162461bcd60e51b815260040161067590612c6b565b600084116121875760405162461bcd60e51b815260040161067590612ca0565b6040516370a0823160e01b8152306004820152869085906001600160a01b038316906370a0823190602401602060405180830381865afa1580156121cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f39190612c1b565b10156122115760405162461bcd60e51b815260040161067590612c34565b6122256001600160a01b0382168787612397565b856001600160a01b0316876001600160a01b0316336001600160a01b03167fae33cb06d7303f889d953bb09540983050163c1c4c98b330db432a911cfb63fd8860405161227491815260200190565b60405180910390a4506122876001600055565b8181600301600082825461229b9190612c02565b9091555050426006909101555050505050565b6002600054036122d157604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b33600090815260026020526040902060048101546122f99062015180612c02565b421061230d57600060038201554260048201555b80600201548211156123315760405162461bcd60e51b815260040161067590612eca565b80600101548282600301546123469190612c02565b11156123645760405162461bcd60e51b815260040161067590612f01565b806005015481600601546123789190612c02565b4210156107745760405162461bcd60e51b815260040161067590612f2e565b6040516001600160a01b03838116602483015260448201839052610bac91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506124bf565b6040516001600160a01b0384811660248301528381166044830152606482018390526113de9186918216906323b872dd906084016123c4565b804710156124595760405163cf47918160e01b815247600482015260248101829052604401610675565b600080836001600160a01b03168360405160006040518083038185875af1925050503d80600081146124a7576040519150601f19603f3d011682016040523d82523d6000602084013e6124ac565b606091505b5091509150816113de576113de81612530565b600080602060008451602086016000885af1806124e2576040513d6000823e3d81fd5b50506000513d915081156124fa578060011415612507565b6001600160a01b0384163b155b156113de57604051635274afe760e01b81526001600160a01b0385166004820152602401610675565b80511561253f57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b50805461256490612ae3565b6000825580601f10612574575050565b601f016020900490600052602060002090810190610fee91905b808211156125a2576000815560010161258e565b5090565b6001600160a01b0381168114610fee57600080fd5b6000602082840312156125cd57600080fd5b81356125d8816125a6565b9392505050565b6000815180845260005b81811015612605576020818501810151868301820152016125e9565b506000602082860101526020601f19601f83011685010191505092915050565b88151581528760208201528660408201528560608201528460808201528360a08201528260c082015261010060e082015260006126666101008301846125df565b9a9950505050505050505050565b60006020828403121561268657600080fd5b813580151581146125d857600080fd5b60008083601f8401126126a857600080fd5b50813567ffffffffffffffff8111156126c057600080fd5b6020830191508360208285010111156126d857600080fd5b9250929050565b600080602083850312156126f257600080fd5b823567ffffffffffffffff81111561270957600080fd5b61271585828601612696565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561276057612760612721565b604052919050565b600067ffffffffffffffff82111561278257612782612721565b5060051b60200190565b600082601f83011261279d57600080fd5b81356127b06127ab82612768565b612737565b8082825260208201915060208360051b8601019250858311156127d257600080fd5b602085015b838110156127f85780356127ea816125a6565b8352602092830192016127d7565b5095945050505050565b60008060006060848603121561281757600080fd5b8335612822816125a6565b9250602084013567ffffffffffffffff81111561283e57600080fd5b61284a8682870161278c565b925050604084013567ffffffffffffffff81111561286757600080fd5b8401601f8101861361287857600080fd5b80356128866127ab82612768565b8082825260208201915060208360051b8501019250888311156128a857600080fd5b6020840193505b828410156128ca5783358252602093840193909101906128af565b809450505050509250925092565b6000602082840312156128ea57600080fd5b813567ffffffffffffffff81111561290157600080fd5b61290d8482850161278c565b949350505050565b600080600080600060a0868803121561292d57600080fd5b8535612938816125a6565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff81111561296957600080fd5b8601601f8101881361297a57600080fd5b803567ffffffffffffffff81111561299457612994612721565b6129a7601f8201601f1916602001612737565b8181528960208385010111156129bc57600080fd5b816020840160208301376000602083830101528093505050509295509295909350565b600080600080606085870312156129f557600080fd5b8435612a00816125a6565b935060208501359250604085013567ffffffffffffffff811115612a2357600080fd5b612a2f87828801612696565b95989497509550505050565b60008060408385031215612a4e57600080fd5b8235612a59816125a6565b946020939093013593505050565b60008060008060808587031215612a7d57600080fd5b8435612a88816125a6565b966020860135965060408601359560600135945092505050565b600080600060608486031215612ab757600080fd5b8335612ac2816125a6565b92506020840135612ad2816125a6565b929592945050506040919091013590565b600181811c90821680612af757607f821691505b602082108103612b1757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600d908201526c2737ba103a34329037bbb732b960991b604082015260600190565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b6020808252601690820152752737ba1030b71030b1ba34bb329037b832b930ba37b960511b604082015260600190565b60208082526012908201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115612c1557612c15612bec565b92915050565b600060208284031215612c2d57600080fd5b5051919050565b6020808252601a908201527f496e73756666696369656e7420746f6b656e2062616c616e6365000000000000604082015260600190565b6020808252818101527f526563697069656e742063616e6e6f74206265207a65726f2061646472657373604082015260600190565b6020808252818101527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604082015260600190565b60208082526018908201527f41646472657373206e6f7420696e2077686974656c6973740000000000000000604082015260600190565b6020808252601690820152751059191c995cdcc81a5cc8189b1858dadb1a5cdd195960521b604082015260600190565b81810381811115612c1557612c15612bec565b60208082526026908201527f5065722d7478206c696d69742063616e6e6f7420657863656564206461696c79604082015265081b1a5b5a5d60d21b606082015260800190565b601f821115610bac57806000526020600020601f840160051c81016020851015612dbc5750805b601f840160051c820191505b81811015612ddc5760008155600101612dc8565b5050505050565b815167ffffffffffffffff811115612dfd57612dfd612721565b612e1181612e0b8454612ae3565b84612d95565b6020601f821160018114612e455760008315612e2d5750848201515b600019600385901b1c1916600184901b178455612ddc565b600084815260208120601f198516915b82811015612e755787850151825560209485019460019092019101612e55565b5084821015612e935786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b838152826020820152606060408201526000612ec160608301846125df565b95945050505050565b6020808252601d908201527f45786365656473207065722d7472616e73616374696f6e206c696d6974000000604082015260600190565b602080825260139082015272115e18d959591cc819185a5b1e481b1a5b5a5d606a1b604082015260600190565b6020808252601c908201527f4f7065726174696f6e20696e20636f6f6c646f776e20706572696f640000000060408201526060019056fea2646970667358221220db15b2cfaaf54d214991222de5793fb8b9f4ee19a22b7d9bf092180ce330a05264736f6c634300081c0033
Deployed Bytecode
0x60806040526004361061018a5760003560e01c80638ab1d681116100e0578063a4c3b09111610084578063e43252d711610061578063e43252d7146104e8578063f2fde38b14610508578063f5537ede14610528578063f9f92be41461054857005b8063a4c3b09114610456578063ac8a584a14610476578063c032846b1461049657005b80638fa2a903116100bd5780638fa2a903146103c55780639381f2d1146103e55780639b19251a14610405578063a226b0331461043557005b80638ab1d6811461034d5780638b8635441461036d5780638da5cb5b1461038d57005b806344337ea1116101475780635f377433116101245780635f377433146102bc578063679d665f146102dc5780637d2e90c2146102fc5780638a67456a1461031c57005b806344337ea11461025c5780634e31dca11461027c578063537df3b61461029c57005b806313e7c9d81461018c57806316c38b3c146101c95780631e4f4f6d146101e957806320651d5d146101fc57806327d9ab5d1461021c5780632db6fa361461023c575b005b34801561019857600080fd5b506101ac6101a73660046125bb565b610578565b6040516101c0989796959493929190612625565b60405180910390f35b3480156101d557600080fd5b5061018a6101e4366004612674565b61064b565b61018a6101f73660046126df565b6106d6565b34801561020857600080fd5b5061018a610217366004612802565b610778565b34801561022857600080fd5b506101ac6102373660046125bb565b610bb1565b34801561024857600080fd5b5061018a6102573660046128d8565b610d9b565b34801561026857600080fd5b5061018a6102773660046125bb565b610ea1565b34801561028857600080fd5b5061018a610297366004612915565b610ff1565b3480156102a857600080fd5b5061018a6102b73660046125bb565b61127d565b3480156102c857600080fd5b5061018a6102d73660046129df565b6112f0565b3480156102e857600080fd5b5061018a6102f73660046128d8565b6113e4565b34801561030857600080fd5b5061018a610317366004612a3b565b611568565b34801561032857600080fd5b5060015461033d90600160a01b900460ff1681565b60405190151581526020016101c0565b34801561035957600080fd5b5061018a6103683660046125bb565b611825565b34801561037957600080fd5b5061018a610388366004612674565b611898565b34801561039957600080fd5b506001546103ad906001600160a01b031681565b6040516001600160a01b0390911681526020016101c0565b3480156103d157600080fd5b5061033d6103e03660046125bb565b61190f565b3480156103f157600080fd5b5061018a610400366004612a67565b611963565b34801561041157600080fd5b5061033d6104203660046125bb565b60046020526000908152604090205460ff1681565b34801561044157600080fd5b5060015461033d90600160a81b900460ff1681565b34801561046257600080fd5b5061018a610471366004612a3b565b611a74565b34801561048257600080fd5b5061018a6104913660046125bb565b611c76565b3480156104a257600080fd5b506001546040805160ff600160a01b8404811615158252600160a81b8404161515602082015247918101919091526001600160a01b0390911660608201526080016101c0565b3480156104f457600080fd5b5061018a6105033660046125bb565b611d93565b34801561051457600080fd5b5061018a6105233660046125bb565b611e62565b34801561053457600080fd5b5061018a610543366004612aa2565b611f3e565b34801561055457600080fd5b5061033d6105633660046125bb565b60036020526000908152604090205460ff1681565b60026020819052600091825260409091208054600182015492820154600383015460048401546005850154600686015460078701805460ff9097169897959694959394929391926105c890612ae3565b80601f01602080910402602001604051908101604052809291908181526020018280546105f490612ae3565b80156106415780601f1061061657610100808354040283529160200191610641565b820191906000526020600020905b81548152906001019060200180831161062457829003601f168201915b5050505050905088565b6001546001600160a01b0316331461067e5760405162461bcd60e51b815260040161067590612b1d565b60405180910390fd5b60018054821515600160a01b0260ff60a01b199091161790556040517f752d7e161ff5146f80e3820893176eb40532811e5e20400dfdde57455213706a906106cb90831515815260200190565b60405180910390a150565b6106de6122ae565b600034116107255760405162461bcd60e51b8152602060048201526014602482015273139bc81b985d1a5d99481d985b1d59481cd95b9d60621b6044820152606401610675565b336001600160a01b03167f094dff22f7984d2fa0e28ca9df5cec393864495828cf48dd50e9c5d4cd86a9d334848460405161076293929190612b44565b60405180910390a26107746001600055565b5050565b3360009081526002602052604090205460ff166107a75760405162461bcd60e51b815260040161067590612b7a565b600154600160a01b900460ff16156107d15760405162461bcd60e51b815260040161067590612baa565b6107d96122ae565b80518251146108235760405162461bcd60e51b8152602060048201526016602482015275082e4e4c2f2e640d8cadccee8d040dad2e6dac2e8c6d60531b6044820152606401610675565b60008251116108635760405162461bcd60e51b815260206004820152600c60248201526b456d7074792061727261797360a01b6044820152606401610675565b6000805b825181101561089f5782818151811061088257610882612bd6565b6020026020010151826108959190612c02565b9150600101610867565b506108a9816122d8565b6040516370a0823160e01b8152306004820152849082906001600160a01b038316906370a0823190602401602060405180830381865afa1580156108f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109159190612c1b565b10156109335760405162461bcd60e51b815260040161067590612c34565b60005b8451811015610b6e5760006001600160a01b031685828151811061095c5761095c612bd6565b60200260200101516001600160a01b03160361098a5760405162461bcd60e51b815260040161067590612c6b565b600084828151811061099e5761099e612bd6565b6020026020010151116109c35760405162461bcd60e51b815260040161067590612ca0565b600154600160a81b900460ff1615610a3357600460008683815181106109eb576109eb612bd6565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16610a2e5760405162461bcd60e51b815260040161067590612cd5565b610a8d565b60036000868381518110610a4957610a49612bd6565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615610a8d5760405162461bcd60e51b815260040161067590612d0c565b610add858281518110610aa257610aa2612bd6565b6020026020010151858381518110610abc57610abc612bd6565b6020026020010151846001600160a01b03166123979092919063ffffffff16565b848181518110610aef57610aef612bd6565b60200260200101516001600160a01b0316866001600160a01b0316336001600160a01b03167fae33cb06d7303f889d953bb09540983050163c1c4c98b330db432a911cfb63fd878581518110610b4757610b47612bd6565b6020026020010151604051610b5e91815260200190565b60405180910390a4600101610936565b5033600090815260026020526040812060038101805491928592610b93908490612c02565b90915550504260069091015550610bac90506001600055565b505050565b600080600080600080600060606000600260008b6001600160a01b03166001600160a01b03168152602001908152602001600020604051806101000160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782018054610c5890612ae3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8490612ae3565b8015610cd15780601f10610ca657610100808354040283529160200191610cd1565b820191906000526020600020905b815481529060010190602001808311610cb457829003601f168201915b505050919092525050506060810151608082015191925090610cf69062015180612c02565b4210610d00575060005b600081836020015111610d14576000610d24565b818360200151610d249190612d3c565b90506000808460c001511115610d635760008460a001518560c00151610d4a9190612c02565b905080421015610d6157610d5e4282612d3c565b91505b505b83516020850151604086015160a087015160e090970151929e50909c509a509298509096509194509092509050919395975091939597565b6001546001600160a01b03163314610dc55760405162461bcd60e51b815260040161067590612b1d565b60005b8151811015610774576000828281518110610de557610de5612bd6565b6020908102919091018101516001600160a01b0381166000908152600390925260409091205490915060ff1615610e2e5760405162461bcd60e51b815260040161067590612d0c565b6001600160a01b03811660009081526004602052604090205460ff16610e98576001600160a01b038116600081815260046020526040808220805460ff19166001179055517f534d18c8ff24ba5980906d732f3075704749427353734fbbf05d50485643b1249190a25b50600101610dc8565b6001546001600160a01b03163314610ecb5760405162461bcd60e51b815260040161067590612b1d565b6001546001600160a01b0390811690821603610f225760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba10313630b1b5b634b9ba1037bbb732b960511b6044820152606401610675565b6001600160a01b03811660009081526004602052604090205460ff1615610f845760405162461bcd60e51b81526020600482015260166024820152751059191c995cdcc81a5cc81dda1a5d195b1a5cdd195960521b6044820152606401610675565b6001600160a01b03811660009081526003602052604090205460ff16610fee576001600160a01b038116600081815260036020526040808220805460ff19166001179055517f2db1cf82e0e8dd94afa453cbb701c139592645ee1dfaa25f578a031966726b259190a25b50565b6001546001600160a01b0316331461101b5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b0385166110715760405162461bcd60e51b815260206004820152601f60248201527f4f70657261746f722063616e6e6f74206265207a65726f2061646472657373006044820152606401610675565b6001600160a01b03851660009081526002602052604090205460ff16156110da5760405162461bcd60e51b815260206004820152601760248201527f4f70657261746f7220616c7265616479206578697374730000000000000000006044820152606401610675565b6001546001600160a01b03908116908616036111385760405162461bcd60e51b815260206004820152601860248201527f4f776e65722063616e6e6f74206265206f70657261746f7200000000000000006044820152606401610675565b838311156111585760405162461bcd60e51b815260040161067590612d4f565b60405180610100016040528060011515815260200185815260200184815260200160008152602001428152602001838152602001600081526020018281525060026000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701908161122d9190612de3565b50905050846001600160a01b03167fef9be0ab254eb605f1e5a3fec8c323c6a876db4219a70e561c8b3e58f442aa2285858460405161126e93929190612ea2565b60405180910390a25050505050565b6001546001600160a01b031633146112a75760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b038116600081815260036020526040808220805460ff19169055517f5339e76deb16eade3efd8544d1f683635ff55e3866c7a2fae6aee23211cd5f039190a250565b6112f86122ae565b6001600160a01b03841661134e5760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e20616464726573732063616e6e6f74206265207a65726f000000006044820152606401610675565b6000831161136e5760405162461bcd60e51b815260040161067590612ca0565b836113846001600160a01b0382163330876123f6565b846001600160a01b0316336001600160a01b03167f1cbdf89ba7d7cd8303790e1d0c0dcbc95b421c3d27f4958e058ec003073df9468686866040516113cb93929190612b44565b60405180910390a3506113de6001600055565b50505050565b6001546001600160a01b0316331461140e5760405162461bcd60e51b815260040161067590612b1d565b60005b815181101561077457600082828151811061142e5761142e612bd6565b60209081029190910101516001549091506001600160a01b03908116908216036114935760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba10313630b1b5b634b9ba1037bbb732b960511b6044820152606401610675565b6001600160a01b03811660009081526004602052604090205460ff16156114f55760405162461bcd60e51b81526020600482015260166024820152751059191c995cdcc81a5cc81dda1a5d195b1a5cdd195960521b6044820152606401610675565b6001600160a01b03811660009081526003602052604090205460ff1661155f576001600160a01b038116600081815260036020526040808220805460ff19166001179055517f2db1cf82e0e8dd94afa453cbb701c139592645ee1dfaa25f578a031966726b259190a25b50600101611411565b3360009081526002602052604090205460ff166115975760405162461bcd60e51b815260040161067590612b7a565b600154600160a01b900460ff16156115c15760405162461bcd60e51b815260040161067590612baa565b6001548290600160a81b900460ff1615611612576001600160a01b03811660009081526004602052604090205460ff1661160d5760405162461bcd60e51b815260040161067590612cd5565b61164b565b6001600160a01b03811660009081526003602052604090205460ff161561164b5760405162461bcd60e51b815260040161067590612d0c565b336000908152600260205260409020600481015483919061166f9062015180612c02565b421061168357600060038201554260048201555b80600201548211156116a75760405162461bcd60e51b815260040161067590612eca565b80600101548282600301546116bc9190612c02565b11156116da5760405162461bcd60e51b815260040161067590612f01565b806005015481600601546116ee9190612c02565b42101561170d5760405162461bcd60e51b815260040161067590612f2e565b6117156122ae565b6001600160a01b03851661173b5760405162461bcd60e51b815260040161067590612c6b565b6000841161175b5760405162461bcd60e51b815260040161067590612ca0565b834710156117ab5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74204e61746976652062616c616e636500000000006044820152606401610675565b6117b5858561242f565b6040518481526001600160a01b0386169033907fce8688f853ffa65c042b72302433c25d7a230c322caba0901587534b6551091d9060200160405180910390a36117ff6001600055565b818160030160008282546118139190612c02565b90915550504260069091015550505050565b6001546001600160a01b0316331461184f5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b038116600081815260046020526040808220805460ff19169055517f535611fb62fa2a833988f283b779e417e996813e44046f521d76c17b5943b08c9190a250565b6001546001600160a01b031633146118c25760405162461bcd60e51b815260040161067590612b1d565b60018054821515600160a81b0260ff60a81b199091161790556040517ffe270d1de8aa5f37e9d13d719936209b912e68a35bb29f1dc56a000f33f56d73906106cb90831515815260200190565b600154600090600160a81b900460ff161561194357506001600160a01b031660009081526004602052604090205460ff1690565b506001600160a01b031660009081526003602052604090205460ff161590565b6001546001600160a01b0316331461198d5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b03841660009081526002602052604090205460ff166119ee5760405162461bcd60e51b81526020600482015260166024820152754f70657261746f72206973206e6f742061637469766560501b6044820152606401610675565b82821115611a0e5760405162461bcd60e51b815260040161067590612d4f565b6001600160a01b038416600081815260026020818152604092839020600181018890559182018690556005820185905582518781529081018690529092917f8cd6d39179b0686913c9b9dd30a1ec876eaa204555f6fe5008fa282d5e9bfbfb910161126e565b6001546001600160a01b03163314611a9e5760405162461bcd60e51b815260040161067590612b1d565b600154600160a01b900460ff16611b105760405162461bcd60e51b815260206004820152603060248201527f436f6e7472616374206d7573742062652070617573656420666f7220656d657260448201526f19d95b98de481dda5d1a191c985dd85b60821b6064820152608401610675565b6001600160a01b038216611b895780471015611b6e5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74204e61746976652062616c616e636500000000006044820152606401610675565b600154611b84906001600160a01b03168261242f565b611c2f565b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a0823190602401602060405180830381865afa158015611bd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf59190612c1b565b1015611c135760405162461bcd60e51b815260040161067590612c34565b600154611c2d906001600160a01b03838116911684612397565b505b816001600160a01b03167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969582604051611c6a91815260200190565b60405180910390a25050565b6001546001600160a01b03163314611ca05760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b03811660009081526002602052604090205460ff16611d015760405162461bcd60e51b81526020600482015260166024820152754f70657261746f72206973206e6f742061637469766560501b6044820152606401610675565b6001600160a01b03811660009081526002602081905260408220805460ff19168155600181018390559081018290556003810182905560048101829055600581018290556006810182905590611d5a6007830182612558565b50506040516001600160a01b038216907f80c0b871b97b595b16a7741c1b06fed0c6f6f558639f18ccbce50724325dc40d90600090a250565b6001546001600160a01b03163314611dbd5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b03811660009081526003602052604090205460ff1615611df65760405162461bcd60e51b815260040161067590612d0c565b6001600160a01b03811660009081526004602052604090205460ff16610fee576001600160a01b038116600081815260046020526040808220805460ff19166001179055517f534d18c8ff24ba5980906d732f3075704749427353734fbbf05d50485643b1249190a250565b6001546001600160a01b03163314611e8c5760405162461bcd60e51b815260040161067590612b1d565b6001600160a01b038116611ee25760405162461bcd60e51b815260206004820181905260248201527f4e6577206f776e65722063616e6e6f74206265207a65726f20616464726573736044820152606401610675565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526002602052604090205460ff16611f6d5760405162461bcd60e51b815260040161067590612b7a565b600154600160a01b900460ff1615611f975760405162461bcd60e51b815260040161067590612baa565b6001548290600160a81b900460ff1615611fe8576001600160a01b03811660009081526004602052604090205460ff16611fe35760405162461bcd60e51b815260040161067590612cd5565b612021565b6001600160a01b03811660009081526003602052604090205460ff16156120215760405162461bcd60e51b815260040161067590612d0c565b33600090815260026020526040902060048101548391906120459062015180612c02565b421061205957600060038201554260048201555b806002015482111561207d5760405162461bcd60e51b815260040161067590612eca565b80600101548282600301546120929190612c02565b11156120b05760405162461bcd60e51b815260040161067590612f01565b806005015481600601546120c49190612c02565b4210156120e35760405162461bcd60e51b815260040161067590612f2e565b6120eb6122ae565b6001600160a01b0386166121415760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e20616464726573732063616e6e6f74206265207a65726f000000006044820152606401610675565b6001600160a01b0385166121675760405162461bcd60e51b815260040161067590612c6b565b600084116121875760405162461bcd60e51b815260040161067590612ca0565b6040516370a0823160e01b8152306004820152869085906001600160a01b038316906370a0823190602401602060405180830381865afa1580156121cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f39190612c1b565b10156122115760405162461bcd60e51b815260040161067590612c34565b6122256001600160a01b0382168787612397565b856001600160a01b0316876001600160a01b0316336001600160a01b03167fae33cb06d7303f889d953bb09540983050163c1c4c98b330db432a911cfb63fd8860405161227491815260200190565b60405180910390a4506122876001600055565b8181600301600082825461229b9190612c02565b9091555050426006909101555050505050565b6002600054036122d157604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b33600090815260026020526040902060048101546122f99062015180612c02565b421061230d57600060038201554260048201555b80600201548211156123315760405162461bcd60e51b815260040161067590612eca565b80600101548282600301546123469190612c02565b11156123645760405162461bcd60e51b815260040161067590612f01565b806005015481600601546123789190612c02565b4210156107745760405162461bcd60e51b815260040161067590612f2e565b6040516001600160a01b03838116602483015260448201839052610bac91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506124bf565b6040516001600160a01b0384811660248301528381166044830152606482018390526113de9186918216906323b872dd906084016123c4565b804710156124595760405163cf47918160e01b815247600482015260248101829052604401610675565b600080836001600160a01b03168360405160006040518083038185875af1925050503d80600081146124a7576040519150601f19603f3d011682016040523d82523d6000602084013e6124ac565b606091505b5091509150816113de576113de81612530565b600080602060008451602086016000885af1806124e2576040513d6000823e3d81fd5b50506000513d915081156124fa578060011415612507565b6001600160a01b0384163b155b156113de57604051635274afe760e01b81526001600160a01b0385166004820152602401610675565b80511561253f57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b50805461256490612ae3565b6000825580601f10612574575050565b601f016020900490600052602060002090810190610fee91905b808211156125a2576000815560010161258e565b5090565b6001600160a01b0381168114610fee57600080fd5b6000602082840312156125cd57600080fd5b81356125d8816125a6565b9392505050565b6000815180845260005b81811015612605576020818501810151868301820152016125e9565b506000602082860101526020601f19601f83011685010191505092915050565b88151581528760208201528660408201528560608201528460808201528360a08201528260c082015261010060e082015260006126666101008301846125df565b9a9950505050505050505050565b60006020828403121561268657600080fd5b813580151581146125d857600080fd5b60008083601f8401126126a857600080fd5b50813567ffffffffffffffff8111156126c057600080fd5b6020830191508360208285010111156126d857600080fd5b9250929050565b600080602083850312156126f257600080fd5b823567ffffffffffffffff81111561270957600080fd5b61271585828601612696565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561276057612760612721565b604052919050565b600067ffffffffffffffff82111561278257612782612721565b5060051b60200190565b600082601f83011261279d57600080fd5b81356127b06127ab82612768565b612737565b8082825260208201915060208360051b8601019250858311156127d257600080fd5b602085015b838110156127f85780356127ea816125a6565b8352602092830192016127d7565b5095945050505050565b60008060006060848603121561281757600080fd5b8335612822816125a6565b9250602084013567ffffffffffffffff81111561283e57600080fd5b61284a8682870161278c565b925050604084013567ffffffffffffffff81111561286757600080fd5b8401601f8101861361287857600080fd5b80356128866127ab82612768565b8082825260208201915060208360051b8501019250888311156128a857600080fd5b6020840193505b828410156128ca5783358252602093840193909101906128af565b809450505050509250925092565b6000602082840312156128ea57600080fd5b813567ffffffffffffffff81111561290157600080fd5b61290d8482850161278c565b949350505050565b600080600080600060a0868803121561292d57600080fd5b8535612938816125a6565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff81111561296957600080fd5b8601601f8101881361297a57600080fd5b803567ffffffffffffffff81111561299457612994612721565b6129a7601f8201601f1916602001612737565b8181528960208385010111156129bc57600080fd5b816020840160208301376000602083830101528093505050509295509295909350565b600080600080606085870312156129f557600080fd5b8435612a00816125a6565b935060208501359250604085013567ffffffffffffffff811115612a2357600080fd5b612a2f87828801612696565b95989497509550505050565b60008060408385031215612a4e57600080fd5b8235612a59816125a6565b946020939093013593505050565b60008060008060808587031215612a7d57600080fd5b8435612a88816125a6565b966020860135965060408601359560600135945092505050565b600080600060608486031215612ab757600080fd5b8335612ac2816125a6565b92506020840135612ad2816125a6565b929592945050506040919091013590565b600181811c90821680612af757607f821691505b602082108103612b1757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600d908201526c2737ba103a34329037bbb732b960991b604082015260600190565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b6020808252601690820152752737ba1030b71030b1ba34bb329037b832b930ba37b960511b604082015260600190565b60208082526012908201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115612c1557612c15612bec565b92915050565b600060208284031215612c2d57600080fd5b5051919050565b6020808252601a908201527f496e73756666696369656e7420746f6b656e2062616c616e6365000000000000604082015260600190565b6020808252818101527f526563697069656e742063616e6e6f74206265207a65726f2061646472657373604082015260600190565b6020808252818101527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604082015260600190565b60208082526018908201527f41646472657373206e6f7420696e2077686974656c6973740000000000000000604082015260600190565b6020808252601690820152751059191c995cdcc81a5cc8189b1858dadb1a5cdd195960521b604082015260600190565b81810381811115612c1557612c15612bec565b60208082526026908201527f5065722d7478206c696d69742063616e6e6f7420657863656564206461696c79604082015265081b1a5b5a5d60d21b606082015260800190565b601f821115610bac57806000526020600020601f840160051c81016020851015612dbc5750805b601f840160051c820191505b81811015612ddc5760008155600101612dc8565b5050505050565b815167ffffffffffffffff811115612dfd57612dfd612721565b612e1181612e0b8454612ae3565b84612d95565b6020601f821160018114612e455760008315612e2d5750848201515b600019600385901b1c1916600184901b178455612ddc565b600084815260208120601f198516915b82811015612e755787850151825560209485019460019092019101612e55565b5084821015612e935786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b838152826020820152606060408201526000612ec160608301846125df565b95945050505050565b6020808252601d908201527f45786365656473207065722d7472616e73616374696f6e206c696d6974000000604082015260600190565b602080825260139082015272115e18d959591cc819185a5b1e481b1a5b5a5d606a1b604082015260600190565b6020808252601c908201527f4f7065726174696f6e20696e20636f6f6c646f776e20706572696f640000000060408201526060019056fea2646970667358221220db15b2cfaaf54d214991222de5793fb8b9f4ee19a22b7d9bf092180ce330a05264736f6c634300081c0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 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.