Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 35 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Register Adverti... | 18389392 | 471 days ago | IN | 0 ETH | 0.00057903 | ||||
Register Publish... | 18389383 | 471 days ago | IN | 0 ETH | 0.0005835 | ||||
Register Publish... | 18381909 | 472 days ago | IN | 0 ETH | 0.00044891 | ||||
Register Adverti... | 18371650 | 474 days ago | IN | 0 ETH | 0.00091631 | ||||
Register Adverti... | 18368666 | 474 days ago | IN | 0 ETH | 0.00056688 | ||||
Register Adverti... | 18367996 | 474 days ago | IN | 0 ETH | 0.00045008 | ||||
Register Adverti... | 18363814 | 475 days ago | IN | 0 ETH | 0.00095101 | ||||
Register Adverti... | 18344176 | 478 days ago | IN | 0 ETH | 0.00064159 | ||||
Register Publish... | 18340416 | 478 days ago | IN | 0 ETH | 0.0004336 | ||||
Register Adverti... | 18340414 | 478 days ago | IN | 0 ETH | 0.00039812 | ||||
Register Adverti... | 18337421 | 478 days ago | IN | 0 ETH | 0.00041777 | ||||
Register Publish... | 18336466 | 479 days ago | IN | 0 ETH | 0.00050776 | ||||
Register Publish... | 18328789 | 480 days ago | IN | 0 ETH | 0.00065126 | ||||
Register Publish... | 18325458 | 480 days ago | IN | 0 ETH | 0.00057445 | ||||
Register Publish... | 18325303 | 480 days ago | IN | 0 ETH | 0.00054665 | ||||
Register Publish... | 18321547 | 481 days ago | IN | 0 ETH | 0.00082822 | ||||
Register Publish... | 18319324 | 481 days ago | IN | 0 ETH | 0.00065126 | ||||
Register Adverti... | 18317353 | 481 days ago | IN | 0 ETH | 0.000444 | ||||
Register Publish... | 18317293 | 481 days ago | IN | 0 ETH | 0.00068237 | ||||
Register Adverti... | 18317189 | 481 days ago | IN | 0 ETH | 0.00041155 | ||||
Register Publish... | 18314991 | 482 days ago | IN | 0 ETH | 0.00048399 | ||||
Register Adverti... | 18314841 | 482 days ago | IN | 0 ETH | 0.0006565 | ||||
Register Adverti... | 18314795 | 482 days ago | IN | 0 ETH | 0.00072774 | ||||
Register Publish... | 18314718 | 482 days ago | IN | 0 ETH | 0.00119457 | ||||
Register Publish... | 18314709 | 482 days ago | IN | 0 ETH | 0.00113396 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TyrionRegistry
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-10-09 */ // Sources flattened with hardhat v2.17.3 https://hardhat.org // SPDX-License-Identifier: GPL AND MIT // File @openzeppelin/contracts/utils/[email protected] // 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; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File contracts/TyrionRegistry.sol pragma solidity ^0.8.9; struct Advertiser { uint256 id; address wallet; uint256 balance; uint256 referrer; } struct Publisher { uint256 id; address wallet; uint256 balance; uint256 referrer; } struct Referrer { uint256 id; address wallet; uint256 balance; } contract TyrionRegistry is Ownable { using SafeMath for uint256; mapping(uint256 => Advertiser) public advertisers; mapping(uint256 => Publisher) public publishers; mapping(uint256 => Referrer) public referrers; uint256 public nextAdvertiserId = 1; uint256 public nextPublisherId = 1; uint256 public nextReferrerId = 1; address public brokerAddress; event RegisteredAdvertiser(uint256 indexed advertiserId, address wallet, uint256 indexed referrer); event RegisteredPublisher(uint256 indexed publisherId, address wallet, uint256 indexed referrer); event RegisteredReferrer(uint256 indexed referrerId, address wallet); modifier onlyOwnerOrBroker() { require(owner() == _msgSender() || brokerAddress == _msgSender(), "Caller is not the owner or broker"); _; } function setBrokerAddress(address _brokerAddress) external onlyOwner { brokerAddress = _brokerAddress; } function registerAdvertiser(address advertiserWallet, uint256 referrerId) external returns (uint256 advertiserId) { advertiserId = nextAdvertiserId; advertisers[advertiserId] = Advertiser({ id: advertiserId, wallet: advertiserWallet, balance: 0, referrer: referrerId }); emit RegisteredAdvertiser(advertiserId, advertiserWallet, referrerId); nextAdvertiserId++; } function registerPublisher(address publisherWallet, uint256 referrerId) external returns (uint256 publisherId) { publisherId = nextPublisherId; publishers[publisherId] = Publisher({ id: publisherId, wallet: publisherWallet, balance: 0, referrer: referrerId }); emit RegisteredPublisher(publisherId, publisherWallet, referrerId); nextPublisherId++; } function registerReferrer(address referrerWallet) external returns (uint256 referrerId) { referrerId = nextReferrerId; referrers[nextReferrerId] = Referrer({ id: nextReferrerId, wallet: referrerWallet, balance: 0 }); emit RegisteredReferrer(nextReferrerId, referrerWallet); nextReferrerId++; } function modifyPublisherBalance(uint256 publisherId, int256 delta) external onlyOwnerOrBroker { if (delta > 0) { publishers[publisherId].balance += uint256(delta); } else if (delta < 0) { publishers[publisherId].balance -= uint256(-delta); } } function modifyAdvertiserBalance(uint256 advertiserId, int256 delta) external onlyOwnerOrBroker { if (delta > 0) { advertisers[advertiserId].balance += uint256(delta); } else if (delta < 0) { advertisers[advertiserId].balance -= uint256(-delta); } } function modifyReferrerBalance(uint256 referrerId, int256 delta) external onlyOwnerOrBroker { if (delta > 0) { referrers[referrerId].balance += uint256(delta); } else if (delta < 0) { referrers[referrerId].balance -= uint256(-delta); } } function getAdvertiserById(uint256 _advertiserId) external view returns (Advertiser memory) { return advertisers[_advertiserId]; } function getPublisherById(uint256 _publisherId) external view returns (Publisher memory) { return publishers[_publisherId]; } function getReferrerById(uint256 _referrerId) external view returns (Referrer memory) { return referrers[_referrerId]; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"uint256","name":"advertiserId","type":"uint256"},{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":true,"internalType":"uint256","name":"referrer","type":"uint256"}],"name":"RegisteredAdvertiser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"publisherId","type":"uint256"},{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":true,"internalType":"uint256","name":"referrer","type":"uint256"}],"name":"RegisteredPublisher","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"referrerId","type":"uint256"},{"indexed":false,"internalType":"address","name":"wallet","type":"address"}],"name":"RegisteredReferrer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"advertisers","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"referrer","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brokerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_advertiserId","type":"uint256"}],"name":"getAdvertiserById","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"referrer","type":"uint256"}],"internalType":"struct Advertiser","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publisherId","type":"uint256"}],"name":"getPublisherById","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"referrer","type":"uint256"}],"internalType":"struct Publisher","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_referrerId","type":"uint256"}],"name":"getReferrerById","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"}],"internalType":"struct Referrer","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"advertiserId","type":"uint256"},{"internalType":"int256","name":"delta","type":"int256"}],"name":"modifyAdvertiserBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publisherId","type":"uint256"},{"internalType":"int256","name":"delta","type":"int256"}],"name":"modifyPublisherBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"referrerId","type":"uint256"},{"internalType":"int256","name":"delta","type":"int256"}],"name":"modifyReferrerBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nextAdvertiserId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextPublisherId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextReferrerId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"publishers","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"referrer","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"referrers","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"advertiserWallet","type":"address"},{"internalType":"uint256","name":"referrerId","type":"uint256"}],"name":"registerAdvertiser","outputs":[{"internalType":"uint256","name":"advertiserId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"publisherWallet","type":"address"},{"internalType":"uint256","name":"referrerId","type":"uint256"}],"name":"registerPublisher","outputs":[{"internalType":"uint256","name":"publisherId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"referrerWallet","type":"address"}],"name":"registerReferrer","outputs":[{"internalType":"uint256","name":"referrerId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_brokerAddress","type":"address"}],"name":"setBrokerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260016004556001600555600160065534801561001f57600080fd5b506100293361002e565b61007e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c578061008d6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806387067eee116100ad578063baf1922811610071578063baf19228146102d0578063e962c4d714610338578063ef9762311461034b578063f2fde38b1461035e578063ff060fbd1461037157600080fd5b806387067eee146102705780638da5cb5b146102905780639ea7685a146102a1578063aea54142146102b4578063b07cdbdc146102bd57600080fd5b80635089f796116100f45780635089f7961461020457806358b112231461022f578063715018a614610242578063722990b31461024a5780637cd1d5041461025d57600080fd5b806301c7224f146101315780631f2721781461019157806320c05ef9146101cf57806333c051f5146101e65780633a36dc3e146101ef575b600080fd5b61016961013f366004610a96565b60036020526000908152604090208054600182015460029092015490916001600160a01b03169083565b604080519384526001600160a01b039092166020840152908201526060015b60405180910390f35b6101a461019f366004610a96565b6103b1565b60408051825181526020808401516001600160a01b0316908201529181015190820152606001610188565b6101d860065481565b604051908152602001610188565b6101d860055481565b6102026101fd366004610aaf565b610420565b005b600754610217906001600160a01b031681565b6040516001600160a01b039091168152602001610188565b6101d861023d366004610aed565b6104da565b610202610599565b610202610258366004610aaf565b6105ad565b61020261026b366004610b17565b610649565b61028361027e366004610a96565b610673565b6040516101889190610b39565b6000546001600160a01b0316610217565b6101d86102af366004610b17565b6106f4565b6101d860045481565b6102026102cb366004610aaf565b6107a4565b6103106102de366004610a96565b600160208190526000918252604090912080549181015460028201546003909201546001600160a01b03909116919084565b604080519485526001600160a01b039093166020850152918301526060820152608001610188565b6101d8610346366004610aed565b610840565b610283610359366004610a96565b6108f4565b61020261036c366004610b17565b610973565b61031061037f366004610a96565b6002602081905260009182526040909120805460018201549282015460039092015490926001600160a01b0316919084565b6103de60405180606001604052806000815260200160006001600160a01b03168152602001600081525090565b5060009081526003602090815260409182902082516060810184528154815260018201546001600160a01b031692810192909252600201549181019190915290565b6000546001600160a01b031633148061044357506007546001600160a01b031633145b6104685760405162461bcd60e51b815260040161045f90610b6f565b60405180910390fd5b600081131561049d5760008281526001602052604081206002018054839290610492908490610bc6565b909155506104d69050565b60008112156104d6576104af81610bd9565b600083815260016020526040812060020180549091906104d0908490610bf5565b90915550505b5050565b600454604080516080810182528281526001600160a01b0385811660208084018281526000858701818152606087018a815289835260018086529289902097518855925191870180546001600160a01b03191692909616919091179094559251600285015591516003909301929092559151908152839183917fe354a6ac1e5595dd9ad46b4d30cf83825f4978899f6de428959d7cc0551dd07f910160405180910390a36004805490600061058e83610c08565b919050555092915050565b6105a16109ec565b6105ab6000610a46565b565b6000546001600160a01b03163314806105d057506007546001600160a01b031633145b6105ec5760405162461bcd60e51b815260040161045f90610b6f565b60008113156106165760008281526003602052604081206002018054839290610492908490610bc6565b60008112156104d65761062881610bd9565b600083815260036020526040812060020180549091906104d0908490610bf5565b6106516109ec565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6106a760405180608001604052806000815260200160006001600160a01b0316815260200160008152602001600081525090565b50600090815260016020818152604092839020835160808101855281548152928101546001600160a01b031691830191909152600281015492820192909252600390910154606082015290565b60068054604080516060810182528281526001600160a01b038581166020808401828152600085870181815288825260038452908790209551865590516001860180546001600160a01b0319169190951617909355915160029093019290925593549151908152919290917fd33e0a3ab228f8fecebfe292bba928f1563c3c5bc5c0ede6f074ff7b291f9dd5910160405180910390a26006805490600061079a83610c08565b9190505550919050565b6000546001600160a01b03163314806107c757506007546001600160a01b031633145b6107e35760405162461bcd60e51b815260040161045f90610b6f565b600081131561080d5760008281526002602081905260408220018054839290610492908490610bc6565b60008112156104d65761081f81610bd9565b600083815260026020819052604082200180549091906104d0908490610bf5565b600554604080516080810182528281526001600160a01b0385811660208084018281526000858701818152606087018a81528983526002808652928990209751885592516001880180546001600160a01b031916919097161790955593519385019390935591516003909301929092559151908152839183917f378cee3b96f48dd5c391476cf3378efa0b4e98095b3789f5ced7c299e26b1198910160405180910390a36005805490600061058e83610c08565b61092860405180608001604052806000815260200160006001600160a01b0316815260200160008152602001600081525090565b5060009081526002602081815260409283902083516080810185528154815260018201546001600160a01b031692810192909252918201549281019290925260030154606082015290565b61097b6109ec565b6001600160a01b0381166109e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161045f565b6109e981610a46565b50565b6000546001600160a01b031633146105ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610aa857600080fd5b5035919050565b60008060408385031215610ac257600080fd5b50508035926020909101359150565b80356001600160a01b0381168114610ae857600080fd5b919050565b60008060408385031215610b0057600080fd5b610b0983610ad1565b946020939093013593505050565b600060208284031215610b2957600080fd5b610b3282610ad1565b9392505050565b815181526020808301516001600160a01b0316908201526040808301519082015260608083015190820152608081015b92915050565b60208082526021908201527f43616c6c6572206973206e6f7420746865206f776e6572206f722062726f6b656040820152603960f91b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b6957610b69610bb0565b6000600160ff1b8201610bee57610bee610bb0565b5060000390565b81810381811115610b6957610b69610bb0565b600060018201610c1a57610c1a610bb0565b506001019056fea2646970667358221220f974d35bb9a65f4b4825b0241dbfbbb18dd6346c01f7649af66d4e356c14f11964736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806387067eee116100ad578063baf1922811610071578063baf19228146102d0578063e962c4d714610338578063ef9762311461034b578063f2fde38b1461035e578063ff060fbd1461037157600080fd5b806387067eee146102705780638da5cb5b146102905780639ea7685a146102a1578063aea54142146102b4578063b07cdbdc146102bd57600080fd5b80635089f796116100f45780635089f7961461020457806358b112231461022f578063715018a614610242578063722990b31461024a5780637cd1d5041461025d57600080fd5b806301c7224f146101315780631f2721781461019157806320c05ef9146101cf57806333c051f5146101e65780633a36dc3e146101ef575b600080fd5b61016961013f366004610a96565b60036020526000908152604090208054600182015460029092015490916001600160a01b03169083565b604080519384526001600160a01b039092166020840152908201526060015b60405180910390f35b6101a461019f366004610a96565b6103b1565b60408051825181526020808401516001600160a01b0316908201529181015190820152606001610188565b6101d860065481565b604051908152602001610188565b6101d860055481565b6102026101fd366004610aaf565b610420565b005b600754610217906001600160a01b031681565b6040516001600160a01b039091168152602001610188565b6101d861023d366004610aed565b6104da565b610202610599565b610202610258366004610aaf565b6105ad565b61020261026b366004610b17565b610649565b61028361027e366004610a96565b610673565b6040516101889190610b39565b6000546001600160a01b0316610217565b6101d86102af366004610b17565b6106f4565b6101d860045481565b6102026102cb366004610aaf565b6107a4565b6103106102de366004610a96565b600160208190526000918252604090912080549181015460028201546003909201546001600160a01b03909116919084565b604080519485526001600160a01b039093166020850152918301526060820152608001610188565b6101d8610346366004610aed565b610840565b610283610359366004610a96565b6108f4565b61020261036c366004610b17565b610973565b61031061037f366004610a96565b6002602081905260009182526040909120805460018201549282015460039092015490926001600160a01b0316919084565b6103de60405180606001604052806000815260200160006001600160a01b03168152602001600081525090565b5060009081526003602090815260409182902082516060810184528154815260018201546001600160a01b031692810192909252600201549181019190915290565b6000546001600160a01b031633148061044357506007546001600160a01b031633145b6104685760405162461bcd60e51b815260040161045f90610b6f565b60405180910390fd5b600081131561049d5760008281526001602052604081206002018054839290610492908490610bc6565b909155506104d69050565b60008112156104d6576104af81610bd9565b600083815260016020526040812060020180549091906104d0908490610bf5565b90915550505b5050565b600454604080516080810182528281526001600160a01b0385811660208084018281526000858701818152606087018a815289835260018086529289902097518855925191870180546001600160a01b03191692909616919091179094559251600285015591516003909301929092559151908152839183917fe354a6ac1e5595dd9ad46b4d30cf83825f4978899f6de428959d7cc0551dd07f910160405180910390a36004805490600061058e83610c08565b919050555092915050565b6105a16109ec565b6105ab6000610a46565b565b6000546001600160a01b03163314806105d057506007546001600160a01b031633145b6105ec5760405162461bcd60e51b815260040161045f90610b6f565b60008113156106165760008281526003602052604081206002018054839290610492908490610bc6565b60008112156104d65761062881610bd9565b600083815260036020526040812060020180549091906104d0908490610bf5565b6106516109ec565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6106a760405180608001604052806000815260200160006001600160a01b0316815260200160008152602001600081525090565b50600090815260016020818152604092839020835160808101855281548152928101546001600160a01b031691830191909152600281015492820192909252600390910154606082015290565b60068054604080516060810182528281526001600160a01b038581166020808401828152600085870181815288825260038452908790209551865590516001860180546001600160a01b0319169190951617909355915160029093019290925593549151908152919290917fd33e0a3ab228f8fecebfe292bba928f1563c3c5bc5c0ede6f074ff7b291f9dd5910160405180910390a26006805490600061079a83610c08565b9190505550919050565b6000546001600160a01b03163314806107c757506007546001600160a01b031633145b6107e35760405162461bcd60e51b815260040161045f90610b6f565b600081131561080d5760008281526002602081905260408220018054839290610492908490610bc6565b60008112156104d65761081f81610bd9565b600083815260026020819052604082200180549091906104d0908490610bf5565b600554604080516080810182528281526001600160a01b0385811660208084018281526000858701818152606087018a81528983526002808652928990209751885592516001880180546001600160a01b031916919097161790955593519385019390935591516003909301929092559151908152839183917f378cee3b96f48dd5c391476cf3378efa0b4e98095b3789f5ced7c299e26b1198910160405180910390a36005805490600061058e83610c08565b61092860405180608001604052806000815260200160006001600160a01b0316815260200160008152602001600081525090565b5060009081526002602081815260409283902083516080810185528154815260018201546001600160a01b031692810192909252918201549281019290925260030154606082015290565b61097b6109ec565b6001600160a01b0381166109e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161045f565b6109e981610a46565b50565b6000546001600160a01b031633146105ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161045f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610aa857600080fd5b5035919050565b60008060408385031215610ac257600080fd5b50508035926020909101359150565b80356001600160a01b0381168114610ae857600080fd5b919050565b60008060408385031215610b0057600080fd5b610b0983610ad1565b946020939093013593505050565b600060208284031215610b2957600080fd5b610b3282610ad1565b9392505050565b815181526020808301516001600160a01b0316908201526040808301519082015260608083015190820152608081015b92915050565b60208082526021908201527f43616c6c6572206973206e6f7420746865206f776e6572206f722062726f6b656040820152603960f91b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b6957610b69610bb0565b6000600160ff1b8201610bee57610bee610bb0565b5060000390565b81810381811115610b6957610b69610bb0565b600060018201610c1a57610c1a610bb0565b506001019056fea2646970667358221220f974d35bb9a65f4b4825b0241dbfbbb18dd6346c01f7649af66d4e356c14f11964736f6c63430008130033
Deployed Bytecode Sourcemap
46828:3675:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47015:45;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47015:45:0;;;;;;;;401:25:1;;;-1:-1:-1;;;;;462:32:1;;;457:2;442:18;;435:60;511:18;;;504:34;389:2;374:18;47015:45:0;;;;;;;;50366:134;;;;;;:::i;:::-;;:::i;:::-;;;;765:13:1;;747:32;;839:4;827:17;;;821:24;-1:-1:-1;;;;;817:50:1;795:20;;;788:80;912:17;;;906:24;884:20;;;877:54;735:2;720:18;50366:134:0;549:388:1;47152:33:0;;;;;;;;;1088:25:1;;;1076:2;1061:18;47152:33:0;942:177:1;47111:34:0;;;;;;49449:307;;;;;;:::i;:::-;;:::i;:::-;;47194:28;;;;;-1:-1:-1;;;;;47194:28:0;;;;;;-1:-1:-1;;;;;1540:32:1;;;1522:51;;1510:2;1495:18;47194:28:0;1376:203:1;47812:467:0;;;;;;:::i;:::-;;:::i;2889:103::-;;;:::i;49764:295::-;;;;;;:::i;:::-;;:::i;47686:118::-;;;;;;:::i;:::-;;:::i;50067:144::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2248:87::-;2294:7;2321:6;-1:-1:-1;;;;;2321:6:0;2248:87;;48748:384;;;;;;:::i;:::-;;:::i;47069:35::-;;;;;;49140:301;;;;;;:::i;:::-;;:::i;46905:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46905:49:0;;;;;;;;;;;2998:25:1;;;-1:-1:-1;;;;;3059:32:1;;;3054:2;3039:18;;3032:60;3108:18;;;3101:34;3166:2;3151:18;;3144:34;2985:3;2970:19;46905:49:0;2767:417:1;48287:453:0;;;;;;:::i;:::-;;:::i;50219:139::-;;;;;;:::i;:::-;;:::i;3147:201::-;;;;;;:::i;:::-;;:::i;46961:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46961:47:0;;;;;50366:134;50435:15;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50435:15:0;-1:-1:-1;50470:22:0;;;;:9;:22;;;;;;;;;50463:29;;;;;;;;;;;;;;;-1:-1:-1;;;;;50463:29:0;;;;;;;;;;;;;;;;;;;50366:134::o;49449:307::-;2294:7;2321:6;-1:-1:-1;;;;;2321:6:0;873:10;47564:23;;:56;;-1:-1:-1;47591:13:0;;-1:-1:-1;;;;;47591:13:0;873:10;47591:29;47564:56;47556:102;;;;-1:-1:-1;;;47556:102:0;;;;;;;:::i;:::-;;;;;;;;;49568:1:::1;49560:5;:9;49556:193;;;49586:25;::::0;;;:11:::1;:25;::::0;;;;:33:::1;;:51:::0;;49631:5;;49586:25;:51:::1;::::0;49631:5;;49586:51:::1;:::i;:::-;::::0;;;-1:-1:-1;49556:193:0::1;::::0;-1:-1:-1;49556:193:0::1;;49667:1;49659:5;:9;49655:94;;;49730:6;49731:5:::0;49730:6:::1;:::i;:::-;49685:25;::::0;;;:11:::1;:25;::::0;;;;:33:::1;;:52:::0;;:33;;:25;:52:::1;::::0;;;::::1;:::i;:::-;::::0;;;-1:-1:-1;;49655:94:0::1;49449:307:::0;;:::o;47812:467::-;47952:16;;48007:153;;;;;;;;;;;-1:-1:-1;;;;;48007:153:0;;;;;;;;;;-1:-1:-1;48007:153:0;;;;;;;;;;;;47979:25;;;:11;:25;;;;;;;:181;;;;;;;;;;;-1:-1:-1;;;;;;47979:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;48178:64;;1522:51:1;;;48007:153:0;;47952:16;;48178:64;;1495:18:1;48178:64:0;;;;;;;48253:16;:18;;;:16;:18;;;:::i;:::-;;;;;;47812:467;;;;:::o;2889:103::-;2134:13;:11;:13::i;:::-;2954:30:::1;2981:1;2954:18;:30::i;:::-;2889:103::o:0;49764:295::-;2294:7;2321:6;-1:-1:-1;;;;;2321:6:0;873:10;47564:23;;:56;;-1:-1:-1;47591:13:0;;-1:-1:-1;;;;;47591:13:0;873:10;47591:29;47564:56;47556:102;;;;-1:-1:-1;;;47556:102:0;;;;;;;:::i;:::-;49879:1:::1;49871:5;:9;49867:185;;;49897:21;::::0;;;:9:::1;:21;::::0;;;;:29:::1;;:47:::0;;49938:5;;49897:21;:47:::1;::::0;49938:5;;49897:47:::1;:::i;49867:185::-;49974:1;49966:5;:9;49962:90;;;50033:6;50034:5:::0;50033:6:::1;:::i;:::-;49992:21;::::0;;;:9:::1;:21;::::0;;;;:29:::1;;:48:::0;;:29;;:21;:48:::1;::::0;;;::::1;:::i;47686:118::-:0;2134:13;:11;:13::i;:::-;47766::::1;:30:::0;;-1:-1:-1;;;;;;47766:30:0::1;-1:-1:-1::0;;;;;47766:30:0;;;::::1;::::0;;;::::1;::::0;;47686:118::o;50067:144::-;50140:17;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50140:17:0;-1:-1:-1;50177:26:0;;;;:11;:26;;;;;;;;;50170:33;;;;;;;;;;;;;;;-1:-1:-1;;;;;50170:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50067:144::o;48748:384::-;48860:14;;;48913:116;;;;;;;;;;;-1:-1:-1;;;;;48913:116:0;;;;;;;;;;-1:-1:-1;48913:116:0;;;;;;48885:25;;;:9;:25;;;;;;:144;;;;;;;;;;;-1:-1:-1;;;;;;48885:144:0;;;;;;;;;;;;;;;;;;;49066:14;;49047:50;;1522:51:1;;;48860:14:0;;49066;;49047:50;;1495:18:1;49047:50:0;;;;;;;49108:14;:16;;;:14;:16;;;:::i;:::-;;;;;;48748:384;;;:::o;49140:301::-;2294:7;2321:6;-1:-1:-1;;;;;2321:6:0;873:10;47564:23;;:56;;-1:-1:-1;47591:13:0;;-1:-1:-1;;;;;47591:13:0;873:10;47591:29;47564:56;47556:102;;;;-1:-1:-1;;;47556:102:0;;;;;;;:::i;:::-;49257:1:::1;49249:5;:9;49245:189;;;49275:23;::::0;;;:10:::1;:23;::::0;;;;;;:31:::1;:49:::0;;49318:5;;49275:23;:49:::1;::::0;49318:5;;49275:49:::1;:::i;49245:189::-;49354:1;49346:5;:9;49342:92;;;49415:6;49416:5:::0;49415:6:::1;:::i;:::-;49372:23;::::0;;;:10:::1;:23;::::0;;;;;;:31:::1;:50:::0;;:31;;:23;:50:::1;::::0;;;::::1;:::i;48287:453::-:0;48423:15;;48475:150;;;;;;;;;;;-1:-1:-1;;;;;48475:150:0;;;;;;;;;;-1:-1:-1;48475:150:0;;;;;;;;;;;;48449:23;;;:10;:23;;;;;;;:176;;;;;;;;;;;-1:-1:-1;;;;;;48449:176:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;48643:61;;1522:51:1;;;48475:150:0;;48423:15;;48643:61;;1495:18:1;48643:61:0;;;;;;;48715:15;:17;;;:15;:17;;;:::i;50219:139::-;50290:16;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50290:16:0;-1:-1:-1;50326:24:0;;;;:10;:24;;;;;;;;;50319:31;;;;;;;;;;;;;;;-1:-1:-1;;;;;50319:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;50219:139::o;3147:201::-;2134:13;:11;:13::i;:::-;-1:-1:-1;;;;;3236:22:0;::::1;3228:73;;;::::0;-1:-1:-1;;;3228:73:0;;4728:2:1;3228:73:0::1;::::0;::::1;4710:21:1::0;4767:2;4747:18;;;4740:30;4806:34;4786:18;;;4779:62;-1:-1:-1;;;4857:18:1;;;4850:36;4903:19;;3228:73:0::1;4526:402:1::0;3228:73:0::1;3312:28;3331:8;3312:18;:28::i;:::-;3147:201:::0;:::o;2413:132::-;2294:7;2321:6;-1:-1:-1;;;;;2321:6:0;873:10;2477:23;2469:68;;;;-1:-1:-1;;;2469:68:0;;5135:2:1;2469:68:0;;;5117:21:1;;;5154:18;;;5147:30;5213:34;5193:18;;;5186:62;5265:18;;2469:68:0;4933:356:1;3508:191:0;3582:16;3601:6;;-1:-1:-1;;;;;3618:17:0;;;-1:-1:-1;;;;;;3618:17:0;;;;;;3651:40;;3601:6;;;;;;;3651:40;;3582:16;3651:40;3571:128;3508:191;:::o;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;1124:247::-;1191:6;1199;1252:2;1240:9;1231:7;1227:23;1223:32;1220:52;;;1268:1;1265;1258:12;1220:52;-1:-1:-1;;1291:23:1;;;1361:2;1346:18;;;1333:32;;-1:-1:-1;1124:247:1:o;1584:173::-;1652:20;;-1:-1:-1;;;;;1701:31:1;;1691:42;;1681:70;;1747:1;1744;1737:12;1681:70;1584:173;;;:::o;1762:254::-;1830:6;1838;1891:2;1879:9;1870:7;1866:23;1862:32;1859:52;;;1907:1;1904;1897:12;1859:52;1930:29;1949:9;1930:29;:::i;:::-;1920:39;2006:2;1991:18;;;;1978:32;;-1:-1:-1;;;1762:254:1:o;2021:186::-;2080:6;2133:2;2121:9;2112:7;2108:23;2104:32;2101:52;;;2149:1;2146;2139:12;2101:52;2172:29;2191:9;2172:29;:::i;:::-;2162:39;2021:186;-1:-1:-1;;;2021:186:1:o;2506:256::-;2288:12;;2276:25;;2354:4;2343:16;;;2337:23;-1:-1:-1;;;;;2333:49:1;2317:14;;;2310:73;2432:4;2421:16;;;2415:23;2399:14;;;2392:47;2488:4;2477:16;;;2471:23;2455:14;;;2448:47;2696:3;2681:19;;2709:47;2506:256;;;;:::o;3448:397::-;3650:2;3632:21;;;3689:2;3669:18;;;3662:30;3728:34;3723:2;3708:18;;3701:62;-1:-1:-1;;;3794:2:1;3779:18;;3772:31;3835:3;3820:19;;3448:397::o;3850:127::-;3911:10;3906:3;3902:20;3899:1;3892:31;3942:4;3939:1;3932:15;3966:4;3963:1;3956:15;3982:125;4047:9;;;4068:10;;;4065:36;;;4081:18;;:::i;4112:136::-;4147:3;-1:-1:-1;;;4168:22:1;;4165:48;;4193:18;;:::i;:::-;-1:-1:-1;4233:1:1;4229:13;;4112:136::o;4253:128::-;4320:9;;;4341:11;;;4338:37;;;4355:18;;:::i;4386:135::-;4425:3;4446:17;;;4443:43;;4466:18;;:::i;:::-;-1:-1:-1;4513:1:1;4502:13;;4386:135::o
Swarm Source
ipfs://f974d35bb9a65f4b4825b0241dbfbbb18dd6346c01f7649af66d4e356c14f119
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.