Contract Overview
Balance:
0 ETH
ETH Value:
$0.00
My Name Tag:
Not Available
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x387fd4a118455554663f2d95b50e39b5e36fb78dd693bf71a88e21c05092de80 | Initialize | 1429884 | 919 days 14 hrs ago | 0xcaf2974b9fc2fe04a5c6f278279ab46018218979 | IN | 0x23bcfcebf02ca89e9862cac4d0d41b4f56c58a5b | 0 ETH | 0.001993183733 ETH | |
0x193442af6e7205f54976e61b30a34b0c16ae91de1ffcb1edb8491e7181410663 | 0x60806040 | 1429788 | 919 days 14 hrs ago | 0xcaf2974b9fc2fe04a5c6f278279ab46018218979 | IN | Create: L2Vault | 0 ETH | 0.089916236313 ETH |
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
L2Vault
Compiler Version
v0.6.8+commit.0bbfe453
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // @unsupported: ovm /** * Created on 2021-06-07 08:50 * @summary: Vault for storing ERC20 tokens that will be transfered by external event-based system to another network. * @author: Composable Finance - Pepe Blasco */ pragma solidity ^0.6.8; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol"; //@title: Composable Finance L2 ERC20 Vault contract L2Vault is OwnableUpgradeable, ReentrancyGuardUpgradeable { using SafeMath for uint256; uint256 nonce; uint256 public minFee; uint256 public maxFee; uint256 public minTransferDelay; uint256 public maxTransferDelay; uint256 public feeThreshold; uint256 public transferLockupTime; address public feeAddress; bool public paused; uint256 constant feeFactor = 10000; mapping(bytes32 => bool) public hasBeenWithdrawed; mapping(bytes32 => bool) public hasBeenUnlocked; mapping(bytes32 => bool) public hasBeenCompleted; bytes32 public lastWithdrawID; bytes32 public lastUnlockID; mapping(address => uint256) public lastTransfer; mapping(uint256 => mapping(address => address)) public remoteTokenAddress; // remoteTokenAddress[networkID][addressHere] = addressThere mapping(address => uint256) public inTransferFunds; mapping(address => uint256) public maxAssetTransferSize; mapping(address => uint256) public minAssetTransferSize; struct DepositInfo { address token; uint256 amount; } mapping(bytes32 => DepositInfo) public deposits; event DepositCompleted( address indexed account, address indexed erc20, address indexed remoteTokenAddress, uint256 remoteNetworkID, address destination, uint256 value, bytes32 uniqueId, uint256 transferDelay ); event TokenAdded( address indexed erc20, address indexed remoteTokenAddress, uint256 indexed remoteNetworkID, uint256 maxTransferSize, uint256 minTransferSize ); event TokenRemoved( address indexed erc20, address indexed remoteTokenAddress, uint256 indexed remoteNetworkID ); event AssetMinTransferSizeChanged( address indexed erc20, uint256 newMinSize ); event AssetMaxTransferSizeChanged( address indexed erc20, uint256 newMaxSize ); event MinFeeChanged(uint256 newMinFee); event MaxFeeChanged(uint256 newMaxFee); event MinTransferDelayChanged(uint256 newMinTransferDelay); event MaxTransferDelayChanged(uint256 newMaxTransferDelay); event ThresholdFeeChanged(uint256 newFeeThreshold); event FeeAddressChanged(address feeAddress); event WithdrawalCompleted( address indexed accountTo, uint256 amount, uint256 receivedAmount, uint256 feeAmount, address indexed tokenAddress, bytes32 indexed uniqueId ); event LiquidityMoved( address indexed _owner, address indexed _to, uint256 amount ); event FundsUnlocked( address indexed tokenAddress, address indexed user, uint256 amount, bytes32 indexed uniqueId ); event TransferFundsUnlocked( address indexed tokenAddress, uint256 amount, bytes32 uniqueId ); event LockupTimeChanged( address indexed _owner, uint256 _oldVal, uint256 _newVal, string valType ); event Pause(address admin); event Unpause(address admin); event FeeTaken( address indexed _owner, address indexed _user, address indexed _token, uint256 _amount, uint256 _fee, bytes32 uniqueId ); function initialize(address _feeAddress) public initializer { nonce = 0; minFee = 25; // 0.25% maxFee = 400; // 4% minTransferDelay = 0; maxTransferDelay = 1 days; feeThreshold = 50; // 50% of liquidity transferLockupTime = 5 minutes; __ReentrancyGuard_init(); __Ownable_init(); feeAddress = _feeAddress; } function _generateId(uint256 destinationId) private returns (bytes32) { uint256 chainId = 0; assembly { chainId := chainid() } return keccak256( abi.encodePacked( block.number, address(this), chainId, destinationId, nonce++ ) ); } // @notice: Adds a supported token to the contract, allowing for anyone to deposit their tokens. // @param tokenAddress SC address of the ERC20 token to add to supported tokens function addSupportedToken( address tokenAddress, address tokenAddressRemote, uint256 remoteNetworkID, uint256 maxTransferSize, uint256 minTransferSize ) external onlyOwner { require(tokenAddress != address(0), "Invalid token address"); require(tokenAddressRemote != address(0), "Invalid token address"); require(remoteNetworkID > 0, "Invalid network ID"); require( maxTransferSize > minTransferSize, "Max transfer size must be bigger than min" ); remoteTokenAddress[remoteNetworkID][tokenAddress] = tokenAddressRemote; maxAssetTransferSize[tokenAddress] = maxTransferSize; minAssetTransferSize[tokenAddress] = minTransferSize; emit TokenAdded( tokenAddress, tokenAddressRemote, remoteNetworkID, maxTransferSize, minTransferSize ); } // @notice: removes supported token from the contract, avoiding new deposits and withdrawals. // @param tokenAddress SC address of the ERC20 token to remove from supported tokens function removeSupportedToken(address tokenAddress, uint256 remoteNetworkID) external onlyOwner onlySupportedRemoteTokens(remoteNetworkID, tokenAddress) { emit TokenRemoved( tokenAddress, remoteTokenAddress[remoteNetworkID][tokenAddress], remoteNetworkID ); delete remoteTokenAddress[remoteNetworkID][tokenAddress]; } function setAssetMinTransferSize(address tokenAddress, uint256 _size) external onlyOwner { minAssetTransferSize[tokenAddress] = _size; emit AssetMinTransferSizeChanged(tokenAddress, _size); } function setAssetMaxTransferSize(address tokenAddress, uint256 _size) external onlyOwner { maxAssetTransferSize[tokenAddress] = _size; emit AssetMaxTransferSizeChanged(tokenAddress, _size); } function setTransferLockupTime(uint256 lockupTime) external onlyOwner { emit LockupTimeChanged( msg.sender, transferLockupTime, lockupTime, "Transfer" ); transferLockupTime = lockupTime; } /// @notice External callable function to pause the contract function pause() external onlyOwner whenNotPaused { paused = true; emit Pause(msg.sender); } /// @notice External callable function to unpause the contract function unpause() external onlyOwner { paused = false; emit Unpause(msg.sender); } // @notice: Updates the minimum Transfer delay for the relayer // @param newMinTransferDelay function setMinTransferDelay(uint256 newMinTransferDelay) external onlyOwner { require( newMinTransferDelay < maxTransferDelay, "Min TransferDelay cannot be more than max TransferDelay" ); minTransferDelay = newMinTransferDelay; emit MinTransferDelayChanged(newMinTransferDelay); } // @notice: Updates the maximum TransferDelay // @param newMaxTransferDelay function setMaxTransferDelay(uint256 newMaxTransferDelay) external onlyOwner { require( newMaxTransferDelay > minTransferDelay, "Max TransferDelay cannot be less than min TransferDelay" ); maxTransferDelay = newMaxTransferDelay; emit MaxTransferDelayChanged(newMaxTransferDelay); } // @notice: Updates the minimum fee // @param newMinFee function setMinFee(uint256 newMinFee) external onlyOwner { require( newMinFee < feeFactor, "Min fee cannot be more than fee factor" ); require(newMinFee < maxFee, "Min fee cannot be more than max fee"); minFee = newMinFee; emit MinFeeChanged(newMinFee); } // @notice: Updates the maximum fee // @param newMaxFee function setMaxFee(uint256 newMaxFee) external onlyOwner { require( newMaxFee < feeFactor, "Max fee cannot be more than fee factor" ); require(newMaxFee > minFee, "Max fee cannot be less than min fee"); maxFee = newMaxFee; emit MaxFeeChanged(newMaxFee); } // @notice: Updates the fee threshold // @param newThresholdFee function setThresholdFee(uint256 newThresholdFee) external onlyOwner { require( newThresholdFee < 100, "Threshold fee cannot be more than threshold factor" ); feeThreshold = newThresholdFee; emit ThresholdFeeChanged(newThresholdFee); } // @notice: Updates the account where to send deposit fees // @param newFeeAddress function setFeeAddress(address newFeeAddress) external onlyOwner { require(newFeeAddress != address(0), "Invalid fee address"); feeAddress = newFeeAddress; emit FeeAddressChanged(feeAddress); } // @notice: checks for the current balance of this contract's address on the ERC20 contract // @param tokenAddress SC address of the ERC20 token to get liquidity from function getCurrentTokenLiquidity(address tokenAddress) public view returns (uint256) { return IERC20(tokenAddress).balanceOf(address(this)).sub( inTransferFunds[tokenAddress] ); } // @notice Deposits ERC20 token into vault // @param amount amount of tokens to deposit // @param tokenAddress SC address of the ERC20 token to deposit // @param destinationAddress Receiver on the destination layer; if address(0) funds will be sent to msg.sender on the destination layer // @param transferDelay delay in seconds for the relayer to execute the transaction function depositERC20( uint256 amount, address tokenAddress, address destinationAddress, uint256 remoteNetworkID, uint256 transferDelay ) external onlySupportedRemoteTokens(remoteNetworkID, tokenAddress) nonReentrant whenNotPaused { require(amount != 0, "Amount cannot be zero"); require( lastTransfer[msg.sender].add(transferLockupTime) < block.timestamp, "Transfer not yet possible" ); require( transferDelay >= minTransferDelay, "Transfer delay is below the minimum required" ); require( transferDelay <= maxTransferDelay, "Transfer delay is below the maximum required" ); require( amount <= maxAssetTransferSize[tokenAddress], "Transfer amount is above max transfer size for this asset" ); require( amount <= maxAssetTransferSize[tokenAddress], "Transfer amount is above max transfer size for this asset" ); require( amount >= minAssetTransferSize[tokenAddress], "Transfer amount is below min transfer size for this asset" ); uint256 newinTransferFunds = inTransferFunds[tokenAddress].add(amount); inTransferFunds[tokenAddress] = newinTransferFunds; SafeERC20.safeTransferFrom( IERC20(tokenAddress), msg.sender, address(this), amount ); lastTransfer[msg.sender] = block.timestamp; bytes32 id = _generateId(remoteNetworkID); deposits[id] = DepositInfo({token: tokenAddress, amount: amount}); address sendTo = destinationAddress; if (sendTo == address(0)) { sendTo = msg.sender; } emit DepositCompleted( msg.sender, tokenAddress, remoteTokenAddress[remoteNetworkID][tokenAddress], remoteNetworkID, sendTo, amount, id, transferDelay ); } function calculateFeePercentage(address tokenAddress, uint256 amount) public view returns (uint256) { uint256 tokenLiquidity = getCurrentTokenLiquidity(tokenAddress); if (tokenLiquidity == 0) { return maxFee; } if ((amount.mul(100)).div(tokenLiquidity) > feeThreshold) { // Flat fee since it's above threshold return maxFee; } uint256 maxTransfer = tokenLiquidity.mul(feeThreshold).div(100); uint256 percentTransfer = amount.mul(100).div(maxTransfer); return percentTransfer.mul(maxFee.sub(minFee)).add(minFee.mul(100)).div( 100 ); } // @notice: method called by the relayer to release funds // @param accountTo eth adress to send the withdrawal tokens function withdrawTo( address accountTo, uint256 amount, address tokenAddress, uint256 remoteNetworkID, bytes32 id ) external onlySupportedRemoteTokens(remoteNetworkID, tokenAddress) nonReentrant onlyOwner whenNotPaused { require(hasBeenWithdrawed[id] == false, "Already withdrawed"); hasBeenWithdrawed[id] = true; lastWithdrawID = id; uint256 fee = calculateFeePercentage(tokenAddress, amount); uint256 feeAbsolute = amount.mul(fee).div(feeFactor); uint256 withdrawAmount = amount.sub(feeAbsolute); require( getCurrentTokenLiquidity(tokenAddress) >= amount, "Not enough tokens on balance" ); SafeERC20.safeTransfer(IERC20(tokenAddress), accountTo, withdrawAmount); if (feeAbsolute > 0) { SafeERC20.safeTransfer( IERC20(tokenAddress), feeAddress, feeAbsolute ); emit FeeTaken( msg.sender, accountTo, tokenAddress, amount, feeAbsolute, id ); } emit WithdrawalCompleted( accountTo, amount, withdrawAmount, feeAbsolute, tokenAddress, id ); } /** * @notice Will be called once the contract is paused and token's available liquidity will be manually moved back to L1 * @param _token Token's balance the owner wants to withdraw * @param _to Receiver address */ function saveFunds(address _token, address _to) external onlyOwner { require(paused == true, "contract is not paused"); require(_token != address(0), "invalid _token address"); require(_to != address(0), "invalid _to address"); uint256 balance = IERC20(_token).balanceOf(address(this)); require(balance > 0, "nothing to transfer"); SafeERC20.safeTransfer(IERC20(_token), _to, balance); emit LiquidityMoved(msg.sender, _to, balance); } function unlockInTransferFunds( address _token, uint256 _amount, bytes32 _id ) public whenNotPaused onlyOwner { require(hasBeenCompleted[_id] == false, "Already completed"); require( inTransferFunds[_token] >= _amount, "More amount than available" ); require( deposits[_id].token == _token && deposits[_id].amount == _amount, "Deposit not registered" ); hasBeenCompleted[_id] = true; uint256 newinTransferFunds = inTransferFunds[_token].sub(_amount); inTransferFunds[_token] = newinTransferFunds; emit TransferFundsUnlocked(_token, _amount, _id); } function unlockFunds( address _token, address _user, uint256 amount, bytes32 id ) external onlyOwner nonReentrant { require(hasBeenUnlocked[id] == false, "Already unlocked"); hasBeenUnlocked[id] = true; lastUnlockID = id; SafeERC20.safeTransfer(IERC20(_token), _user, amount); emit FundsUnlocked(_token, _user, amount, id); if (hasBeenCompleted[id] == false) { unlockInTransferFunds(_token, amount, id); } } function getRemoteTokenAddress(uint256 _networkID, address _tokenAddress) external view returns (address tokenAddressRemote) { tokenAddressRemote = remoteTokenAddress[_networkID][_tokenAddress]; } modifier onlySupportedRemoteTokens( uint256 networkID, address tokenAddress ) { require( remoteTokenAddress[networkID][tokenAddress] != address(0), "Unsupported token in this network" ); _; } modifier whenNotPaused() { require(paused == false, "Contract is paused"); _; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // 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; function __ReentrancyGuard_init() internal initializer { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal initializer { _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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; import "../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"erc20","type":"address"},{"indexed":false,"internalType":"uint256","name":"newMaxSize","type":"uint256"}],"name":"AssetMaxTransferSizeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"erc20","type":"address"},{"indexed":false,"internalType":"uint256","name":"newMinSize","type":"uint256"}],"name":"AssetMinTransferSizeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"erc20","type":"address"},{"indexed":true,"internalType":"address","name":"remoteTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"remoteNetworkID","type":"uint256"},{"indexed":false,"internalType":"address","name":"destination","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"uniqueId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"transferDelay","type":"uint256"}],"name":"DepositCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeAddress","type":"address"}],"name":"FeeAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"uniqueId","type":"bytes32"}],"name":"FeeTaken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"uniqueId","type":"bytes32"}],"name":"FundsUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LiquidityMoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_oldVal","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newVal","type":"uint256"},{"indexed":false,"internalType":"string","name":"valType","type":"string"}],"name":"LockupTimeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxFee","type":"uint256"}],"name":"MaxFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxTransferDelay","type":"uint256"}],"name":"MaxTransferDelayChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinFee","type":"uint256"}],"name":"MinFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinTransferDelay","type":"uint256"}],"name":"MinTransferDelayChanged","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":false,"internalType":"address","name":"admin","type":"address"}],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFeeThreshold","type":"uint256"}],"name":"ThresholdFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"erc20","type":"address"},{"indexed":true,"internalType":"address","name":"remoteTokenAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"remoteNetworkID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxTransferSize","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minTransferSize","type":"uint256"}],"name":"TokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"erc20","type":"address"},{"indexed":true,"internalType":"address","name":"remoteTokenAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"remoteNetworkID","type":"uint256"}],"name":"TokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"uniqueId","type":"bytes32"}],"name":"TransferFundsUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"accountTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receivedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"bytes32","name":"uniqueId","type":"bytes32"}],"name":"WithdrawalCompleted","type":"event"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"tokenAddressRemote","type":"address"},{"internalType":"uint256","name":"remoteNetworkID","type":"uint256"},{"internalType":"uint256","name":"maxTransferSize","type":"uint256"},{"internalType":"uint256","name":"minTransferSize","type":"uint256"}],"name":"addSupportedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateFeePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"destinationAddress","type":"address"},{"internalType":"uint256","name":"remoteNetworkID","type":"uint256"},{"internalType":"uint256","name":"transferDelay","type":"uint256"}],"name":"depositERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"deposits","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"getCurrentTokenLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_networkID","type":"uint256"},{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"getRemoteTokenAddress","outputs":[{"internalType":"address","name":"tokenAddressRemote","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hasBeenCompleted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hasBeenUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"hasBeenWithdrawed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"inTransferFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastTransfer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUnlockID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastWithdrawID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxAssetTransferSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransferDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minAssetTransferSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTransferDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"remoteTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"remoteNetworkID","type":"uint256"}],"name":"removeSupportedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"saveFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setAssetMaxTransferSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setAssetMinTransferSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxFee","type":"uint256"}],"name":"setMaxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxTransferDelay","type":"uint256"}],"name":"setMaxTransferDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinFee","type":"uint256"}],"name":"setMinFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinTransferDelay","type":"uint256"}],"name":"setMinTransferDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newThresholdFee","type":"uint256"}],"name":"setThresholdFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockupTime","type":"uint256"}],"name":"setTransferLockupTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferLockupTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"unlockFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32","name":"_id","type":"bytes32"}],"name":"unlockInTransferFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"accountTo","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"remoteNetworkID","type":"uint256"},{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506135d5806100206000396000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c80638231cdad11610151578063cb4e162b116100c3578063eba0188411610087578063eba0188414610716578063f2e7cc9c14610733578063f2fde38b14610750578063f31c126214610776578063f7c28e2f146107b8578063fa275835146107e457610274565b8063cb4e162b14610668578063cc4f38b414610670578063e3939a471461068d578063e562a1f4146106cd578063eb80c3bb146106ea57610274565b8063a79e89fd11610115578063a79e89fd146105a4578063aaef31e2146105ac578063ab35161c146105e8578063bd30af04146105f0578063c47d85021461061c578063c4d66de81461064257610274565b80638231cdad146105255780638456cb59146105515780638705fcd4146105595780638892e0471461057f5780638da5cb5b1461059c57610274565b806341275358116101ea5780635c975abb116101ae5780635c975abb146104915780635e9a57c3146104995780635f77c2d9146104b65780636ed33b98146104be578063710e5d2f14610500578063715018a61461051d57610274565b806341275358146103c257806355f01e34146103e65780635920db04146104145780635b6612ad146104455780635c65a52e1461046b57610274565b80632cfa28611161023c5780632cfa2861146102f757806331ac9920146102ff5780633d4dff7b1461031c5780633dfc99b91461035c5780633f4ba83a1461038e578063407d29dc1461039657610274565b806301f59d16146102795780630dd348c61461029357806311dfb88b146102c15780631df3a07f146102e757806324ec7590146102ef575b600080fd5b61028161080a565b60408051918252519081900360200190f35b6102bf600480360360408110156102a957600080fd5b506001600160a01b038135169060200135610810565b005b610281600480360360208110156102d757600080fd5b50356001600160a01b03166108c6565b61028161095f565b610281610965565b61028161096b565b6102bf6004803603602081101561031557600080fd5b5035610971565b6103396004803603602081101561033257600080fd5b5035610a8e565b604080516001600160a01b03909316835260208301919091528051918290030190f35b6102bf6004803603606081101561037257600080fd5b506001600160a01b038135169060208101359060400135610ab3565b6102bf610d52565b6102bf600480360360408110156103ac57600080fd5b506001600160a01b038135169060200135610df6565b6103ca610eac565b604080516001600160a01b039092168252519081900360200190f35b6102bf600480360360408110156103fc57600080fd5b506001600160a01b0381358116916020013516610ebb565b6104316004803603602081101561042a57600080fd5b503561112e565b604080519115158252519081900360200190f35b6102816004803603602081101561045b57600080fd5b50356001600160a01b0316611143565b6102816004803603602081101561048157600080fd5b50356001600160a01b0316611155565b610431611167565b610431600480360360208110156104af57600080fd5b5035611177565b61028161118c565b6102bf600480360360a08110156104d457600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060800135611192565b6102bf6004803603602081101561051657600080fd5b50356113b1565b6102bf6114ce565b6102bf6004803603604081101561053b57600080fd5b506001600160a01b03813516906020013561157a565b6102bf6116c9565b6102bf6004803603602081101561056f57600080fd5b50356001600160a01b03166117c7565b6102bf6004803603602081101561059557600080fd5b50356118d4565b6103ca6119b1565b6102816119c0565b6102bf600480360360808110156105c257600080fd5b506001600160a01b038135811691602081013590911690604081013590606001356119c6565b610281611b7d565b6103ca6004803603604081101561060657600080fd5b50803590602001356001600160a01b0316611b83565b6102816004803603602081101561063257600080fd5b50356001600160a01b0316611bac565b6102bf6004803603602081101561065857600080fd5b50356001600160a01b0316611bbe565b610281611cb3565b6102bf6004803603602081101561068657600080fd5b5035611cb9565b6102bf600480360360a08110156106a357600080fd5b506001600160a01b0381358116916020810135916040820135169060608101359060800135611d7e565b6102bf600480360360208110156106e357600080fd5b50356120f9565b6102816004803603604081101561070057600080fd5b506001600160a01b0381351690602001356121d5565b6104316004803603602081101561072c57600080fd5b50356122ac565b6102bf6004803603602081101561074957600080fd5b50356122c1565b6102bf6004803603602081101561076657600080fd5b50356001600160a01b031661239e565b6102bf600480360360a081101561078c57600080fd5b508035906001600160a01b036020820135811691604081013590911690606081013590608001356124a1565b6103ca600480360360408110156107ce57600080fd5b50803590602001356001600160a01b031661294f565b610281600480360360208110156107fa57600080fd5b50356001600160a01b0316612975565b60995481565b610818612987565b6001600160a01b03166108296119b1565b6001600160a01b031614610872576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260a76020908152604091829020849055815184815291517f66f19a227379ccc97fa8868ce591d0bba21e61cc4d21375031c0a3f1db840b869281900390910190a25050565b6001600160a01b038116600081815260a6602090815260408083205481516370a0823160e01b81523060048201529151939461095994919390926370a082319260248083019392829003018186803b15801561092157600080fd5b505afa158015610935573d6000803e3d6000fd5b505050506040513d602081101561094b57600080fd5b50519063ffffffff61298b16565b92915050565b609b5481565b60985481565b60a35481565b610979612987565b6001600160a01b031661098a6119b1565b6001600160a01b0316146109d3576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6127108110610a135760405162461bcd60e51b81526004018080602001828103825260268152602001806135246026913960400191505060405180910390fd5b6099548110610a535760405162461bcd60e51b81526004018080602001828103825260238152602001806132f36023913960400191505060405180910390fd5b60988190556040805182815290517f4876dba3c933047c25e1a803b88c5301b0249f3e2ad13e405a43ad72151669789181900360200190a150565b60a960205260009081526040902080546001909101546001600160a01b039091169082565b609e54600160a01b900460ff1615610b07576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015290519081900360640190fd5b610b0f612987565b6001600160a01b0316610b206119b1565b6001600160a01b031614610b69576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b600081815260a1602052604090205460ff1615610bc1576040805162461bcd60e51b8152602060048201526011602482015270105b1c9958591e4818dbdb5c1b195d1959607a1b604482015290519081900360640190fd5b6001600160a01b038316600090815260a66020526040902054821115610c2e576040805162461bcd60e51b815260206004820152601a60248201527f4d6f726520616d6f756e74207468616e20617661696c61626c65000000000000604482015290519081900360640190fd5b600081815260a960205260409020546001600160a01b038481169116148015610c675750600081815260a9602052604090206001015482145b610cb1576040805162461bcd60e51b815260206004820152601660248201527511195c1bdcda5d081b9bdd081c9959da5cdd195c995960521b604482015290519081900360640190fd5b600081815260a160209081526040808320805460ff191660011790556001600160a01b038616835260a6909152812054610cf1908463ffffffff61298b16565b6001600160a01b038516600081815260a660209081526040918290208490558151878152908101869052815193945091927f429c348628fb6a058cc5833a5443987599bc0b0cd483f3faf07e9c82c79f6dbd9281900390910190a250505050565b610d5a612987565b6001600160a01b0316610d6b6119b1565b6001600160a01b031614610db4576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609e805460ff60a01b191690556040805133815290517faeb196d352664784d1900b0e7414a8face7d29f4dae8c4b0cf68ed477423bbf49181900360200190a1565b610dfe612987565b6001600160a01b0316610e0f6119b1565b6001600160a01b031614610e58576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260a86020908152604091829020849055815184815291517ffcff383101255a706993a0b528d6d7f3f9719ae725e6e629109eb751524365279281900390910190a25050565b609e546001600160a01b031681565b610ec3612987565b6001600160a01b0316610ed46119b1565b6001600160a01b031614610f1d576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609e54600160a01b900460ff161515600114610f79576040805162461bcd60e51b815260206004820152601660248201527518dbdb9d1c9858dd081a5cc81b9bdd081c185d5cd95960521b604482015290519081900360640190fd5b6001600160a01b038216610fcd576040805162461bcd60e51b8152602060048201526016602482015275696e76616c6964205f746f6b656e206164647265737360501b604482015290519081900360640190fd5b6001600160a01b03811661101e576040805162461bcd60e51b8152602060048201526013602482015272696e76616c6964205f746f206164647265737360681b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b15801561106857600080fd5b505afa15801561107c573d6000803e3d6000fd5b505050506040513d602081101561109257600080fd5b50519050806110de576040805162461bcd60e51b81526020600482015260136024820152723737ba3434b733903a37903a3930b739b332b960691b604482015290519081900360640190fd5b6110e98383836129e8565b6040805182815290516001600160a01b0384169133917f68c8da1509f387d66b13f09bed3381fc67ef58a10f16d544742344e413d829349181900360200190a3505050565b609f6020526000908152604090205460ff1681565b60a46020526000908152604090205481565b60a66020526000908152604090205481565b609e54600160a01b900460ff1681565b60a16020526000908152604090205460ff1681565b609a5481565b61119a612987565b6001600160a01b03166111ab6119b1565b6001600160a01b0316146111f4576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b038516611247576040805162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b604482015290519081900360640190fd5b6001600160a01b03841661129a576040805162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b604482015290519081900360640190fd5b600083116112e4576040805162461bcd60e51b8152602060048201526012602482015271125b9d985b1a59081b995d1ddbdc9ac8125160721b604482015290519081900360640190fd5b8082116113225760405162461bcd60e51b81526004018080602001828103825260298152602001806133cf6029913960400191505060405180910390fd5b600083815260a5602090815260408083206001600160a01b0389811680865291845282852080546001600160a01b031916918a16918217905560a7845282852087905560a88452938290208590558151868152928301859052815187949391927f516549bbc9bb27a97e9083eed3beb2b85ed2b2836bb79640b99641f99314f85f928290030190a45050505050565b6113b9612987565b6001600160a01b03166113ca6119b1565b6001600160a01b031614611413576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b61271081106114535760405162461bcd60e51b81526004018080602001828103825260268152602001806132a76026913960400191505060405180910390fd5b60985481116114935760405162461bcd60e51b81526004018080602001828103825260238152602001806134396023913960400191505060405180910390fd5b60998190556040805182815290517f545899fa0ae9e51dc2a3d1ceb1b2ac094e104d0da60dc554c389f71ca7ad0c839181900360200190a150565b6114d6612987565b6001600160a01b03166114e76119b1565b6001600160a01b031614611530576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b611582612987565b6001600160a01b03166115936119b1565b6001600160a01b0316146115dc576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b600081815260a5602090815260408083206001600160a01b03808716855292529091205482918491166116405760405162461bcd60e51b81526004018080602001828103825260218152602001806134936021913960400191505060405180910390fd5b600083815260a5602090815260408083206001600160a01b03808916808652919093528184205491518794929093169290917feddce3117927831e55f862ee4b16c60ba431908fc8404f5a2d40c2ac163c3b1491a45050600090815260a5602090815260408083206001600160a01b0390941683529290522080546001600160a01b0319169055565b6116d1612987565b6001600160a01b03166116e26119b1565b6001600160a01b03161461172b576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609e54600160a01b900460ff161561177f576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015290519081900360640190fd5b609e805460ff60a01b1916600160a01b1790556040805133815290517f5ee71a369c8672edded508e624ffc9257fa1ae6886ef32905c18e60196bca3999181900360200190a1565b6117cf612987565b6001600160a01b03166117e06119b1565b6001600160a01b031614611829576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b03811661187a576040805162461bcd60e51b8152602060048201526013602482015272496e76616c696420666565206164647265737360681b604482015290519081900360640190fd5b609e80546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517fd1e93c69f2847f79bfa4d71704aaa84a581729b4b1706d922ee42ba1848a45c9916020908290030190a150565b6118dc612987565b6001600160a01b03166118ed6119b1565b6001600160a01b031614611936576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609b5481106119765760405162461bcd60e51b81526004018080602001828103825260378152602001806134b46037913960400191505060405180910390fd5b609a8190556040805182815290517f4a7e82457586c0067fe255bcc8798fc7a1d4a8db89c6def0656894438b1300679181900360200190a150565b6033546001600160a01b031690565b609d5481565b6119ce612987565b6001600160a01b03166119df6119b1565b6001600160a01b031614611a28576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b60026065541415611a80576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002606555600081815260a0602052604090205460ff1615611adc576040805162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481d5b9b1bd8dad95960821b604482015290519081900360640190fd5b600081815260a060205260409020805460ff1916600117905560a3819055611b058484846129e8565b80836001600160a01b0316856001600160a01b03167f86cd70ad3c9ac26858b491575ae55a4a3bddc33e4bd136d3c87a6c8a79a4b9be856040518082815260200191505060405180910390a4600081815260a1602052604090205460ff16611b7257611b72848383610ab3565b505060016065555050565b60a25481565b600091825260a5602090815260408084206001600160a01b039384168552909152909120541690565b60a86020526000908152604090205481565b600054610100900460ff1680611bd75750611bd7612a3f565b80611be5575060005460ff16155b611c205760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015611c4b576000805460ff1961ff0019909116610100171660011790555b600060978190556019609855610190609955609a5562015180609b556032609c5561012c609d55611c7a612a50565b611c82612afa565b609e80546001600160a01b0319166001600160a01b0384161790558015611caf576000805461ff00191690555b5050565b609c5481565b611cc1612987565b6001600160a01b0316611cd26119b1565b6001600160a01b031614611d1b576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609d5460408051918252602082018390526060828201819052600890830152672a3930b739b332b960c11b60808301525133917f53124f1baebd8aa78255954485d7d29bbea9fca62be891b551a39d94318717f2919081900360a00190a2609d55565b600082815260a5602090815260408083206001600160a01b0380881685529252909120548391859116611de25760405162461bcd60e51b81526004018080602001828103825260218152602001806134936021913960400191505060405180910390fd5b60026065541415611e3a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002606555611e47612987565b6001600160a01b0316611e586119b1565b6001600160a01b031614611ea1576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609e54600160a01b900460ff1615611ef5576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015290519081900360640190fd5b6000838152609f602052604090205460ff1615611f4e576040805162461bcd60e51b8152602060048201526012602482015271105b1c9958591e481dda5d1a191c985dd95960721b604482015290519081900360640190fd5b6000838152609f60205260408120805460ff1916600117905560a2849055611f7686886121d5565b90506000611f9c612710611f908a8563ffffffff612b9716565b9063ffffffff612bf716565b90506000611fb0898363ffffffff61298b16565b905088611fbc896108c6565b101561200f576040805162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f75676820746f6b656e73206f6e2062616c616e636500000000604482015290519081900360640190fd5b61201a888b836129e8565b811561208c57609e546120389089906001600160a01b0316846129e8565b604080518a81526020810184905280820188905290516001600160a01b03808b1692908d169133917fa740b84fbe58f03c5e43c2dba01c22fcfd8cb38e748fb4d77b3f96d898a4c726919081900360600190a45b85886001600160a01b03168b6001600160a01b03167fc100a0661ef4945783729d27427d2bb427f03e3da20930554e70d748bdc1d4a18c858760405180848152602001838152602001828152602001935050505060405180910390a4505060016065555050505050505050565b612101612987565b6001600160a01b03166121126119b1565b6001600160a01b03161461215b576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6064811061219a5760405162461bcd60e51b81526004018080602001828103825260328152602001806132756032913960400191505060405180910390fd5b609c8190556040805182815290517f5668da3a1b52d0f92cd7fefc2ca10602f13a3623487dac2a0f03d55ec31952fc9181900360200190a150565b6000806121e1846108c6565b9050806121f2575050609954610959565b609c5461220a82611f9086606463ffffffff612b9716565b111561221a575050609954610959565b60006122366064611f90609c5485612b9790919063ffffffff16565b9050600061224f82611f9087606463ffffffff612b9716565b90506122a26064611f9061226f6064609854612b9790919063ffffffff16565b61229661228960985460995461298b90919063ffffffff16565b869063ffffffff612b9716565b9063ffffffff612c5e16565b9695505050505050565b60a06020526000908152604090205460ff1681565b6122c9612987565b6001600160a01b03166122da6119b1565b6001600160a01b031614612323576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609a5481116123635760405162461bcd60e51b815260040180806020018281038252603781526020018061345c6037913960400191505060405180910390fd5b609b8190556040805182815290517fdac0c1b1717b00ceff12e2c471b43238fef05119656d8af15ce93e5c4a020a219181900360200190a150565b6123a6612987565b6001600160a01b03166123b76119b1565b6001600160a01b031614612400576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b0381166124455760405162461bcd60e51b81526004018080602001828103825260268152602001806132cd6026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260a5602090815260408083206001600160a01b03808916855292529091205483918691166125055760405162461bcd60e51b81526004018080602001828103825260218152602001806134936021913960400191505060405180910390fd5b6002606554141561255d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002606555609e54600160a01b900460ff16156125b6576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015290519081900360640190fd5b86612600576040805162461bcd60e51b8152602060048201526015602482015274416d6f756e742063616e6e6f74206265207a65726f60581b604482015290519081900360640190fd5b609d5433600090815260a460205260409020544291612625919063ffffffff612c5e16565b10612677576040805162461bcd60e51b815260206004820152601960248201527f5472616e73666572206e6f742079657420706f737369626c6500000000000000604482015290519081900360640190fd5b609a548310156126b85760405162461bcd60e51b815260040180806020018281038252602c81526020018061354a602c913960400191505060405180910390fd5b609b548311156126f95760405162461bcd60e51b815260040180806020018281038252602c815260200180613316602c913960400191505060405180910390fd5b6001600160a01b038616600090815260a760205260409020548711156127505760405162461bcd60e51b81526004018080602001828103825260398152602001806133426039913960400191505060405180910390fd5b6001600160a01b038616600090815260a760205260409020548711156127a75760405162461bcd60e51b81526004018080602001828103825260398152602001806133426039913960400191505060405180910390fd5b6001600160a01b038616600090815260a860205260409020548710156127fe5760405162461bcd60e51b81526004018080602001828103825260398152602001806134eb6039913960400191505060405180910390fd5b6001600160a01b038616600090815260a66020526040812054612827908963ffffffff612c5e16565b6001600160a01b038816600090815260a66020526040902081905590506128508733308b612cb8565b33600090815260a46020526040812042905561286b86612d18565b6040805180820182526001600160a01b038b8116825260208083018e8152600086815260a9909252939020915182546001600160a01b0319169082161782559151600190910155909150879081166128c05750335b600087815260a5602090815260408083206001600160a01b03808e16808652918452938290205482518c8152868616948101949094528383018f905260608401879052608084018b9052915191909316929133917fbe4188c3458b421a3cba4f2f42fc26e6fe84ffe65e0977d892db5bc5c5c6133c9181900360a00190a4505060016065555050505050505050565b60a56020908152600092835260408084209091529082529020546001600160a01b031681565b60a76020526000908152604090205481565b3390565b6000828211156129e2576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612a3a908490612d67565b505050565b6000612a4a30612e18565b15905090565b600054610100900460ff1680612a695750612a69612a3f565b80612a77575060005460ff16155b612ab25760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612add576000805460ff1961ff0019909116610100171660011790555b612ae5612e1e565b8015612af7576000805461ff00191690555b50565b600054610100900460ff1680612b135750612b13612a3f565b80612b21575060005460ff16155b612b5c5760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612b87576000805460ff1961ff0019909116610100171660011790555b612b8f612ec4565b612ae5612f64565b600082612ba657506000610959565b82820282848281612bb357fe5b0414612bf05760405162461bcd60e51b81526004018080602001828103825260218152602001806133f86021913960400191505060405180910390fd5b9392505050565b6000808211612c4d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612c5657fe5b049392505050565b600082820183811015612bf0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612d12908590612d67565b50505050565b609780546001810190915560408051436020808301919091523060601b8284015246605483015260748201949094526094808201939093528151808203909301835260b4019052805191012090565b6060612dbc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661305d9092919063ffffffff16565b805190915015612a3a57808060200190516020811015612ddb57600080fd5b5051612a3a5760405162461bcd60e51b815260040180806020018281038252602a815260200180613576602a913960400191505060405180910390fd5b3b151590565b600054610100900460ff1680612e375750612e37612a3f565b80612e45575060005460ff16155b612e805760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612eab576000805460ff1961ff0019909116610100171660011790555b60016065558015612af7576000805461ff001916905550565b600054610100900460ff1680612edd5750612edd612a3f565b80612eeb575060005460ff16155b612f265760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612ae5576000805460ff1961ff0019909116610100171660011790558015612af7576000805461ff001916905550565b600054610100900460ff1680612f7d5750612f7d612a3f565b80612f8b575060005460ff16155b612fc65760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612ff1576000805460ff1961ff0019909116610100171660011790555b6000612ffb612987565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015612af7576000805461ff001916905550565b606061306c8484600085613074565b949350505050565b6060824710156130b55760405162461bcd60e51b815260040180806020018281038252602681526020018061337b6026913960400191505060405180910390fd5b6130be85612e18565b61310f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061314e5780518252601f19909201916020918201910161312f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146131b0576040519150601f19603f3d011682016040523d82523d6000602084013e6131b5565b606091505b50915091506131c58282866131d0565b979650505050505050565b606083156131df575081612bf0565b8251156131ef5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613239578181015183820152602001613221565b50505050905090810190601f1680156132665780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5468726573686f6c64206665652063616e6e6f74206265206d6f7265207468616e207468726573686f6c6420666163746f724d6178206665652063616e6e6f74206265206d6f7265207468616e2066656520666163746f724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d696e206665652063616e6e6f74206265206d6f7265207468616e206d6178206665655472616e736665722064656c61792069732062656c6f7720746865206d6178696d756d2072657175697265645472616e7366657220616d6f756e742069732061626f7665206d6178207472616e736665722073697a6520666f722074686973206173736574416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644d6178207472616e736665722073697a65206d75737420626520626967676572207468616e206d696e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724d6178206665652063616e6e6f74206265206c657373207468616e206d696e206665654d6178205472616e7366657244656c61792063616e6e6f74206265206c657373207468616e206d696e205472616e7366657244656c6179556e737570706f7274656420746f6b656e20696e2074686973206e6574776f726b4d696e205472616e7366657244656c61792063616e6e6f74206265206d6f7265207468616e206d6178205472616e7366657244656c61795472616e7366657220616d6f756e742069732062656c6f77206d696e207472616e736665722073697a6520666f7220746869732061737365744d696e206665652063616e6e6f74206265206d6f7265207468616e2066656520666163746f725472616e736665722064656c61792069732062656c6f7720746865206d696e696d756d2072657175697265645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220d719d2dc222b91ba782ac356510b050c5e0528450db2b92c663e2b227307768064736f6c63430006080033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102745760003560e01c80638231cdad11610151578063cb4e162b116100c3578063eba0188411610087578063eba0188414610716578063f2e7cc9c14610733578063f2fde38b14610750578063f31c126214610776578063f7c28e2f146107b8578063fa275835146107e457610274565b8063cb4e162b14610668578063cc4f38b414610670578063e3939a471461068d578063e562a1f4146106cd578063eb80c3bb146106ea57610274565b8063a79e89fd11610115578063a79e89fd146105a4578063aaef31e2146105ac578063ab35161c146105e8578063bd30af04146105f0578063c47d85021461061c578063c4d66de81461064257610274565b80638231cdad146105255780638456cb59146105515780638705fcd4146105595780638892e0471461057f5780638da5cb5b1461059c57610274565b806341275358116101ea5780635c975abb116101ae5780635c975abb146104915780635e9a57c3146104995780635f77c2d9146104b65780636ed33b98146104be578063710e5d2f14610500578063715018a61461051d57610274565b806341275358146103c257806355f01e34146103e65780635920db04146104145780635b6612ad146104455780635c65a52e1461046b57610274565b80632cfa28611161023c5780632cfa2861146102f757806331ac9920146102ff5780633d4dff7b1461031c5780633dfc99b91461035c5780633f4ba83a1461038e578063407d29dc1461039657610274565b806301f59d16146102795780630dd348c61461029357806311dfb88b146102c15780631df3a07f146102e757806324ec7590146102ef575b600080fd5b61028161080a565b60408051918252519081900360200190f35b6102bf600480360360408110156102a957600080fd5b506001600160a01b038135169060200135610810565b005b610281600480360360208110156102d757600080fd5b50356001600160a01b03166108c6565b61028161095f565b610281610965565b61028161096b565b6102bf6004803603602081101561031557600080fd5b5035610971565b6103396004803603602081101561033257600080fd5b5035610a8e565b604080516001600160a01b03909316835260208301919091528051918290030190f35b6102bf6004803603606081101561037257600080fd5b506001600160a01b038135169060208101359060400135610ab3565b6102bf610d52565b6102bf600480360360408110156103ac57600080fd5b506001600160a01b038135169060200135610df6565b6103ca610eac565b604080516001600160a01b039092168252519081900360200190f35b6102bf600480360360408110156103fc57600080fd5b506001600160a01b0381358116916020013516610ebb565b6104316004803603602081101561042a57600080fd5b503561112e565b604080519115158252519081900360200190f35b6102816004803603602081101561045b57600080fd5b50356001600160a01b0316611143565b6102816004803603602081101561048157600080fd5b50356001600160a01b0316611155565b610431611167565b610431600480360360208110156104af57600080fd5b5035611177565b61028161118c565b6102bf600480360360a08110156104d457600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060800135611192565b6102bf6004803603602081101561051657600080fd5b50356113b1565b6102bf6114ce565b6102bf6004803603604081101561053b57600080fd5b506001600160a01b03813516906020013561157a565b6102bf6116c9565b6102bf6004803603602081101561056f57600080fd5b50356001600160a01b03166117c7565b6102bf6004803603602081101561059557600080fd5b50356118d4565b6103ca6119b1565b6102816119c0565b6102bf600480360360808110156105c257600080fd5b506001600160a01b038135811691602081013590911690604081013590606001356119c6565b610281611b7d565b6103ca6004803603604081101561060657600080fd5b50803590602001356001600160a01b0316611b83565b6102816004803603602081101561063257600080fd5b50356001600160a01b0316611bac565b6102bf6004803603602081101561065857600080fd5b50356001600160a01b0316611bbe565b610281611cb3565b6102bf6004803603602081101561068657600080fd5b5035611cb9565b6102bf600480360360a08110156106a357600080fd5b506001600160a01b0381358116916020810135916040820135169060608101359060800135611d7e565b6102bf600480360360208110156106e357600080fd5b50356120f9565b6102816004803603604081101561070057600080fd5b506001600160a01b0381351690602001356121d5565b6104316004803603602081101561072c57600080fd5b50356122ac565b6102bf6004803603602081101561074957600080fd5b50356122c1565b6102bf6004803603602081101561076657600080fd5b50356001600160a01b031661239e565b6102bf600480360360a081101561078c57600080fd5b508035906001600160a01b036020820135811691604081013590911690606081013590608001356124a1565b6103ca600480360360408110156107ce57600080fd5b50803590602001356001600160a01b031661294f565b610281600480360360208110156107fa57600080fd5b50356001600160a01b0316612975565b60995481565b610818612987565b6001600160a01b03166108296119b1565b6001600160a01b031614610872576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260a76020908152604091829020849055815184815291517f66f19a227379ccc97fa8868ce591d0bba21e61cc4d21375031c0a3f1db840b869281900390910190a25050565b6001600160a01b038116600081815260a6602090815260408083205481516370a0823160e01b81523060048201529151939461095994919390926370a082319260248083019392829003018186803b15801561092157600080fd5b505afa158015610935573d6000803e3d6000fd5b505050506040513d602081101561094b57600080fd5b50519063ffffffff61298b16565b92915050565b609b5481565b60985481565b60a35481565b610979612987565b6001600160a01b031661098a6119b1565b6001600160a01b0316146109d3576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6127108110610a135760405162461bcd60e51b81526004018080602001828103825260268152602001806135246026913960400191505060405180910390fd5b6099548110610a535760405162461bcd60e51b81526004018080602001828103825260238152602001806132f36023913960400191505060405180910390fd5b60988190556040805182815290517f4876dba3c933047c25e1a803b88c5301b0249f3e2ad13e405a43ad72151669789181900360200190a150565b60a960205260009081526040902080546001909101546001600160a01b039091169082565b609e54600160a01b900460ff1615610b07576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015290519081900360640190fd5b610b0f612987565b6001600160a01b0316610b206119b1565b6001600160a01b031614610b69576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b600081815260a1602052604090205460ff1615610bc1576040805162461bcd60e51b8152602060048201526011602482015270105b1c9958591e4818dbdb5c1b195d1959607a1b604482015290519081900360640190fd5b6001600160a01b038316600090815260a66020526040902054821115610c2e576040805162461bcd60e51b815260206004820152601a60248201527f4d6f726520616d6f756e74207468616e20617661696c61626c65000000000000604482015290519081900360640190fd5b600081815260a960205260409020546001600160a01b038481169116148015610c675750600081815260a9602052604090206001015482145b610cb1576040805162461bcd60e51b815260206004820152601660248201527511195c1bdcda5d081b9bdd081c9959da5cdd195c995960521b604482015290519081900360640190fd5b600081815260a160209081526040808320805460ff191660011790556001600160a01b038616835260a6909152812054610cf1908463ffffffff61298b16565b6001600160a01b038516600081815260a660209081526040918290208490558151878152908101869052815193945091927f429c348628fb6a058cc5833a5443987599bc0b0cd483f3faf07e9c82c79f6dbd9281900390910190a250505050565b610d5a612987565b6001600160a01b0316610d6b6119b1565b6001600160a01b031614610db4576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609e805460ff60a01b191690556040805133815290517faeb196d352664784d1900b0e7414a8face7d29f4dae8c4b0cf68ed477423bbf49181900360200190a1565b610dfe612987565b6001600160a01b0316610e0f6119b1565b6001600160a01b031614610e58576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260a86020908152604091829020849055815184815291517ffcff383101255a706993a0b528d6d7f3f9719ae725e6e629109eb751524365279281900390910190a25050565b609e546001600160a01b031681565b610ec3612987565b6001600160a01b0316610ed46119b1565b6001600160a01b031614610f1d576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609e54600160a01b900460ff161515600114610f79576040805162461bcd60e51b815260206004820152601660248201527518dbdb9d1c9858dd081a5cc81b9bdd081c185d5cd95960521b604482015290519081900360640190fd5b6001600160a01b038216610fcd576040805162461bcd60e51b8152602060048201526016602482015275696e76616c6964205f746f6b656e206164647265737360501b604482015290519081900360640190fd5b6001600160a01b03811661101e576040805162461bcd60e51b8152602060048201526013602482015272696e76616c6964205f746f206164647265737360681b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b15801561106857600080fd5b505afa15801561107c573d6000803e3d6000fd5b505050506040513d602081101561109257600080fd5b50519050806110de576040805162461bcd60e51b81526020600482015260136024820152723737ba3434b733903a37903a3930b739b332b960691b604482015290519081900360640190fd5b6110e98383836129e8565b6040805182815290516001600160a01b0384169133917f68c8da1509f387d66b13f09bed3381fc67ef58a10f16d544742344e413d829349181900360200190a3505050565b609f6020526000908152604090205460ff1681565b60a46020526000908152604090205481565b60a66020526000908152604090205481565b609e54600160a01b900460ff1681565b60a16020526000908152604090205460ff1681565b609a5481565b61119a612987565b6001600160a01b03166111ab6119b1565b6001600160a01b0316146111f4576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b038516611247576040805162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b604482015290519081900360640190fd5b6001600160a01b03841661129a576040805162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b604482015290519081900360640190fd5b600083116112e4576040805162461bcd60e51b8152602060048201526012602482015271125b9d985b1a59081b995d1ddbdc9ac8125160721b604482015290519081900360640190fd5b8082116113225760405162461bcd60e51b81526004018080602001828103825260298152602001806133cf6029913960400191505060405180910390fd5b600083815260a5602090815260408083206001600160a01b0389811680865291845282852080546001600160a01b031916918a16918217905560a7845282852087905560a88452938290208590558151868152928301859052815187949391927f516549bbc9bb27a97e9083eed3beb2b85ed2b2836bb79640b99641f99314f85f928290030190a45050505050565b6113b9612987565b6001600160a01b03166113ca6119b1565b6001600160a01b031614611413576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b61271081106114535760405162461bcd60e51b81526004018080602001828103825260268152602001806132a76026913960400191505060405180910390fd5b60985481116114935760405162461bcd60e51b81526004018080602001828103825260238152602001806134396023913960400191505060405180910390fd5b60998190556040805182815290517f545899fa0ae9e51dc2a3d1ceb1b2ac094e104d0da60dc554c389f71ca7ad0c839181900360200190a150565b6114d6612987565b6001600160a01b03166114e76119b1565b6001600160a01b031614611530576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b611582612987565b6001600160a01b03166115936119b1565b6001600160a01b0316146115dc576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b600081815260a5602090815260408083206001600160a01b03808716855292529091205482918491166116405760405162461bcd60e51b81526004018080602001828103825260218152602001806134936021913960400191505060405180910390fd5b600083815260a5602090815260408083206001600160a01b03808916808652919093528184205491518794929093169290917feddce3117927831e55f862ee4b16c60ba431908fc8404f5a2d40c2ac163c3b1491a45050600090815260a5602090815260408083206001600160a01b0390941683529290522080546001600160a01b0319169055565b6116d1612987565b6001600160a01b03166116e26119b1565b6001600160a01b03161461172b576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609e54600160a01b900460ff161561177f576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015290519081900360640190fd5b609e805460ff60a01b1916600160a01b1790556040805133815290517f5ee71a369c8672edded508e624ffc9257fa1ae6886ef32905c18e60196bca3999181900360200190a1565b6117cf612987565b6001600160a01b03166117e06119b1565b6001600160a01b031614611829576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b03811661187a576040805162461bcd60e51b8152602060048201526013602482015272496e76616c696420666565206164647265737360681b604482015290519081900360640190fd5b609e80546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517fd1e93c69f2847f79bfa4d71704aaa84a581729b4b1706d922ee42ba1848a45c9916020908290030190a150565b6118dc612987565b6001600160a01b03166118ed6119b1565b6001600160a01b031614611936576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609b5481106119765760405162461bcd60e51b81526004018080602001828103825260378152602001806134b46037913960400191505060405180910390fd5b609a8190556040805182815290517f4a7e82457586c0067fe255bcc8798fc7a1d4a8db89c6def0656894438b1300679181900360200190a150565b6033546001600160a01b031690565b609d5481565b6119ce612987565b6001600160a01b03166119df6119b1565b6001600160a01b031614611a28576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b60026065541415611a80576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002606555600081815260a0602052604090205460ff1615611adc576040805162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481d5b9b1bd8dad95960821b604482015290519081900360640190fd5b600081815260a060205260409020805460ff1916600117905560a3819055611b058484846129e8565b80836001600160a01b0316856001600160a01b03167f86cd70ad3c9ac26858b491575ae55a4a3bddc33e4bd136d3c87a6c8a79a4b9be856040518082815260200191505060405180910390a4600081815260a1602052604090205460ff16611b7257611b72848383610ab3565b505060016065555050565b60a25481565b600091825260a5602090815260408084206001600160a01b039384168552909152909120541690565b60a86020526000908152604090205481565b600054610100900460ff1680611bd75750611bd7612a3f565b80611be5575060005460ff16155b611c205760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015611c4b576000805460ff1961ff0019909116610100171660011790555b600060978190556019609855610190609955609a5562015180609b556032609c5561012c609d55611c7a612a50565b611c82612afa565b609e80546001600160a01b0319166001600160a01b0384161790558015611caf576000805461ff00191690555b5050565b609c5481565b611cc1612987565b6001600160a01b0316611cd26119b1565b6001600160a01b031614611d1b576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609d5460408051918252602082018390526060828201819052600890830152672a3930b739b332b960c11b60808301525133917f53124f1baebd8aa78255954485d7d29bbea9fca62be891b551a39d94318717f2919081900360a00190a2609d55565b600082815260a5602090815260408083206001600160a01b0380881685529252909120548391859116611de25760405162461bcd60e51b81526004018080602001828103825260218152602001806134936021913960400191505060405180910390fd5b60026065541415611e3a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002606555611e47612987565b6001600160a01b0316611e586119b1565b6001600160a01b031614611ea1576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609e54600160a01b900460ff1615611ef5576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015290519081900360640190fd5b6000838152609f602052604090205460ff1615611f4e576040805162461bcd60e51b8152602060048201526012602482015271105b1c9958591e481dda5d1a191c985dd95960721b604482015290519081900360640190fd5b6000838152609f60205260408120805460ff1916600117905560a2849055611f7686886121d5565b90506000611f9c612710611f908a8563ffffffff612b9716565b9063ffffffff612bf716565b90506000611fb0898363ffffffff61298b16565b905088611fbc896108c6565b101561200f576040805162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f75676820746f6b656e73206f6e2062616c616e636500000000604482015290519081900360640190fd5b61201a888b836129e8565b811561208c57609e546120389089906001600160a01b0316846129e8565b604080518a81526020810184905280820188905290516001600160a01b03808b1692908d169133917fa740b84fbe58f03c5e43c2dba01c22fcfd8cb38e748fb4d77b3f96d898a4c726919081900360600190a45b85886001600160a01b03168b6001600160a01b03167fc100a0661ef4945783729d27427d2bb427f03e3da20930554e70d748bdc1d4a18c858760405180848152602001838152602001828152602001935050505060405180910390a4505060016065555050505050505050565b612101612987565b6001600160a01b03166121126119b1565b6001600160a01b03161461215b576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6064811061219a5760405162461bcd60e51b81526004018080602001828103825260328152602001806132756032913960400191505060405180910390fd5b609c8190556040805182815290517f5668da3a1b52d0f92cd7fefc2ca10602f13a3623487dac2a0f03d55ec31952fc9181900360200190a150565b6000806121e1846108c6565b9050806121f2575050609954610959565b609c5461220a82611f9086606463ffffffff612b9716565b111561221a575050609954610959565b60006122366064611f90609c5485612b9790919063ffffffff16565b9050600061224f82611f9087606463ffffffff612b9716565b90506122a26064611f9061226f6064609854612b9790919063ffffffff16565b61229661228960985460995461298b90919063ffffffff16565b869063ffffffff612b9716565b9063ffffffff612c5e16565b9695505050505050565b60a06020526000908152604090205460ff1681565b6122c9612987565b6001600160a01b03166122da6119b1565b6001600160a01b031614612323576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b609a5481116123635760405162461bcd60e51b815260040180806020018281038252603781526020018061345c6037913960400191505060405180910390fd5b609b8190556040805182815290517fdac0c1b1717b00ceff12e2c471b43238fef05119656d8af15ce93e5c4a020a219181900360200190a150565b6123a6612987565b6001600160a01b03166123b76119b1565b6001600160a01b031614612400576040805162461bcd60e51b81526020600482018190526024820152600080516020613419833981519152604482015290519081900360640190fd5b6001600160a01b0381166124455760405162461bcd60e51b81526004018080602001828103825260268152602001806132cd6026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260a5602090815260408083206001600160a01b03808916855292529091205483918691166125055760405162461bcd60e51b81526004018080602001828103825260218152602001806134936021913960400191505060405180910390fd5b6002606554141561255d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002606555609e54600160a01b900460ff16156125b6576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015290519081900360640190fd5b86612600576040805162461bcd60e51b8152602060048201526015602482015274416d6f756e742063616e6e6f74206265207a65726f60581b604482015290519081900360640190fd5b609d5433600090815260a460205260409020544291612625919063ffffffff612c5e16565b10612677576040805162461bcd60e51b815260206004820152601960248201527f5472616e73666572206e6f742079657420706f737369626c6500000000000000604482015290519081900360640190fd5b609a548310156126b85760405162461bcd60e51b815260040180806020018281038252602c81526020018061354a602c913960400191505060405180910390fd5b609b548311156126f95760405162461bcd60e51b815260040180806020018281038252602c815260200180613316602c913960400191505060405180910390fd5b6001600160a01b038616600090815260a760205260409020548711156127505760405162461bcd60e51b81526004018080602001828103825260398152602001806133426039913960400191505060405180910390fd5b6001600160a01b038616600090815260a760205260409020548711156127a75760405162461bcd60e51b81526004018080602001828103825260398152602001806133426039913960400191505060405180910390fd5b6001600160a01b038616600090815260a860205260409020548710156127fe5760405162461bcd60e51b81526004018080602001828103825260398152602001806134eb6039913960400191505060405180910390fd5b6001600160a01b038616600090815260a66020526040812054612827908963ffffffff612c5e16565b6001600160a01b038816600090815260a66020526040902081905590506128508733308b612cb8565b33600090815260a46020526040812042905561286b86612d18565b6040805180820182526001600160a01b038b8116825260208083018e8152600086815260a9909252939020915182546001600160a01b0319169082161782559151600190910155909150879081166128c05750335b600087815260a5602090815260408083206001600160a01b03808e16808652918452938290205482518c8152868616948101949094528383018f905260608401879052608084018b9052915191909316929133917fbe4188c3458b421a3cba4f2f42fc26e6fe84ffe65e0977d892db5bc5c5c6133c9181900360a00190a4505060016065555050505050505050565b60a56020908152600092835260408084209091529082529020546001600160a01b031681565b60a76020526000908152604090205481565b3390565b6000828211156129e2576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612a3a908490612d67565b505050565b6000612a4a30612e18565b15905090565b600054610100900460ff1680612a695750612a69612a3f565b80612a77575060005460ff16155b612ab25760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612add576000805460ff1961ff0019909116610100171660011790555b612ae5612e1e565b8015612af7576000805461ff00191690555b50565b600054610100900460ff1680612b135750612b13612a3f565b80612b21575060005460ff16155b612b5c5760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612b87576000805460ff1961ff0019909116610100171660011790555b612b8f612ec4565b612ae5612f64565b600082612ba657506000610959565b82820282848281612bb357fe5b0414612bf05760405162461bcd60e51b81526004018080602001828103825260218152602001806133f86021913960400191505060405180910390fd5b9392505050565b6000808211612c4d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612c5657fe5b049392505050565b600082820183811015612bf0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612d12908590612d67565b50505050565b609780546001810190915560408051436020808301919091523060601b8284015246605483015260748201949094526094808201939093528151808203909301835260b4019052805191012090565b6060612dbc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661305d9092919063ffffffff16565b805190915015612a3a57808060200190516020811015612ddb57600080fd5b5051612a3a5760405162461bcd60e51b815260040180806020018281038252602a815260200180613576602a913960400191505060405180910390fd5b3b151590565b600054610100900460ff1680612e375750612e37612a3f565b80612e45575060005460ff16155b612e805760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612eab576000805460ff1961ff0019909116610100171660011790555b60016065558015612af7576000805461ff001916905550565b600054610100900460ff1680612edd5750612edd612a3f565b80612eeb575060005460ff16155b612f265760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612ae5576000805460ff1961ff0019909116610100171660011790558015612af7576000805461ff001916905550565b600054610100900460ff1680612f7d5750612f7d612a3f565b80612f8b575060005460ff16155b612fc65760405162461bcd60e51b815260040180806020018281038252602e8152602001806133a1602e913960400191505060405180910390fd5b600054610100900460ff16158015612ff1576000805460ff1961ff0019909116610100171660011790555b6000612ffb612987565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015612af7576000805461ff001916905550565b606061306c8484600085613074565b949350505050565b6060824710156130b55760405162461bcd60e51b815260040180806020018281038252602681526020018061337b6026913960400191505060405180910390fd5b6130be85612e18565b61310f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061314e5780518252601f19909201916020918201910161312f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146131b0576040519150601f19603f3d011682016040523d82523d6000602084013e6131b5565b606091505b50915091506131c58282866131d0565b979650505050505050565b606083156131df575081612bf0565b8251156131ef5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613239578181015183820152602001613221565b50505050905090810190601f1680156132665780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5468726573686f6c64206665652063616e6e6f74206265206d6f7265207468616e207468726573686f6c6420666163746f724d6178206665652063616e6e6f74206265206d6f7265207468616e2066656520666163746f724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d696e206665652063616e6e6f74206265206d6f7265207468616e206d6178206665655472616e736665722064656c61792069732062656c6f7720746865206d6178696d756d2072657175697265645472616e7366657220616d6f756e742069732061626f7665206d6178207472616e736665722073697a6520666f722074686973206173736574416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a65644d6178207472616e736665722073697a65206d75737420626520626967676572207468616e206d696e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724d6178206665652063616e6e6f74206265206c657373207468616e206d696e206665654d6178205472616e7366657244656c61792063616e6e6f74206265206c657373207468616e206d696e205472616e7366657244656c6179556e737570706f7274656420746f6b656e20696e2074686973206e6574776f726b4d696e205472616e7366657244656c61792063616e6e6f74206265206d6f7265207468616e206d6178205472616e7366657244656c61795472616e7366657220616d6f756e742069732062656c6f77206d696e207472616e736665722073697a6520666f7220746869732061737365744d696e206665652063616e6e6f74206265206d6f7265207468616e2066656520666163746f725472616e736665722064656c61792069732062656c6f7720746865206d696e696d756d2072657175697265645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220d719d2dc222b91ba782ac356510b050c5e0528450db2b92c663e2b227307768064736f6c63430006080033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.