More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,210 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 17102322 | 630 days ago | IN | 0 ETH | 0.00270468 | ||||
Claim | 17102018 | 630 days ago | IN | 0 ETH | 0.00360299 | ||||
Claim | 17101414 | 630 days ago | IN | 0 ETH | 0.00589624 | ||||
Claim | 17101413 | 630 days ago | IN | 0 ETH | 0.00497573 | ||||
Claim | 17101293 | 630 days ago | IN | 0 ETH | 0.00515255 | ||||
Claim | 17100637 | 630 days ago | IN | 0 ETH | 0.00396434 | ||||
Claim | 17099929 | 630 days ago | IN | 0 ETH | 0.00399182 | ||||
Claim | 17099541 | 630 days ago | IN | 0 ETH | 0.00267397 | ||||
Claim | 17099330 | 630 days ago | IN | 0 ETH | 0.01280012 | ||||
Claim | 17099238 | 630 days ago | IN | 0 ETH | 0.00228858 | ||||
Claim | 17099158 | 630 days ago | IN | 0 ETH | 0.00776687 | ||||
Claim | 17098996 | 630 days ago | IN | 0 ETH | 0.00296101 | ||||
Redeem | 17098929 | 630 days ago | IN | 0 ETH | 0.00413922 | ||||
Redeem | 17098043 | 630 days ago | IN | 0 ETH | 0.00349266 | ||||
Claim | 17097858 | 630 days ago | IN | 0 ETH | 0.01449094 | ||||
Claim | 17097646 | 630 days ago | IN | 0 ETH | 0.00447903 | ||||
Claim | 17097399 | 630 days ago | IN | 0 ETH | 0.00377796 | ||||
Claim | 17097310 | 630 days ago | IN | 0 ETH | 0.00433409 | ||||
Claim | 17097167 | 630 days ago | IN | 0 ETH | 0.00339561 | ||||
Redeem | 17097088 | 630 days ago | IN | 0 ETH | 0.00366614 | ||||
Claim | 17097024 | 630 days ago | IN | 0 ETH | 0.00788053 | ||||
Claim | 17096644 | 630 days ago | IN | 0 ETH | 0.0059054 | ||||
Claim | 17096635 | 630 days ago | IN | 0 ETH | 0.00411404 | ||||
Claim | 17096510 | 630 days ago | IN | 0 ETH | 0.0045041 | ||||
Claim | 17096445 | 630 days ago | IN | 0 ETH | 0.00315705 |
Loading...
Loading
Contract Name:
KillaCubsMinter
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "./SuperOwnable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; enum MintPhaseType { Claim, Redeem, Private, Holders, Public } struct MintPhase { MintPhaseType phaseType; uint32 start; uint32 end; address signer; } struct MintCounters { uint16 linked; uint16 batched; uint16 redeems; uint16 stakes; } struct Wallet { uint16 balance; uint16 stakes; uint16 linkedMints; uint16 batchedMints; uint16 allowlistMints; uint16 privateMints; uint16 holderMints; uint16 redeems; } interface IKillaPasses { function burn(uint256 typeId, address owner, uint256 n) external; } interface IKillaCubs { function mint(address owner, uint256[] calldata ids, bool staked) external; function mint(address owner, uint16 n, bool staked) external; function mintRedeemed(address owner, uint16 n, bool staked) external; function useAllowance( address sender, address main, uint256 n, bool holders, uint256 allowance ) external; function counters() external returns (MintCounters memory); function wallets(address) external returns (Wallet memory); } interface IERC721 { function ownerOf(uint256 tokenId) external view returns (address owner); } contract KillaCubsMinter is SuperOwnable { using ECDSA for bytes32; uint16 constant MINTABLE_SUPPLY = 8888 - 3333 - 333; uint256 public mintPrice = 0.25 ether; uint256 public publicMaxPerWallet = 3; IKillaCubs public immutable cubs; IERC721 public immutable bears; IKillaPasses public immutable passes; IERC721 public immutable kilton; IERC721 public immutable labs; mapping(MintPhaseType => MintPhase) public mintPhases; error NotAllowed(); error UnknownMintPhase(); error MintPhaseNotStarted(); error MintPhaseEnded(); error NotEnoughEth(); error Overflow(); constructor( address cubsAddress, address bearsAddress, address passesAddress, address kiltonAddress, address labsAddress, address superOwner ) SuperOwnable(superOwner) { cubs = IKillaCubs(cubsAddress); bears = IERC721(bearsAddress); passes = IKillaPasses(passesAddress); kilton = IERC721(kiltonAddress); labs = IERC721(labsAddress); } function claim(uint256[] calldata ids, bool staked) public payable { for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; if ( bears.ownerOf(id) != msg.sender && kilton.ownerOf(id) != msg.sender && labs.ownerOf(id) != msg.sender ) revert NotAllowed(); } cubs.mint(msg.sender, ids, staked); } function redeem( uint16 n, bool staked ) external checkPhase(MintPhaseType.Redeem) { passes.burn(1, msg.sender, n); cubs.mintRedeemed(msg.sender, n, staked); if (cubs.counters().redeems > 333) revert Overflow(); } function mintPrivate( uint16 n, MintPhaseType mintPhase, address mainWallet, uint256 allowance, bytes calldata signature, bool staked ) external payable checkPayment(n) checkSupply checkPhase(mintPhase) { cubs.mint(msg.sender, n, staked); cubs.useAllowance( msg.sender, mainWallet, n, mintPhase == MintPhaseType.Holders, allowance ); MintPhase memory phase = mintPhases[mintPhase]; if ( phase.signer != ECDSA .toEthSignedMessageHash( abi.encodePacked( msg.sender, mainWallet, mintPhase, allowance ) ) .recover(signature) ) revert NotAllowed(); } function mint( uint16 n, bool staked ) external payable checkPayment(n) checkPhase(MintPhaseType.Public) checkSupply { cubs.mint(msg.sender, n, staked); Wallet memory w = cubs.wallets(msg.sender); uint256 minted = w.batchedMints - (w.redeems + w.allowlistMints); if (minted > publicMaxPerWallet) revert Overflow(); } // Admin function configureMintPhases( MintPhase[] calldata phases ) external onlyOwner { for (uint256 i = 0; i < phases.length; i++) { MintPhase memory phase = phases[i]; mintPhases[phase.phaseType] = phase; } } function setMintPrice(uint256 price) external onlyOwner { mintPrice = price; } function setPublicMaxPerWallet(uint256 max) external onlyOwner { publicMaxPerWallet = max; } function withdraw(address to) external onlyOwner { if (to == address(0)) revert NotAllowed(); payable(to).transfer(address(this).balance); } // Modifiers modifier checkPayment(uint256 n) { if (msg.value != n * mintPrice) { revert NotEnoughEth(); } _; } modifier checkPhase(MintPhaseType mintPhase) { if (msg.sender != owner) { MintPhase storage phase = mintPhases[mintPhase]; uint256 ts = block.timestamp; if (phase.start == 0) revert UnknownMintPhase(); if (ts < phase.start) revert MintPhaseNotStarted(); if (phase.end != 0 && ts > phase.end) revert MintPhaseEnded(); } _; } modifier checkSupply() { _; MintCounters memory counters = cubs.counters(); if (counters.batched - counters.redeems > MINTABLE_SUPPLY) revert Overflow(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; abstract contract SuperOwnable { address public owner; address public superOwner; mapping(address => bool) authorities; error Denied(); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor(address superOwner_) { _transferOwnership(msg.sender); superOwner = superOwner_; } modifier onlyOwner() { if (msg.sender != owner && msg.sender != superOwner) revert Denied(); _; } modifier onlySuperOwner() { if (msg.sender != superOwner) revert Denied(); _; } modifier onlyAuthority() { if (!authorities[msg.sender] && msg.sender != owner) revert Denied(); _; } function transferOwnership(address addr) public virtual onlyOwner { _transferOwnership(addr); } function _transferOwnership(address addr) internal virtual { address oldOwner = owner; owner = addr; emit OwnershipTransferred(oldOwner, addr); } function setSuperOwner(address addr) public onlySuperOwner { if (addr == address(0)) revert Denied(); superOwner = addr; } function toggleAuthority(address addr, bool enabled) public onlyOwner { authorities[addr] = enabled; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"cubsAddress","type":"address"},{"internalType":"address","name":"bearsAddress","type":"address"},{"internalType":"address","name":"passesAddress","type":"address"},{"internalType":"address","name":"kiltonAddress","type":"address"},{"internalType":"address","name":"labsAddress","type":"address"},{"internalType":"address","name":"superOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Denied","type":"error"},{"inputs":[],"name":"MintPhaseEnded","type":"error"},{"inputs":[],"name":"MintPhaseNotStarted","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"NotEnoughEth","type":"error"},{"inputs":[],"name":"Overflow","type":"error"},{"inputs":[],"name":"UnknownMintPhase","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"bears","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"bool","name":"staked","type":"bool"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"enum MintPhaseType","name":"phaseType","type":"uint8"},{"internalType":"uint32","name":"start","type":"uint32"},{"internalType":"uint32","name":"end","type":"uint32"},{"internalType":"address","name":"signer","type":"address"}],"internalType":"struct MintPhase[]","name":"phases","type":"tuple[]"}],"name":"configureMintPhases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cubs","outputs":[{"internalType":"contract IKillaCubs","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kilton","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"labs","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"n","type":"uint16"},{"internalType":"bool","name":"staked","type":"bool"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"enum MintPhaseType","name":"","type":"uint8"}],"name":"mintPhases","outputs":[{"internalType":"enum MintPhaseType","name":"phaseType","type":"uint8"},{"internalType":"uint32","name":"start","type":"uint32"},{"internalType":"uint32","name":"end","type":"uint32"},{"internalType":"address","name":"signer","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"n","type":"uint16"},{"internalType":"enum MintPhaseType","name":"mintPhase","type":"uint8"},{"internalType":"address","name":"mainWallet","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bool","name":"staked","type":"bool"}],"name":"mintPrivate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"passes","outputs":[{"internalType":"contract IKillaPasses","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"n","type":"uint16"},{"internalType":"bool","name":"staked","type":"bool"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setPublicMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSuperOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"superOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"toggleAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040526703782dace9d9000060035560036004553480156200002357600080fd5b506040516200239b3803806200239b8339810160408190526200004691620000fe565b80620000523362000091565b600180546001600160a01b0319166001600160a01b039283161790559586166080525092841660a05290831660c052821660e05216610100526200017f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000f957600080fd5b919050565b60008060008060008060c087890312156200011857600080fd5b6200012387620000e1565b95506200013360208801620000e1565b94506200014360408801620000e1565b93506200015360608801620000e1565b92506200016360808801620000e1565b91506200017360a08801620000e1565b90509295509295509295565b60805160a05160c05160e0516101005161217c6200021f600039600081816101c7015261122f0152600081816103ce01526111910152600081816103870152610a700152600081816101fb01526110d2015260008181610176015281816105b2015281816106330152818161070001528181610ae901528181610b5b01528181610d4a01528181610dbc01528181610fd101526112ef015261217c6000f3fe60806040526004361061012a5760003560e01c806387dcd2b6116100ab578063c50cda121161006f578063c50cda12146103a9578063c890026b146103bc578063ed75fbe4146103f0578063f2fde38b14610410578063f4a0a52814610430578063f765f2e01461045057600080fd5b806387dcd2b6146102b45780638da5cb5b146102d4578063b0895f64146102f4578063b2169fcd1461030a578063b8ee52891461037557600080fd5b806351cff8d9116100f257806351cff8d91461021d578063520477f81461023d57806352ed55d61461025d5780635ba1aedf1461027d5780636817c76c1461029057600080fd5b806321a2b3ae1461012f57806329fa7266146101445780632f1936731461016457806333b2cee0146101b557806349a9ba31146101e9575b600080fd5b61014261013d366004611a4f565b610470565b005b34801561015057600080fd5b5061014261015f366004611a99565b6107c9565b34801561017057600080fd5b506101987f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101c157600080fd5b506101987f000000000000000000000000000000000000000000000000000000000000000081565b3480156101f557600080fd5b506101987f000000000000000000000000000000000000000000000000000000000000000081565b34801561022957600080fd5b50610142610238366004611a99565b61083d565b34801561024957600080fd5b50610142610258366004611abd565b6108e1565b34801561026957600080fd5b50610142610278366004611a4f565b610950565b61014261028b366004611aea565b610c09565b34801561029c57600080fd5b506102a660035481565b6040519081526020016101ac565b3480156102c057600080fd5b50600154610198906001600160a01b031681565b3480156102e057600080fd5b50600054610198906001600160a01b031681565b34801561030057600080fd5b506102a660045481565b34801561031657600080fd5b50610365610325366004611bad565b60056020526000908152604090205460ff81169063ffffffff6101008204811691600160281b8104909116906001600160a01b03600160481b9091041684565b6040516101ac9493929190611bde565b34801561038157600080fd5b506101987f000000000000000000000000000000000000000000000000000000000000000081565b6101426103b7366004611c2d565b61109e565b3480156103c857600080fd5b506101987f000000000000000000000000000000000000000000000000000000000000000081565b3480156103fc57600080fd5b5061014261040b366004611cb1565b611361565b34801561041c57600080fd5b5061014261042b366004611a99565b6113aa565b34801561043c57600080fd5b5061014261044b366004611cb1565b6113fa565b34801561045c57600080fd5b5061014261046b366004611cca565b611443565b8161ffff16600354816104839190611d55565b34146104a25760405163f14a42b760e01b815260040160405180910390fd5b6000546004906001600160a01b0316331461059c576000600560008360048111156104cf576104cf611bc8565b60048111156104e0576104e0611bc8565b8152602081019190915260400160009081208054909250429161010090910463ffffffff169003610524576040516312c9ad9360e11b815260040160405180910390fd5b8154610100900463ffffffff16811015610551576040516320d4c56560e01b815260040160405180910390fd5b8154600160281b900463ffffffff161580159061057b57508154600160281b900463ffffffff1681115b15610599576040516305b8f4f760e01b815260040160405180910390fd5b50505b60405162054ef760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062153bdc906105ea90339088908890600401611d6c565b600060405180830381600087803b15801561060457600080fd5b505af1158015610618573d6000803e3d6000fd5b50506040516389b08f1160e01b8152336004820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506389b08f1190602401610100604051808303816000875af1158015610686573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106aa9190611deb565b9050600081608001518260e001516106c29190611ec3565b82606001516106d19190611ee5565b61ffff1690506004548111156106fa57604051631a93c68960e11b815260040160405180910390fd5b505060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f72106336040518163ffffffff1660e01b81526004016080604051808303816000875af115801561075e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107829190611f00565b905061146661ffff168160400151826020015161079f9190611ee5565b61ffff1611156107c257604051631a93c68960e11b815260040160405180910390fd5b5050505050565b6001546001600160a01b031633146107f45760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b03811661081b5760405163e3372e2d60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480159061086357506001546001600160a01b03163314155b156108815760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0381166108a857604051631eb49d6d60e11b815260040160405180910390fd5b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156108dd573d6000803e3d6000fd5b5050565b6000546001600160a01b0316331480159061090757506001546001600160a01b03163314155b156109255760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b6000546001906001600160a01b03163314610a4a5760006005600083600481111561097d5761097d611bc8565b600481111561098e5761098e611bc8565b8152602081019190915260400160009081208054909250429161010090910463ffffffff1690036109d2576040516312c9ad9360e11b815260040160405180910390fd5b8154610100900463ffffffff168110156109ff576040516320d4c56560e01b815260040160405180910390fd5b8154600160281b900463ffffffff1615801590610a2957508154600160281b900463ffffffff1681115b15610a47576040516305b8f4f760e01b815260040160405180910390fd5b50505b604051634f752fb360e11b81526001600482015233602482015261ffff841660448201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639eea5f6690606401600060405180830381600087803b158015610abc57600080fd5b505af1158015610ad0573d6000803e3d6000fd5b50506040516375d096f360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506375d096f39150610b2490339087908790600401611d6c565b600060405180830381600087803b158015610b3e57600080fd5b505af1158015610b52573d6000803e3d6000fd5b5050505061014d7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f72106336040518163ffffffff1660e01b81526004016080604051808303816000875af1158015610bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdd9190611f00565b6040015161ffff161115610c0457604051631a93c68960e11b815260040160405180910390fd5b505050565b8661ffff1660035481610c1c9190611d55565b3414610c3b5760405163f14a42b760e01b815260040160405180910390fd5b60005487906001600160a01b03163314610d3457600060056000836004811115610c6757610c67611bc8565b6004811115610c7857610c78611bc8565b8152602081019190915260400160009081208054909250429161010090910463ffffffff169003610cbc576040516312c9ad9360e11b815260040160405180910390fd5b8154610100900463ffffffff16811015610ce9576040516320d4c56560e01b815260040160405180910390fd5b8154600160281b900463ffffffff1615801590610d1357508154600160281b900463ffffffff1681115b15610d31576040516305b8f4f760e01b815260040160405180910390fd5b50505b60405162054ef760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062153bdc90610d829033908d908890600401611d6c565b600060405180830381600087803b158015610d9c57600080fd5b505af1158015610db0573d6000803e3d6000fd5b50506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016915063659d32f1905033898c60038d6004811115610dfc57610dfc611bc8565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015261ffff90911660448401521460648201526084810189905260a401600060405180830381600087803b158015610e5e57600080fd5b505af1158015610e72573d6000803e3d6000fd5b505050506000600560008a6004811115610e8e57610e8e611bc8565b6004811115610e9f57610e9f611bc8565b8152602081019190915260409081016000208151608081019092528054829060ff166004811115610ed257610ed2611bc8565b6004811115610ee357610ee3611bc8565b81529054610100810463ffffffff908116602080850191909152600160281b8304909116604080850191909152600160481b9092046001600160a01b03166060909301929092528051601f8901839004830281018301909152878152919250610f969190889088908190840183828082843760009201919091525050604051610f909250610f7c915033908d908f908e90602001611f67565b6040516020818303038152906040526115b6565b906115f1565b6001600160a01b031681606001516001600160a01b031614610fcb57604051631eb49d6d60e11b815260040160405180910390fd5b505060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f72106336040518163ffffffff1660e01b81526004016080604051808303816000875af115801561102f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110539190611f00565b905061146661ffff16816040015182602001516110709190611ee5565b61ffff16111561109357604051631a93c68960e11b815260040160405180910390fd5b505050505050505050565b60005b828110156112d75760008484838181106110bd576110bd611fc3565b905060200201359050336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e836040518263ffffffff1660e01b815260040161111e91815260200190565b602060405180830381865afa15801561113b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115f9190611fd9565b6001600160a01b03161415801561120857506040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa1580156111d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fc9190611fd9565b6001600160a01b031614155b80156112a657506040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa158015611276573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129a9190611fd9565b6001600160a01b031614155b156112c457604051631eb49d6d60e11b815260040160405180910390fd5b50806112cf81611ff6565b9150506110a1565b5060405163a314636d60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a314636d9061132a90339087908790879060040161200f565b600060405180830381600087803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b0316331480159061138757506001546001600160a01b03163314155b156113a55760405163e3372e2d60e01b815260040160405180910390fd5b600455565b6000546001600160a01b031633148015906113d057506001546001600160a01b03163314155b156113ee5760405163e3372e2d60e01b815260040160405180910390fd5b6113f781611617565b50565b6000546001600160a01b0316331480159061142057506001546001600160a01b03163314155b1561143e5760405163e3372e2d60e01b815260040160405180910390fd5b600355565b6000546001600160a01b0316331480159061146957506001546001600160a01b03163314155b156114875760405163e3372e2d60e01b815260040160405180910390fd5b60005b81811015610c045760008383838181106114a6576114a6611fc3565b9050608002018036038101906114bc9190612072565b90508060056000836000015160048111156114d9576114d9611bc8565b60048111156114ea576114ea611bc8565b8152602081019190915260400160002081518154829060ff1916600183600481111561151857611518611bc8565b021790555060208201518154604084015160609094015168ffffffffffffffff001990911661010063ffffffff9384160268ffffffff0000000000191617600160281b9290941691909102929092177fffffff0000000000000000000000000000000000000000ffffffffffffffffff16600160481b6001600160a01b039093169290920291909117905550806115ae81611ff6565b91505061148a565b60006115c28251611667565b826040516020016115d49291906120eb565b604051602081830303815290604052805190602001209050919050565b600080600061160085856116fa565b9150915061160d8161173f565b5090505b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060006116748361188e565b600101905060008167ffffffffffffffff81111561169457611694611d93565b6040519080825280601f01601f1916602001820160405280156116be576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846116c857509392505050565b60008082516041036117305760208301516040840151606085015160001a61172487828585611966565b94509450505050611738565b506000905060025b9250929050565b600081600481111561175357611753611bc8565b0361175b5750565b600181600481111561176f5761176f611bc8565b036117c15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b60028160048111156117d5576117d5611bc8565b036118225760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016117b8565b600381600481111561183657611836611bc8565b036113f75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016117b8565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106118cd5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106118f9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061191757662386f26fc10000830492506010015b6305f5e100831061192f576305f5e100830492506008015b612710831061194357612710830492506004015b60648310611955576064830492506002015b600a83106116115760010192915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561199d5750600090506003611a21565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156119f1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a1a57600060019250925050611a21565b9150600090505b94509492505050565b61ffff811681146113f757600080fd5b80358015158114611a4a57600080fd5b919050565b60008060408385031215611a6257600080fd5b8235611a6d81611a2a565b9150611a7b60208401611a3a565b90509250929050565b6001600160a01b03811681146113f757600080fd5b600060208284031215611aab57600080fd5b8135611ab681611a84565b9392505050565b60008060408385031215611ad057600080fd5b8235611a6d81611a84565b803560058110611a4a57600080fd5b600080600080600080600060c0888a031215611b0557600080fd5b8735611b1081611a2a565b9650611b1e60208901611adb565b95506040880135611b2e81611a84565b945060608801359350608088013567ffffffffffffffff80821115611b5257600080fd5b818a0191508a601f830112611b6657600080fd5b813581811115611b7557600080fd5b8b6020828501011115611b8757600080fd5b602083019550809450505050611b9f60a08901611a3a565b905092959891949750929550565b600060208284031215611bbf57600080fd5b611ab682611adb565b634e487b7160e01b600052602160045260246000fd5b6080810160058610611c0057634e487b7160e01b600052602160045260246000fd5b94815263ffffffff93841660208201529190921660408201526001600160a01b0390911660609091015290565b600080600060408486031215611c4257600080fd5b833567ffffffffffffffff80821115611c5a57600080fd5b818601915086601f830112611c6e57600080fd5b813581811115611c7d57600080fd5b8760208260051b8501011115611c9257600080fd5b602092830195509350611ca89186019050611a3a565b90509250925092565b600060208284031215611cc357600080fd5b5035919050565b60008060208385031215611cdd57600080fd5b823567ffffffffffffffff80821115611cf557600080fd5b818501915085601f830112611d0957600080fd5b813581811115611d1857600080fd5b8660208260071b8501011115611d2d57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761161157611611611d3f565b6001600160a01b0393909316835261ffff9190911660208301521515604082015260600190565b634e487b7160e01b600052604160045260246000fd5b6040516080810167ffffffffffffffff81118282101715611dda57634e487b7160e01b600052604160045260246000fd5b60405290565b8051611a4a81611a2a565b6000610100808385031215611dff57600080fd5b6040519081019067ffffffffffffffff82118183101715611e3057634e487b7160e01b600052604160045260246000fd5b8160405283519150611e4182611a2a565b818152611e5060208501611de0565b6020820152611e6160408501611de0565b6040820152611e7260608501611de0565b6060820152611e8360808501611de0565b6080820152611e9460a08501611de0565b60a0820152611ea560c08501611de0565b60c0820152611eb660e08501611de0565b60e0820152949350505050565b61ffff818116838216019080821115611ede57611ede611d3f565b5092915050565b61ffff828116828216039080821115611ede57611ede611d3f565b600060808284031215611f1257600080fd5b611f1a611da9565b8251611f2581611a2a565b81526020830151611f3581611a2a565b60208201526040830151611f4881611a2a565b60408201526060830151611f5b81611a2a565b60608201529392505050565b60006bffffffffffffffffffffffff19808760601b168352808660601b1660148401525060058410611fa957634e487b7160e01b600052602160045260246000fd5b5060f89290921b6028830152602982015260490192915050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611feb57600080fd5b8151611ab681611a84565b60006001820161200857612008611d3f565b5060010190565b6001600160a01b0385168152606060208201819052810183905260006001600160fb1b0384111561203f57600080fd5b8360051b80866080850137921515604083015250016080019392505050565b803563ffffffff81168114611a4a57600080fd5b60006080828403121561208457600080fd5b61208c611da9565b61209583611adb565b81526120a36020840161205e565b60208201526120b46040840161205e565b60408201526060830135611f5b81611a84565b60005b838110156120e25781810151838201526020016120ca565b50506000910152565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000835161212381601a8501602088016120c7565b83519083019061213a81601a8401602088016120c7565b01601a0194935050505056fea26469706673582212209fcde4e9863032f42e34b52b3b6728ea0ac06239aa58156fd74849b594ca473764736f6c63430008130033000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c50000000000000000000000009311ac6b45e22e48c6f7acc9beefdde3fe994ec000000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a880000000000000000000000001bf52762f9e486d8c373c866f977134d7331c5a5
Deployed Bytecode
0x60806040526004361061012a5760003560e01c806387dcd2b6116100ab578063c50cda121161006f578063c50cda12146103a9578063c890026b146103bc578063ed75fbe4146103f0578063f2fde38b14610410578063f4a0a52814610430578063f765f2e01461045057600080fd5b806387dcd2b6146102b45780638da5cb5b146102d4578063b0895f64146102f4578063b2169fcd1461030a578063b8ee52891461037557600080fd5b806351cff8d9116100f257806351cff8d91461021d578063520477f81461023d57806352ed55d61461025d5780635ba1aedf1461027d5780636817c76c1461029057600080fd5b806321a2b3ae1461012f57806329fa7266146101445780632f1936731461016457806333b2cee0146101b557806349a9ba31146101e9575b600080fd5b61014261013d366004611a4f565b610470565b005b34801561015057600080fd5b5061014261015f366004611a99565b6107c9565b34801561017057600080fd5b506101987f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d812781565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101c157600080fd5b506101987f0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a8881565b3480156101f557600080fd5b506101987f000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c581565b34801561022957600080fd5b50610142610238366004611a99565b61083d565b34801561024957600080fd5b50610142610258366004611abd565b6108e1565b34801561026957600080fd5b50610142610278366004611a4f565b610950565b61014261028b366004611aea565b610c09565b34801561029c57600080fd5b506102a660035481565b6040519081526020016101ac565b3480156102c057600080fd5b50600154610198906001600160a01b031681565b3480156102e057600080fd5b50600054610198906001600160a01b031681565b34801561030057600080fd5b506102a660045481565b34801561031657600080fd5b50610365610325366004611bad565b60056020526000908152604090205460ff81169063ffffffff6101008204811691600160281b8104909116906001600160a01b03600160481b9091041684565b6040516101ac9493929190611bde565b34801561038157600080fd5b506101987f0000000000000000000000009311ac6b45e22e48c6f7acc9beefdde3fe994ec081565b6101426103b7366004611c2d565b61109e565b3480156103c857600080fd5b506101987f00000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f81565b3480156103fc57600080fd5b5061014261040b366004611cb1565b611361565b34801561041c57600080fd5b5061014261042b366004611a99565b6113aa565b34801561043c57600080fd5b5061014261044b366004611cb1565b6113fa565b34801561045c57600080fd5b5061014261046b366004611cca565b611443565b8161ffff16600354816104839190611d55565b34146104a25760405163f14a42b760e01b815260040160405180910390fd5b6000546004906001600160a01b0316331461059c576000600560008360048111156104cf576104cf611bc8565b60048111156104e0576104e0611bc8565b8152602081019190915260400160009081208054909250429161010090910463ffffffff169003610524576040516312c9ad9360e11b815260040160405180910390fd5b8154610100900463ffffffff16811015610551576040516320d4c56560e01b815260040160405180910390fd5b8154600160281b900463ffffffff161580159061057b57508154600160281b900463ffffffff1681115b15610599576040516305b8f4f760e01b815260040160405180910390fd5b50505b60405162054ef760e21b81526001600160a01b037f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127169062153bdc906105ea90339088908890600401611d6c565b600060405180830381600087803b15801561060457600080fd5b505af1158015610618573d6000803e3d6000fd5b50506040516389b08f1160e01b8152336004820152600092507f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d81276001600160a01b031691506389b08f1190602401610100604051808303816000875af1158015610686573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106aa9190611deb565b9050600081608001518260e001516106c29190611ec3565b82606001516106d19190611ee5565b61ffff1690506004548111156106fa57604051631a93c68960e11b815260040160405180910390fd5b505060007f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d81276001600160a01b031663f72106336040518163ffffffff1660e01b81526004016080604051808303816000875af115801561075e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107829190611f00565b905061146661ffff168160400151826020015161079f9190611ee5565b61ffff1611156107c257604051631a93c68960e11b815260040160405180910390fd5b5050505050565b6001546001600160a01b031633146107f45760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b03811661081b5760405163e3372e2d60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480159061086357506001546001600160a01b03163314155b156108815760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b0381166108a857604051631eb49d6d60e11b815260040160405180910390fd5b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156108dd573d6000803e3d6000fd5b5050565b6000546001600160a01b0316331480159061090757506001546001600160a01b03163314155b156109255760405163e3372e2d60e01b815260040160405180910390fd5b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b6000546001906001600160a01b03163314610a4a5760006005600083600481111561097d5761097d611bc8565b600481111561098e5761098e611bc8565b8152602081019190915260400160009081208054909250429161010090910463ffffffff1690036109d2576040516312c9ad9360e11b815260040160405180910390fd5b8154610100900463ffffffff168110156109ff576040516320d4c56560e01b815260040160405180910390fd5b8154600160281b900463ffffffff1615801590610a2957508154600160281b900463ffffffff1681115b15610a47576040516305b8f4f760e01b815260040160405180910390fd5b50505b604051634f752fb360e11b81526001600482015233602482015261ffff841660448201527f0000000000000000000000009311ac6b45e22e48c6f7acc9beefdde3fe994ec06001600160a01b031690639eea5f6690606401600060405180830381600087803b158015610abc57600080fd5b505af1158015610ad0573d6000803e3d6000fd5b50506040516375d096f360e01b81526001600160a01b037f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d81271692506375d096f39150610b2490339087908790600401611d6c565b600060405180830381600087803b158015610b3e57600080fd5b505af1158015610b52573d6000803e3d6000fd5b5050505061014d7f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d81276001600160a01b031663f72106336040518163ffffffff1660e01b81526004016080604051808303816000875af1158015610bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdd9190611f00565b6040015161ffff161115610c0457604051631a93c68960e11b815260040160405180910390fd5b505050565b8661ffff1660035481610c1c9190611d55565b3414610c3b5760405163f14a42b760e01b815260040160405180910390fd5b60005487906001600160a01b03163314610d3457600060056000836004811115610c6757610c67611bc8565b6004811115610c7857610c78611bc8565b8152602081019190915260400160009081208054909250429161010090910463ffffffff169003610cbc576040516312c9ad9360e11b815260040160405180910390fd5b8154610100900463ffffffff16811015610ce9576040516320d4c56560e01b815260040160405180910390fd5b8154600160281b900463ffffffff1615801590610d1357508154600160281b900463ffffffff1681115b15610d31576040516305b8f4f760e01b815260040160405180910390fd5b50505b60405162054ef760e21b81526001600160a01b037f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127169062153bdc90610d829033908d908890600401611d6c565b600060405180830381600087803b158015610d9c57600080fd5b505af1158015610db0573d6000803e3d6000fd5b50506001600160a01b037f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d812716915063659d32f1905033898c60038d6004811115610dfc57610dfc611bc8565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015261ffff90911660448401521460648201526084810189905260a401600060405180830381600087803b158015610e5e57600080fd5b505af1158015610e72573d6000803e3d6000fd5b505050506000600560008a6004811115610e8e57610e8e611bc8565b6004811115610e9f57610e9f611bc8565b8152602081019190915260409081016000208151608081019092528054829060ff166004811115610ed257610ed2611bc8565b6004811115610ee357610ee3611bc8565b81529054610100810463ffffffff908116602080850191909152600160281b8304909116604080850191909152600160481b9092046001600160a01b03166060909301929092528051601f8901839004830281018301909152878152919250610f969190889088908190840183828082843760009201919091525050604051610f909250610f7c915033908d908f908e90602001611f67565b6040516020818303038152906040526115b6565b906115f1565b6001600160a01b031681606001516001600160a01b031614610fcb57604051631eb49d6d60e11b815260040160405180910390fd5b505060007f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d81276001600160a01b031663f72106336040518163ffffffff1660e01b81526004016080604051808303816000875af115801561102f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110539190611f00565b905061146661ffff16816040015182602001516110709190611ee5565b61ffff16111561109357604051631a93c68960e11b815260040160405180910390fd5b505050505050505050565b60005b828110156112d75760008484838181106110bd576110bd611fc3565b905060200201359050336001600160a01b03167f000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c56001600160a01b0316636352211e836040518263ffffffff1660e01b815260040161111e91815260200190565b602060405180830381865afa15801561113b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115f9190611fd9565b6001600160a01b03161415801561120857506040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f1690636352211e90602401602060405180830381865afa1580156111d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fc9190611fd9565b6001600160a01b031614155b80156112a657506040516331a9108f60e11b81526004810182905233906001600160a01b037f0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a881690636352211e90602401602060405180830381865afa158015611276573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129a9190611fd9565b6001600160a01b031614155b156112c457604051631eb49d6d60e11b815260040160405180910390fd5b50806112cf81611ff6565b9150506110a1565b5060405163a314636d60e01b81526001600160a01b037f000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127169063a314636d9061132a90339087908790879060040161200f565b600060405180830381600087803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b0316331480159061138757506001546001600160a01b03163314155b156113a55760405163e3372e2d60e01b815260040160405180910390fd5b600455565b6000546001600160a01b031633148015906113d057506001546001600160a01b03163314155b156113ee5760405163e3372e2d60e01b815260040160405180910390fd5b6113f781611617565b50565b6000546001600160a01b0316331480159061142057506001546001600160a01b03163314155b1561143e5760405163e3372e2d60e01b815260040160405180910390fd5b600355565b6000546001600160a01b0316331480159061146957506001546001600160a01b03163314155b156114875760405163e3372e2d60e01b815260040160405180910390fd5b60005b81811015610c045760008383838181106114a6576114a6611fc3565b9050608002018036038101906114bc9190612072565b90508060056000836000015160048111156114d9576114d9611bc8565b60048111156114ea576114ea611bc8565b8152602081019190915260400160002081518154829060ff1916600183600481111561151857611518611bc8565b021790555060208201518154604084015160609094015168ffffffffffffffff001990911661010063ffffffff9384160268ffffffff0000000000191617600160281b9290941691909102929092177fffffff0000000000000000000000000000000000000000ffffffffffffffffff16600160481b6001600160a01b039093169290920291909117905550806115ae81611ff6565b91505061148a565b60006115c28251611667565b826040516020016115d49291906120eb565b604051602081830303815290604052805190602001209050919050565b600080600061160085856116fa565b9150915061160d8161173f565b5090505b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060006116748361188e565b600101905060008167ffffffffffffffff81111561169457611694611d93565b6040519080825280601f01601f1916602001820160405280156116be576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846116c857509392505050565b60008082516041036117305760208301516040840151606085015160001a61172487828585611966565b94509450505050611738565b506000905060025b9250929050565b600081600481111561175357611753611bc8565b0361175b5750565b600181600481111561176f5761176f611bc8565b036117c15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b60028160048111156117d5576117d5611bc8565b036118225760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016117b8565b600381600481111561183657611836611bc8565b036113f75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016117b8565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106118cd5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106118f9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061191757662386f26fc10000830492506010015b6305f5e100831061192f576305f5e100830492506008015b612710831061194357612710830492506004015b60648310611955576064830492506002015b600a83106116115760010192915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561199d5750600090506003611a21565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156119f1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a1a57600060019250925050611a21565b9150600090505b94509492505050565b61ffff811681146113f757600080fd5b80358015158114611a4a57600080fd5b919050565b60008060408385031215611a6257600080fd5b8235611a6d81611a2a565b9150611a7b60208401611a3a565b90509250929050565b6001600160a01b03811681146113f757600080fd5b600060208284031215611aab57600080fd5b8135611ab681611a84565b9392505050565b60008060408385031215611ad057600080fd5b8235611a6d81611a84565b803560058110611a4a57600080fd5b600080600080600080600060c0888a031215611b0557600080fd5b8735611b1081611a2a565b9650611b1e60208901611adb565b95506040880135611b2e81611a84565b945060608801359350608088013567ffffffffffffffff80821115611b5257600080fd5b818a0191508a601f830112611b6657600080fd5b813581811115611b7557600080fd5b8b6020828501011115611b8757600080fd5b602083019550809450505050611b9f60a08901611a3a565b905092959891949750929550565b600060208284031215611bbf57600080fd5b611ab682611adb565b634e487b7160e01b600052602160045260246000fd5b6080810160058610611c0057634e487b7160e01b600052602160045260246000fd5b94815263ffffffff93841660208201529190921660408201526001600160a01b0390911660609091015290565b600080600060408486031215611c4257600080fd5b833567ffffffffffffffff80821115611c5a57600080fd5b818601915086601f830112611c6e57600080fd5b813581811115611c7d57600080fd5b8760208260051b8501011115611c9257600080fd5b602092830195509350611ca89186019050611a3a565b90509250925092565b600060208284031215611cc357600080fd5b5035919050565b60008060208385031215611cdd57600080fd5b823567ffffffffffffffff80821115611cf557600080fd5b818501915085601f830112611d0957600080fd5b813581811115611d1857600080fd5b8660208260071b8501011115611d2d57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761161157611611611d3f565b6001600160a01b0393909316835261ffff9190911660208301521515604082015260600190565b634e487b7160e01b600052604160045260246000fd5b6040516080810167ffffffffffffffff81118282101715611dda57634e487b7160e01b600052604160045260246000fd5b60405290565b8051611a4a81611a2a565b6000610100808385031215611dff57600080fd5b6040519081019067ffffffffffffffff82118183101715611e3057634e487b7160e01b600052604160045260246000fd5b8160405283519150611e4182611a2a565b818152611e5060208501611de0565b6020820152611e6160408501611de0565b6040820152611e7260608501611de0565b6060820152611e8360808501611de0565b6080820152611e9460a08501611de0565b60a0820152611ea560c08501611de0565b60c0820152611eb660e08501611de0565b60e0820152949350505050565b61ffff818116838216019080821115611ede57611ede611d3f565b5092915050565b61ffff828116828216039080821115611ede57611ede611d3f565b600060808284031215611f1257600080fd5b611f1a611da9565b8251611f2581611a2a565b81526020830151611f3581611a2a565b60208201526040830151611f4881611a2a565b60408201526060830151611f5b81611a2a565b60608201529392505050565b60006bffffffffffffffffffffffff19808760601b168352808660601b1660148401525060058410611fa957634e487b7160e01b600052602160045260246000fd5b5060f89290921b6028830152602982015260490192915050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611feb57600080fd5b8151611ab681611a84565b60006001820161200857612008611d3f565b5060010190565b6001600160a01b0385168152606060208201819052810183905260006001600160fb1b0384111561203f57600080fd5b8360051b80866080850137921515604083015250016080019392505050565b803563ffffffff81168114611a4a57600080fd5b60006080828403121561208457600080fd5b61208c611da9565b61209583611adb565b81526120a36020840161205e565b60208201526120b46040840161205e565b60408201526060830135611f5b81611a84565b60005b838110156120e25781810151838201526020016120ca565b50506000910152565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000835161212381601a8501602088016120c7565b83519083019061213a81601a8401602088016120c7565b01601a0194935050505056fea26469706673582212209fcde4e9863032f42e34b52b3b6728ea0ac06239aa58156fd74849b594ca473764736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c50000000000000000000000009311ac6b45e22e48c6f7acc9beefdde3fe994ec000000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a880000000000000000000000001bf52762f9e486d8c373c866f977134d7331c5a5
-----Decoded View---------------
Arg [0] : cubsAddress (address): 0xAC395C4f5730C8d9246a46004E9Ee9D06B8D8127
Arg [1] : bearsAddress (address): 0xc99c679C50033Bbc5321EB88752E89a93e9e83C5
Arg [2] : passesAddress (address): 0x9311aC6b45e22e48C6f7AcC9BeEFDDE3fe994Ec0
Arg [3] : kiltonAddress (address): 0x01621C6180d8AdFad5B0c8f69d7D4ABf49c7868F
Arg [4] : labsAddress (address): 0x0a1730279B86a00C7214Abc624f19261F8Fd9a88
Arg [5] : superOwner (address): 0x1Bf52762F9E486d8c373c866F977134D7331C5a5
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127
Arg [1] : 000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c5
Arg [2] : 0000000000000000000000009311ac6b45e22e48c6f7acc9beefdde3fe994ec0
Arg [3] : 00000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f
Arg [4] : 0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a88
Arg [5] : 0000000000000000000000001bf52762f9e486d8c373c866f977134d7331c5a5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.