Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 3,589 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 21196460 | 4 days ago | IN | 0 ETH | 0.0003994 | ||||
Approve | 21059236 | 23 days ago | IN | 0 ETH | 0.00036607 | ||||
Transfer | 21059216 | 23 days ago | IN | 0 ETH | 0.00038302 | ||||
Approve | 20747330 | 66 days ago | IN | 0 ETH | 0.00008063 | ||||
Transfer | 20747307 | 66 days ago | IN | 0 ETH | 0.00008787 | ||||
Approve | 20744973 | 67 days ago | IN | 0 ETH | 0.00011969 | ||||
Transfer | 20744966 | 67 days ago | IN | 0 ETH | 0.00028098 | ||||
Approve | 20061349 | 162 days ago | IN | 0 ETH | 0.00019281 | ||||
Approve | 19943547 | 179 days ago | IN | 0 ETH | 0.00010643 | ||||
Approve | 19810608 | 197 days ago | IN | 0 ETH | 0.00022025 | ||||
Approve | 19719403 | 210 days ago | IN | 0 ETH | 0.00036069 | ||||
Approve | 19719402 | 210 days ago | IN | 0 ETH | 0.00036312 | ||||
Approve | 19524989 | 237 days ago | IN | 0 ETH | 0.00052111 | ||||
Approve | 19300623 | 269 days ago | IN | 0 ETH | 0.00059032 | ||||
Approve | 19300623 | 269 days ago | IN | 0 ETH | 0.00059134 | ||||
Approve | 19074945 | 300 days ago | IN | 0 ETH | 0.00023546 | ||||
Approve | 19059396 | 303 days ago | IN | 0 ETH | 0.00026995 | ||||
Approve | 18909848 | 324 days ago | IN | 0 ETH | 0.00025604 | ||||
Approve | 18909845 | 324 days ago | IN | 0 ETH | 0.0002375 | ||||
Approve | 18739598 | 347 days ago | IN | 0 ETH | 0.0008225 | ||||
Approve | 18739598 | 347 days ago | IN | 0 ETH | 0.0008225 | ||||
Approve | 18684639 | 355 days ago | IN | 0 ETH | 0.00079564 | ||||
Approve | 18684624 | 355 days ago | IN | 0 ETH | 0.00080574 | ||||
Approve | 18618665 | 364 days ago | IN | 0 ETH | 0.00070903 | ||||
Approve | 18618663 | 364 days ago | IN | 0 ETH | 0.00070668 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AsgardERC20Token
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-12 */ /** *Submitted for verification at Etherscan.io on 2021-03-21 */ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; /** * @dev Intended to update the TWAP for a token based on accepting an update call from that token. * expectation is to have this happen in the _beforeTokenTransfer function of ERC20. * Provides a method for a token to register its price sourve adaptor. * Provides a function for a token to register its TWAP updater. Defaults to token itself. * Provides a function a tokent to set its TWAP epoch. * Implements automatic closeing and opening up a TWAP epoch when epoch ends. * Provides a function to report the TWAP from the last epoch when passed a token address. */ interface ITWAPOracle { function uniV2CompPairAddressForLastEpochUpdateBlockTimstamp(address) external returns (uint32); function priceTokenAddressForPricingTokenAddressForLastEpochUpdateBlockTimstamp( address tokenToPrice_, address tokenForPriceComparison_, uint256 epochPeriod_ ) external returns (uint32); function pricedTokenForPricingTokenForEpochPeriodForPrice( address, address, uint256 ) external returns (uint256); function pricedTokenForPricingTokenForEpochPeriodForLastEpochPrice( address, address, uint256 ) external returns (uint256); function updateTWAP( address uniV2CompatPairAddressToUpdate_, uint256 eopchPeriodToUpdate_ ) external returns (bool); } library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require( set._values.length > index, "EnumerableSet: index out of bounds" ); return set._values[index]; } function _getValues(Set storage set_) private view returns (bytes32[] storage) { return set_._values; } // TODO needs insert function that maintains order. // TODO needs NatSpec documentation comment. /** * Inserts new value by moving existing value at provided index to end of array and setting provided value at provided index */ function _insert( Set storage set_, uint256 index_, bytes32 valueToInsert_ ) private returns (bool) { require(set_._values.length > index_); require( !_contains(set_, valueToInsert_), "Remove value you wish to insert if you wish to reorder array." ); bytes32 existingValue_ = _at(set_, index_); set_._values[index_] = valueToInsert_; return _add(set_, existingValue_); } struct Bytes4Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes4Set storage set, bytes4 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes4Set storage set, bytes4 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes4Set storage set, bytes4 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values on the set. O(1). */ function length(Bytes4Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes4Set storage set, uint256 index) internal view returns (bytes4) { return bytes4(_at(set._inner, index)); } function getValues(Bytes4Set storage set_) internal view returns (bytes4[] memory) { bytes4[] memory bytes4Array_; for ( uint256 iteration_ = 0; _length(set_._inner) > iteration_; iteration_++ ) { bytes4Array_[iteration_] = bytes4(_at(set_._inner, iteration_)); } return bytes4Array_; } function insert( Bytes4Set storage set_, uint256 index_, bytes4 valueToInsert_ ) internal returns (bool) { return _insert(set_._inner, index_, valueToInsert_); } struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values on the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } function getValues(Bytes32Set storage set_) internal view returns (bytes4[] memory) { bytes4[] memory bytes4Array_; for ( uint256 iteration_ = 0; _length(set_._inner) >= iteration_; iteration_++ ) { bytes4Array_[iteration_] = bytes4(at(set_, iteration_)); } return bytes4Array_; } function insert( Bytes32Set storage set_, uint256 index_, bytes32 valueToInsert_ ) internal returns (bool) { return _insert(set_._inner, index_, valueToInsert_); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } /** * TODO Might require explicit conversion of bytes32[] to address[]. * Might require iteration. */ function getValues(AddressSet storage set_) internal view returns (address[] memory) { address[] memory addressArray; for ( uint256 iteration_ = 0; _length(set_._inner) >= iteration_; iteration_++ ) { addressArray[iteration_] = at(set_, iteration_); } return addressArray; } function insert( AddressSet storage set_, uint256 index_, address valueToInsert_ ) internal returns (bool) { return _insert(set_._inner, index_, bytes32(uint256(valueToInsert_))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } struct UInt256Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UInt256Set storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UInt256Set storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UInt256Set storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UInt256Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UInt256Set storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } 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 ); } library SafeMath { /** * @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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * 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); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrrt(uint256 a) internal pure returns (uint256 c) { if (a > 3) { c = a; uint256 b = add(div(a, 2), 1); while (b < c) { c = b; b = div(add(div(a, b), b), 2); } } else if (a != 0) { c = 1; } } /* * Expects percentage to be trailed by 00, */ function percentageAmount(uint256 total_, uint8 percentage_) internal pure returns (uint256 percentAmount_) { return div(mul(total_, percentage_), 1000); } /* * Expects percentage to be trailed by 00, */ function substractPercentage(uint256 total_, uint8 percentageToSub_) internal pure returns (uint256 result_) { return sub(total_, div(mul(total_, percentageToSub_), 1000)); } function percentageOfTotal(uint256 part_, uint256 total_) internal pure returns (uint256 percent_) { return div(mul(part_, 100), total_); } /** * Taken from Hypersonic https://github.com/M2629/HyperSonic/blob/main/Math.sol * @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); } function quadraticPricing(uint256 payment_, uint256 multiplier_) internal pure returns (uint256) { return sqrrt(mul(multiplier_, payment_)); } function bondingCurve(uint256 supply_, uint256 multiplier_) internal pure returns (uint256) { return mul(multiplier_, supply_); } } abstract contract ERC20 is IERC20 { using SafeMath for uint256; // TODO comment actual hash value. bytes32 private constant ERC20TOKEN_ERC1820_INTERFACE_ID = keccak256("ERC20Token"); // Present in ERC777 mapping(address => uint256) internal _balances; // Present in ERC777 mapping(address => mapping(address => uint256)) internal _allowances; // Present in ERC777 uint256 internal _totalSupply; // Present in ERC777 string internal _name; // Present in ERC777 string internal _symbol; // Present in ERC777 uint8 internal _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_, uint8 decimals_ ) { _name = name_; _symbol = symbol_; _decimals = decimals_; } /** * @dev Returns the name of the token. */ // Present in ERC777 function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ // Present in ERC777 function symbol() public view 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}. */ // Present in ERC777 function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ // Present in ERC777 function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ // Present in ERC777 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`. */ // Overrideen in ERC777 // Confirm that this behavior changes function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(msg.sender, recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ // Present in ERC777 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. */ // Present in ERC777 function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(msg.sender, 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`. */ // Present in ERC777 function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, msg.sender, _allowances[sender][msg.sender].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( msg.sender, spender, _allowances[msg.sender][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( msg.sender, spender, _allowances[msg.sender][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. */ // Present in ERC777 function _mint(address account_, uint256 amount_) internal virtual { require(account_ != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(this), account_, amount_); _totalSupply = _totalSupply.add(amount_); _balances[account_] = _balances[account_].add(amount_); emit Transfer(address(this), 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. */ // Present in ERC777 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. */ // Present in ERC777 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. */ // Considering deprication to reduce size of bytecode as changing _decimals to internal acheived the same functionality. // function _setupDecimals(uint8 decimals_) internal { // _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]. */ // Present in ERC777 function _beforeTokenTransfer( address from_, address to_, uint256 amount_ ) internal virtual {} } library Counters { using SafeMath for uint256; 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 { // The {SafeMath} overflow check can be skipped here, see the comment at the top counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } interface IERC2612Permit { /** * @dev Sets `amount` as the allowance of `spender` over `owner`'s tokens, * given `owner`'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current ERC2612 nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); } abstract contract ERC20Permit is ERC20, IERC2612Permit { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; bytes32 public DOMAIN_SEPARATOR; constructor() { uint256 chainID; assembly { chainID := chainid() } DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes(name())), keccak256(bytes("1")), // Version chainID, address(this) ) ); } /** * @dev See {IERC2612Permit-permit}. * */ function permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "Permit: expired deadline"); bytes32 hashStruct = keccak256( abi.encode( PERMIT_TYPEHASH, owner, spender, amount, _nonces[owner].current(), deadline ) ); bytes32 _hash = keccak256( abi.encodePacked(uint16(0x1901), DOMAIN_SEPARATOR, hashStruct) ); address signer = ecrecover(_hash, v, r, s); require( signer != address(0) && signer == owner, "ZeroSwapPermit: Invalid signature" ); _nonces[owner].increment(); _approve(owner, spender, amount); } /** * @dev See {IERC2612Permit-nonces}. */ function nonces(address owner) public view override returns (uint256) { return _nonces[owner].current(); } } interface IOwnable { function owner() external view returns (address); function renounceOwnership() external; function transferOwnership(address newOwner_) external; } contract Ownable is IOwnable { address internal _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view override returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == msg.sender, "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 override 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 override onlyOwner { require( newOwner_ != address(0), "Ownable: new owner is the zero address" ); emit OwnershipTransferred(_owner, newOwner_); _owner = newOwner_; } } contract VaultOwned is Ownable { address internal _vault; function setVault(address vault_) external onlyOwner returns (bool) { _vault = vault_; return true; } /** * @dev Returns the address of the current vault. */ function vault() public view returns (address) { return _vault; } /** * @dev Throws if called by any account other than the vault. */ modifier onlyVault() { require(_vault == msg.sender, "VaultOwned: caller is not the Vault"); _; } } contract TWAPOracleUpdater is ERC20Permit, VaultOwned { using EnumerableSet for EnumerableSet.AddressSet; event TWAPOracleChanged( address indexed previousTWAPOracle, address indexed newTWAPOracle ); event TWAPEpochChanged( uint256 previousTWAPEpochPeriod, uint256 newTWAPEpochPeriod ); event TWAPSourceAdded(address indexed newTWAPSource); event TWAPSourceRemoved(address indexed removedTWAPSource); EnumerableSet.AddressSet private _dexPoolsTWAPSources; ITWAPOracle public twapOracle; uint256 public twapEpochPeriod; constructor( string memory name_, string memory symbol_, uint8 decimals_ ) ERC20(name_, symbol_, decimals_) {} function changeTWAPOracle(address newTWAPOracle_) external onlyOwner { emit TWAPOracleChanged(address(twapOracle), newTWAPOracle_); twapOracle = ITWAPOracle(newTWAPOracle_); } function changeTWAPEpochPeriod(uint256 newTWAPEpochPeriod_) external onlyOwner { require( newTWAPEpochPeriod_ > 0, "TWAPOracleUpdater: TWAP Epoch period must be greater than 0." ); emit TWAPEpochChanged(twapEpochPeriod, newTWAPEpochPeriod_); twapEpochPeriod = newTWAPEpochPeriod_; } function addTWAPSource(address newTWAPSourceDexPool_) external onlyOwner { require( _dexPoolsTWAPSources.add(newTWAPSourceDexPool_), "AsgardERC20TOken: TWAP Source already stored." ); emit TWAPSourceAdded(newTWAPSourceDexPool_); } function removeTWAPSource(address twapSourceToRemove_) external onlyOwner { require( _dexPoolsTWAPSources.remove(twapSourceToRemove_), "AsgardERC20TOken: TWAP source not present." ); emit TWAPSourceRemoved(twapSourceToRemove_); } function _uodateTWAPOracle( address dexPoolToUpdateFrom_, uint256 twapEpochPeriodToUpdate_ ) internal { if (_dexPoolsTWAPSources.contains(dexPoolToUpdateFrom_)) { twapOracle.updateTWAP( dexPoolToUpdateFrom_, twapEpochPeriodToUpdate_ ); } } function _beforeTokenTransfer( address from_, address to_, uint256 amount_ ) internal virtual override { if (_dexPoolsTWAPSources.contains(from_)) { _uodateTWAPOracle(from_, twapEpochPeriod); } else { if (_dexPoolsTWAPSources.contains(to_)) { _uodateTWAPOracle(to_, twapEpochPeriod); } } } } contract Divine is TWAPOracleUpdater { constructor( string memory name_, string memory symbol_, uint8 decimals_ ) TWAPOracleUpdater(name_, symbol_, decimals_) {} } contract AsgardERC20Token is Divine { using SafeMath for uint256; constructor() Divine("Asgard", "ASG", 9) { } function mint(address account_, uint256 amount_) external onlyVault { _mint(account_, amount_); } /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(msg.sender, amount); } // function _beforeTokenTransfer( address from_, address to_, uint256 amount_ ) internal override virtual { // if( _dexPoolsTWAPSources.contains( from_ ) ) { // _uodateTWAPOracle( from_, twapEpochPeriod ); // } else { // if ( _dexPoolsTWAPSources.contains( to_ ) ) { // _uodateTWAPOracle( to_, twapEpochPeriod ); // } // } // } /* * @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 { _burnFrom(account_, amount_); } function _burnFrom(address account_, uint256 amount_) public virtual { uint256 decreasedAllowance_ = allowance(account_, msg.sender).sub( amount_, "ERC20: burn amount exceeds allowance" ); _approve(account_, msg.sender, decreasedAllowance_); _burn(account_, amount_); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousTWAPEpochPeriod","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTWAPEpochPeriod","type":"uint256"}],"name":"TWAPEpochChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousTWAPOracle","type":"address"},{"indexed":true,"internalType":"address","name":"newTWAPOracle","type":"address"}],"name":"TWAPOracleChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newTWAPSource","type":"address"}],"name":"TWAPSourceAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"removedTWAPSource","type":"address"}],"name":"TWAPSourceRemoved","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"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"_burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTWAPSourceDexPool_","type":"address"}],"name":"addTWAPSource","outputs":[],"stateMutability":"nonpayable","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":"address","name":"account_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTWAPEpochPeriod_","type":"uint256"}],"name":"changeTWAPEpochPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTWAPOracle_","type":"address"}],"name":"changeTWAPOracle","outputs":[],"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":[{"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":"address","name":"account_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","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":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"twapSourceToRemove_","type":"address"}],"name":"removeTWAPSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault_","type":"address"}],"name":"setVault","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"twapEpochPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"twapOracle","outputs":[{"internalType":"contract ITWAPOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600681526020017f41736761726400000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4153470000000000000000000000000000000000000000000000000000000000815250600982828282828282600390805190602001906200009e92919062000321565b508160049080519060200190620000b792919062000321565b5080600560006101000a81548160ff021916908360ff16021790555050505060004690507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200010c6200027b60201b60201c565b805190602001206040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250805190602001208330604051602001808681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200195505050505050604051602081830303815290604052805190602001206007819055505033600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050505050620003d7565b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015620003175780601f10620002eb5761010080835404028352916020019162000317565b820191906000526020600020905b815481529060010190602001808311620002f957829003601f168201915b5050505050905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620003595760008555620003a5565b82601f106200037457805160ff1916838001178555620003a5565b82800160010185558215620003a5579182015b82811115620003a457825182559160200191906001019062000387565b5b509050620003b49190620003b8565b5090565b5b80821115620003d3576000816000905550600101620003b9565b5090565b612ecb80620003e76000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806379cc679011610104578063a9059cbb116100a2578063dd62ed3e11610071578063dd62ed3e14610975578063efa058b1146109ed578063f2fde38b14610a31578063fbfa77cf14610a75576101da565b8063a9059cbb14610816578063c18230ec1461087a578063c5bc7002146108be578063d505accf146108dc576101da565b80639043292a116100de5780639043292a146106ad57806395d89b41146106e1578063a22b35ce14610764578063a457c2d7146107b2576101da565b806379cc6790146105d35780637ecebe00146106215780638da5cb5b14610679576101da565b80633644e5151161017c5780634daff8a31161014b5780634daff8a3146104e95780636817031b1461051757806370a0823114610571578063715018a6146105c9576101da565b80633644e515146103eb578063395093511461040957806340c10f191461046d57806342966c68146104bb576101da565b806323b872dd116101b857806323b872dd146102e457806330adf81f14610368578063313ce567146103865780633144fdf6146103a7576101da565b806306fdde03146101df578063095ea7b31461026257806318160ddd146102c6575b600080fd5b6101e7610aa9565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561022757808201518184015260208101905061020c565b50505050905090810190601f1680156102545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ae6004803603604081101561027857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b4b565b60405180821515815260200191505060405180910390f35b6102ce610b62565b6040518082815260200191505060405180910390f35b610350600480360360608110156102fa57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b6c565b60405180821515815260200191505060405180910390f35b610370610c37565b6040518082815260200191505060405180910390f35b61038e610c5e565b604051808260ff16815260200191505060405180910390f35b6103e9600480360360208110156103bd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c75565b005b6103f3610df8565b6040518082815260200191505060405180910390f35b6104556004803603604081101561041f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610dfe565b60405180821515815260200191505060405180910390f35b6104b96004803603604081101561048357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ea3565b005b6104e7600480360360208110156104d157600080fd5b8101908080359060200190929190505050610f57565b005b610515600480360360208110156104ff57600080fd5b8101908080359060200190929190505050610f64565b005b6105596004803603602081101561052d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110cb565b60405180821515815260200191505060405180910390f35b6105b36004803603602081101561058757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111da565b6040518082815260200191505060405180910390f35b6105d1611222565b005b61061f600480360360408110156105e957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113a6565b005b6106636004803603602081101561063757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113b4565b6040518082815260200191505060405180910390f35b610681611404565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106b561142e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106e9611454565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561072957808201518184015260208101905061070e565b50505050905090810190601f1680156107565780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107b06004803603604081101561077a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506114f6565b005b6107fe600480360360408110156107c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061154a565b60405180821515815260200191505060405180910390f35b6108626004803603604081101561082c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611609565b60405180821515815260200191505060405180910390f35b6108bc6004803603602081101561089057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611620565b005b6108c6611792565b6040518082815260200191505060405180910390f35b610973600480360360e08110156108f257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803560ff1690602001909291908035906020019092919080359060200190929190505050611798565b005b6109d76004803603604081101561098b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611abf565b6040518082815260200191505060405180910390f35b610a2f60048036036020811015610a0357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b46565b005b610a7360048036036020811015610a4757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611cb8565b005b610a7d611ec1565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b415780601f10610b1657610100808354040283529160200191610b41565b820191906000526020600020905b815481529060010190602001808311610b2457829003601f168201915b5050505050905090565b6000610b58338484611eeb565b6001905092915050565b6000600254905090565b6000610b798484846120e2565b610c2c8433610c2785604051806060016040528060288152602001612d9860289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123a39092919063ffffffff16565b611eeb565b600190509392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b81565b6000600560009054906101000a900460ff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d38576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f04d449efb9af82ca8fd89ca047e3c023180cac06245c5ace8ecf96c7f637c00a60405160405180910390a380600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b6000610e993384610e9485600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461246390919063ffffffff16565b611eeb565b6001905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612dc06023913960400191505060405180910390fd5b610f5382826124eb565b5050565b610f6133826126b0565b50565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611027576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008111611080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180612cbe603c913960400191505060405180910390fd5b7fcddeab46bd7c7fa32f59b80523bce21904a7f2031ac8fbefa3f9c2ba24cc0e9f600d5482604051808381526020018281526020019250505060405180910390a180600d8190555050565b60003373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611190576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b81600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6113b082826114f6565b5050565b60006113fd600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612874565b9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114ec5780601f106114c1576101008083540402835291602001916114ec565b820191906000526020600020905b8154815290600101906020018083116114cf57829003601f168201915b5050505050905090565b600061152e82604051806060016040528060248152602001612de36024913961151f8633611abf565b6123a39092919063ffffffff16565b905061153b833383611eeb565b61154583836126b0565b505050565b60006115ff33846115fa85604051806060016040528060258152602001612e7160259139600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123a39092919063ffffffff16565b611eeb565b6001905092915050565b60006116163384846120e2565b6001905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6116f781600a61288290919063ffffffff16565b61174c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180612d6b602d913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167fb702ce677d2c4388aab38b10f96ca003dbe3dadb46fbf858cb7d55cba6bebc4660405160405180910390a250565b600d5481565b8342111561180e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f5065726d69743a206578706972656420646561646c696e65000000000000000081525060200191505060405180910390fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b88888861187e600660008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612874565b89604051602001808781526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018281526020019650505050505050604051602081830303815290604052805190602001209050600061190160075483604051602001808461ffff1660f01b81526002018381526020018281526020019350505050604051602081830303815290604052805190602001209050600060018287878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611998573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015611a0c57508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612d206021913960400191505060405180910390fd5b611aa8600660008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206128b2565b611ab38a8a8a611eeb565b50505050505050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c09576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611c1d81600a6128c890919063ffffffff16565b611c72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612d41602a913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167f677b09947a451559cdf8756f4cb518daf9620feb88ad8f3434a77f4cbfc73bc960405160405180910390a250565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d7b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612c766026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612e4d6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ff7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612c9c6022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612168576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612e286025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612c316023913960400191505060405180910390fd5b6121f98383836128f8565b61226481604051806060016040528060268152602001612cfa602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123a39092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506122f7816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461246390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290612450576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156124155780820151818401526020810190506123fa565b50505050905090810190601f1680156124425780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808284019050838110156124e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561258e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b6125993083836128f8565b6125ae8160025461246390919063ffffffff16565b600281905550612605816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461246390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612736576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612e076021913960400191505060405180910390fd5b612742826000836128f8565b6127ad81604051806060016040528060228152602001612c54602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123a39092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506128048160025461294e90919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600081600001549050919050565b60006128aa836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612998565b905092915050565b6001816000016000828254019250508190555050565b60006128f0836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612a08565b905092915050565b61290c83600a612af090919063ffffffff16565b156129225761291d83600d54612b20565b612949565b61293682600a612af090919063ffffffff16565b156129485761294782600d54612b20565b5b5b505050565b600061299083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506123a3565b905092915050565b60006129a48383612c0d565b6129fd578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612a02565b600090505b92915050565b60008083600101600084815260200190815260200160002054905060008114612ae45760006001820390506000600186600001805490500390506000866000018281548110612a5357fe5b9060005260206000200154905080876000018481548110612a7057fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480612aa857fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050612aea565b60009150505b92915050565b6000612b18836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612c0d565b905092915050565b612b3482600a612af090919063ffffffff16565b15612c0957600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ef51a98283836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612bcc57600080fd5b505af1158015612be0573d6000803e3d6000fd5b505050506040513d6020811015612bf657600080fd5b8101908080519060200190929190505050505b5050565b60008083600101600084815260200190815260200160002054141590509291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373545741504f7261636c65557064617465723a20545741502045706f636820706572696f64206d7573742062652067726561746572207468616e20302e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655a65726f537761705065726d69743a20496e76616c6964207369676e61747572654173676172644552433230544f6b656e3a205457415020736f75726365206e6f742070726573656e742e4173676172644552433230544f6b656e3a205457415020536f7572636520616c72656164792073746f7265642e45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655661756c744f776e65643a2063616c6c6572206973206e6f7420746865205661756c7445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220acd2d11cfb9c13b43ff7ec964cf8d087de5e391d1d6b80d9bbe403a1cc161b2664736f6c63430007050033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806379cc679011610104578063a9059cbb116100a2578063dd62ed3e11610071578063dd62ed3e14610975578063efa058b1146109ed578063f2fde38b14610a31578063fbfa77cf14610a75576101da565b8063a9059cbb14610816578063c18230ec1461087a578063c5bc7002146108be578063d505accf146108dc576101da565b80639043292a116100de5780639043292a146106ad57806395d89b41146106e1578063a22b35ce14610764578063a457c2d7146107b2576101da565b806379cc6790146105d35780637ecebe00146106215780638da5cb5b14610679576101da565b80633644e5151161017c5780634daff8a31161014b5780634daff8a3146104e95780636817031b1461051757806370a0823114610571578063715018a6146105c9576101da565b80633644e515146103eb578063395093511461040957806340c10f191461046d57806342966c68146104bb576101da565b806323b872dd116101b857806323b872dd146102e457806330adf81f14610368578063313ce567146103865780633144fdf6146103a7576101da565b806306fdde03146101df578063095ea7b31461026257806318160ddd146102c6575b600080fd5b6101e7610aa9565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561022757808201518184015260208101905061020c565b50505050905090810190601f1680156102545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ae6004803603604081101561027857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b4b565b60405180821515815260200191505060405180910390f35b6102ce610b62565b6040518082815260200191505060405180910390f35b610350600480360360608110156102fa57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b6c565b60405180821515815260200191505060405180910390f35b610370610c37565b6040518082815260200191505060405180910390f35b61038e610c5e565b604051808260ff16815260200191505060405180910390f35b6103e9600480360360208110156103bd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c75565b005b6103f3610df8565b6040518082815260200191505060405180910390f35b6104556004803603604081101561041f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610dfe565b60405180821515815260200191505060405180910390f35b6104b96004803603604081101561048357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ea3565b005b6104e7600480360360208110156104d157600080fd5b8101908080359060200190929190505050610f57565b005b610515600480360360208110156104ff57600080fd5b8101908080359060200190929190505050610f64565b005b6105596004803603602081101561052d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110cb565b60405180821515815260200191505060405180910390f35b6105b36004803603602081101561058757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111da565b6040518082815260200191505060405180910390f35b6105d1611222565b005b61061f600480360360408110156105e957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113a6565b005b6106636004803603602081101561063757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113b4565b6040518082815260200191505060405180910390f35b610681611404565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106b561142e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106e9611454565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561072957808201518184015260208101905061070e565b50505050905090810190601f1680156107565780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107b06004803603604081101561077a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506114f6565b005b6107fe600480360360408110156107c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061154a565b60405180821515815260200191505060405180910390f35b6108626004803603604081101561082c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611609565b60405180821515815260200191505060405180910390f35b6108bc6004803603602081101561089057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611620565b005b6108c6611792565b6040518082815260200191505060405180910390f35b610973600480360360e08110156108f257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803560ff1690602001909291908035906020019092919080359060200190929190505050611798565b005b6109d76004803603604081101561098b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611abf565b6040518082815260200191505060405180910390f35b610a2f60048036036020811015610a0357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b46565b005b610a7360048036036020811015610a4757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611cb8565b005b610a7d611ec1565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b415780601f10610b1657610100808354040283529160200191610b41565b820191906000526020600020905b815481529060010190602001808311610b2457829003601f168201915b5050505050905090565b6000610b58338484611eeb565b6001905092915050565b6000600254905090565b6000610b798484846120e2565b610c2c8433610c2785604051806060016040528060288152602001612d9860289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123a39092919063ffffffff16565b611eeb565b600190509392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b81565b6000600560009054906101000a900460ff16905090565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d38576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f04d449efb9af82ca8fd89ca047e3c023180cac06245c5ace8ecf96c7f637c00a60405160405180910390a380600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b6000610e993384610e9485600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461246390919063ffffffff16565b611eeb565b6001905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612dc06023913960400191505060405180910390fd5b610f5382826124eb565b5050565b610f6133826126b0565b50565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611027576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008111611080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180612cbe603c913960400191505060405180910390fd5b7fcddeab46bd7c7fa32f59b80523bce21904a7f2031ac8fbefa3f9c2ba24cc0e9f600d5482604051808381526020018281526020019250505060405180910390a180600d8190555050565b60003373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611190576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b81600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6113b082826114f6565b5050565b60006113fd600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612874565b9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114ec5780601f106114c1576101008083540402835291602001916114ec565b820191906000526020600020905b8154815290600101906020018083116114cf57829003601f168201915b5050505050905090565b600061152e82604051806060016040528060248152602001612de36024913961151f8633611abf565b6123a39092919063ffffffff16565b905061153b833383611eeb565b61154583836126b0565b505050565b60006115ff33846115fa85604051806060016040528060258152602001612e7160259139600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123a39092919063ffffffff16565b611eeb565b6001905092915050565b60006116163384846120e2565b6001905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6116f781600a61288290919063ffffffff16565b61174c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180612d6b602d913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167fb702ce677d2c4388aab38b10f96ca003dbe3dadb46fbf858cb7d55cba6bebc4660405160405180910390a250565b600d5481565b8342111561180e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f5065726d69743a206578706972656420646561646c696e65000000000000000081525060200191505060405180910390fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b88888861187e600660008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612874565b89604051602001808781526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018281526020019650505050505050604051602081830303815290604052805190602001209050600061190160075483604051602001808461ffff1660f01b81526002018381526020018281526020019350505050604051602081830303815290604052805190602001209050600060018287878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611998573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015611a0c57508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612d206021913960400191505060405180910390fd5b611aa8600660008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206128b2565b611ab38a8a8a611eeb565b50505050505050505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c09576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611c1d81600a6128c890919063ffffffff16565b611c72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612d41602a913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167f677b09947a451559cdf8756f4cb518daf9620feb88ad8f3434a77f4cbfc73bc960405160405180910390a250565b3373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d7b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612c766026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612e4d6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ff7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612c9c6022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612168576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612e286025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612c316023913960400191505060405180910390fd5b6121f98383836128f8565b61226481604051806060016040528060268152602001612cfa602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123a39092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506122f7816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461246390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290612450576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156124155780820151818401526020810190506123fa565b50505050905090810190601f1680156124425780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808284019050838110156124e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561258e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b6125993083836128f8565b6125ae8160025461246390919063ffffffff16565b600281905550612605816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461246390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612736576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612e076021913960400191505060405180910390fd5b612742826000836128f8565b6127ad81604051806060016040528060228152602001612c54602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123a39092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506128048160025461294e90919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600081600001549050919050565b60006128aa836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612998565b905092915050565b6001816000016000828254019250508190555050565b60006128f0836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612a08565b905092915050565b61290c83600a612af090919063ffffffff16565b156129225761291d83600d54612b20565b612949565b61293682600a612af090919063ffffffff16565b156129485761294782600d54612b20565b5b5b505050565b600061299083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506123a3565b905092915050565b60006129a48383612c0d565b6129fd578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612a02565b600090505b92915050565b60008083600101600084815260200190815260200160002054905060008114612ae45760006001820390506000600186600001805490500390506000866000018281548110612a5357fe5b9060005260206000200154905080876000018481548110612a7057fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480612aa857fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050612aea565b60009150505b92915050565b6000612b18836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612c0d565b905092915050565b612b3482600a612af090919063ffffffff16565b15612c0957600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ef51a98283836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612bcc57600080fd5b505af1158015612be0573d6000803e3d6000fd5b505050506040513d6020811015612bf657600080fd5b8101908080519060200190929190505050505b5050565b60008083600101600084815260200190815260200160002054141590509291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373545741504f7261636c65557064617465723a20545741502045706f636820706572696f64206d7573742062652067726561746572207468616e20302e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655a65726f537761705065726d69743a20496e76616c6964207369676e61747572654173676172644552433230544f6b656e3a205457415020736f75726365206e6f742070726573656e742e4173676172644552433230544f6b656e3a205457415020536f7572636520616c72656164792073746f7265642e45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655661756c744f776e65643a2063616c6c6572206973206e6f7420746865205661756c7445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220acd2d11cfb9c13b43ff7ec964cf8d087de5e391d1d6b80d9bbe403a1cc161b2664736f6c63430007050033
Deployed Bytecode Sourcemap
48090:1634:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28067:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30548:208;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29220:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31264:450;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;40719:117;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29046:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;45939:198;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;40845:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;32123:296;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;48225:111;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;48452:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46145:372;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;44663:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29409:177;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;43939:157;;;:::i;:::-;;49260:115;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;42499:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;43290:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;45712:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;28295:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49383:338;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;32922:396;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29871:214;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;46525:288;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;45750:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41472:959;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;30174:201;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46821:287;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;44251:335;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;44870:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;28067:83;28104:13;28137:5;28130:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28067:83;:::o;30548:208::-;30667:4;30689:37;30698:10;30710:7;30719:6;30689:8;:37::i;:::-;30744:4;30737:11;;30548:208;;;;:::o;29220:100::-;29273:7;29300:12;;29293:19;;29220:100;:::o;31264:450::-;31404:4;31421:36;31431:6;31439:9;31450:6;31421:9;:36::i;:::-;31468:216;31491:6;31512:10;31537:136;31591:6;31537:136;;;;;;;;;;;;;;;;;:11;:19;31549:6;31537:19;;;;;;;;;;;;;;;:31;31557:10;31537:31;;;;;;;;;;;;;;;;:35;;:136;;;;;:::i;:::-;31468:8;:216::i;:::-;31702:4;31695:11;;31264:450;;;;;:::o;40719:117::-;40770:66;40719:117;;;:::o;29046:83::-;29087:5;29112:9;;;;;;;;;;;29105:16;;29046:83;:::o;45939:198::-;43521:10;43511:20;;:6;;;;;;;;;;;:20;;;43503:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46063:14:::1;46024:54;;46050:10;;;;;;;;;;;46024:54;;;;;;;;;;;;46114:14;46089:10;;:40;;;;;;;;;;;;;;;;;;45939:198:::0;:::o;40845:31::-;;;;:::o;32123:296::-;32238:4;32260:129;32283:10;32308:7;32330:48;32367:10;32330:11;:23;32342:10;32330:23;;;;;;;;;;;;;;;:32;32354:7;32330:32;;;;;;;;;;;;;;;;:36;;:48;;;;:::i;:::-;32260:8;:129::i;:::-;32407:4;32400:11;;32123:296;;;;:::o;48225:111::-;45092:10;45082:20;;:6;;;;;;;;;;;:20;;;45074:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48304:24:::1;48310:8;48320:7;48304:5;:24::i;:::-;48225:111:::0;;:::o;48452:89::-;48508:25;48514:10;48526:6;48508:5;:25::i;:::-;48452:89;:::o;46145:372::-;43521:10;43511:20;;:6;;;;;;;;;;;:20;;;43503:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46302:1:::1;46280:19;:23;46258:133;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46407:54;46424:15;;46441:19;46407:54;;;;;;;;;;;;;;;;;;;;;;;;46490:19;46472:15;:37;;;;46145:372:::0;:::o;44663:126::-;44725:4;43521:10;43511:20;;:6;;;;;;;;;;;:20;;;43503:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44751:6:::1;44742;;:15;;;;;;;;;;;;;;;;;;44777:4;44770:11;;44663:126:::0;;;:::o;29409:177::-;29528:7;29560:9;:18;29570:7;29560:18;;;;;;;;;;;;;;;;29553:25;;29409:177;;;:::o;43939:157::-;43521:10;43511:20;;:6;;;;;;;;;;;:20;;;43503:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44055:1:::1;44018:40;;44039:6;;;;;;;;;;;44018:40;;;;;;;;;;;;44086:1;44069:6;;:19;;;;;;;;;;;;;;;;;;43939:157::o:0;49260:115::-;49339:28;49349:8;49359:7;49339:9;:28::i;:::-;49260:115;;:::o;42499:120::-;42560:7;42587:24;:7;:14;42595:5;42587:14;;;;;;;;;;;;;;;:22;:24::i;:::-;42580:31;;42499:120;;;:::o;43290:88::-;43337:7;43364:6;;;;;;;;;;;43357:13;;43290:88;:::o;45712:29::-;;;;;;;;;;;;;:::o;28295:87::-;28334:13;28367:7;28360:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28295:87;:::o;49383:338::-;49463:27;49493:121;49543:7;49493:121;;;;;;;;;;;;;;;;;:31;49503:8;49513:10;49493:9;:31::i;:::-;:35;;:121;;;;;:::i;:::-;49463:151;;49627:51;49636:8;49646:10;49658:19;49627:8;:51::i;:::-;49689:24;49695:8;49705:7;49689:5;:24::i;:::-;49383:338;;;:::o;32922:396::-;33042:4;33064:224;33087:10;33112:7;33134:143;33189:15;33134:143;;;;;;;;;;;;;;;;;:11;:23;33146:10;33134:23;;;;;;;;;;;;;;;:32;33158:7;33134:32;;;;;;;;;;;;;;;;:36;;:143;;;;;:::i;:::-;33064:8;:224::i;:::-;33306:4;33299:11;;32922:396;;;;:::o;29871:214::-;29993:4;30015:40;30025:10;30037:9;30048:6;30015:9;:40::i;:::-;30073:4;30066:11;;29871:214;;;;:::o;46525:288::-;43521:10;43511:20;;:6;;;;;;;;;;;:20;;;43503:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46631:47:::1;46656:21;46631:20;:24;;:47;;;;:::i;:::-;46609:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46783:21;46767:38;;;;;;;;;;;;46525:288:::0;:::o;45750:30::-;;;;:::o;41472:959::-;41717:8;41698:15;:27;;41690:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41767:18;40770:66;41841:15;;41875:5;41899:7;41925:6;41950:24;:7;:14;41958:5;41950:14;;;;;;;;;;;;;;;:22;:24::i;:::-;41993:8;41812:204;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41788:239;;;;;;41767:260;;42040:13;42104:6;42113:16;;42131:10;42080:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42056:97;;;;;;42040:113;;42166:14;42183:25;42193:5;42200:1;42203;42206;42183:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42166:42;;42259:1;42241:20;;:6;:20;;;;:39;;;;;42275:5;42265:15;;:6;:15;;;42241:39;42219:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42354:26;:7;:14;42362:5;42354:14;;;;;;;;;;;;;;;:24;:26::i;:::-;42391:32;42400:5;42407:7;42416:6;42391:8;:32::i;:::-;41472:959;;;;;;;;;;:::o;30174:201::-;30308:7;30340:11;:18;30352:5;30340:18;;;;;;;;;;;;;;;:27;30359:7;30340:27;;;;;;;;;;;;;;;;30333:34;;30174:201;;;;:::o;46821:287::-;43521:10;43511:20;;:6;;;;;;;;;;;:20;;;43503:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46928:48:::1;46956:19;46928:20;:27;;:48;;;;:::i;:::-;46906:140;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47080:19;47062:38;;;;;;;;;;;;46821:287:::0;:::o;44251:335::-;43521:10;43511:20;;:6;;;;;;;;;;;:20;;;43503:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44426:1:::1;44405:23;;:9;:23;;;;44383:111;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44539:9;44510:39;;44531:6;;;;;;;;;;;44510:39;;;;;;;;;;;;44569:9;44560:6;;:18;;;;;;;;;;;;;;;;;;44251:335:::0;:::o;44870:79::-;44908:7;44935:6;;;;;;;;;;;44928:13;;44870:79;:::o;36395:380::-;36548:1;36531:19;;:5;:19;;;;36523:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36629:1;36610:21;;:7;:21;;;;36602:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36713:6;36683:11;:18;36695:5;36683:18;;;;;;;;;;;;;;;:27;36702:7;36683:27;;;;;;;;;;;;;;;:36;;;;36751:7;36735:32;;36744:5;36735:32;;;36760:6;36735:32;;;;;;;;;;;;;;;;;;36395:380;;;:::o;33808:610::-;33966:1;33948:20;;:6;:20;;;;33940:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34050:1;34029:23;;:9;:23;;;;34021:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34105:47;34126:6;34134:9;34145:6;34105:20;:47::i;:::-;34185:108;34221:6;34185:108;;;;;;;;;;;;;;;;;:9;:17;34195:6;34185:17;;;;;;;;;;;;;;;;:21;;:108;;;;;:::i;:::-;34165:9;:17;34175:6;34165:17;;;;;;;;;;;;;;;:128;;;;34327:32;34352:6;34327:9;:20;34337:9;34327:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;34304:9;:20;34314:9;34304:20;;;;;;;;;;;;;;;:55;;;;34392:9;34375:35;;34384:6;34375:35;;;34403:6;34375:35;;;;;;;;;;;;;;;;;;33808:610;;;:::o;21162:226::-;21282:7;21315:1;21310;:6;;21318:12;21302:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21342:9;21358:1;21354;:5;21342:17;;21379:1;21372:8;;;21162:226;;;;;:::o;20259:181::-;20317:7;20337:9;20353:1;20349;:5;20337:17;;20378:1;20373;:6;;20365:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20431:1;20424:8;;;20259:181;;;;:::o;34726:391::-;34832:1;34812:22;;:8;:22;;;;34804:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34881:54;34910:4;34917:8;34927:7;34881:20;:54::i;:::-;34961:25;34978:7;34961:12;;:16;;:25;;;;:::i;:::-;34946:12;:40;;;;35019:32;35043:7;35019:9;:19;35029:8;35019:19;;;;;;;;;;;;;;;;:23;;:32;;;;:::i;:::-;34997:9;:19;35007:8;34997:19;;;;;;;;;;;;;;;:54;;;;35091:8;35067:42;;35084:4;35067:42;;;35101:7;35067:42;;;;;;;;;;;;;;;;;;34726:391;;:::o;35476:455::-;35579:1;35560:21;;:7;:21;;;;35552:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35632:49;35653:7;35670:1;35674:6;35632:20;:49::i;:::-;35715:105;35752:6;35715:105;;;;;;;;;;;;;;;;;:9;:18;35725:7;35715:18;;;;;;;;;;;;;;;;:22;;:105;;;;;:::i;:::-;35694:9;:18;35704:7;35694:18;;;;;;;;;;;;;;;:126;;;;35846:24;35863:6;35846:12;;:16;;:24;;;;:::i;:::-;35831:12;:39;;;;35912:1;35886:37;;35895:7;35886:37;;;35916:6;35886:37;;;;;;;;;;;;;;;;;;35476:455;;:::o;38542:114::-;38607:7;38634;:14;;;38627:21;;38542:114;;;:::o;11501:166::-;11589:4;11618:41;11623:3;:10;;11651:5;11643:14;;11635:23;;11618:4;:41::i;:::-;11611:48;;11501:166;;;;:::o;38664:181::-;38836:1;38818:7;:14;;;:19;;;;;;;;;;;38664:181;:::o;11843:172::-;11934:4;11963:44;11971:3;:10;;11999:5;11991:14;;11983:23;;11963:7;:44::i;:::-;11956:51;;11843:172;;;;:::o;47469:409::-;47619:36;47649:5;47619:20;:29;;:36;;;;:::i;:::-;47615:256;;;47672:41;47690:5;47697:15;;47672:17;:41::i;:::-;47615:256;;;47750:34;47780:3;47750:20;:29;;:34;;;;:::i;:::-;47746:114;;;47805:39;47823:3;47828:15;;47805:17;:39::i;:::-;47746:114;47615:256;47469:409;;;:::o;20723:136::-;20781:7;20808:43;20812:1;20815;20808:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;20801:50;;20723:136;;;;:::o;2487:414::-;2550:4;2572:21;2582:3;2587:5;2572:9;:21::i;:::-;2567:327;;2610:3;:11;;2627:5;2610:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2793:3;:11;;:18;;;;2771:3;:12;;:19;2784:5;2771:19;;;;;;;;;;;:40;;;;2833:4;2826:11;;;;2567:327;2877:5;2870:12;;2487:414;;;;;:::o;3077:1557::-;3143:4;3261:18;3282:3;:12;;:19;3295:5;3282:19;;;;;;;;;;;;3261:40;;3332:1;3318:10;:15;3314:1313;;3693:21;3730:1;3717:10;:14;3693:38;;3746:17;3787:1;3766:3;:11;;:18;;;;:22;3746:42;;4033:17;4053:3;:11;;4065:9;4053:22;;;;;;;;;;;;;;;;4033:42;;4199:9;4170:3;:11;;4182:13;4170:26;;;;;;;;;;;;;;;:38;;;;4318:1;4302:13;:17;4276:3;:12;;:23;4289:9;4276:23;;;;;;;;;;;:43;;;;4428:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;4523:3;:12;;:19;4536:5;4523:19;;;;;;;;;;;4516:26;;;4566:4;4559:11;;;;;;;;3314:1313;4610:5;4603:12;;;3077:1557;;;;;:::o;12101:190::-;12208:4;12237:46;12247:3;:10;;12275:5;12267:14;;12259:23;;12237:9;:46::i;:::-;12230:53;;12101:190;;;;:::o;47116:345::-;47256:51;47286:20;47256;:29;;:51;;;;:::i;:::-;47252:202;;;47324:10;;;;;;;;;;;:21;;;47364:20;47403:24;47324:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47252:202;47116:345;;:::o;4720:161::-;4820:4;4872:1;4849:3;:12;;:19;4862:5;4849:19;;;;;;;;;;;;:24;;4842:31;;4720:161;;;;:::o
Swarm Source
ipfs://acd2d11cfb9c13b43ff7ec964cf8d087de5e391d1d6b80d9bbe403a1cc161b26
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.