Overview
ETH Balance
0.141999999854999999 ETH
Eth Value
$352.02 (@ $2,478.99/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,144 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Save Amount Of E... | 16978253 | 577 days ago | IN | 0 ETH | 0.00132117 | ||||
Withdraw ETH Fro... | 16978230 | 577 days ago | IN | 0 ETH | 0.00142994 | ||||
Withdraw ETH Fro... | 16978225 | 577 days ago | IN | 0 ETH | 0.00129747 | ||||
Save Amount Of E... | 16479401 | 647 days ago | IN | 0 ETH | 0.00077228 | ||||
Save Amount Of E... | 16472862 | 648 days ago | IN | 0 ETH | 0.00056252 | ||||
Save Amount Of E... | 16472861 | 648 days ago | IN | 0 ETH | 0.00057498 | ||||
Save Amount Of E... | 16472859 | 648 days ago | IN | 0 ETH | 0.00059202 | ||||
Save Amount Of E... | 16472859 | 648 days ago | IN | 0 ETH | 0.00059202 | ||||
Save Amount Of E... | 16472858 | 648 days ago | IN | 0 ETH | 0.00060232 | ||||
Save Amount Of E... | 16472858 | 648 days ago | IN | 0 ETH | 0.00060232 | ||||
Save Amount Of E... | 16472857 | 648 days ago | IN | 0 ETH | 0.00056844 | ||||
Save Amount Of E... | 16472856 | 648 days ago | IN | 0 ETH | 0.00057505 | ||||
Save Amount Of E... | 16472855 | 648 days ago | IN | 0 ETH | 0.00058726 | ||||
Save Amount Of E... | 16472855 | 648 days ago | IN | 0 ETH | 0.00058726 | ||||
Save Amount Of E... | 16472855 | 648 days ago | IN | 0 ETH | 0.00058726 | ||||
Save Amount Of E... | 16472845 | 648 days ago | IN | 0 ETH | 0.00062277 | ||||
Save Amount Of E... | 16472845 | 648 days ago | IN | 0 ETH | 0.00062277 | ||||
Save Amount Of E... | 16472844 | 648 days ago | IN | 0 ETH | 0.00064192 | ||||
Save Amount Of E... | 16472844 | 648 days ago | IN | 0 ETH | 0.00064192 | ||||
Save Amount Of E... | 16472843 | 648 days ago | IN | 0 ETH | 0.0006509 | ||||
Save Amount Of E... | 16472842 | 648 days ago | IN | 0 ETH | 0.00067764 | ||||
Save Amount Of E... | 16472842 | 648 days ago | IN | 0 ETH | 0.00067764 | ||||
Save Amount Of E... | 16472841 | 648 days ago | IN | 0 ETH | 0.000632 | ||||
Save Amount Of E... | 16472841 | 648 days ago | IN | 0 ETH | 0.000632 | ||||
Save Amount Of E... | 16472841 | 648 days ago | IN | 0 ETH | 0.000632 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
16978253 | 577 days ago | 0 ETH | |||||
16978230 | 577 days ago | 0 ETH | |||||
16978225 | 577 days ago | 0 ETH | |||||
16479401 | 647 days ago | 0.85 ETH | |||||
16472862 | 648 days ago | 1 ETH | |||||
16472861 | 648 days ago | 1 ETH | |||||
16472859 | 648 days ago | 1 ETH | |||||
16472859 | 648 days ago | 1 ETH | |||||
16472858 | 648 days ago | 1 ETH | |||||
16472858 | 648 days ago | 1 ETH | |||||
16472857 | 648 days ago | 1 ETH | |||||
16472856 | 648 days ago | 1 ETH | |||||
16472855 | 648 days ago | 1 ETH | |||||
16472855 | 648 days ago | 1 ETH | |||||
16472855 | 648 days ago | 1 ETH | |||||
16472845 | 648 days ago | 1 ETH | |||||
16472845 | 648 days ago | 1 ETH | |||||
16472844 | 648 days ago | 1 ETH | |||||
16472844 | 648 days ago | 1 ETH | |||||
16472843 | 648 days ago | 1 ETH | |||||
16472842 | 648 days ago | 1 ETH | |||||
16472842 | 648 days ago | 1 ETH | |||||
16472841 | 648 days ago | 1 ETH | |||||
16472841 | 648 days ago | 1 ETH | |||||
16472841 | 648 days ago | 1 ETH |
Loading...
Loading
Contract Name:
KiraAuctionHandler
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: unlicensed pragma solidity 0.8.17; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/token/ERC20/utils/SafeERC20.sol"; // import "openzeppelin-solidity/contracts/utils/cryptography/ECDSA.sol"; import "./_ecdsa.sol"; // import ecdsa from solady library interface INft { function mint(address to, uint8 amount) external; } contract KiraAuctionHandler is Ownable { mapping(address => uint8) alreadyPledgedMercenary; mapping(address => uint8) alreadyPledgedEnlisted; mapping(address => uint8) alreadyPledgedLastPhase; mapping(address => Bid) bids; mapping(address => bool) public alreadyBid; mapping(address => bool) public refunded; mapping(address => bool) public bidWinner; mapping(address => bool) public bidWhitelist; address public kiraTreasury; address public card; uint256 cutoffValue; uint256 minBid; uint256 maxBid; uint16 numberOfNfts; uint8 state; uint8 maxAmountBidPhase; bool paused; struct Phase { uint8 maxAmountPerUser; bool isOpen; uint16 pledgedTotalAmount; uint16 supplyAllocated; address signer; uint256 pledgedTotalEth; uint256 price; } struct Bid { uint256 amount; uint256 value; } Phase public mercenary; Phase public enlisted; Phase public lastPhase; event UserBid(address indexed bidder, uint256 amount, uint256 value); event userPledge(address indexed user, uint256 amount); modifier state1() { require(state == 1, "Bidding hasn't started yet"); _; } modifier state2() { require(state == 2, "Refunds haven't started yet"); _; } bool locked; modifier nonReentrant() { require(!locked, "No re-entrancy"); locked = true; _; locked = false; } constructor() { kiraTreasury = 0x6aD9356B3d0eEE5cA31DD757c95fB5AB67b01c33; minBid = 0.069 ether; maxBid = 0.099 ether; maxAmountBidPhase = 3; mercenary = Phase( 2, false, 0, 1000, 0xEAf4E461348Dd23928Bf77F0a3d3E55ea19D335E, 0, 0.069 ether ); enlisted = Phase( 1, false, 0, 3500, 0xe9f5ea1Ff626d13cFBE1A7Dc47f40b9443EF2cCC, 0, 0.069 ether ); lastPhase = Phase( 1, false, 0, 0, 0x3FB476663d8247ACDAAA9C220D91089ed04144b2, 0, 0.069 ether ); } function newBid(uint8 amount) external payable state1 { require(!paused, "Paused"); require(msg.sender == tx.origin, "No Smart Contracts!"); require(!alreadyBid[msg.sender], "You have a bid already"); require(amount > 0, "Amount must be greater than 0"); uint256 value = msg.value / amount; if (!bidWhitelist[msg.sender]) { require(value >= minBid, "Bid amount is too low"); require(value <= maxBid, "Bid amount is too high"); require(amount <= maxAmountBidPhase, "Too many bids"); } alreadyBid[msg.sender] = true; bids[msg.sender] = Bid(amount, value); emit UserBid(msg.sender, amount, value); } function processUserBid() public nonReentrant { require(state >= 2, "Not in the right state for this action"); require(!refunded[msg.sender], "Refund already claimed"); refunded[msg.sender] = true; uint256 refundAmount; Bid memory userBids = bids[msg.sender]; require(userBids.amount > 0, "No bid found"); if (!bidWinner[msg.sender]) { refundAmount = userBids.amount * userBids.value; } else { refundAmount = userBids.amount * (userBids.value - cutoffValue); INft(card).mint(msg.sender, 1); } (bool success, ) = payable(msg.sender).call{ value: refundAmount, gas: 30000 }(""); require(success, "Refund failed"); } function pledgeMercenary( uint8 amount, bytes calldata signature ) external payable { INft(card).mint(msg.sender, 1); Phase memory m = mercenary; require(m.isOpen, "Not open"); require(amount > 0, "Amount must be greater than 0"); uint8 numPledged = alreadyPledgedMercenary[msg.sender] + amount; require( numPledged <= m.maxAmountPerUser, "You would exceed the max amount per user" ); require(msg.value == amount * m.price, "Incorrect amount of ETH sent"); require(_validateData(msg.sender, signature, m.signer)); require( m.pledgedTotalAmount + amount <= m.supplyAllocated, "Not enough supply left" ); alreadyPledgedMercenary[msg.sender] = numPledged; mercenary.pledgedTotalEth += msg.value; mercenary.pledgedTotalAmount += amount; emit userPledge(msg.sender, amount); } function pledgeEnlisted( uint8 amount, bytes calldata signature ) external payable { INft(card).mint(msg.sender, 1); Phase memory e = enlisted; require(amount > 0, "Amount must be greater than 0"); require(e.isOpen, "Not open"); uint8 numPledged = alreadyPledgedEnlisted[msg.sender] + amount; require( numPledged <= e.maxAmountPerUser, "You would exceed the max amount per user" ); require(msg.value == amount * e.price, "Incorrect amount of ETH sent"); require(_validateData(msg.sender, signature, e.signer)); require( e.pledgedTotalAmount + amount <= e.supplyAllocated, "Not enough supply left" ); alreadyPledgedEnlisted[msg.sender] = numPledged; enlisted.pledgedTotalEth += msg.value; enlisted.pledgedTotalAmount += amount; emit userPledge(msg.sender, amount); } function pledgeLastPhase( uint8 amount, bytes calldata signature ) external payable { INft(card).mint(msg.sender, 1); Phase memory l = lastPhase; require(amount > 0, "Amount must be greater than 0"); require(l.isOpen, "Not open"); uint8 numPledged = alreadyPledgedLastPhase[msg.sender] + amount; require( numPledged <= l.maxAmountPerUser, "You would exceed the max amount per user" ); require(msg.value == amount * l.price, "Incorrect amount of ETH sent"); require(_validateData(msg.sender, signature, l.signer)); require( l.pledgedTotalAmount + amount <= l.supplyAllocated, "Not enough supply left" ); alreadyPledgedLastPhase[msg.sender] = numPledged; lastPhase.pledgedTotalEth += msg.value; lastPhase.pledgedTotalAmount += amount; emit userPledge(msg.sender, amount); } function setCard(address _card) external onlyOwner { card = _card; } function setKiraTreasury(address _kiraTreasury) external onlyOwner { require( _kiraTreasury != address(0), "Kira treasury address cannot be 0" ); kiraTreasury = _kiraTreasury; } function openBids() external onlyOwner { state = 1; } function resumeBidPhase() external onlyOwner { cutoffValue = 0; numberOfNfts = 0; state = 1; } function finalizeBidPhase( uint256 _cutoffValue, uint16 _numberOfNfts ) external onlyOwner { cutoffValue = _cutoffValue; numberOfNfts = _numberOfNfts; state = 2; } function flipPaused() external onlyOwner { paused = !paused; } function setState(uint8 _state) external onlyOwner { state = _state; } function setMinMaxBid(uint256 _minBid, uint256 _maxBid) external onlyOwner { minBid = _minBid; maxBid = _maxBid; } function openPhase(uint8 i) external onlyOwner { if (i == 1) { mercenary.isOpen = true; } else if (i == 2) { enlisted.isOpen = true; } else if (i == 3) { lastPhase.isOpen = true; } else { revert("Invalid phase"); } } function editSupplyAllocated(uint8 i, uint16 newSupply) external onlyOwner { if (i == 1) { mercenary.supplyAllocated = newSupply; } else if (i == 2) { enlisted.supplyAllocated = newSupply; } else if (i == 3) { lastPhase.supplyAllocated = newSupply; } else { revert("Invalid phase"); } } function editPrice(uint8 i, uint256 newPrice) external onlyOwner { if (i == 1) { mercenary.price = newPrice; } else if (i == 2) { enlisted.price = newPrice; } else if (i == 3) { lastPhase.price = newPrice; } else { revert("Invalid phase"); } } function editSigner(uint8 i, address newSigner) external onlyOwner { if (i == 1) { mercenary.signer = newSigner; } else if (i == 2) { enlisted.signer = newSigner; } else if (i == 3) { lastPhase.signer = newSigner; } else { revert("Invalid phase"); } } function editMaxAmountPerUser(uint8 i, uint8 newMaxAmount) external onlyOwner { if (i == 1) { mercenary.maxAmountPerUser = newMaxAmount; } else if (i == 2) { enlisted.maxAmountPerUser = newMaxAmount; } else if (i == 3) { lastPhase.maxAmountPerUser = newMaxAmount; } else { revert("Invalid phase"); } } function closePhase(uint8 i) external onlyOwner { if (i == 1) { mercenary.isOpen = false; } else if (i == 2) { enlisted.isOpen = false; } else if (i == 3) { lastPhase.isOpen = false; } else { revert("Invalid phase"); } } function addWinners(address[] calldata winners) external onlyOwner { for (uint256 i; i < winners.length;) { bidWinner[winners[i]] = true; unchecked { ++i; } } } function removeWinners(address[] calldata winners) external onlyOwner { for (uint256 i; i < winners.length;) { bidWinner[winners[i]] = false; unchecked { ++i; } } } function addBidWhitelist(address[] calldata whitelist) external onlyOwner { for (uint256 i; i < whitelist.length;) { bidWhitelist[whitelist[i]] = true; unchecked { ++i; } } } function removeBidWhitelist(address[] calldata whitelist) external onlyOwner { for (uint256 i; i < whitelist.length;) { bidWhitelist[whitelist[i]] = false; unchecked { ++i; } } } // eth/token withdrawal function saveTokens( IERC20 tokenAddress, address walletAddress, uint256 amount ) external onlyOwner { require( walletAddress != address(0), "walletAddress can't be 0 address" ); SafeERC20.safeTransfer( tokenAddress, walletAddress, amount == 0 ? tokenAddress.balanceOf(address(this)) : amount ); } // for emergency function saveETH() external onlyOwner { require( kiraTreasury != address(0), "Kira treasury address cannot be 0" ); (bool success, ) = payable(kiraTreasury).call{ value: address(this).balance, gas: 50000 }(""); require(success, "Withdrawal failed"); } function withdrawETHFromBids() external onlyOwner { require( kiraTreasury != address(0), "Kira treasury address cannot be 0" ); require( cutoffValue > 0 && numberOfNfts > 0, "Some values are not set." ); uint256 collectedAmount = numberOfNfts * cutoffValue; (bool success, ) = payable(kiraTreasury).call{ value: collectedAmount, gas: 50000 }(""); require(success, "Withdrawal failed"); } function withdrawETHFromMercenary() external onlyOwner { require( kiraTreasury != address(0), "Kira treasury address cannot be 0" ); (bool success, ) = payable(kiraTreasury).call{ value: mercenary.pledgedTotalEth, gas: 50000 }(""); require(success, "Withdrawal failed"); mercenary.pledgedTotalEth = 0; } function withdrawETHFromEnlisted() external onlyOwner { require( kiraTreasury != address(0), "Kira treasury address cannot be 0" ); (bool success, ) = payable(kiraTreasury).call{ value: enlisted.pledgedTotalEth, gas: 50000 }(""); require(success, "Withdrawal failed"); enlisted.pledgedTotalEth = 0; } function withdrawETHFromLastPhase() external onlyOwner { require( kiraTreasury != address(0), "Kira treasury address cannot be 0" ); (bool success, ) = payable(kiraTreasury).call{ value: lastPhase.pledgedTotalEth, gas: 50000 }(""); require(success, "Withdrawal failed"); lastPhase.pledgedTotalEth = 0; } // views function getBid(address user) external view returns (Bid memory) { return bids[user]; } function getPledgedMercenary(address user) external view returns (uint256) { return alreadyPledgedMercenary[user]; } function getPledgedEnlisted(address user) external view returns (uint256) { return alreadyPledgedEnlisted[user]; } function phaseDetails() external view returns (Phase memory, Phase memory, Phase memory) { return (mercenary, enlisted, lastPhase); } function bidDetails() external view returns (uint8, uint256, uint256, uint256, uint8, uint16) { return (maxAmountBidPhase, minBid, maxBid, cutoffValue, state, numberOfNfts); } function _validateData( address _user, bytes calldata signature, address signer ) internal view returns (bool) { bytes32 dataHash = keccak256(abi.encodePacked(_user)); bytes32 message = ECDSA.toEthSignedMessageHash(dataHash); address receivedAddress = ECDSA.recover(message, signature); return (receivedAddress != address(0) && receivedAddress == signer); } function saveAmountOfETH(uint256 val) external onlyOwner { require( kiraTreasury != address(0), "Kira treasury address cannot be 0" ); (bool success, ) = payable(kiraTreasury).call{ value: val, gas: 50000 }(""); require(success, "Withdrawal failed"); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.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 Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Gas optimized ECDSA wrapper. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol) library ECDSA { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CUSTOM ERRORS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The signature is invalid. error InvalidSignature(); /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CONSTANTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The number which `s` must not exceed in order for /// the signature to be non-malleable. bytes32 private constant _MALLEABILITY_THRESHOLD = 0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* RECOVERY OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ // Note: as of the Solady version v0.0.68, these functions will // revert upon recovery failure for more safety. /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function recover(bytes32 hash, bytes calldata signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) // Directly copy `r` and `s` from the calldata. calldatacopy(0x40, signature.offset, 0x40) // Store the `hash` in the scratch space. mstore(0x00, hash) // Compute `v` and store it in the scratch space. mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) pop( staticcall( gas(), // Amount of gas left for the transaction. and( // If the signature is exactly 65 bytes in length. eq(signature.length, 65), // If `s` in lower half order, such that the signature is not malleable. lt(mload(0x60), add(_MALLEABILITY_THRESHOLD, 1)) ), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { // Store the function selector of `InvalidSignature()`. mstore(0x00, 0x8baa579f) // Revert with (offset, size). revert(0x1c, 0x04) } // Restore the zero slot. mstore(0x60, 0) // Restore the free memory pointer. mstore(0x40, m) } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the EIP-2098 short form signature defined by `r` and `vs`. /// /// This function only accepts EIP-2098 short form signatures. /// See: https://eips.ethereum.org/EIPS/eip-2098 /// /// To be honest, I do not recommend using EIP-2098 signatures /// for simplicity, performance, and security reasons. Most if not /// all clients support traditional non EIP-2098 signatures by default. /// As such, this method is intentionally not fully inlined. /// It is merely included for completeness. function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) { uint8 v; bytes32 s; /// @solidity memory-safe-assembly assembly { s := shr(1, shl(1, vs)) v := add(shr(255, vs), 27) } result = recover(hash, v, r, s); } /// @dev Recovers the signer's address from a message digest `hash`, /// and the signature defined by `v`, `r`, `s`. function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) mstore(0x00, hash) mstore(0x20, and(v, 0xff)) mstore(0x40, r) mstore(0x60, s) pop( staticcall( gas(), // Amount of gas left for the transaction. // If `s` in lower half order, such that the signature is not malleable. lt(s, add(_MALLEABILITY_THRESHOLD, 1)), // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x00, // Start of output. 0x20 // Size of output. ) ) result := mload(0x00) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. if iszero(returndatasize()) { // Store the function selector of `InvalidSignature()`. mstore(0x00, 0x8baa579f) // Revert with (offset, size). revert(0x1c, 0x04) } // Restore the zero slot. mstore(0x60, 0) // Restore the free memory pointer. mstore(0x40, m) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* TRY-RECOVER OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ // WARNING! // These functions will NOT revert upon recovery failure. // Instead, they will return the zero address upon recovery failure. // It is critical that the returned address is NEVER compared against // a zero address (e.g. an uninitialized address variable). /// @dev Recovers the signer's address from a message digest `hash`, /// and the `signature`. /// /// This function does NOT accept EIP-2098 short form signatures. /// Use `recover(bytes32 hash, bytes32 r, bytes32 vs)` for EIP-2098 /// short form signatures instead. function tryRecover(bytes32 hash, bytes calldata signature) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { if iszero(xor(signature.length, 65)) { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) // Directly copy `r` and `s` from the calldata. calldatacopy(0x40, signature.offset, 0x40) // If `s` in lower half order, such that the signature is not malleable. if iszero(gt(mload(0x60), _MALLEABILITY_THRESHOLD)) { // Store the `hash` in the scratch space. mstore(0x00, hash) // Compute `v` and store it in the scratch space. mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) pop( staticcall( gas(), // Amount of gas left for the transaction. 0x01, // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) // Restore the zero slot. mstore(0x60, 0) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) } // Restore the free memory pointer. mstore(0x40, m) } } } /// @dev Recovers the signer's address from a message digest `hash`, /// and the EIP-2098 short form signature defined by `r` and `vs`. /// /// This function only accepts EIP-2098 short form signatures. /// See: https://eips.ethereum.org/EIPS/eip-2098 /// /// To be honest, I do not recommend using EIP-2098 signatures /// for simplicity, performance, and security reasons. Most if not /// all clients support traditional non EIP-2098 signatures by default. /// As such, this method is intentionally not fully inlined. /// It is merely included for completeness. function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) { uint8 v; bytes32 s; /// @solidity memory-safe-assembly assembly { s := shr(1, shl(1, vs)) v := add(shr(255, vs), 27) } result = tryRecover(hash, v, r, s); } /// @dev Recovers the signer's address from a message digest `hash`, /// and the signature defined by `v`, `r`, `s`. function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns (address result) { /// @solidity memory-safe-assembly assembly { // Copy the free memory pointer so that we can restore it later. let m := mload(0x40) // If `s` in lower half order, such that the signature is not malleable. if iszero(gt(s, _MALLEABILITY_THRESHOLD)) { // Store the `hash`, `v`, `r`, `s` in the scratch space. mstore(0x00, hash) mstore(0x20, and(v, 0xff)) mstore(0x40, r) mstore(0x60, s) pop( staticcall( gas(), // Amount of gas left for the transaction. 0x01, // Address of `ecrecover`. 0x00, // Start of input. 0x80, // Size of input. 0x40, // Start of output. 0x20 // Size of output. ) ) // Restore the zero slot. mstore(0x60, 0) // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise. result := mload(xor(0x60, returndatasize())) } // Restore the free memory pointer. mstore(0x40, m) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* HASHING OPERATIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns an Ethereum Signed Message, created from a `hash`. /// This produces a hash corresponding to the one signed with the /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign) /// JSON-RPC method as part of EIP-191. function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) { /// @solidity memory-safe-assembly assembly { // Store into scratch space for keccak256. mstore(0x20, hash) mstore(0x00, "\x00\x00\x00\x00\x19Ethereum Signed Message:\n32") // 0x40 - 0x04 = 0x3c result := keccak256(0x04, 0x3c) } } /// @dev Returns an Ethereum Signed Message, created from `s`. /// This produces a hash corresponding to the one signed with the /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign) /// JSON-RPC method as part of EIP-191. function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) { assembly { // The length of "\x19Ethereum Signed Message:\n" is 26 bytes (i.e. 0x1a). // If we reserve 2 words, we'll have 64 - 26 = 38 bytes to store the // ASCII decimal representation of the length of `s` up to about 2 ** 126. // Instead of allocating, we temporarily copy the 64 bytes before the // start of `s` data to some variables. let m1 := mload(sub(s, 0x20)) // The length of `s` is in bytes. let sLength := mload(s) let ptr := add(s, 0x20) let w := not(0) // `end` marks the end of the memory which we will compute the keccak256 of. let end := add(ptr, sLength) // Convert the length of the bytes to ASCII decimal representation // and store it into the memory. for { let temp := sLength } 1 {} { ptr := add(ptr, w) // `sub(ptr, 1)`. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) if iszero(temp) { break } } // Copy the header over to the memory. mstore(sub(ptr, 0x20), "\x00\x00\x00\x00\x00\x00\x19Ethereum Signed Message:\n") // Compute the keccak256 of the memory. result := keccak256(sub(ptr, 0x1a), sub(end, sub(ptr, 0x1a))) // Restore the previous memory. mstore(s, sLength) mstore(sub(s, 0x20), m1) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"UserBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"userPledge","type":"event"},{"inputs":[{"internalType":"address[]","name":"whitelist","type":"address[]"}],"name":"addBidWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"winners","type":"address[]"}],"name":"addWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyBid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bidDetails","outputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bidWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bidWinner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"card","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"i","type":"uint8"}],"name":"closePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"i","type":"uint8"},{"internalType":"uint8","name":"newMaxAmount","type":"uint8"}],"name":"editMaxAmountPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"i","type":"uint8"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"editPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"i","type":"uint8"},{"internalType":"address","name":"newSigner","type":"address"}],"name":"editSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"i","type":"uint8"},{"internalType":"uint16","name":"newSupply","type":"uint16"}],"name":"editSupplyAllocated","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enlisted","outputs":[{"internalType":"uint8","name":"maxAmountPerUser","type":"uint8"},{"internalType":"bool","name":"isOpen","type":"bool"},{"internalType":"uint16","name":"pledgedTotalAmount","type":"uint16"},{"internalType":"uint16","name":"supplyAllocated","type":"uint16"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"pledgedTotalEth","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cutoffValue","type":"uint256"},{"internalType":"uint16","name":"_numberOfNfts","type":"uint16"}],"name":"finalizeBidPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getBid","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct KiraAuctionHandler.Bid","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getPledgedEnlisted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getPledgedMercenary","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kiraTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPhase","outputs":[{"internalType":"uint8","name":"maxAmountPerUser","type":"uint8"},{"internalType":"bool","name":"isOpen","type":"bool"},{"internalType":"uint16","name":"pledgedTotalAmount","type":"uint16"},{"internalType":"uint16","name":"supplyAllocated","type":"uint16"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"pledgedTotalEth","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mercenary","outputs":[{"internalType":"uint8","name":"maxAmountPerUser","type":"uint8"},{"internalType":"bool","name":"isOpen","type":"bool"},{"internalType":"uint16","name":"pledgedTotalAmount","type":"uint16"},{"internalType":"uint16","name":"supplyAllocated","type":"uint16"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"pledgedTotalEth","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"newBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"openBids","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"i","type":"uint8"}],"name":"openPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseDetails","outputs":[{"components":[{"internalType":"uint8","name":"maxAmountPerUser","type":"uint8"},{"internalType":"bool","name":"isOpen","type":"bool"},{"internalType":"uint16","name":"pledgedTotalAmount","type":"uint16"},{"internalType":"uint16","name":"supplyAllocated","type":"uint16"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"pledgedTotalEth","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct KiraAuctionHandler.Phase","name":"","type":"tuple"},{"components":[{"internalType":"uint8","name":"maxAmountPerUser","type":"uint8"},{"internalType":"bool","name":"isOpen","type":"bool"},{"internalType":"uint16","name":"pledgedTotalAmount","type":"uint16"},{"internalType":"uint16","name":"supplyAllocated","type":"uint16"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"pledgedTotalEth","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct KiraAuctionHandler.Phase","name":"","type":"tuple"},{"components":[{"internalType":"uint8","name":"maxAmountPerUser","type":"uint8"},{"internalType":"bool","name":"isOpen","type":"bool"},{"internalType":"uint16","name":"pledgedTotalAmount","type":"uint16"},{"internalType":"uint16","name":"supplyAllocated","type":"uint16"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"pledgedTotalEth","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct KiraAuctionHandler.Phase","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"pledgeEnlisted","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"pledgeLastPhase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"pledgeMercenary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"processUserBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"refunded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"whitelist","type":"address[]"}],"name":"removeBidWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"winners","type":"address[]"}],"name":"removeWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resumeBidPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"val","type":"uint256"}],"name":"saveAmountOfETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saveETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenAddress","type":"address"},{"internalType":"address","name":"walletAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"saveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_card","type":"address"}],"name":"setCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_kiraTreasury","type":"address"}],"name":"setKiraTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBid","type":"uint256"},{"internalType":"uint256","name":"_maxBid","type":"uint256"}],"name":"setMinMaxBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_state","type":"uint8"}],"name":"setState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETHFromBids","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETHFromEnlisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETHFromLastPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETHFromMercenary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200001d33620001e6565b60098054736ad9356b3d0eee5ca31dd757c95fb5ab67b01c336001600160a01b031990911617905566f5232269808000600c81905567015fb7f9b8c38000600d55600e805463ff000000191663030000001790556040805160e0808201835260028252600060208084018290528385018290526103e860608086019190915273eaf4e461348dd23928bf77f0a3d3e55ea19d335e60808087019190915260a080870185905260c0968701899052600f80546001600160d01b031990811679eaf4e461348dd23928bf77f0a3d3e55ea19d335e03e80000000217909155601086905560118a905588518088018a526001808252818701889052818b01889052610dac8287015273e9f5ea1ff626d13cfbe1a7dc47f40b9443ef2ccc828601528184018890529089018b905260128054831679e9f5ea1ff626d13cfbe1a7dc47f40b9443ef2ccc0dac00000001179055601387905560148b905589519788018a528752938601859052968501849052908401839052733fb476663d8247acdaaa9c220d91089ed04144b290840152938201819052910183905260158054909216793fb476663d8247acdaaa9c220d91089ed04144b20000000000011790915560165560175562000236565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613d8380620002466000396000f3fe60806040526004361061030c5760003560e01c8063948fb4cc1161019a578063c8b342ab116100e1578063ea3bee9e1161008a578063f2fde38b11610064578063f2fde38b14610d2f578063f310c6eb14610d4f578063ffb876ab14610d8857600080fd5b8063ea3bee9e14610ca8578063eaa9f81514610cc8578063f0a5f65614610ce857600080fd5b8063cf5cbcc8116100bb578063cf5cbcc814610c09578063d06e92e514610c63578063dcf3eb3414610c9357600080fd5b8063c8b342ab14610b4c578063cdbfd73714610bc9578063ce4c53de14610be957600080fd5b8063a49d405111610143578063ba802b3d1161011d578063ba802b3d14610ae9578063bb9d08fb14610b09578063c033a49014610b1c57600080fd5b8063a49d405114610a94578063b3fe4a4214610aa9578063b42b093d14610ac957600080fd5b80639e00f85b116101745780639e00f85b14610a345780639ec8f8aa14610a545780639fdca0ca14610a7457600080fd5b8063948fb4cc146109ea57806394c383bd146109ff57806397bbb3bd14610a1457600080fd5b8063649fec141161025e57806381eacda111610207578063896f1a95116101e1578063896f1a95146109735780638bddf310146109885780638da5cb5b146109b857600080fd5b806381eacda114610913578063864eac3814610933578063889f8b4b1461095357600080fd5b8063715018a611610238578063715018a6146108cb5780637801a6d2146108e05780637eb47525146108f357600080fd5b8063649fec141461088357806365e6b7df146108985780636bd0a79b146108b857600080fd5b80634be44dd0116102c057806356de96db1161029a57806356de96db146108305780635a1dcb86146108505780635e99a6431461086357600080fd5b80634be44dd01461045b5780634c6d299c146107915780634d873e55146107f057600080fd5b806329d8da86116102f157806329d8da8614610344578063333171bb146103ec5780633b6c751d1461040157600080fd5b80630f10034b14610318578063166edcee1461032f57600080fd5b3661031357005b600080fd5b34801561032457600080fd5b5061032d610da8565b005b34801561033b57600080fd5b5061032d6110da565b34801561035057600080fd5b50600f5460105460115461039e9260ff8082169361010083049091169262010000830461ffff9081169364010000000081049091169266010000000000009091046001600160a01b03169187565b6040805160ff9098168852951515602088015261ffff948516958701959095529290911660608501526001600160a01b0316608084015260a083015260c082015260e0015b60405180910390f35b3480156103f857600080fd5b5061032d611229565b34801561040d57600080fd5b5060125460135460145461039e9260ff8082169361010083049091169262010000830461ffff9081169364010000000081049091169266010000000000009091046001600160a01b03169187565b34801561046757600080fd5b506107826040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091526040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091526040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810191909152600f60126015826040518060e00160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff161515151581526020016000820160029054906101000a900461ffff1661ffff1661ffff1681526020016000820160049054906101000a900461ffff1661ffff1661ffff1681526020016000820160069054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152602001600182015481526020016002820154815250509250816040518060e00160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff161515151581526020016000820160029054906101000a900461ffff1661ffff1661ffff1681526020016000820160049054906101000a900461ffff1661ffff1661ffff1681526020016000820160069054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152602001600182015481526020016002820154815250509150806040518060e00160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff161515151581526020016000820160029054906101000a900461ffff1661ffff1661ffff1681526020016000820160049054906101000a900461ffff1661ffff1661ffff1681526020016000820160069054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152602001600182015481526020016002820154815250509050925092509250909192565b6040516103e3939291906137c1565b34801561079d57600080fd5b50600e54600c54600d54600b546040805160ff63010000008704811682526020820195909552908101929092526060820152620100008304909116608082015261ffff90911660a082015260c0016103e3565b3480156107fc57600080fd5b5061082061080b3660046138fe565b60086020526000908152604090205460ff1681565b60405190151581526020016103e3565b34801561083c57600080fd5b5061032d61084b366004613931565b611294565b61032d61085e36600461394c565b6112fa565b34801561086f57600080fd5b5061032d61087e3660046139cf565b61168a565b34801561088f57600080fd5b5061032d6117da565b3480156108a457600080fd5b5061032d6108b33660046139e8565b611920565b61032d6108c636600461394c565b6119d5565b3480156108d757600080fd5b5061032d611cfb565b61032d6108ee36600461394c565b611d4f565b3480156108ff57600080fd5b5061032d61090e366004613a6f565b612075565b34801561091f57600080fd5b5061032d61092e3660046138fe565b6120e2565b34801561093f57600080fd5b5061032d61094e366004613a9b565b6121b9565b34801561095f57600080fd5b5061032d61096e366004613931565b6122a9565b34801561097f57600080fd5b5061032d612349565b34801561099457600080fd5b506108206109a33660046138fe565b60056020526000908152604090205460ff1681565b3480156109c457600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016103e3565b3480156109f657600080fd5b5061032d61248f565b348015610a0b57600080fd5b5061032d6124ef565b348015610a2057600080fd5b5061032d610a2f3660046138fe565b61263e565b348015610a4057600080fd5b5061032d610a4f366004613ac5565b6126b5565b348015610a6057600080fd5b50600a546109d2906001600160a01b031681565b348015610a8057600080fd5b5061032d610a8f366004613931565b612784565b348015610aa057600080fd5b5061032d612817565b348015610ab557600080fd5b5061032d610ac43660046139e8565b612872565b348015610ad557600080fd5b5061032d610ae4366004613aef565b612922565b348015610af557600080fd5b5061032d610b04366004613b26565b612a51565b61032d610b17366004613931565b612b86565b348015610b2857600080fd5b50610820610b373660046138fe565b60066020526000908152604090205460ff1681565b348015610b5857600080fd5b50610bae610b673660046138fe565b6040805180820190915260008082526020820152506001600160a01b0316600090815260046020908152604091829020825180840190935280548352600101549082015290565b604080518251815260209283015192810192909252016103e3565b348015610bd557600080fd5b5061032d610be43660046139e8565b612eed565b348015610bf557600080fd5b5061032d610c04366004613b67565b612f9d565b348015610c1557600080fd5b5060155460165460175461039e9260ff8082169361010083049091169262010000830461ffff9081169364010000000081049091169266010000000000009091046001600160a01b03169187565b348015610c6f57600080fd5b50610820610c7e3660046138fe565b60076020526000908152604090205460ff1681565b348015610c9f57600080fd5b5061032d612ff0565b348015610cb457600080fd5b506009546109d2906001600160a01b031681565b348015610cd457600080fd5b5061032d610ce33660046139e8565b61313f565b348015610cf457600080fd5b50610d21610d033660046138fe565b6001600160a01b031660009081526002602052604090205460ff1690565b6040519081526020016103e3565b348015610d3b57600080fd5b5061032d610d4a3660046138fe565b6131ef565b348015610d5b57600080fd5b50610d21610d6a3660046138fe565b6001600160a01b031660009081526001602052604090205460ff1690565b348015610d9457600080fd5b5061032d610da3366004613b89565b6132bc565b60185460ff1615610e005760405162461bcd60e51b815260206004820152600e60248201527f4e6f2072652d656e7472616e637900000000000000000000000000000000000060448201526064015b60405180910390fd5b6018805460ff19166001179055600e5460026201000090910460ff161015610e905760405162461bcd60e51b815260206004820152602660248201527f4e6f7420696e2074686520726967687420737461746520666f7220746869732060448201527f616374696f6e00000000000000000000000000000000000000000000000000006064820152608401610df7565b3360009081526006602052604090205460ff1615610ef05760405162461bcd60e51b815260206004820152601660248201527f526566756e6420616c726561647920636c61696d6564000000000000000000006044820152606401610df7565b336000908152600660209081526040808320805460ff1916600190811790915560048352818420825180840190935280548084529101549282019290925290610f7b5760405162461bcd60e51b815260206004820152600c60248201527f4e6f2062696420666f756e6400000000000000000000000000000000000000006044820152606401610df7565b3360009081526007602052604090205460ff16610faa5760208101518151610fa39190613bc9565b915061102e565b600b548160200151610fbc9190613be6565b8151610fc89190613bc9565b600a54604051630348ab1560e51b8152336004820152600160248201529193506001600160a01b03169063691562a090604401600060405180830381600087803b15801561101557600080fd5b505af1158015611029573d6000803e3d6000fd5b505050505b604051600090339061753090859084818181858888f193505050503d8060008114611075576040519150601f19603f3d011682016040523d82523d6000602084013e61107a565b606091505b50509050806110cb5760405162461bcd60e51b815260206004820152600d60248201527f526566756e64206661696c6564000000000000000000000000000000000000006044820152606401610df7565b50506018805460ff1916905550565b6000546001600160a01b031633146111225760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166111845760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546010546040516000926001600160a01b03169161c3509184818181858888f193505050503d80600081146111d7576040519150601f19603f3d011682016040523d82523d6000602084013e6111dc565b606091505b50509050806112215760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b506000601055565b6000546001600160a01b031633146112715760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600e805464ff000000001981166401000000009182900460ff1615909102179055565b6000546001600160a01b031633146112dc5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600e805460ff909216620100000262ff000019909216919091179055565b600a54604051630348ab1560e51b8152336004820152600160248201526001600160a01b039091169063691562a090604401600060405180830381600087803b15801561134657600080fd5b505af115801561135a573d6000803e3d6000fd5b50506040805160e081018252600f5460ff808216835261010082041615156020830181905261ffff620100008304811694840194909452640100000000820490931660608301526001600160a01b03660100000000000090910416608082015260105460a082015260115460c0820152925090506114055760405162461bcd60e51b81526020600482015260086024820152672737ba1037b832b760c11b6044820152606401610df7565b60008460ff16116114585760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610df7565b3360009081526001602052604081205461147690869060ff16613bf9565b9050816000015160ff168160ff1611156114e35760405162461bcd60e51b815260206004820152602860248201527f596f7520776f756c642065786365656420746865206d617820616d6f756e74206044820152673832b9103ab9b2b960c11b6064820152608401610df7565b60c08201516114f59060ff8716613bc9565b34146115435760405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74000000006044820152606401610df7565b6115533385858560800151613337565b61155c57600080fd5b816060015161ffff168560ff1683604001516115789190613c12565b61ffff1611156115ca5760405162461bcd60e51b815260206004820152601660248201527f4e6f7420656e6f75676820737570706c79206c656674000000000000000000006044820152606401610df7565b336000908152600160205260408120805460ff191660ff8416179055601080543492906115f8908490613c34565b9091555050600f805460ff8716919060029061161f90849062010000900461ffff16613c12565b92506101000a81548161ffff021916908361ffff160217905550336001600160a01b03167fabb6755364941c0190e117a8942338ca0516e706383fb1bc350b1307122c75028660405161167b919060ff91909116815260200190565b60405180910390a25050505050565b6000546001600160a01b031633146116d25760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166117345760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546040516000916001600160a01b03169061c3509084905b600060405180830381858888f193505050503d806000811461178c576040519150601f19603f3d011682016040523d82523d6000602084013e611791565b606091505b50509050806117d65760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b5050565b6000546001600160a01b031633146118225760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166118845760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6000600b5411801561189b5750600e5461ffff1615155b6118e75760405162461bcd60e51b815260206004820152601860248201527f536f6d652076616c75657320617265206e6f74207365742e00000000000000006044820152606401610df7565b600b54600e546000916118fd9161ffff16613bc9565b6009546040519192506000916001600160a01b039091169061c35090849061174e565b6000546001600160a01b031633146119685760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b60005b818110156119d05760006007600085858581811061198b5761198b613c47565b90506020020160208101906119a091906138fe565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905560010161196b565b505050565b600a54604051630348ab1560e51b8152336004820152600160248201526001600160a01b039091169063691562a090604401600060405180830381600087803b158015611a2157600080fd5b505af1158015611a35573d6000803e3d6000fd5b50506040805160e08101825260125460ff8082168352610100820481161515602084015261ffff620100008304811694840194909452640100000000820490931660608301526001600160a01b03660100000000000090910416608082015260135460a082015260145460c08201529250851615159050611af85760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610df7565b8060200151611b345760405162461bcd60e51b81526020600482015260086024820152672737ba1037b832b760c11b6044820152606401610df7565b33600090815260026020526040812054611b5290869060ff16613bf9565b9050816000015160ff168160ff161115611bbf5760405162461bcd60e51b815260206004820152602860248201527f596f7520776f756c642065786365656420746865206d617820616d6f756e74206044820152673832b9103ab9b2b960c11b6064820152608401610df7565b60c0820151611bd19060ff8716613bc9565b3414611c1f5760405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74000000006044820152606401610df7565b611c2f3385858560800151613337565b611c3857600080fd5b816060015161ffff168560ff168360400151611c549190613c12565b61ffff161115611ca65760405162461bcd60e51b815260206004820152601660248201527f4e6f7420656e6f75676820737570706c79206c656674000000000000000000006044820152606401610df7565b336000908152600260205260408120805460ff191660ff841617905560138054349290611cd4908490613c34565b90915550506012805460ff8716919060029061161f90849062010000900461ffff16613c12565b6000546001600160a01b03163314611d435760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b611d4d60006133ec565b565b600a54604051630348ab1560e51b8152336004820152600160248201526001600160a01b039091169063691562a090604401600060405180830381600087803b158015611d9b57600080fd5b505af1158015611daf573d6000803e3d6000fd5b50506040805160e08101825260155460ff8082168352610100820481161515602084015261ffff620100008304811694840194909452640100000000820490931660608301526001600160a01b03660100000000000090910416608082015260165460a082015260175460c08201529250851615159050611e725760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610df7565b8060200151611eae5760405162461bcd60e51b81526020600482015260086024820152672737ba1037b832b760c11b6044820152606401610df7565b33600090815260036020526040812054611ecc90869060ff16613bf9565b9050816000015160ff168160ff161115611f395760405162461bcd60e51b815260206004820152602860248201527f596f7520776f756c642065786365656420746865206d617820616d6f756e74206044820152673832b9103ab9b2b960c11b6064820152608401610df7565b60c0820151611f4b9060ff8716613bc9565b3414611f995760405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74000000006044820152606401610df7565b611fa93385858560800151613337565b611fb257600080fd5b816060015161ffff168560ff168360400151611fce9190613c12565b61ffff1611156120205760405162461bcd60e51b815260206004820152601660248201527f4e6f7420656e6f75676820737570706c79206c656674000000000000000000006044820152606401610df7565b336000908152600360205260408120805460ff191660ff84161790556016805434929061204e908490613c34565b90915550506015805460ff8716919060029061161f90849062010000900461ffff16613c12565b6000546001600160a01b031633146120bd5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600b91909155600e805461ffff90921662ffffff199092169190911762020000179055565b6000546001600160a01b0316331461212a5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6001600160a01b03811661218a5760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146122015760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8160ff1660010361222157600f805460ff831660ff199091161790555050565b8160ff16600203612241576012805460ff831660ff199091161790555050565b8160ff16600303612261576015805460ff831660ff199091161790555050565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964207068617365000000000000000000000000000000000000006044820152606401610df7565b6000546001600160a01b031633146122f15760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8060ff1660010361230e57600f805461ff00191661010017905550565b8060ff1660020361232b576012805461ff00191661010017905550565b8060ff16600303612261576015805461ff0019166101001790555b50565b6000546001600160a01b031633146123915760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166123f35760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546040516000916001600160a01b03169061c35090479084818181858888f193505050503d8060008114612445576040519150601f19603f3d011682016040523d82523d6000602084013e61244a565b606091505b50509050806123465760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b6000546001600160a01b031633146124d75760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6000600b55600e805462ffffff191662010000179055565b6000546001600160a01b031633146125375760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166125995760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546013546040516000926001600160a01b03169161c3509184818181858888f193505050503d80600081146125ec576040519150601f19603f3d011682016040523d82523d6000602084013e6125f1565b606091505b50509050806126365760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b506000601355565b6000546001600160a01b031633146126865760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146126fd5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8160ff1660010361272a57600f805461ffff83166401000000000265ffff00000000199091161790555050565b8160ff16600203612757576012805461ffff83166401000000000265ffff00000000199091161790555050565b8160ff16600303612261576015805461ffff83166401000000000265ffff00000000199091161790555050565b6000546001600160a01b031633146127cc5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8060ff166001036127e557600f805461ff001916905550565b8060ff166002036127fe576012805461ff001916905550565b8060ff16600303612261576015805461ff001916905550565b6000546001600160a01b0316331461285f5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600e805462ff0000191662010000179055565b6000546001600160a01b031633146128ba5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b60005b818110156119d0576001600760008585858181106128dd576128dd613c47565b90506020020160208101906128f291906138fe565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556001016128bd565b6000546001600160a01b0316331461296a5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8160ff166001036129b757600f80546001600160a01b0383166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff9091161790555050565b8160ff16600203612a0457601280546001600160a01b0383166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff9091161790555050565b8160ff1660030361226157601580546001600160a01b0383166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff9091161790555050565b6000546001600160a01b03163314612a995760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6001600160a01b038216612aef5760405162461bcd60e51b815260206004820181905260248201527f77616c6c6574416464726573732063616e2774206265203020616464726573736044820152606401610df7565b6119d083838315612b005783613449565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038716906370a0823190602401602060405180830381865afa158015612b5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b819190613c5d565b613449565b600e5462010000900460ff16600114612be15760405162461bcd60e51b815260206004820152601a60248201527f42696464696e67206861736e27742073746172746564207965740000000000006044820152606401610df7565b600e54640100000000900460ff1615612c3c5760405162461bcd60e51b815260206004820152600660248201527f50617573656400000000000000000000000000000000000000000000000000006044820152606401610df7565b333214612c8b5760405162461bcd60e51b815260206004820152601360248201527f4e6f20536d61727420436f6e74726163747321000000000000000000000000006044820152606401610df7565b3360009081526005602052604090205460ff1615612ceb5760405162461bcd60e51b815260206004820152601660248201527f596f75206861766520612062696420616c7265616479000000000000000000006044820152606401610df7565b60008160ff1611612d3e5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610df7565b6000612d4d60ff831634613c76565b3360009081526008602052604090205490915060ff16612e6b57600c54811015612db95760405162461bcd60e51b815260206004820152601560248201527f42696420616d6f756e7420697320746f6f206c6f7700000000000000000000006044820152606401610df7565b600d54811115612e0b5760405162461bcd60e51b815260206004820152601660248201527f42696420616d6f756e7420697320746f6f2068696768000000000000000000006044820152606401610df7565b600e5460ff630100000090910481169083161115612e6b5760405162461bcd60e51b815260206004820152600d60248201527f546f6f206d616e792062696473000000000000000000000000000000000000006044820152606401610df7565b336000818152600560209081526040808320805460ff191660019081179091558151808301835260ff8816808252818501888152878752600486529584902091518255945191015580519283529082018490527fb7cf14c4228d59fba55ef7ffbf6d2fe04080b08be58e3545b0ff980828c967c3910160405180910390a25050565b6000546001600160a01b03163314612f355760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b60005b818110156119d057600160086000858585818110612f5857612f58613c47565b9050602002016020810190612f6d91906138fe565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101612f38565b6000546001600160a01b03163314612fe55760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600c91909155600d55565b6000546001600160a01b031633146130385760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b031661309a5760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546016546040516000926001600160a01b03169161c3509184818181858888f193505050503d80600081146130ed576040519150601f19603f3d011682016040523d82523d6000602084013e6130f2565b606091505b50509050806131375760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b506000601655565b6000546001600160a01b031633146131875760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b60005b818110156119d0576000600860008585858181106131aa576131aa613c47565b90506020020160208101906131bf91906138fe565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905560010161318a565b6000546001600160a01b031633146132375760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6001600160a01b0381166132b35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610df7565b612346816133ec565b6000546001600160a01b031633146133045760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8160ff166001036133155760115550565b8160ff166002036133265760145550565b8160ff166003036122615760175550565b6040516bffffffffffffffffffffffff19606086901b166020820152600090819060340160405160208183030381529060405280519060200120905060006133a4826020527b19457468657265756d205369676e6564204d6573736167653a0a3332600052603c60042090565b905060006133b38288886134c9565b90506001600160a01b038116158015906133de5750846001600160a01b0316816001600160a01b0316145b93505050505b949350505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526119d0908490613542565b600060405160408460403784600052604084013560001a602052602060006080600060017f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0016060511060418814165afa5060005191503d61353357638baa579f6000526004601cfd5b60006060526040529392505050565b6000613597826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136279092919063ffffffff16565b8051909150156119d057808060200190518101906135b59190613c98565b6119d05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610df7565b60606136368484600085613640565b90505b9392505050565b6060824710156136b85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610df7565b6001600160a01b0385163b61370f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610df7565b600080866001600160a01b0316858760405161372b9190613cde565b60006040518083038185875af1925050503d8060008114613768576040519150601f19603f3d011682016040523d82523d6000602084013e61376d565b606091505b509150915061377d828286613788565b979650505050505050565b60608315613797575081613639565b8251156137a75782518084602001fd5b8160405162461bcd60e51b8152600401610df79190613cfa565b6102a08101613827828660ff8151168252602081015115156020830152604081015161ffff808216604085015280606084015116606085015250506001600160a01b03608082015116608083015260a081015160a083015260c081015160c08301525050565b835160ff1660e083015260208401511515610100830152604084015161ffff90811661012084015260608501511661014083015260808401516001600160a01b031661016083015260a084015161018083015260c08401516101a0830152825160ff166101c0830152602083015115156101e0830152604083015161ffff90811661020084015260608401511661022083015260808301516001600160a01b031661024083015260a083015161026083015260c08301516102808301526133e4565b6001600160a01b038116811461234657600080fd5b60006020828403121561391057600080fd5b8135613639816138e9565b803560ff8116811461392c57600080fd5b919050565b60006020828403121561394357600080fd5b6136398261391b565b60008060006040848603121561396157600080fd5b61396a8461391b565b9250602084013567ffffffffffffffff8082111561398757600080fd5b818601915086601f83011261399b57600080fd5b8135818111156139aa57600080fd5b8760208285010111156139bc57600080fd5b6020830194508093505050509250925092565b6000602082840312156139e157600080fd5b5035919050565b600080602083850312156139fb57600080fd5b823567ffffffffffffffff80821115613a1357600080fd5b818501915085601f830112613a2757600080fd5b813581811115613a3657600080fd5b8660208260051b8501011115613a4b57600080fd5b60209290920196919550909350505050565b803561ffff8116811461392c57600080fd5b60008060408385031215613a8257600080fd5b82359150613a9260208401613a5d565b90509250929050565b60008060408385031215613aae57600080fd5b613ab78361391b565b9150613a926020840161391b565b60008060408385031215613ad857600080fd5b613ae18361391b565b9150613a9260208401613a5d565b60008060408385031215613b0257600080fd5b613b0b8361391b565b91506020830135613b1b816138e9565b809150509250929050565b600080600060608486031215613b3b57600080fd5b8335613b46816138e9565b92506020840135613b56816138e9565b929592945050506040919091013590565b60008060408385031215613b7a57600080fd5b50508035926020909101359150565b60008060408385031215613b9c57600080fd5b613ba58361391b565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417613be057613be0613bb3565b92915050565b81810381811115613be057613be0613bb3565b60ff8181168382160190811115613be057613be0613bb3565b61ffff818116838216019080821115613c2d57613c2d613bb3565b5092915050565b80820180821115613be057613be0613bb3565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613c6f57600080fd5b5051919050565b600082613c9357634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613caa57600080fd5b8151801515811461363957600080fd5b60005b83811015613cd5578181015183820152602001613cbd565b50506000910152565b60008251613cf0818460208701613cba565b9190910192915050565b6020815260008251806020840152613d19816040850160208701613cba565b601f01601f1916919091016040019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ffeaa80020089c8e3787ba499f3b2c7d93ca8107dc6fadcbaf247e35041489f764736f6c63430008110033
Deployed Bytecode
0x60806040526004361061030c5760003560e01c8063948fb4cc1161019a578063c8b342ab116100e1578063ea3bee9e1161008a578063f2fde38b11610064578063f2fde38b14610d2f578063f310c6eb14610d4f578063ffb876ab14610d8857600080fd5b8063ea3bee9e14610ca8578063eaa9f81514610cc8578063f0a5f65614610ce857600080fd5b8063cf5cbcc8116100bb578063cf5cbcc814610c09578063d06e92e514610c63578063dcf3eb3414610c9357600080fd5b8063c8b342ab14610b4c578063cdbfd73714610bc9578063ce4c53de14610be957600080fd5b8063a49d405111610143578063ba802b3d1161011d578063ba802b3d14610ae9578063bb9d08fb14610b09578063c033a49014610b1c57600080fd5b8063a49d405114610a94578063b3fe4a4214610aa9578063b42b093d14610ac957600080fd5b80639e00f85b116101745780639e00f85b14610a345780639ec8f8aa14610a545780639fdca0ca14610a7457600080fd5b8063948fb4cc146109ea57806394c383bd146109ff57806397bbb3bd14610a1457600080fd5b8063649fec141161025e57806381eacda111610207578063896f1a95116101e1578063896f1a95146109735780638bddf310146109885780638da5cb5b146109b857600080fd5b806381eacda114610913578063864eac3814610933578063889f8b4b1461095357600080fd5b8063715018a611610238578063715018a6146108cb5780637801a6d2146108e05780637eb47525146108f357600080fd5b8063649fec141461088357806365e6b7df146108985780636bd0a79b146108b857600080fd5b80634be44dd0116102c057806356de96db1161029a57806356de96db146108305780635a1dcb86146108505780635e99a6431461086357600080fd5b80634be44dd01461045b5780634c6d299c146107915780634d873e55146107f057600080fd5b806329d8da86116102f157806329d8da8614610344578063333171bb146103ec5780633b6c751d1461040157600080fd5b80630f10034b14610318578063166edcee1461032f57600080fd5b3661031357005b600080fd5b34801561032457600080fd5b5061032d610da8565b005b34801561033b57600080fd5b5061032d6110da565b34801561035057600080fd5b50600f5460105460115461039e9260ff8082169361010083049091169262010000830461ffff9081169364010000000081049091169266010000000000009091046001600160a01b03169187565b6040805160ff9098168852951515602088015261ffff948516958701959095529290911660608501526001600160a01b0316608084015260a083015260c082015260e0015b60405180910390f35b3480156103f857600080fd5b5061032d611229565b34801561040d57600080fd5b5060125460135460145461039e9260ff8082169361010083049091169262010000830461ffff9081169364010000000081049091169266010000000000009091046001600160a01b03169187565b34801561046757600080fd5b506107826040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091526040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091526040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810191909152600f60126015826040518060e00160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff161515151581526020016000820160029054906101000a900461ffff1661ffff1661ffff1681526020016000820160049054906101000a900461ffff1661ffff1661ffff1681526020016000820160069054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152602001600182015481526020016002820154815250509250816040518060e00160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff161515151581526020016000820160029054906101000a900461ffff1661ffff1661ffff1681526020016000820160049054906101000a900461ffff1661ffff1661ffff1681526020016000820160069054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152602001600182015481526020016002820154815250509150806040518060e00160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016000820160019054906101000a900460ff161515151581526020016000820160029054906101000a900461ffff1661ffff1661ffff1681526020016000820160049054906101000a900461ffff1661ffff1661ffff1681526020016000820160069054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152602001600182015481526020016002820154815250509050925092509250909192565b6040516103e3939291906137c1565b34801561079d57600080fd5b50600e54600c54600d54600b546040805160ff63010000008704811682526020820195909552908101929092526060820152620100008304909116608082015261ffff90911660a082015260c0016103e3565b3480156107fc57600080fd5b5061082061080b3660046138fe565b60086020526000908152604090205460ff1681565b60405190151581526020016103e3565b34801561083c57600080fd5b5061032d61084b366004613931565b611294565b61032d61085e36600461394c565b6112fa565b34801561086f57600080fd5b5061032d61087e3660046139cf565b61168a565b34801561088f57600080fd5b5061032d6117da565b3480156108a457600080fd5b5061032d6108b33660046139e8565b611920565b61032d6108c636600461394c565b6119d5565b3480156108d757600080fd5b5061032d611cfb565b61032d6108ee36600461394c565b611d4f565b3480156108ff57600080fd5b5061032d61090e366004613a6f565b612075565b34801561091f57600080fd5b5061032d61092e3660046138fe565b6120e2565b34801561093f57600080fd5b5061032d61094e366004613a9b565b6121b9565b34801561095f57600080fd5b5061032d61096e366004613931565b6122a9565b34801561097f57600080fd5b5061032d612349565b34801561099457600080fd5b506108206109a33660046138fe565b60056020526000908152604090205460ff1681565b3480156109c457600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016103e3565b3480156109f657600080fd5b5061032d61248f565b348015610a0b57600080fd5b5061032d6124ef565b348015610a2057600080fd5b5061032d610a2f3660046138fe565b61263e565b348015610a4057600080fd5b5061032d610a4f366004613ac5565b6126b5565b348015610a6057600080fd5b50600a546109d2906001600160a01b031681565b348015610a8057600080fd5b5061032d610a8f366004613931565b612784565b348015610aa057600080fd5b5061032d612817565b348015610ab557600080fd5b5061032d610ac43660046139e8565b612872565b348015610ad557600080fd5b5061032d610ae4366004613aef565b612922565b348015610af557600080fd5b5061032d610b04366004613b26565b612a51565b61032d610b17366004613931565b612b86565b348015610b2857600080fd5b50610820610b373660046138fe565b60066020526000908152604090205460ff1681565b348015610b5857600080fd5b50610bae610b673660046138fe565b6040805180820190915260008082526020820152506001600160a01b0316600090815260046020908152604091829020825180840190935280548352600101549082015290565b604080518251815260209283015192810192909252016103e3565b348015610bd557600080fd5b5061032d610be43660046139e8565b612eed565b348015610bf557600080fd5b5061032d610c04366004613b67565b612f9d565b348015610c1557600080fd5b5060155460165460175461039e9260ff8082169361010083049091169262010000830461ffff9081169364010000000081049091169266010000000000009091046001600160a01b03169187565b348015610c6f57600080fd5b50610820610c7e3660046138fe565b60076020526000908152604090205460ff1681565b348015610c9f57600080fd5b5061032d612ff0565b348015610cb457600080fd5b506009546109d2906001600160a01b031681565b348015610cd457600080fd5b5061032d610ce33660046139e8565b61313f565b348015610cf457600080fd5b50610d21610d033660046138fe565b6001600160a01b031660009081526002602052604090205460ff1690565b6040519081526020016103e3565b348015610d3b57600080fd5b5061032d610d4a3660046138fe565b6131ef565b348015610d5b57600080fd5b50610d21610d6a3660046138fe565b6001600160a01b031660009081526001602052604090205460ff1690565b348015610d9457600080fd5b5061032d610da3366004613b89565b6132bc565b60185460ff1615610e005760405162461bcd60e51b815260206004820152600e60248201527f4e6f2072652d656e7472616e637900000000000000000000000000000000000060448201526064015b60405180910390fd5b6018805460ff19166001179055600e5460026201000090910460ff161015610e905760405162461bcd60e51b815260206004820152602660248201527f4e6f7420696e2074686520726967687420737461746520666f7220746869732060448201527f616374696f6e00000000000000000000000000000000000000000000000000006064820152608401610df7565b3360009081526006602052604090205460ff1615610ef05760405162461bcd60e51b815260206004820152601660248201527f526566756e6420616c726561647920636c61696d6564000000000000000000006044820152606401610df7565b336000908152600660209081526040808320805460ff1916600190811790915560048352818420825180840190935280548084529101549282019290925290610f7b5760405162461bcd60e51b815260206004820152600c60248201527f4e6f2062696420666f756e6400000000000000000000000000000000000000006044820152606401610df7565b3360009081526007602052604090205460ff16610faa5760208101518151610fa39190613bc9565b915061102e565b600b548160200151610fbc9190613be6565b8151610fc89190613bc9565b600a54604051630348ab1560e51b8152336004820152600160248201529193506001600160a01b03169063691562a090604401600060405180830381600087803b15801561101557600080fd5b505af1158015611029573d6000803e3d6000fd5b505050505b604051600090339061753090859084818181858888f193505050503d8060008114611075576040519150601f19603f3d011682016040523d82523d6000602084013e61107a565b606091505b50509050806110cb5760405162461bcd60e51b815260206004820152600d60248201527f526566756e64206661696c6564000000000000000000000000000000000000006044820152606401610df7565b50506018805460ff1916905550565b6000546001600160a01b031633146111225760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166111845760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546010546040516000926001600160a01b03169161c3509184818181858888f193505050503d80600081146111d7576040519150601f19603f3d011682016040523d82523d6000602084013e6111dc565b606091505b50509050806112215760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b506000601055565b6000546001600160a01b031633146112715760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600e805464ff000000001981166401000000009182900460ff1615909102179055565b6000546001600160a01b031633146112dc5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600e805460ff909216620100000262ff000019909216919091179055565b600a54604051630348ab1560e51b8152336004820152600160248201526001600160a01b039091169063691562a090604401600060405180830381600087803b15801561134657600080fd5b505af115801561135a573d6000803e3d6000fd5b50506040805160e081018252600f5460ff808216835261010082041615156020830181905261ffff620100008304811694840194909452640100000000820490931660608301526001600160a01b03660100000000000090910416608082015260105460a082015260115460c0820152925090506114055760405162461bcd60e51b81526020600482015260086024820152672737ba1037b832b760c11b6044820152606401610df7565b60008460ff16116114585760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610df7565b3360009081526001602052604081205461147690869060ff16613bf9565b9050816000015160ff168160ff1611156114e35760405162461bcd60e51b815260206004820152602860248201527f596f7520776f756c642065786365656420746865206d617820616d6f756e74206044820152673832b9103ab9b2b960c11b6064820152608401610df7565b60c08201516114f59060ff8716613bc9565b34146115435760405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74000000006044820152606401610df7565b6115533385858560800151613337565b61155c57600080fd5b816060015161ffff168560ff1683604001516115789190613c12565b61ffff1611156115ca5760405162461bcd60e51b815260206004820152601660248201527f4e6f7420656e6f75676820737570706c79206c656674000000000000000000006044820152606401610df7565b336000908152600160205260408120805460ff191660ff8416179055601080543492906115f8908490613c34565b9091555050600f805460ff8716919060029061161f90849062010000900461ffff16613c12565b92506101000a81548161ffff021916908361ffff160217905550336001600160a01b03167fabb6755364941c0190e117a8942338ca0516e706383fb1bc350b1307122c75028660405161167b919060ff91909116815260200190565b60405180910390a25050505050565b6000546001600160a01b031633146116d25760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166117345760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546040516000916001600160a01b03169061c3509084905b600060405180830381858888f193505050503d806000811461178c576040519150601f19603f3d011682016040523d82523d6000602084013e611791565b606091505b50509050806117d65760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b5050565b6000546001600160a01b031633146118225760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166118845760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6000600b5411801561189b5750600e5461ffff1615155b6118e75760405162461bcd60e51b815260206004820152601860248201527f536f6d652076616c75657320617265206e6f74207365742e00000000000000006044820152606401610df7565b600b54600e546000916118fd9161ffff16613bc9565b6009546040519192506000916001600160a01b039091169061c35090849061174e565b6000546001600160a01b031633146119685760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b60005b818110156119d05760006007600085858581811061198b5761198b613c47565b90506020020160208101906119a091906138fe565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905560010161196b565b505050565b600a54604051630348ab1560e51b8152336004820152600160248201526001600160a01b039091169063691562a090604401600060405180830381600087803b158015611a2157600080fd5b505af1158015611a35573d6000803e3d6000fd5b50506040805160e08101825260125460ff8082168352610100820481161515602084015261ffff620100008304811694840194909452640100000000820490931660608301526001600160a01b03660100000000000090910416608082015260135460a082015260145460c08201529250851615159050611af85760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610df7565b8060200151611b345760405162461bcd60e51b81526020600482015260086024820152672737ba1037b832b760c11b6044820152606401610df7565b33600090815260026020526040812054611b5290869060ff16613bf9565b9050816000015160ff168160ff161115611bbf5760405162461bcd60e51b815260206004820152602860248201527f596f7520776f756c642065786365656420746865206d617820616d6f756e74206044820152673832b9103ab9b2b960c11b6064820152608401610df7565b60c0820151611bd19060ff8716613bc9565b3414611c1f5760405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74000000006044820152606401610df7565b611c2f3385858560800151613337565b611c3857600080fd5b816060015161ffff168560ff168360400151611c549190613c12565b61ffff161115611ca65760405162461bcd60e51b815260206004820152601660248201527f4e6f7420656e6f75676820737570706c79206c656674000000000000000000006044820152606401610df7565b336000908152600260205260408120805460ff191660ff841617905560138054349290611cd4908490613c34565b90915550506012805460ff8716919060029061161f90849062010000900461ffff16613c12565b6000546001600160a01b03163314611d435760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b611d4d60006133ec565b565b600a54604051630348ab1560e51b8152336004820152600160248201526001600160a01b039091169063691562a090604401600060405180830381600087803b158015611d9b57600080fd5b505af1158015611daf573d6000803e3d6000fd5b50506040805160e08101825260155460ff8082168352610100820481161515602084015261ffff620100008304811694840194909452640100000000820490931660608301526001600160a01b03660100000000000090910416608082015260165460a082015260175460c08201529250851615159050611e725760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610df7565b8060200151611eae5760405162461bcd60e51b81526020600482015260086024820152672737ba1037b832b760c11b6044820152606401610df7565b33600090815260036020526040812054611ecc90869060ff16613bf9565b9050816000015160ff168160ff161115611f395760405162461bcd60e51b815260206004820152602860248201527f596f7520776f756c642065786365656420746865206d617820616d6f756e74206044820152673832b9103ab9b2b960c11b6064820152608401610df7565b60c0820151611f4b9060ff8716613bc9565b3414611f995760405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e74000000006044820152606401610df7565b611fa93385858560800151613337565b611fb257600080fd5b816060015161ffff168560ff168360400151611fce9190613c12565b61ffff1611156120205760405162461bcd60e51b815260206004820152601660248201527f4e6f7420656e6f75676820737570706c79206c656674000000000000000000006044820152606401610df7565b336000908152600360205260408120805460ff191660ff84161790556016805434929061204e908490613c34565b90915550506015805460ff8716919060029061161f90849062010000900461ffff16613c12565b6000546001600160a01b031633146120bd5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600b91909155600e805461ffff90921662ffffff199092169190911762020000179055565b6000546001600160a01b0316331461212a5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6001600160a01b03811661218a5760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146122015760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8160ff1660010361222157600f805460ff831660ff199091161790555050565b8160ff16600203612241576012805460ff831660ff199091161790555050565b8160ff16600303612261576015805460ff831660ff199091161790555050565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964207068617365000000000000000000000000000000000000006044820152606401610df7565b6000546001600160a01b031633146122f15760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8060ff1660010361230e57600f805461ff00191661010017905550565b8060ff1660020361232b576012805461ff00191661010017905550565b8060ff16600303612261576015805461ff0019166101001790555b50565b6000546001600160a01b031633146123915760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166123f35760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546040516000916001600160a01b03169061c35090479084818181858888f193505050503d8060008114612445576040519150601f19603f3d011682016040523d82523d6000602084013e61244a565b606091505b50509050806123465760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b6000546001600160a01b031633146124d75760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6000600b55600e805462ffffff191662010000179055565b6000546001600160a01b031633146125375760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b03166125995760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546013546040516000926001600160a01b03169161c3509184818181858888f193505050503d80600081146125ec576040519150601f19603f3d011682016040523d82523d6000602084013e6125f1565b606091505b50509050806126365760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b506000601355565b6000546001600160a01b031633146126865760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146126fd5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8160ff1660010361272a57600f805461ffff83166401000000000265ffff00000000199091161790555050565b8160ff16600203612757576012805461ffff83166401000000000265ffff00000000199091161790555050565b8160ff16600303612261576015805461ffff83166401000000000265ffff00000000199091161790555050565b6000546001600160a01b031633146127cc5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8060ff166001036127e557600f805461ff001916905550565b8060ff166002036127fe576012805461ff001916905550565b8060ff16600303612261576015805461ff001916905550565b6000546001600160a01b0316331461285f5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600e805462ff0000191662010000179055565b6000546001600160a01b031633146128ba5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b60005b818110156119d0576001600760008585858181106128dd576128dd613c47565b90506020020160208101906128f291906138fe565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556001016128bd565b6000546001600160a01b0316331461296a5760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8160ff166001036129b757600f80546001600160a01b0383166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff9091161790555050565b8160ff16600203612a0457601280546001600160a01b0383166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff9091161790555050565b8160ff1660030361226157601580546001600160a01b0383166601000000000000027fffffffffffff0000000000000000000000000000000000000000ffffffffffff9091161790555050565b6000546001600160a01b03163314612a995760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6001600160a01b038216612aef5760405162461bcd60e51b815260206004820181905260248201527f77616c6c6574416464726573732063616e2774206265203020616464726573736044820152606401610df7565b6119d083838315612b005783613449565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038716906370a0823190602401602060405180830381865afa158015612b5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b819190613c5d565b613449565b600e5462010000900460ff16600114612be15760405162461bcd60e51b815260206004820152601a60248201527f42696464696e67206861736e27742073746172746564207965740000000000006044820152606401610df7565b600e54640100000000900460ff1615612c3c5760405162461bcd60e51b815260206004820152600660248201527f50617573656400000000000000000000000000000000000000000000000000006044820152606401610df7565b333214612c8b5760405162461bcd60e51b815260206004820152601360248201527f4e6f20536d61727420436f6e74726163747321000000000000000000000000006044820152606401610df7565b3360009081526005602052604090205460ff1615612ceb5760405162461bcd60e51b815260206004820152601660248201527f596f75206861766520612062696420616c7265616479000000000000000000006044820152606401610df7565b60008160ff1611612d3e5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610df7565b6000612d4d60ff831634613c76565b3360009081526008602052604090205490915060ff16612e6b57600c54811015612db95760405162461bcd60e51b815260206004820152601560248201527f42696420616d6f756e7420697320746f6f206c6f7700000000000000000000006044820152606401610df7565b600d54811115612e0b5760405162461bcd60e51b815260206004820152601660248201527f42696420616d6f756e7420697320746f6f2068696768000000000000000000006044820152606401610df7565b600e5460ff630100000090910481169083161115612e6b5760405162461bcd60e51b815260206004820152600d60248201527f546f6f206d616e792062696473000000000000000000000000000000000000006044820152606401610df7565b336000818152600560209081526040808320805460ff191660019081179091558151808301835260ff8816808252818501888152878752600486529584902091518255945191015580519283529082018490527fb7cf14c4228d59fba55ef7ffbf6d2fe04080b08be58e3545b0ff980828c967c3910160405180910390a25050565b6000546001600160a01b03163314612f355760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b60005b818110156119d057600160086000858585818110612f5857612f58613c47565b9050602002016020810190612f6d91906138fe565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101612f38565b6000546001600160a01b03163314612fe55760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b600c91909155600d55565b6000546001600160a01b031633146130385760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6009546001600160a01b031661309a5760405162461bcd60e51b815260206004820152602160248201527f4b69726120747265617375727920616464726573732063616e6e6f74206265206044820152600360fc1b6064820152608401610df7565b6009546016546040516000926001600160a01b03169161c3509184818181858888f193505050503d80600081146130ed576040519150601f19603f3d011682016040523d82523d6000602084013e6130f2565b606091505b50509050806131375760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b6044820152606401610df7565b506000601655565b6000546001600160a01b031633146131875760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b60005b818110156119d0576000600860008585858181106131aa576131aa613c47565b90506020020160208101906131bf91906138fe565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905560010161318a565b6000546001600160a01b031633146132375760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b6001600160a01b0381166132b35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610df7565b612346816133ec565b6000546001600160a01b031633146133045760405162461bcd60e51b81526020600482018190526024820152600080516020613d2e8339815191526044820152606401610df7565b8160ff166001036133155760115550565b8160ff166002036133265760145550565b8160ff166003036122615760175550565b6040516bffffffffffffffffffffffff19606086901b166020820152600090819060340160405160208183030381529060405280519060200120905060006133a4826020527b19457468657265756d205369676e6564204d6573736167653a0a3332600052603c60042090565b905060006133b38288886134c9565b90506001600160a01b038116158015906133de5750846001600160a01b0316816001600160a01b0316145b93505050505b949350505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526119d0908490613542565b600060405160408460403784600052604084013560001a602052602060006080600060017f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0016060511060418814165afa5060005191503d61353357638baa579f6000526004601cfd5b60006060526040529392505050565b6000613597826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136279092919063ffffffff16565b8051909150156119d057808060200190518101906135b59190613c98565b6119d05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610df7565b60606136368484600085613640565b90505b9392505050565b6060824710156136b85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610df7565b6001600160a01b0385163b61370f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610df7565b600080866001600160a01b0316858760405161372b9190613cde565b60006040518083038185875af1925050503d8060008114613768576040519150601f19603f3d011682016040523d82523d6000602084013e61376d565b606091505b509150915061377d828286613788565b979650505050505050565b60608315613797575081613639565b8251156137a75782518084602001fd5b8160405162461bcd60e51b8152600401610df79190613cfa565b6102a08101613827828660ff8151168252602081015115156020830152604081015161ffff808216604085015280606084015116606085015250506001600160a01b03608082015116608083015260a081015160a083015260c081015160c08301525050565b835160ff1660e083015260208401511515610100830152604084015161ffff90811661012084015260608501511661014083015260808401516001600160a01b031661016083015260a084015161018083015260c08401516101a0830152825160ff166101c0830152602083015115156101e0830152604083015161ffff90811661020084015260608401511661022083015260808301516001600160a01b031661024083015260a083015161026083015260c08301516102808301526133e4565b6001600160a01b038116811461234657600080fd5b60006020828403121561391057600080fd5b8135613639816138e9565b803560ff8116811461392c57600080fd5b919050565b60006020828403121561394357600080fd5b6136398261391b565b60008060006040848603121561396157600080fd5b61396a8461391b565b9250602084013567ffffffffffffffff8082111561398757600080fd5b818601915086601f83011261399b57600080fd5b8135818111156139aa57600080fd5b8760208285010111156139bc57600080fd5b6020830194508093505050509250925092565b6000602082840312156139e157600080fd5b5035919050565b600080602083850312156139fb57600080fd5b823567ffffffffffffffff80821115613a1357600080fd5b818501915085601f830112613a2757600080fd5b813581811115613a3657600080fd5b8660208260051b8501011115613a4b57600080fd5b60209290920196919550909350505050565b803561ffff8116811461392c57600080fd5b60008060408385031215613a8257600080fd5b82359150613a9260208401613a5d565b90509250929050565b60008060408385031215613aae57600080fd5b613ab78361391b565b9150613a926020840161391b565b60008060408385031215613ad857600080fd5b613ae18361391b565b9150613a9260208401613a5d565b60008060408385031215613b0257600080fd5b613b0b8361391b565b91506020830135613b1b816138e9565b809150509250929050565b600080600060608486031215613b3b57600080fd5b8335613b46816138e9565b92506020840135613b56816138e9565b929592945050506040919091013590565b60008060408385031215613b7a57600080fd5b50508035926020909101359150565b60008060408385031215613b9c57600080fd5b613ba58361391b565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417613be057613be0613bb3565b92915050565b81810381811115613be057613be0613bb3565b60ff8181168382160190811115613be057613be0613bb3565b61ffff818116838216019080821115613c2d57613c2d613bb3565b5092915050565b80820180821115613be057613be0613bb3565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613c6f57600080fd5b5051919050565b600082613c9357634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613caa57600080fd5b8151801515811461363957600080fd5b60005b83811015613cd5578181015183820152602001613cbd565b50506000910152565b60008251613cf0818460208701613cba565b9190910192915050565b6020815260008251806020840152613d19816040850160208701613cba565b601f01601f1916919091016040019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ffeaa80020089c8e3787ba499f3b2c7d93ca8107dc6fadcbaf247e35041489f764736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,479.44 | 0.142 | $352.08 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.