Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 4,002 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 21096271 | 3 days ago | IN | 0 ETH | 0.00013411 | ||||
Approve | 21089995 | 4 days ago | IN | 0 ETH | 0.00014116 | ||||
Transfer | 21065275 | 7 days ago | IN | 0 ETH | 0.00051556 | ||||
Transfer | 21065266 | 7 days ago | IN | 0 ETH | 0.0004543 | ||||
Approve | 21056804 | 8 days ago | IN | 0 ETH | 0.00011291 | ||||
Approve | 21030228 | 12 days ago | IN | 0 ETH | 0.00040403 | ||||
Approve | 21024309 | 13 days ago | IN | 0 ETH | 0.00011163 | ||||
Approve | 21021075 | 13 days ago | IN | 0 ETH | 0.00029134 | ||||
Approve | 21016634 | 14 days ago | IN | 0 ETH | 0.00018156 | ||||
Transfer | 20998649 | 16 days ago | IN | 0 ETH | 0.00024958 | ||||
Approve | 20998039 | 16 days ago | IN | 0 ETH | 0.00021834 | ||||
Approve | 20982700 | 19 days ago | IN | 0 ETH | 0.00023589 | ||||
Approve | 20982249 | 19 days ago | IN | 0 ETH | 0.00023396 | ||||
Transfer | 20980978 | 19 days ago | IN | 0 ETH | 0.00037759 | ||||
Approve | 20978755 | 19 days ago | IN | 0 ETH | 0.00055943 | ||||
Transfer | 20977645 | 19 days ago | IN | 0 ETH | 0.00049159 | ||||
Transfer | 20969841 | 20 days ago | IN | 0 ETH | 0.00039411 | ||||
Approve | 20953281 | 23 days ago | IN | 0 ETH | 0.00022013 | ||||
Approve | 20946668 | 24 days ago | IN | 0 ETH | 0.00028142 | ||||
Transfer | 20944465 | 24 days ago | IN | 0 ETH | 0.00062103 | ||||
Approve | 20920032 | 27 days ago | IN | 0 ETH | 0.00034247 | ||||
Transfer | 20871606 | 34 days ago | IN | 0 ETH | 0.00101281 | ||||
Transfer | 20871599 | 34 days ago | IN | 0 ETH | 0.00105354 | ||||
Transfer | 20869212 | 34 days ago | IN | 0 ETH | 0.00044322 | ||||
Approve | 20866889 | 35 days ago | IN | 0 ETH | 0.00020798 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
XDToken
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; import "./Ownable.sol"; import "./Math.sol"; import "./SafeMath.sol"; import "./ERC20.sol"; import "./IXDToken.sol"; contract XDToken is Ownable, ERC20("XD Token", "XD"), IXDToken { using SafeMath for uint256; uint256 public constant MAX_EMISSION_RATE = 2 ether; uint256 public constant MAX_SUPPLY_LIMIT = 200000000 ether; uint256 public elasticMaxSupply; // Once deployed, controlled through governance only uint256 public emissionRate; // Token emission per second uint256 public override lastEmissionTime; uint256 public masterReserve; // Pending rewards for the master uint256 public constant ALLOCATION_PRECISION = 100; // Allocations emitted over time. When < 100%, the rest is minted into the treasury (default 15%) uint256 public masterAllocation = 85; // = 85% address public masterAddress; address public treasuryAddress; address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; constructor( uint256 maxSupply_, uint256 initialSupply, uint256 initialEmissionRate, address treasuryAddress_ ) { require( initialEmissionRate <= MAX_EMISSION_RATE, "invalid emission rate" ); require(maxSupply_ <= MAX_SUPPLY_LIMIT, "invalid initial maxSupply"); require(initialSupply < maxSupply_, "invalid initial supply"); require(treasuryAddress_ != address(0), "invalid treasury address"); elasticMaxSupply = maxSupply_; emissionRate = initialEmissionRate; treasuryAddress = treasuryAddress_; _mint(msg.sender, initialSupply); } /********************************************/ /****************** EVENTS ******************/ /********************************************/ event ClaimMasterRewards(uint256 amount); event AllocationsDistributed(uint256 masterShare, uint256 treasuryShare); event InitializeMasterAddress(address masterAddress); event InitializeEmissionStart(uint256 startTime); event UpdateAllocations( uint256 masterAllocation, uint256 treasuryAllocation ); event UpdateEmissionRate( uint256 previousEmissionRate, uint256 newEmissionRate ); event UpdateMaxSupply(uint256 previousMaxSupply, uint256 newMaxSupply); event UpdateTreasuryAddress( address previousTreasuryAddress, address newTreasuryAddress ); /***********************************************/ /****************** MODIFIERS ******************/ /***********************************************/ /* * @dev Throws error if called by any account other than the master */ modifier onlyMaster() { require( msg.sender == masterAddress, "XDToken: caller is not the master" ); _; } /**************************************************/ /****************** PUBLIC VIEWS ******************/ /**************************************************/ /** * @dev Returns master emission rate */ function masterEmissionRate() public view override returns (uint256) { return emissionRate.mul(masterAllocation).div(ALLOCATION_PRECISION); } /** * @dev Returns treasury allocation */ function treasuryAllocation() public view returns (uint256) { return uint256(ALLOCATION_PRECISION).sub(masterAllocation); } /*****************************************************************/ /****************** EXTERNAL PUBLIC FUNCTIONS ******************/ /*****************************************************************/ /** * @dev Mint rewards and distribute it between master and treasury * * Treasury share is directly minted to the treasury address * Master incentives are minted into this contract and claimed later by the master contract */ function emitAllocations() public { uint256 circulatingSupply = totalSupply(); uint256 currentBlockTimestamp = _currentBlockTimestamp(); uint256 _lastEmissionTime = lastEmissionTime; // gas saving uint256 _maxSupply = elasticMaxSupply; // gas saving // if already up to date or not started if ( currentBlockTimestamp <= _lastEmissionTime || _lastEmissionTime == 0 ) { return; } // if max supply is already reached or emissions deactivated if (_maxSupply <= circulatingSupply || emissionRate == 0) { lastEmissionTime = currentBlockTimestamp; return; } uint256 newEmissions = currentBlockTimestamp.sub(_lastEmissionTime).mul( emissionRate ); // cap new emissions if exceeding max supply if (_maxSupply < circulatingSupply.add(newEmissions)) { newEmissions = _maxSupply.sub(circulatingSupply); } // calculate master and treasury shares from new emissions uint256 masterShare = newEmissions.mul(masterAllocation).div( ALLOCATION_PRECISION ); // sub to avoid rounding errors uint256 treasuryShare = newEmissions.sub(masterShare); lastEmissionTime = currentBlockTimestamp; // add master shares to its claimable reserve masterReserve = masterReserve.add(masterShare); // mint shares _mint(address(this), masterShare); _mint(treasuryAddress, treasuryShare); emit AllocationsDistributed(masterShare, treasuryShare); } /** * @dev Sends to Master contract the asked "amount" from masterReserve * * Can only be called by the MasterContract */ function claimMasterRewards( uint256 amount ) external override onlyMaster returns (uint256 effectiveAmount) { // update emissions emitAllocations(); // cap asked amount with available reserve effectiveAmount = Math.min(masterReserve, amount); // if no rewards to transfer if (effectiveAmount == 0) { return effectiveAmount; } // remove claimed rewards from reserve and transfer to master masterReserve = masterReserve.sub(effectiveAmount); _transfer(address(this), masterAddress, effectiveAmount); emit ClaimMasterRewards(effectiveAmount); } /** * @dev Burns "amount" of XD by sending it to BURN_ADDRESS */ function burn(uint256 amount) external override { _transfer(msg.sender, BURN_ADDRESS, amount); } /*****************************************************************/ /****************** EXTERNAL OWNABLE FUNCTIONS ******************/ /*****************************************************************/ /** * @dev Setup Master contract address * * Can only be initialized once * Must only be called by the owner */ function initializeMasterAddress( address masterAddress_ ) external onlyOwner { require( masterAddress == address(0), "initializeMasterAddress: master already initialized" ); require( masterAddress_ != address(0), "initializeMasterAddress: master initialized to zero address" ); masterAddress = masterAddress_; emit InitializeMasterAddress(masterAddress_); } /** * @dev Set emission start time * * Can only be initialized once * Must only be called by the owner */ function initializeEmissionStart(uint256 startTime) external onlyOwner { require( lastEmissionTime == 0, "initializeEmissionStart: emission start already initialized" ); require( _currentBlockTimestamp() < startTime, "initializeEmissionStart: invalid" ); lastEmissionTime = startTime; emit InitializeEmissionStart(startTime); } /** * @dev Updates emission allocations farming incentives and treasury * * Must only be called by the owner */ function updateAllocations(uint256 masterAllocation_) external onlyOwner { // apply emissions before changes emitAllocations(); // total sum of allocations can't be > 100% require( masterAllocation_ <= 100, "updateAllocations: total allocation is too high" ); // set new allocations masterAllocation = masterAllocation_; emit UpdateAllocations(masterAllocation_, treasuryAllocation()); } /** * @dev Updates XD emission rate per second * * Must only be called by the owner */ function updateEmissionRate(uint256 emissionRate_) external onlyOwner { require( emissionRate_ <= MAX_EMISSION_RATE, "updateEmissionRate: can't exceed maximum" ); // apply emissions before changes emitAllocations(); emit UpdateEmissionRate(emissionRate, emissionRate_); emissionRate = emissionRate_; } /** * @dev Updates XD max supply * * Must only be called by the owner */ function updateMaxSupply(uint256 maxSupply_) external onlyOwner { require( maxSupply_ >= totalSupply(), "updateMaxSupply: can't be lower than current circulating supply" ); require( maxSupply_ <= MAX_SUPPLY_LIMIT, "updateMaxSupply: invalid maxSupply" ); emit UpdateMaxSupply(elasticMaxSupply, maxSupply_); elasticMaxSupply = maxSupply_; } /** * @dev Updates treasury address * * Must only be called by owner */ function updateTreasuryAddress( address treasuryAddress_ ) external onlyOwner { require( treasuryAddress_ != address(0), "updateTreasuryAddress: invalid address" ); emit UpdateTreasuryAddress(treasuryAddress, treasuryAddress_); treasuryAddress = treasuryAddress_; } /********************************************************/ /****************** INTERNAL FUNCTIONS ******************/ /********************************************************/ /** * @dev Utility function to get the current block timestamp */ function _currentBlockTimestamp() internal view virtual returns (uint256) { /* solhint-disable not-rely-on-time */ return block.timestamp; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./Context.sol"; import "./IERC20.sol"; import "./SafeMath.sol"; /** * @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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of 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 { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 value {ERC20} uses, unless {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer( address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve( address spender, uint256 amount ) public virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, "ERC20: transfer amount exceeds allowance" ) ); 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) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].add(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) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub( subtractedValue, "ERC20: decreased allowance below zero" ) ); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub( amount, "ERC20: transfer amount exceeds balance" ); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, 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: * * - `to` 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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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); _balances[account] = _balances[account].sub( amount, "ERC20: burn amount exceeds balance" ); _totalSupply = _totalSupply.sub(amount); emit Transfer(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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @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 to 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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; import "./IERC20.sol"; interface IXDToken is IERC20{ function lastEmissionTime() external view returns (uint256); function claimMasterRewards(uint256 amount) external returns (uint256 effectiveAmount); function masterEmissionRate() external view returns (uint256); function burn(uint256 amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @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, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"uint256","name":"initialEmissionRate","type":"uint256"},{"internalType":"address","name":"treasuryAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"masterShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"treasuryShare","type":"uint256"}],"name":"AllocationsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimMasterRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"InitializeEmissionStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"masterAddress","type":"address"}],"name":"InitializeMasterAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"masterAllocation","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"treasuryAllocation","type":"uint256"}],"name":"UpdateAllocations","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousEmissionRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEmissionRate","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousMaxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"UpdateMaxSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousTreasuryAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasuryAddress","type":"address"}],"name":"UpdateTreasuryAddress","type":"event"},{"inputs":[],"name":"ALLOCATION_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimMasterRewards","outputs":[{"internalType":"uint256","name":"effectiveAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"elasticMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emitAllocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"initializeEmissionStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"masterAddress_","type":"address"}],"name":"initializeMasterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastEmissionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterEmissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"masterAllocation_","type":"uint256"}],"name":"updateAllocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"emissionRate_","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasuryAddress_","type":"address"}],"name":"updateTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526055600b553480156200001657600080fd5b506040516200218038038062002180833981810160405260808110156200003c57600080fd5b5080516020808301516040808501516060909501518151808301835260088152672c22102a37b5b2b760c11b8186015282518084019093526002835261161160f21b9483019490945293949193919290600062000098620002c8565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000f790600490602085019062000446565b5080516200010d90600590602084019062000446565b50506006805460ff1916601217905550671bc16d674ec800008211156200017b576040805162461bcd60e51b815260206004820152601560248201527f696e76616c696420656d697373696f6e20726174650000000000000000000000604482015290519081900360640190fd5b6aa56fa5b99019a5c8000000841115620001dc576040805162461bcd60e51b815260206004820152601960248201527f696e76616c696420696e697469616c206d6178537570706c7900000000000000604482015290519081900360640190fd5b83831062000231576040805162461bcd60e51b815260206004820152601660248201527f696e76616c696420696e697469616c20737570706c7900000000000000000000604482015290519081900360640190fd5b6001600160a01b0381166200028d576040805162461bcd60e51b815260206004820152601860248201527f696e76616c696420747265617375727920616464726573730000000000000000604482015290519081900360640190fd5b60078490556008829055600d80546001600160a01b0319166001600160a01b038316179055620002be3384620002cc565b50505050620004f2565b3390565b6001600160a01b03821662000328576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200033660008383620003df565b6200035281600354620003e460201b620013c51790919060201c565b6003556001600160a01b03821660009081526001602090815260409091205462000387918390620013c5620003e4821b17901c565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b6000828201838110156200043f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200047e5760008555620004c9565b82601f106200049957805160ff1916838001178555620004c9565b82800160010185558215620004c9579182015b82811115620004c9578251825591602001919060010190620004ac565b50620004d7929150620004db565b5090565b5b80821115620004d75760008155600101620004dc565b611c7e80620005026000396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80637813570511610125578063c68bb4c5116100ad578063ed424fd01161007c578063ed424fd014610579578063f103b43314610581578063f2fde38b1461059e578063fc1852fb146105c4578063fccc2813146105e15761021b565b8063c68bb4c514610533578063d365a08e1461053b578063dd62ed3e14610543578063e4ef9dce146105715761021b565b806395d89b41116100f457806395d89b41146104c357806396afc450146104cb578063a457c2d7146104d3578063a9059cbb146104ff578063c5f956af1461052b5761021b565b8063781357051461043f578063841e45611461045c5780638c562457146104825780638da5cb5b1461049f5761021b565b806339eb4189116101a85780634f3147ba116101775780634f3147ba146103db578063617d1126146103e357806367c0f278146103eb57806370a0823114610411578063715018a6146104375761021b565b806339eb4189146103a657806342966c68146103ae578063436cc3d6146103cb578063439af45e146103d35761021b565b806318160ddd116101ef57806318160ddd1461031657806323b872dd1461031e57806327dede2d14610354578063313ce5671461035c578063395093511461037a5761021b565b80624fbf6b1461022057806306fdde031461023a578063095ea7b3146102b75780630ba84cd2146102f7575b600080fd5b6102286105e9565b60408051918252519081900360200190f35b6102426105ee565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027c578181015183820152602001610264565b50505050905090810190601f1680156102a95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e3600480360360408110156102cd57600080fd5b506001600160a01b038135169060200135610684565b604080519115158252519081900360200190f35b6103146004803603602081101561030d57600080fd5b50356106a2565b005b610228610795565b6102e36004803603606081101561033457600080fd5b506001600160a01b0381358116916020810135909116906040013561079b565b610228610822565b610364610828565b6040805160ff9092168252519081900360200190f35b6102e36004803603604081101561039057600080fd5b506001600160a01b038135169060200135610831565b61022861087f565b610314600480360360208110156103c457600080fd5b50356108a8565b6102286108b8565b6102286108c4565b6102286108ca565b6102286108e2565b6103146004803603602081101561040157600080fd5b50356001600160a01b03166108f1565b6102286004803603602081101561042757600080fd5b50356001600160a01b0316610a34565b610314610a53565b6102286004803603602081101561045557600080fd5b5035610aff565b6103146004803603602081101561047257600080fd5b50356001600160a01b0316610bcb565b6103146004803603602081101561049857600080fd5b5035610cdc565b6104a7610dd0565b604080516001600160a01b039092168252519081900360200190f35b610242610ddf565b610228610e40565b6102e3600480360360408110156104e957600080fd5b506001600160a01b038135169060200135610e46565b6102e36004803603604081101561051557600080fd5b506001600160a01b038135169060200135610eae565b6104a7610ec2565b610228610ed1565b6104a7610ed7565b6102286004803603604081101561055957600080fd5b506001600160a01b0381358116916020013516610ee6565b610314610f11565b61022861104c565b6103146004803603602081101561059757600080fd5b5035611052565b610314600480360360208110156105b457600080fd5b50356001600160a01b0316611186565b610314600480360360208110156105da57600080fd5b5035611288565b6104a76113bf565b606481565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b820191906000526020600020905b81548152906001019060200180831161065d57829003601f168201915b5050505050905090565b6000610698610691611426565b848461142a565b5060015b92915050565b6106aa611426565b6001600160a01b03166106bb610dd0565b6001600160a01b031614610704576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b671bc16d674ec8000081111561074b5760405162461bcd60e51b8152600401808060200182810382526028815260200180611bc16028913960400191505060405180910390fd5b610753610f11565b600854604080519182526020820183905280517f16b9091836a63537907593ebc3a80f3528891f3575b10f58ad7dd9c29fd0d44f9281900390910190a1600855565b60035490565b60006107a8848484611516565b610818846107b4611426565b61081385604051806060016040528060288152602001611aad602891396001600160a01b038a166000908152600260205260408120906107f2611426565b6001600160a01b031681526020810191909152604001600020549190611673565b61142a565b5060019392505050565b600a5481565b60065460ff1690565b600061069861083e611426565b84610813856002600061084f611426565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906113c5565b60006108a3606461089d600b5460085461170a90919063ffffffff16565b90611763565b905090565b6108b53361dead83611516565b50565b671bc16d674ec8000081565b60095481565b60006108a3600b5460646117ca90919063ffffffff16565b6aa56fa5b99019a5c800000081565b6108f9611426565b6001600160a01b031661090a610dd0565b6001600160a01b031614610953576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b600c546001600160a01b03161561099b5760405162461bcd60e51b8152600401808060200182810382526033815260200180611b8e6033913960400191505060405180910390fd5b6001600160a01b0381166109e05760405162461bcd60e51b815260040180806020018281038252603b815260200180611a51603b913960400191505060405180910390fd5b600c80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fcba13eb1e65d2c1588ce6d10f862f4535cc67855c3f31e3d2732f8fb6b5317b29181900360200190a150565b6001600160a01b0381166000908152600160205260409020545b919050565b610a5b611426565b6001600160a01b0316610a6c610dd0565b6001600160a01b031614610ab5576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600c546000906001600160a01b03163314610b4b5760405162461bcd60e51b8152600401808060200182810382526021815260200180611b6d6021913960400191505060405180910390fd5b610b53610f11565b610b5f600a5483611827565b905080610b6b57610a4e565b600a54610b7890826117ca565b600a55600c54610b939030906001600160a01b031683611516565b6040805182815290517f45102e9ef2c4f14fd9f3e8510c4bb2ad67fe498584602f26647da23039f125319181900360200190a1919050565b610bd3611426565b6001600160a01b0316610be4610dd0565b6001600160a01b031614610c2d576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b6001600160a01b038116610c725760405162461bcd60e51b81526004018080602001828103825260268152602001806119ec6026913960400191505060405180910390fd5b600d54604080516001600160a01b039283168152918316602083015280517f5634a90413b79beba6c5f37aa8f19d1aee84a5320ff20ac7bd1ac63280867d5c9281900390910190a1600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610ce4611426565b6001600160a01b0316610cf5610dd0565b6001600160a01b031614610d3e576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b610d46610f11565b6064811115610d865760405162461bcd60e51b815260040180806020018281038252602f815260200180611b1a602f913960400191505060405180910390fd5b600b8190557fb1bc322c959dd23e6f87515e39a687bed073fbe1e93bd977fe8ecae3852c14ba81610db56108ca565b6040805192835260208301919091528051918290030190a150565b6000546001600160a01b031690565b60058054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b60085481565b6000610698610e53611426565b8461081385604051806060016040528060258152602001611c246025913960026000610e7d611426565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611673565b6000610698610ebb611426565b8484611516565b600d546001600160a01b031681565b600b5481565b600c546001600160a01b031681565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6000610f1b610795565b90506000610f2761183d565b600954600754919250908183111580610f3e575081155b15610f4c575050505061104a565b8381111580610f5b5750600854155b15610f6b5750506009555061104a565b600854600090610f8590610f7f86866117ca565b9061170a565b9050610f9185826113c5565b821015610fa557610fa282866117ca565b90505b6000610fc1606461089d600b548561170a90919063ffffffff16565b90506000610fcf83836117ca565b6009879055600a54909150610fe490836113c5565b600a55610ff13083611841565b600d54611007906001600160a01b031682611841565b604080518381526020810183905281517f26c155e7637ca49a34c19c7f8cb8533322897de0808134df1a98f71557111684929181900390910190a1505050505050505b565b60075481565b61105a611426565b6001600160a01b031661106b610dd0565b6001600160a01b0316146110b4576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b6110bc610795565b8110156110fa5760405162461bcd60e51b815260040180806020018281038252603f815260200180611a12603f913960400191505060405180910390fd5b6aa56fa5b99019a5c80000008111156111445760405162461bcd60e51b81526004018080602001828103825260228152602001806119a46022913960400191505060405180910390fd5b600754604080519182526020820183905280517f6a84334bf6663b783f2bbfcaf459b2cbc73570cf346a46d9e6a0f290fcf3ebfc9281900390910190a1600755565b61118e611426565b6001600160a01b031661119f610dd0565b6001600160a01b0316146111e8576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b6001600160a01b03811661122d5760405162461bcd60e51b815260040180806020018281038252602681526020018061195c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611290611426565b6001600160a01b03166112a1610dd0565b6001600160a01b0316146112ea576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b600954156113295760405162461bcd60e51b815260040180806020018281038252603b815260200180611be9603b913960400191505060405180910390fd5b8061133261183d565b10611384576040805162461bcd60e51b815260206004820181905260248201527f696e697469616c697a65456d697373696f6e53746172743a20696e76616c6964604482015290519081900360640190fd5b60098190556040805182815290517f10e116be9bb4f621259f592ccd7e00d783e796535f2a5f3bc91a79da0fc3456d9181900360200190a150565b61dead81565b60008282018381101561141f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b03831661146f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611b496024913960400191505060405180910390fd5b6001600160a01b0382166114b45760405162461bcd60e51b81526004018080602001828103825260228152602001806119826022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661155b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611af56025913960400191505060405180910390fd5b6001600160a01b0382166115a05760405162461bcd60e51b81526004018080602001828103825260238152602001806119396023913960400191505060405180910390fd5b6115ab838383611933565b6115e8816040518060600160405280602681526020016119c6602691396001600160a01b0386166000908152600160205260409020549190611673565b6001600160a01b03808516600090815260016020526040808220939093559084168152205461161790826113c5565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156117025760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c75781810151838201526020016116af565b50505050905090810190601f1680156116f45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000826117195750600061069c565b8282028284828161172657fe5b041461141f5760405162461bcd60e51b8152600401808060200182810382526021815260200180611a8c6021913960400191505060405180910390fd5b60008082116117b9576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816117c257fe5b049392505050565b600082821115611821576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000818310611836578161141f565b5090919050565b4290565b6001600160a01b03821661189c576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6118a860008383611933565b6003546118b590826113c5565b6003556001600160a01b0382166000908152600160205260409020546118db90826113c5565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573737570646174654d6178537570706c793a20696e76616c6964206d6178537570706c7945524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63657570646174655472656173757279416464726573733a20696e76616c696420616464726573737570646174654d6178537570706c793a2063616e2774206265206c6f776572207468616e2063757272656e742063697263756c6174696e6720737570706c79696e697469616c697a654d6173746572416464726573733a206d617374657220696e697469616c697a656420746f207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373757064617465416c6c6f636174696f6e733a20746f74616c20616c6c6f636174696f6e20697320746f6f206869676845524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735844546f6b656e3a2063616c6c6572206973206e6f7420746865206d6173746572696e697469616c697a654d6173746572416464726573733a206d617374657220616c726561647920696e697469616c697a6564757064617465456d697373696f6e526174653a2063616e277420657863656564206d6178696d756d696e697469616c697a65456d697373696f6e53746172743a20656d697373696f6e20737461727420616c726561647920696e697469616c697a656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122050d9e474b6e7f59f148eb86c17e4d2b54963b959fdfcb0ff1f6697a44b9a3f8564736f6c6343000706003300000000000000000000000000000000000000000052b7d2dcc80cd2e400000000000000000000000000000000000000000000000034f086f3b33b6840000000000000000000000000000000000000000000000000000000090d7db123afd800000000000000000000000000c8cb3345a5d0889d5408f795ee52b6ea8f7f0144
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021b5760003560e01c80637813570511610125578063c68bb4c5116100ad578063ed424fd01161007c578063ed424fd014610579578063f103b43314610581578063f2fde38b1461059e578063fc1852fb146105c4578063fccc2813146105e15761021b565b8063c68bb4c514610533578063d365a08e1461053b578063dd62ed3e14610543578063e4ef9dce146105715761021b565b806395d89b41116100f457806395d89b41146104c357806396afc450146104cb578063a457c2d7146104d3578063a9059cbb146104ff578063c5f956af1461052b5761021b565b8063781357051461043f578063841e45611461045c5780638c562457146104825780638da5cb5b1461049f5761021b565b806339eb4189116101a85780634f3147ba116101775780634f3147ba146103db578063617d1126146103e357806367c0f278146103eb57806370a0823114610411578063715018a6146104375761021b565b806339eb4189146103a657806342966c68146103ae578063436cc3d6146103cb578063439af45e146103d35761021b565b806318160ddd116101ef57806318160ddd1461031657806323b872dd1461031e57806327dede2d14610354578063313ce5671461035c578063395093511461037a5761021b565b80624fbf6b1461022057806306fdde031461023a578063095ea7b3146102b75780630ba84cd2146102f7575b600080fd5b6102286105e9565b60408051918252519081900360200190f35b6102426105ee565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027c578181015183820152602001610264565b50505050905090810190601f1680156102a95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e3600480360360408110156102cd57600080fd5b506001600160a01b038135169060200135610684565b604080519115158252519081900360200190f35b6103146004803603602081101561030d57600080fd5b50356106a2565b005b610228610795565b6102e36004803603606081101561033457600080fd5b506001600160a01b0381358116916020810135909116906040013561079b565b610228610822565b610364610828565b6040805160ff9092168252519081900360200190f35b6102e36004803603604081101561039057600080fd5b506001600160a01b038135169060200135610831565b61022861087f565b610314600480360360208110156103c457600080fd5b50356108a8565b6102286108b8565b6102286108c4565b6102286108ca565b6102286108e2565b6103146004803603602081101561040157600080fd5b50356001600160a01b03166108f1565b6102286004803603602081101561042757600080fd5b50356001600160a01b0316610a34565b610314610a53565b6102286004803603602081101561045557600080fd5b5035610aff565b6103146004803603602081101561047257600080fd5b50356001600160a01b0316610bcb565b6103146004803603602081101561049857600080fd5b5035610cdc565b6104a7610dd0565b604080516001600160a01b039092168252519081900360200190f35b610242610ddf565b610228610e40565b6102e3600480360360408110156104e957600080fd5b506001600160a01b038135169060200135610e46565b6102e36004803603604081101561051557600080fd5b506001600160a01b038135169060200135610eae565b6104a7610ec2565b610228610ed1565b6104a7610ed7565b6102286004803603604081101561055957600080fd5b506001600160a01b0381358116916020013516610ee6565b610314610f11565b61022861104c565b6103146004803603602081101561059757600080fd5b5035611052565b610314600480360360208110156105b457600080fd5b50356001600160a01b0316611186565b610314600480360360208110156105da57600080fd5b5035611288565b6104a76113bf565b606481565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b820191906000526020600020905b81548152906001019060200180831161065d57829003601f168201915b5050505050905090565b6000610698610691611426565b848461142a565b5060015b92915050565b6106aa611426565b6001600160a01b03166106bb610dd0565b6001600160a01b031614610704576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b671bc16d674ec8000081111561074b5760405162461bcd60e51b8152600401808060200182810382526028815260200180611bc16028913960400191505060405180910390fd5b610753610f11565b600854604080519182526020820183905280517f16b9091836a63537907593ebc3a80f3528891f3575b10f58ad7dd9c29fd0d44f9281900390910190a1600855565b60035490565b60006107a8848484611516565b610818846107b4611426565b61081385604051806060016040528060288152602001611aad602891396001600160a01b038a166000908152600260205260408120906107f2611426565b6001600160a01b031681526020810191909152604001600020549190611673565b61142a565b5060019392505050565b600a5481565b60065460ff1690565b600061069861083e611426565b84610813856002600061084f611426565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906113c5565b60006108a3606461089d600b5460085461170a90919063ffffffff16565b90611763565b905090565b6108b53361dead83611516565b50565b671bc16d674ec8000081565b60095481565b60006108a3600b5460646117ca90919063ffffffff16565b6aa56fa5b99019a5c800000081565b6108f9611426565b6001600160a01b031661090a610dd0565b6001600160a01b031614610953576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b600c546001600160a01b03161561099b5760405162461bcd60e51b8152600401808060200182810382526033815260200180611b8e6033913960400191505060405180910390fd5b6001600160a01b0381166109e05760405162461bcd60e51b815260040180806020018281038252603b815260200180611a51603b913960400191505060405180910390fd5b600c80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fcba13eb1e65d2c1588ce6d10f862f4535cc67855c3f31e3d2732f8fb6b5317b29181900360200190a150565b6001600160a01b0381166000908152600160205260409020545b919050565b610a5b611426565b6001600160a01b0316610a6c610dd0565b6001600160a01b031614610ab5576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600c546000906001600160a01b03163314610b4b5760405162461bcd60e51b8152600401808060200182810382526021815260200180611b6d6021913960400191505060405180910390fd5b610b53610f11565b610b5f600a5483611827565b905080610b6b57610a4e565b600a54610b7890826117ca565b600a55600c54610b939030906001600160a01b031683611516565b6040805182815290517f45102e9ef2c4f14fd9f3e8510c4bb2ad67fe498584602f26647da23039f125319181900360200190a1919050565b610bd3611426565b6001600160a01b0316610be4610dd0565b6001600160a01b031614610c2d576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b6001600160a01b038116610c725760405162461bcd60e51b81526004018080602001828103825260268152602001806119ec6026913960400191505060405180910390fd5b600d54604080516001600160a01b039283168152918316602083015280517f5634a90413b79beba6c5f37aa8f19d1aee84a5320ff20ac7bd1ac63280867d5c9281900390910190a1600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610ce4611426565b6001600160a01b0316610cf5610dd0565b6001600160a01b031614610d3e576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b610d46610f11565b6064811115610d865760405162461bcd60e51b815260040180806020018281038252602f815260200180611b1a602f913960400191505060405180910390fd5b600b8190557fb1bc322c959dd23e6f87515e39a687bed073fbe1e93bd977fe8ecae3852c14ba81610db56108ca565b6040805192835260208301919091528051918290030190a150565b6000546001600160a01b031690565b60058054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561067a5780601f1061064f5761010080835404028352916020019161067a565b60085481565b6000610698610e53611426565b8461081385604051806060016040528060258152602001611c246025913960026000610e7d611426565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611673565b6000610698610ebb611426565b8484611516565b600d546001600160a01b031681565b600b5481565b600c546001600160a01b031681565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6000610f1b610795565b90506000610f2761183d565b600954600754919250908183111580610f3e575081155b15610f4c575050505061104a565b8381111580610f5b5750600854155b15610f6b5750506009555061104a565b600854600090610f8590610f7f86866117ca565b9061170a565b9050610f9185826113c5565b821015610fa557610fa282866117ca565b90505b6000610fc1606461089d600b548561170a90919063ffffffff16565b90506000610fcf83836117ca565b6009879055600a54909150610fe490836113c5565b600a55610ff13083611841565b600d54611007906001600160a01b031682611841565b604080518381526020810183905281517f26c155e7637ca49a34c19c7f8cb8533322897de0808134df1a98f71557111684929181900390910190a1505050505050505b565b60075481565b61105a611426565b6001600160a01b031661106b610dd0565b6001600160a01b0316146110b4576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b6110bc610795565b8110156110fa5760405162461bcd60e51b815260040180806020018281038252603f815260200180611a12603f913960400191505060405180910390fd5b6aa56fa5b99019a5c80000008111156111445760405162461bcd60e51b81526004018080602001828103825260228152602001806119a46022913960400191505060405180910390fd5b600754604080519182526020820183905280517f6a84334bf6663b783f2bbfcaf459b2cbc73570cf346a46d9e6a0f290fcf3ebfc9281900390910190a1600755565b61118e611426565b6001600160a01b031661119f610dd0565b6001600160a01b0316146111e8576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b6001600160a01b03811661122d5760405162461bcd60e51b815260040180806020018281038252602681526020018061195c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611290611426565b6001600160a01b03166112a1610dd0565b6001600160a01b0316146112ea576040805162461bcd60e51b81526020600482018190526024820152600080516020611ad5833981519152604482015290519081900360640190fd5b600954156113295760405162461bcd60e51b815260040180806020018281038252603b815260200180611be9603b913960400191505060405180910390fd5b8061133261183d565b10611384576040805162461bcd60e51b815260206004820181905260248201527f696e697469616c697a65456d697373696f6e53746172743a20696e76616c6964604482015290519081900360640190fd5b60098190556040805182815290517f10e116be9bb4f621259f592ccd7e00d783e796535f2a5f3bc91a79da0fc3456d9181900360200190a150565b61dead81565b60008282018381101561141f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b03831661146f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611b496024913960400191505060405180910390fd5b6001600160a01b0382166114b45760405162461bcd60e51b81526004018080602001828103825260228152602001806119826022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661155b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611af56025913960400191505060405180910390fd5b6001600160a01b0382166115a05760405162461bcd60e51b81526004018080602001828103825260238152602001806119396023913960400191505060405180910390fd5b6115ab838383611933565b6115e8816040518060600160405280602681526020016119c6602691396001600160a01b0386166000908152600160205260409020549190611673565b6001600160a01b03808516600090815260016020526040808220939093559084168152205461161790826113c5565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156117025760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c75781810151838201526020016116af565b50505050905090810190601f1680156116f45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000826117195750600061069c565b8282028284828161172657fe5b041461141f5760405162461bcd60e51b8152600401808060200182810382526021815260200180611a8c6021913960400191505060405180910390fd5b60008082116117b9576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816117c257fe5b049392505050565b600082821115611821576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000818310611836578161141f565b5090919050565b4290565b6001600160a01b03821661189c576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6118a860008383611933565b6003546118b590826113c5565b6003556001600160a01b0382166000908152600160205260409020546118db90826113c5565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573737570646174654d6178537570706c793a20696e76616c6964206d6178537570706c7945524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63657570646174655472656173757279416464726573733a20696e76616c696420616464726573737570646174654d6178537570706c793a2063616e2774206265206c6f776572207468616e2063757272656e742063697263756c6174696e6720737570706c79696e697469616c697a654d6173746572416464726573733a206d617374657220696e697469616c697a656420746f207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373757064617465416c6c6f636174696f6e733a20746f74616c20616c6c6f636174696f6e20697320746f6f206869676845524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735844546f6b656e3a2063616c6c6572206973206e6f7420746865206d6173746572696e697469616c697a654d6173746572416464726573733a206d617374657220616c726561647920696e697469616c697a6564757064617465456d697373696f6e526174653a2063616e277420657863656564206d6178696d756d696e697469616c697a65456d697373696f6e53746172743a20656d697373696f6e20737461727420616c726561647920696e697469616c697a656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122050d9e474b6e7f59f148eb86c17e4d2b54963b959fdfcb0ff1f6697a44b9a3f8564736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000052b7d2dcc80cd2e400000000000000000000000000000000000000000000000034f086f3b33b6840000000000000000000000000000000000000000000000000000000090d7db123afd800000000000000000000000000c8cb3345a5d0889d5408f795ee52b6ea8f7f0144
-----Decoded View---------------
Arg [0] : maxSupply_ (uint256): 100000000000000000000000000
Arg [1] : initialSupply (uint256): 64000000000000000000000000
Arg [2] : initialEmissionRate (uint256): 652315720800000000
Arg [3] : treasuryAddress_ (address): 0xc8Cb3345A5d0889d5408F795Ee52B6ea8f7f0144
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [1] : 00000000000000000000000000000000000000000034f086f3b33b6840000000
Arg [2] : 000000000000000000000000000000000000000000000000090d7db123afd800
Arg [3] : 000000000000000000000000c8cb3345a5d0889d5408f795ee52b6ea8f7f0144
Deployed Bytecode Sourcemap
176:10387:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;667:50;;;:::i;:::-;;;;;;;;;;;;;;;;2130:89:1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4264:188;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4264:188:1;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;8764:379:7;;;;;;;;;;;;;;;;-1:-1:-1;8764:379:7;;:::i;:::-;;3197:106:1;;;:::i;4919:439::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4919:439:1;;;;;;;;;;;;;;;;;:::i;598:28:7:-;;;:::i;3048:89:1:-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5753:283;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5753:283:1;;;;;;;;:::i;3156:153:7:-;;;:::i;6511:108::-;;;;;;;;;;;;;;;;-1:-1:-1;6511:108:7;;:::i;278:51::-;;;:::i;552:40::-;;;:::i;3371:135::-;;;:::i;335:58::-;;;:::i;6983:471::-;;;;;;;;;;;;;;;;-1:-1:-1;6983:471:7;-1:-1:-1;;;;;6983:471:7;;:::i;3361:139:1:-;;;;;;;;;;;;;;;;-1:-1:-1;3361:139:1;-1:-1:-1;;;;;3361:139:1;;:::i;1715:145:5:-;;;:::i;5765:661:7:-;;;;;;;;;;;;;;;;-1:-1:-1;5765:661:7;;:::i;9787:338::-;;;;;;;;;;;;;;;;-1:-1:-1;9787:338:7;-1:-1:-1;;;;;9787:338:7;;:::i;8165:482::-;;;;;;;;;;;;;;;;-1:-1:-1;8165:482:7;;:::i;1083:85:5:-;;;:::i;:::-;;;;-1:-1:-1;;;;;1083:85:5;;;;;;;;;;;;;;2332:93:1;;;:::i;489:27:7:-;;;:::i;6523:380:1:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6523:380:1;;;;;;;;:::i;3703:194::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3703:194:1;;;;;;;;:::i;911:30:7:-;;;:::i;825:36::-;;;:::i;877:28::-;;;:::i;3955:171:1:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3955:171:1;;;;;;;;;;:::i;3984:1629:7:-;;;:::i;399:31::-;;;:::i;9246:439::-;;;;;;;;;;;;;;;;-1:-1:-1;9246:439:7;;:::i;2009:274:5:-;;;;;;;;;;;;;;;;-1:-1:-1;2009:274:5;-1:-1:-1;;;;;2009:274:5;;:::i;7595:428:7:-;;;;;;;;;;;;;;;;-1:-1:-1;7595:428:7;;:::i;947:89::-;;;:::i;667:50::-;714:3;667:50;:::o;2130:89:1:-;2207:5;2200:12;;;;;;;;-1:-1:-1;;2200:12:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2175:13;;2200:12;;2207:5;;2200:12;;2207:5;2200:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2130:89;:::o;4264:188::-;4369:4;4385:39;4394:12;:10;:12::i;:::-;4408:7;4417:6;4385:8;:39::i;:::-;-1:-1:-1;4441:4:1;4264:188;;;;;:::o;8764:379:7:-;1306:12:5;:10;:12::i;:::-;-1:-1:-1;;;;;1295:23:5;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1295:23:5;;1287:68;;;;;-1:-1:-1;;;1287:68:5;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1287:68:5;;;;;;;;;;;;;;;322:7:7::1;8865:13;:34;;8844:121;;;;-1:-1:-1::0;;;8844:121:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9018:17;:15;:17::i;:::-;9070:12;::::0;9051:47:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;::::1;9108:12;:28:::0;8764:379::o;3197:106:1:-;3284:12;;3197:106;:::o;4919:439::-;5055:4;5071:36;5081:6;5089:9;5100:6;5071:9;:36::i;:::-;5117:213;5139:6;5159:12;:10;:12::i;:::-;5185:135;5240:6;5185:135;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5185:19:1;;;;;;:11;:19;;;;;;5205:12;:10;:12::i;:::-;-1:-1:-1;;;;;5185:33:1;;;;;;;;;;;;-1:-1:-1;5185:33:1;;;:135;:37;:135::i;:::-;5117:8;:213::i;:::-;-1:-1:-1;5347:4:1;4919:439;;;;;:::o;598:28:7:-;;;;:::o;3048:89:1:-;3121:9;;;;3048:89;:::o;5753:283::-;5863:4;5879:129;5901:12;:10;:12::i;:::-;5927:7;5948:50;5987:10;5948:11;:25;5960:12;:10;:12::i;:::-;-1:-1:-1;;;;;5948:25:1;;;;;;;;;;;;;;;;;-1:-1:-1;5948:25:1;;;:34;;;;;;;;;;;:38;:50::i;3156:153:7:-;3216:7;3242:60;714:3;3242:34;3259:16;;3242:12;;:16;;:34;;;;:::i;:::-;:38;;:60::i;:::-;3235:67;;3156:153;:::o;6511:108::-;6569:43;6579:10;994:42;6605:6;6569:9;:43::i;:::-;6511:108;:::o;278:51::-;322:7;278:51;:::o;552:40::-;;;;:::o;3371:135::-;3422:7;3448:51;3482:16;;714:3;3448:33;;:51;;;;:::i;335:58::-;378:15;335:58;:::o;6983:471::-;1306:12:5;:10;:12::i;:::-;-1:-1:-1;;;;;1295:23:5;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1295:23:5;;1287:68;;;;;-1:-1:-1;;;1287:68:5;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1287:68:5;;;;;;;;;;;;;;;7104:13:7::1;::::0;-1:-1:-1;;;;;7104:13:7::1;:27:::0;7083:125:::1;;;;-1:-1:-1::0;;;7083:125:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;7239:28:7;::::1;7218:134;;;;-1:-1:-1::0;;;7218:134:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7363:13;:30:::0;;-1:-1:-1;;;;;7363:30:7;::::1;-1:-1:-1::0;;;;;;7363:30:7;;::::1;::::0;::::1;::::0;;;7408:39:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;6983:471:::0;:::o;3361:139:1:-;-1:-1:-1;;;;;3475:18:1;;3449:7;3475:18;;;:9;:18;;;;;;3361:139;;;;:::o;1715:145:5:-;1306:12;:10;:12::i;:::-;-1:-1:-1;;;;;1295:23:5;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1295:23:5;;1287:68;;;;;-1:-1:-1;;;1287:68:5;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1287:68:5;;;;;;;;;;;;;;;1821:1:::1;1805:6:::0;;1784:40:::1;::::0;-1:-1:-1;;;;;1805:6:5;;::::1;::::0;1784:40:::1;::::0;1821:1;;1784:40:::1;1851:1;1834:19:::0;;-1:-1:-1;;;;;;1834:19:5::1;::::0;;1715:145::o;5765:661:7:-;2831:13;;5861:23;;-1:-1:-1;;;;;2831:13:7;2817:10;:27;2796:107;;;;-1:-1:-1;;;2796:107:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5924:17:::1;:15;:17::i;:::-;6021:31;6030:13;;6045:6;6021:8;:31::i;:::-;6003:49:::0;-1:-1:-1;6104:20:7;6100:73:::1;;6140:22;;6100:73;6269:13;::::0;:34:::1;::::0;6287:15;6269:17:::1;:34::i;:::-;6253:13;:50:::0;6338:13:::1;::::0;6313:56:::1;::::0;6331:4:::1;::::0;-1:-1:-1;;;;;6338:13:7::1;6353:15:::0;6313:9:::1;:56::i;:::-;6384:35;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;5765:661:::0;;;:::o;9787:338::-;1306:12:5;:10;:12::i;:::-;-1:-1:-1;;;;;1295:23:5;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1295:23:5;;1287:68;;;;;-1:-1:-1;;;1287:68:5;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1287:68:5;;;;;;;;;;;;;;;-1:-1:-1;;;;;9908:30:7;::::1;9887:115;;;;-1:-1:-1::0;;;9887:115:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10040:15;::::0;10018:56:::1;::::0;;-1:-1:-1;;;;;10040:15:7;;::::1;10018:56:::0;;;;::::1;;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;10084:15;:34:::0;;-1:-1:-1;;;;;;10084:34:7::1;-1:-1:-1::0;;;;;10084:34:7;;;::::1;::::0;;;::::1;::::0;;9787:338::o;8165:482::-;1306:12:5;:10;:12::i;:::-;-1:-1:-1;;;;;1295:23:5;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1295:23:5;;1287:68;;;;;-1:-1:-1;;;1287:68:5;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1287:68:5;;;;;;;;;;;;;;;8290:17:7::1;:15;:17::i;:::-;8412:3;8391:17;:24;;8370:118;;;;-1:-1:-1::0;;;8370:118:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8530:16;:36:::0;;;8582:58:::1;8549:17:::0;8619:20:::1;:18;:20::i;:::-;8582:58;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;::::1;8165:482:::0;:::o;1083:85:5:-;1129:7;1155:6;-1:-1:-1;;;;;1155:6:5;1083:85;:::o;2332:93:1:-;2411:7;2404:14;;;;;;;;-1:-1:-1;;2404:14:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2379:13;;2404:14;;2411:7;;2404:14;;2411:7;2404:14;;;;;;;;;;;;;;;;;;;;;;;;489:27:7;;;;:::o;6523:380:1:-;6638:4;6654:221;6676:12;:10;:12::i;:::-;6702:7;6723:142;6779:15;6723:142;;;;;;;;;;;;;;;;;:11;:25;6735:12;:10;:12::i;:::-;-1:-1:-1;;;;;6723:25:1;;;;;;;;;;;;;;;;;-1:-1:-1;6723:25:1;;;:34;;;;;;;;;;;:142;:38;:142::i;3703:194::-;3811:4;3827:42;3837:12;:10;:12::i;:::-;3851:9;3862:6;3827:9;:42::i;911:30:7:-;;;-1:-1:-1;;;;;911:30:7;;:::o;825:36::-;;;;:::o;877:28::-;;;-1:-1:-1;;;;;877:28:7;;:::o;3955:171:1:-;-1:-1:-1;;;;;4092:18:1;;;4066:7;4092:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3955:171::o;3984:1629:7:-;4028:25;4056:13;:11;:13::i;:::-;4028:41;;4079:29;4111:24;:22;:24::i;:::-;4174:16;;4235;;4079:56;;-1:-1:-1;4174:16:7;4341:42;;;;;:68;;-1:-1:-1;4387:22:7;;4341:68;4324:127;;;4434:7;;;;;;4324:127;4548:17;4534:10;:31;;:52;;;-1:-1:-1;4569:12:7;;:17;4534:52;4530:143;;;-1:-1:-1;;4602:16:7;:40;-1:-1:-1;4656:7:7;;4530:143;4768:12;;4683:20;;4706:84;;:44;:21;4732:17;4706:25;:44::i;:::-;:48;;:84::i;:::-;4683:107;-1:-1:-1;4871:35:7;:17;4683:107;4871:21;:35::i;:::-;4858:10;:48;4854:127;;;4937:33;:10;4952:17;4937:14;:33::i;:::-;4922:48;;4854:127;5058:19;5080:82;714:3;5080:34;5097:16;;5080:12;:16;;:34;;;;:::i;:82::-;5058:104;-1:-1:-1;5212:21:7;5236:29;:12;5058:104;5236:16;:29::i;:::-;5276:16;:40;;;5397:13;;5212:53;;-1:-1:-1;5397:30:7;;5415:11;5397:17;:30::i;:::-;5381:13;:46;5460:33;5474:4;5481:11;5460:5;:33::i;:::-;5509:15;;5503:37;;-1:-1:-1;;;;;5509:15:7;5526:13;5503:5;:37::i;:::-;5556:50;;;;;;;;;;;;;;;;;;;;;;;;;3984:1629;;;;;;;;:::o;399:31::-;;;;:::o;9246:439::-;1306:12:5;:10;:12::i;:::-;-1:-1:-1;;;;;1295:23:5;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1295:23:5;;1287:68;;;;;-1:-1:-1;;;1287:68:5;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1287:68:5;;;;;;;;;;;;;;;9355:13:7::1;:11;:13::i;:::-;9341:10;:27;;9320:137;;;;-1:-1:-1::0;;;9320:137:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;378:15;9488:10;:30;;9467:111;;;;-1:-1:-1::0;;;9467:111:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9610:16;::::0;9594:45:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;::::1;9649:16;:29:::0;9246:439::o;2009:274:5:-;1306:12;:10;:12::i;:::-;-1:-1:-1;;;;;1295:23:5;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1295:23:5;;1287:68;;;;;-1:-1:-1;;;1287:68:5;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1287:68:5;;;;;;;;;;;;;;;-1:-1:-1;;;;;2110:22:5;::::1;2089:107;;;;-1:-1:-1::0;;;2089:107:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2232:6;::::0;;2211:38:::1;::::0;-1:-1:-1;;;;;2211:38:5;;::::1;::::0;2232:6;::::1;::::0;2211:38:::1;::::0;::::1;2259:6;:17:::0;;-1:-1:-1;;;;;;2259:17:5::1;-1:-1:-1::0;;;;;2259:17:5;;;::::1;::::0;;;::::1;::::0;;2009:274::o;7595:428:7:-;1306:12:5;:10;:12::i;:::-;-1:-1:-1;;;;;1295:23:5;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1295:23:5;;1287:68;;;;;-1:-1:-1;;;1287:68:5;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1287:68:5;;;;;;;;;;;;;;;7697:16:7::1;::::0;:21;7676:127:::1;;;;-1:-1:-1::0;;;7676:127:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7861:9;7834:24;:22;:24::i;:::-;:36;7813:115;;;::::0;;-1:-1:-1;;;7813:115:7;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;7939:16;:28:::0;;;7982:34:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;7595:428:::0;:::o;947:89::-;994:42;947:89;:::o;2682:175:6:-;2740:7;2771:5;;;2794:6;;;;2786:46;;;;;-1:-1:-1;;;2786:46:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;2849:1;2682:175;-1:-1:-1;;;2682:175:6:o;598:104:0:-;685:10;598:104;:::o;9799:370:1:-;-1:-1:-1;;;;;9930:19:1;;9922:68;;;;-1:-1:-1;;;9922:68:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10008:21:1;;10000:68;;;;-1:-1:-1;;;10000:68:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10079:18:1;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10130:32;;;;;;;;;;;;;;;;;9799:370;;;:::o;7377:594::-;-1:-1:-1;;;;;7512:20:1;;7504:70;;;;-1:-1:-1;;;7504:70:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7592:23:1;;7584:71;;;;-1:-1:-1;;;7584:71:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7666:47;7687:6;7695:9;7706:6;7666:20;:47::i;:::-;7744:105;7779:6;7744:105;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7744:17:1;;;;;;:9;:17;;;;;;;:105;:21;:105::i;:::-;-1:-1:-1;;;;;7724:17:1;;;;;;;:9;:17;;;;;;:125;;;;7882:20;;;;;;;:32;;7907:6;7882:24;:32::i;:::-;-1:-1:-1;;;;;7859:20:1;;;;;;;:9;:20;;;;;;;;;:55;;;;7929:35;;;;;;;7859:20;;7929:35;;;;;;;;;;;;;7377:594;;;:::o;5424:163:6:-;5510:7;5545:12;5537:6;;;;5529:29;;;;-1:-1:-1;;;5529:29:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5575:5:6;;;5424:163::o;3530:215::-;3588:7;3611:6;3607:20;;-1:-1:-1;3626:1:6;3619:8;;3607:20;3649:5;;;3653:1;3649;:5;:1;3672:5;;;;;:10;3664:56;;;;-1:-1:-1;;;3664:56:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4209:150;4267:7;4298:1;4294;:5;4286:44;;;;;-1:-1:-1;;;4286:44:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;4351:1;4347;:5;;;;;;;4209:150;-1:-1:-1;;;4209:150:6:o;3128:155::-;3186:7;3218:1;3213;:6;;3205:49;;;;;-1:-1:-1;;;3205:49:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3271:5:6;;;3128:155::o;391:104:4:-;449:7;479:1;475;:5;:13;;487:1;475:13;;;-1:-1:-1;483:1:4;;468:20;-1:-1:-1;391:104:4:o;10401:160:7:-;10539:15;10401:160;:::o;8242:370:1:-;-1:-1:-1;;;;;8325:21:1;;8317:65;;;;;-1:-1:-1;;;8317:65:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;8393:49;8422:1;8426:7;8435:6;8393:20;:49::i;:::-;8468:12;;:24;;8485:6;8468:16;:24::i;:::-;8453:12;:39;-1:-1:-1;;;;;8523:18:1;;;;;;:9;:18;;;;;;:30;;8546:6;8523:22;:30::i;:::-;-1:-1:-1;;;;;8502:18:1;;;;;;:9;:18;;;;;;;;:51;;;;8568:37;;;;;;;8502:18;;;;8568:37;;;;;;;;;;8242:370;;:::o;11175:121::-;;;;:::o
Swarm Source
ipfs://50d9e474b6e7f59f148eb86c17e4d2b54963b959fdfcb0ff1f6697a44b9a3f85
Loading...
Loading
Loading...
Loading
OVERVIEW
LENX is the omnichain Bitcoin liquidity protocol, enabling supply of native Bitcoin as liquidity to borrow omnichain assets with built-in lending, leveraging Frax's BAMM and ZetaChain's CCIP.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 100.00% | $2,426.62 | 0.00505178 | $12.26 |
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.