Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,597 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Distribute Token... | 10888005 | 1599 days ago | IN | 0 ETH | 0.00842214 | ||||
Distribute Token... | 10868888 | 1602 days ago | IN | 0 ETH | 0.002717 | ||||
Distribute Token... | 10862106 | 1603 days ago | IN | 0 ETH | 0.0369 | ||||
Distribute Token... | 10861059 | 1603 days ago | IN | 0 ETH | 0.00882 | ||||
Distribute Token... | 10860893 | 1603 days ago | IN | 0 ETH | 0.018522 | ||||
Distribute Token... | 10860704 | 1603 days ago | IN | 0 ETH | 0.01764 | ||||
Distribute Token... | 10860319 | 1603 days ago | IN | 0 ETH | 0.015288 | ||||
Distribute Token... | 10860016 | 1604 days ago | IN | 0 ETH | 0.0139944 | ||||
Distribute Token... | 10859867 | 1604 days ago | IN | 0 ETH | 0.014994 | ||||
Distribute Token... | 10859657 | 1604 days ago | IN | 0 ETH | 0.014406 | ||||
Distribute Token... | 10859535 | 1604 days ago | IN | 0 ETH | 0.01323 | ||||
Distribute Token... | 10859388 | 1604 days ago | IN | 0 ETH | 0.012936 | ||||
Distribute Token... | 10858789 | 1604 days ago | IN | 0 ETH | 0.01662552 | ||||
Distribute Token... | 10858738 | 1604 days ago | IN | 0 ETH | 0.01029 | ||||
Distribute Token... | 10858729 | 1604 days ago | IN | 0 ETH | 0.01029 | ||||
Distribute Token... | 10858696 | 1604 days ago | IN | 0 ETH | 0.0102312 | ||||
Distribute Token... | 10858534 | 1604 days ago | IN | 0 ETH | 0.0092316 | ||||
Distribute Token... | 10858054 | 1604 days ago | IN | 0 ETH | 0.007644 | ||||
Distribute Token... | 10857442 | 1604 days ago | IN | 0 ETH | 0.0063504 | ||||
Distribute Token... | 10857375 | 1604 days ago | IN | 0 ETH | 0.0095003 | ||||
Distribute Token... | 10857265 | 1604 days ago | IN | 0 ETH | 0.0050568 | ||||
Distribute Token... | 10857093 | 1604 days ago | IN | 0 ETH | 0.005292 | ||||
Distribute Token... | 10857009 | 1604 days ago | IN | 0 ETH | 0.006642 | ||||
Distribute Token... | 10856729 | 1604 days ago | IN | 0 ETH | 0.007056 | ||||
Distribute Token... | 10856564 | 1604 days ago | IN | 0 ETH | 0.00665021 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xf8E30096...42a633808 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ConvergentAuction
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-05 */ // File: openzeppelin-solidity/contracts/utils/EnumerableSet.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ 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]; } // 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))); } // 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)); } } // File: openzeppelin-solidity/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: openzeppelin-solidity/contracts/GSN/Context.sol pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: openzeppelin-solidity/contracts/access/AccessControl.sol pragma solidity ^0.6.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } } // File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, 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; } } // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/ConvergentAuction.sol pragma solidity ^0.6.12; interface SupportsWhitelisting { function addToWhiteList(address account) external; } contract ConvergentAuction is AccessControl, SupportsWhitelisting { using SafeMath for uint256; using SafeERC20 for IERC20; bytes32 private constant WHITELIST = keccak256("WHITELIST"); // whitelist role bytes32 private constant WHITELIST_ADMIN = keccak256("WHITELIST_ADMIN"); // whitelist admin role uint256 private constant price_external_multiplier = 100; // price we recieve is multiplied by 100, which allows 2 decimals uint256 private constant price_internal_multiplier = 1; uint256 private constant price_divisor = 100; uint256 private constant at_unit = 1_000_000; // unit of auctioned token, 6 decimals uint256 private constant pt_unit = 1_000_000; // unit of payment token, 6 decimals uint private constant dayish = 86400; uint256 public min_price; // Minimal price uint256 private max_price; // Maximal price uint256 private constant min_amount = 10 * at_unit; uint256 private constant tokens_for_sale = 211_500 * at_unit; // each point allows increase by 0.1% of the original_price uint[5] daily_increase_points = [ 900, 700, 500, 300, 100 ]; address private _owner; uint public _start_time; bool private _threshold_finalized = false; uint private _distributed_count = 0; IERC20 public auctioned_token; IERC20 public payment_token; uint256 public threshold_price; uint256 public threshold_ratio; // execution ration for bids exactly at threshold_price, should be divided by 1000 struct Bid { address bid_address; uint64 amount; uint16 original_price; uint16 price; uint32 last_update; uint8 day_of_auction; uint16 points_used; bool distributed; } Bid[] private _bids; mapping (address => uint) private bid_indices; // index in _bids array plus one modifier whenAuctionGoing() { require(isInSubmissionPhase() || isInBiddingPhase(), "auction is not going"); _; } modifier whenAuctionEnded() { require(auctionEnded(), "auction is still on going"); _; } modifier isThresholdFinalized() { require(_threshold_finalized == true, "auction threshold was not finalized yet"); _; } event WhitelistAdded(address indexed account); event ThresholdSet(uint256 price, uint256 ratio); event BidCreated(address indexed account, uint256 amount, uint256 price); event BidUpdated(address indexed account, uint256 amount, uint256 price); // compute amount of payment tokens corresponding to purchase of amount of auctioned tokens at price // we assume that price was multiplied by price_external_multiplier by the front-end function compute_payment(uint256 amount, uint256 price) internal pure returns (uint256) { return amount.mul(price).mul(price_internal_multiplier).div(price_divisor); } constructor(address owner, address wl_admin, uint _min_price, uint start_time, IERC20 a_token, IERC20 p_token) public { // make sure that unit scaling is consistent // for 1 unit of auctioned token and price of 1 (which is scaled by price_external_multiplier) we should get 1 unit of payment unit require(compute_payment(at_unit, price_external_multiplier) == pt_unit, "units not consistent"); require(start_time >= block.timestamp, "start time should be in the future time"); min_price = _min_price; max_price = _min_price.mul(100); _owner = owner; _setupRole(DEFAULT_ADMIN_ROLE, owner); // owner can change wl admin list via grantRole/revokeRole _setRoleAdmin(WHITELIST, WHITELIST_ADMIN); // accounts with WHITELIST_ADMIN role will be able to add accounts to WHITELIST role _setupRole(WHITELIST_ADMIN, wl_admin); // start with one whitelist admin _start_time = start_time; auctioned_token = a_token; payment_token = p_token; } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } function isInSubmissionPhase() public view returns (bool) { return (block.timestamp >= _start_time && block.timestamp <= _start_time + (2 * dayish)); } function isInBiddingPhase() public view returns (bool) { return (block.timestamp > _start_time + (2 * dayish) && block.timestamp <= _start_time + (7 * dayish)); } function auctionEnded() public view returns (bool) { return block.timestamp > _start_time + (7 * dayish); } /** * @dev admin can add a specific address to white list address */ function addToWhiteList(address account) external override { // caller must have WHITELIST_ADMIN role grantRole(WHITELIST, account); emit WhitelistAdded(account); } function create_bid(uint64 amount, uint16 price) external whenAuctionGoing { address _sender = _msgSender(); // verify that auction token was already fully deposited into the smart contract if (_bids.length == 0) { require(auctioned_token.balanceOf(address(this)) >= tokens_for_sale, 'auction token was not deposited enough'); } // only white list address can join the auction require(hasRole(WHITELIST, _sender), "AccessControl: only white list address can join the auction"); // check bidding submission is still allowed require(isInSubmissionPhase(), "submission time is over"); // check parameter sanity require(bid_indices[_sender] == 0, "bidder already exists"); require(price >= min_price && price <= max_price, "bidding price is out of range"); require(amount >= min_amount, "too small amount"); Bid storage bid = _bids.push(); bid.bid_address = _sender; bid.amount = amount; bid.original_price = price; bid.price = price; bid.last_update = uint32(block.timestamp); // the rest of fields are zero-initialized bid_indices[_sender] = _bids.length; // note: starting from 1 payment_token.safeTransferFrom(_sender, address(this), compute_payment(amount, price)); emit BidCreated(_sender, amount, price); } // this function is called only from the client function max_price_increase_allowed(address bidder) external view returns (uint256) { require(bid_indices[bidder] > 0, "bid does not exist"); Bid storage bid = _bids[bid_indices[bidder] - 1]; if (isInBiddingPhase()) { uint8 day_of_auction = uint8((block.timestamp - _start_time) / dayish); uint points_used = 0; uint this_day_increase_points = daily_increase_points[day_of_auction-2]; if (bid.day_of_auction == day_of_auction) { points_used = bid.points_used; } if (points_used >= this_day_increase_points) { return bid.price; } uint points_usable = this_day_increase_points - points_used - 1; // we remove 1 point to compensate for different rounding uint calc_max_price = ((points_usable.mul(bid.original_price)).div(1000)).add(bid.price); if (calc_max_price <= max_price) return calc_max_price; else return max_price; } else { return max_price; } } function update_bid(uint64 amount, uint16 price) external whenAuctionGoing { address _sender = _msgSender(); require(bid_indices[_sender] > 0, "bid does not exist"); Bid storage bid = _bids[bid_indices[_sender] - 1]; // updating bid can't be more often than once an hour require(block.timestamp - bid.last_update >= (dayish/24), "updating bid can't be more often than once an hour"); bid.last_update = uint32(block.timestamp); // sanity check require(price <= max_price, "bidding price is out of range"); require(price >= bid.price, "new price must be greater or equal to current price"); require(amount >= min_amount, "too small amount"); uint256 old_collateral = compute_payment(bid.amount, bid.price); uint256 new_collateral = compute_payment(amount, price); require(new_collateral >= old_collateral, "collateral cannot be decreased"); // restrict update amount & price after 2 days of the submission phase if (isInBiddingPhase()) { require(price > bid.price, "new price must be greater than current price"); require(amount <= bid.amount, "new amount must be less than or equal to current amount"); uint8 day_of_auction = uint8((block.timestamp - _start_time) / dayish); if (bid.day_of_auction < day_of_auction) { // reset points_used on new day bid.day_of_auction = day_of_auction; bid.points_used = 0; } // how many increase points are needed for this price increase? uint points_needed = uint(price - bid.price).mul(1000).div( bid.original_price ); uint points_this_day = daily_increase_points[day_of_auction-2]; require( points_needed.add( bid.points_used ) <= points_this_day, "price is over maximum daily price increment allowance"); bid.points_used = uint16(bid.points_used + points_needed); // overflow is impossible } else if (isInSubmissionPhase()) { // update original_price also bid.original_price = price; } // first two days have no restriction on price increase bid.amount = amount; bid.price = price; if (new_collateral > old_collateral) { payment_token.safeTransferFrom(_sender, address(this), new_collateral.sub(old_collateral)); } emit BidUpdated(_sender, amount, price); } /** * @dev get bid detail of the specific address */ function getBid(address addr) external view returns (address, uint256, uint256, uint256, uint, uint, uint, bool) { Bid memory bid = _bids[bid_indices[addr] - 1]; return (bid.bid_address, bid.amount, bid.original_price, bid.price, bid.last_update, bid.day_of_auction, bid.points_used, bid.distributed); } /** * @dev return array of bids (bid_address, amount, price) joining in the auction to calculate threshold price and threshold ratio off-chain */ function getBids(uint from, uint count) external view returns (address[] memory, uint256[] memory, uint256[] memory) { uint length = from + count; require(from >= 0 && from < _bids.length && count > 0 && length <= _bids.length, "index out of range"); address[] memory addresses = new address[](count); uint256[] memory amounts = new uint256[](count); uint256[] memory prices = new uint256[](count); uint j = 0; for (uint i = from; i < length; i++) { Bid storage bid = _bids[i]; addresses[j] = bid.bid_address; amounts[j] = bid.amount; prices[j] = bid.price; j++; } return (addresses, amounts, prices); } function getBidsExtra(uint from, uint count) external view returns (uint[] memory original_price, uint[] memory last_update, uint[] memory day_of_auction, uint[] memory points_used, bool[] memory distributed) { uint length = from + count; original_price = new uint[](count); last_update = new uint[](count); day_of_auction = new uint[](count); points_used = new uint[](count); distributed = new bool[](count); require(from >= 0 && from < _bids.length && count > 0 && length <= _bids.length, "index out of range"); uint j = 0; for (uint i = from; i < length; i++) { Bid storage bid = _bids[i]; original_price[j] = bid.original_price; last_update[j] = bid.last_update; day_of_auction[j] = bid.day_of_auction; points_used[j] = bid.points_used; distributed[j] = bid.distributed; j++; } } /** * @dev return the total number of bids */ function getBidCount() external view returns (uint) { return _bids.length; } /** * @dev contract owner can set temporarily current threshold price and ratio. * Do not allow to reset threshold price and ratio when the auction already ended. */ function setThreshold(uint256 price, uint256 ratio) external onlyOwner whenAuctionEnded { require(_threshold_finalized == false, "threshold already finalized"); require(price >= min_price && price <= max_price, 'threshold price is out of range'); require(ratio >= 0 && ratio <= 1000, 'threshold ratio is out of range'); require(_distributed_count == 0); // if we started "distributing" before setThreshold via returnCollateral, the auction is considered failed, and cannot be finalized. threshold_price = price; threshold_ratio = ratio; _threshold_finalized = true; emit ThresholdSet(price, ratio); } function distributeTokens(address addr) public isThresholdFinalized { require(bid_indices[addr] > 0); Bid storage bid = _bids[bid_indices[addr] - 1]; require(bid.distributed == false); bid.distributed = true; _distributed_count++; if (bid.price >= threshold_price) { uint256 b_amount = bid.amount; if (bid.price == threshold_price && threshold_ratio != 1000) { // reduce bought amount using ratio b_amount = b_amount.mul(threshold_ratio).div(1000); } uint256 unused_collateral = compute_payment(bid.amount, bid.price).sub(compute_payment(b_amount, threshold_price)); if (unused_collateral > 0) { payment_token.safeTransfer(addr, unused_collateral); } auctioned_token.safeTransfer(addr, b_amount); } else { // bid haven't won, just return the collateral payment_token.safeTransfer(addr, compute_payment(bid.amount, bid.price)); } } function distributeTokensMulti(uint from, uint count) external isThresholdFinalized { for (uint i = from; i < from + count; i++) { Bid storage bid = _bids[i]; address addr = bid.bid_address; if (addr != address(0x0) && !bid.distributed) distributeTokens(addr); } } function returnCollateral(address addr) external whenAuctionEnded { require(block.timestamp > _start_time + (10 * dayish), "funds are still locked for auction"); require(_threshold_finalized == false, "auction threshold was already set to proceed"); require(bid_indices[addr] > 0); Bid storage bid = _bids[bid_indices[addr] - 1]; require(bid.distributed == false); bid.distributed = true; _distributed_count++; payment_token.safeTransfer(addr, compute_payment(bid.amount, bid.price)); } /** * @dev owner should be able to withdraw proceedings */ function withdraw(address addr) external onlyOwner whenAuctionEnded { require(_distributed_count >= _bids.length, "still not fully distribute token for the bidders"); payment_token.safeTransfer(addr, payment_token.balanceOf(address(this))); auctioned_token.safeTransfer(addr, auctioned_token.balanceOf(address(this))); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"wl_admin","type":"address"},{"internalType":"uint256","name":"_min_price","type":"uint256"},{"internalType":"uint256","name":"start_time","type":"uint256"},{"internalType":"contract IERC20","name":"a_token","type":"address"},{"internalType":"contract IERC20","name":"p_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"BidCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"BidUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ratio","type":"uint256"}],"name":"ThresholdSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"WhitelistAdded","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_start_time","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addToWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctioned_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"amount","type":"uint64"},{"internalType":"uint16","name":"price","type":"uint16"}],"name":"create_bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"distributeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"distributeTokensMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getBid","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBidCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getBids","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getBidsExtra","outputs":[{"internalType":"uint256[]","name":"original_price","type":"uint256[]"},{"internalType":"uint256[]","name":"last_update","type":"uint256[]"},{"internalType":"uint256[]","name":"day_of_auction","type":"uint256[]"},{"internalType":"uint256[]","name":"points_used","type":"uint256[]"},{"internalType":"bool[]","name":"distributed","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInBiddingPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInSubmissionPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"bidder","type":"address"}],"name":"max_price_increase_allowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"min_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payment_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"returnCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"name":"setThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"threshold_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"threshold_ratio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"amount","type":"uint64"},{"internalType":"uint16","name":"price","type":"uint16"}],"name":"update_bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e45760003560e01c80638da5cb5b1161010f578063b9c36209116100a2578063ca15c87311610071578063ca15c87314610786578063d547741f146107a3578063daf2fd58146107cf578063e06ec422146107f5576101e4565b8063b9c36209146106e0578063c3ab5fb414610703578063c69f43b71461070b578063c8b342ab14610713576101e4565b8063ad742e23116100de578063ad742e2314610501578063b004660714610527578063b1d17c98146106b2578063b5d49d26146106d8576101e4565b80638da5cb5b146104a25780639010d07c146104aa57806391d14854146104cd578063a217fddf146104f9576101e4565b8063461ef73c116101875780637ad5c38b116101565780637ad5c38b14610375578063830cf31d1461037d578063864333741461038557806386514e26146103a1576101e4565b8063461ef73c146102d657806347ee03941461030657806351cff8d91461032c5780636537d43714610352576101e4565b80632f2ff15d116101c35780632f2ff15d146102285780632f8e9d5f14610256578063331c65871461028657806336568abe146102aa576101e4565b806282c154146101e9578063248a9ca31461020357806328f6a48a14610220575b600080fd5b6101f16107fd565b60408051918252519081900360200190f35b6101f16004803603602081101561021957600080fd5b5035610803565b6101f161081b565b6102546004803603604081101561023e57600080fd5b50803590602001356001600160a01b0316610821565b005b6102546004803603604081101561026c57600080fd5b5080356001600160401b0316906020013561ffff1661088d565b61028e610cfa565b604080516001600160a01b039092168252519081900360200190f35b610254600480360360408110156102c057600080fd5b50803590602001356001600160a01b0316610d09565b610254600480360360408110156102ec57600080fd5b5080356001600160401b0316906020013561ffff16610d6a565b6102546004803603602081101561031c57600080fd5b50356001600160a01b031661132e565b6102546004803603602081101561034257600080fd5b50356001600160a01b031661138f565b6102546004803603604081101561036857600080fd5b50803590602001356115b4565b61028e61166b565b6101f161167a565b61038d611680565b604080519115158252519081900360200190f35b6103c4600480360360408110156103b757600080fd5b508035906020013561168d565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561040c5781810151838201526020016103f4565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561044b578181015183820152602001610433565b50505050905001848103825285818151815260200191508051906020019060200280838360005b8381101561048a578181015183820152602001610472565b50505050905001965050505050505060405180910390f35b61028e61189b565b61028e600480360360408110156104c057600080fd5b50803590602001356118aa565b61038d600480360360408110156104e357600080fd5b50803590602001356001600160a01b03166118cb565b6101f16118e3565b6101f16004803603602081101561051757600080fd5b50356001600160a01b03166118e8565b61054a6004803603604081101561053d57600080fd5b5080359060200135611a7d565b60405180806020018060200180602001806020018060200186810386528b818151815260200191508051906020019060200280838360005b8381101561059a578181015183820152602001610582565b5050505090500186810385528a818151815260200191508051906020019060200280838360005b838110156105d95781810151838201526020016105c1565b50505050905001868103845289818151815260200191508051906020019060200280838360005b83811015610618578181015183820152602001610600565b50505050905001868103835288818151815260200191508051906020019060200280838360005b8381101561065757818101518382015260200161063f565b50505050905001868103825287818151815260200191508051906020019060200280838360005b8381101561069657818101518382015260200161067e565b505050509050019a505050505050505050505060405180910390f35b610254600480360360208110156106c857600080fd5b50356001600160a01b0316611d5f565b61038d611f64565b610254600480360360408110156106f657600080fd5b5080359060200135611f84565b6101f16121ba565b6101f16121c0565b6107396004803603602081101561072957600080fd5b50356001600160a01b03166121c6565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c0840152151560e083015251908190036101000190f35b6101f16004803603602081101561079c57600080fd5b50356122d9565b610254600480360360408110156107b957600080fd5b50803590602001356001600160a01b03166122f0565b610254600480360360208110156107e557600080fd5b50356001600160a01b0316612349565b61038d6124ec565b60095481565b6000818152602081905260409020600201545b919050565b60105490565b6000828152602081905260409020600201546108449061083f6125bf565b6118cb565b61087f5760405162461bcd60e51b815260040180806020018281038252602f815260200180612da1602f913960400191505060405180910390fd5b61088982826125c3565b5050565b610895611f64565b806108a357506108a36124ec565b6108eb576040805162461bcd60e51b815260206004820152601460248201527361756374696f6e206973206e6f7420676f696e6760601b604482015290519081900360640190fd5b60006108f56125bf565b6010549091506109b757600c54604080516370a0823160e01b8152306004820152905164313e61e300926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561094e57600080fd5b505afa158015610962573d6000803e3d6000fd5b505050506040513d602081101561097857600080fd5b505110156109b75760405162461bcd60e51b8152600401808060200182810382526026815260200180612f6a6026913960400191505060405180910390fd5b6109e17f0af0c3ebe77999ca20698e1ff25f812bf82409a59d21ca15a41f39e0ce9f2500826118cb565b610a1c5760405162461bcd60e51b815260040180806020018281038252603b815260200180613013603b913960400191505060405180910390fd5b610a24611f64565b610a75576040805162461bcd60e51b815260206004820152601760248201527f7375626d697373696f6e2074696d65206973206f766572000000000000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526011602052604090205415610ad8576040805162461bcd60e51b815260206004820152601560248201527462696464657220616c72656164792065786973747360581b604482015290519081900360640190fd5b6001548261ffff1610158015610af457506002548261ffff1611155b610b45576040805162461bcd60e51b815260206004820152601d60248201527f62696464696e67207072696365206973206f7574206f662072616e6765000000604482015290519081900360640190fd5b629896806001600160401b0384161015610b99576040805162461bcd60e51b815260206004820152601060248201526f1d1bdbc81cdb585b1b08185b5bdd5b9d60821b604482015290519081900360640190fd5b601080546001810182557f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672600290910290810180546001600160a01b0319166001600160a01b03851690811767ffffffffffffffff60a01b1916600160a01b6001600160401b0389169081029190911761ffff60e01b1916600160e01b61ffff8916908102919091176001600160f01b0316600160f01b82021784557f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae673909401805463ffffffff19164263ffffffff1617905593546000918252601160205260409091205591610ca59184913091610c91919061262c565b600d546001600160a01b0316929190612648565b604080516001600160401b038616815261ffff8516602082015281516001600160a01b038516927fbc13236afe4f10fc8d44c86b16e9e6695b2758938a2bedf6ceef72157259447b928290030190a250505050565b600d546001600160a01b031681565b610d116125bf565b6001600160a01b0316816001600160a01b031614610d605760405162461bcd60e51b815260040180806020018281038252602f81526020018061304e602f913960400191505060405180910390fd5b61088982826126a8565b610d72611f64565b80610d805750610d806124ec565b610dc8576040805162461bcd60e51b815260206004820152601460248201527361756374696f6e206973206e6f7420676f696e6760601b604482015290519081900360640190fd5b6000610dd26125bf565b6001600160a01b038116600090815260116020526040902054909150610e34576040805162461bcd60e51b8152602060048201526012602482015271189a5908191bd95cc81b9bdd08195e1a5cdd60721b604482015290519081900360640190fd5b6001600160a01b03811660009081526011602052604081205460108054909160001901908110610e6057fe5b9060005260206000209060020201905060186201518081610e7d57fe5b600183015491900463ffffffff90911642031015610ecc5760405162461bcd60e51b8152600401808060200182810382526032815260200180612e2c6032913960400191505060405180910390fd5b60018101805463ffffffff19164263ffffffff1617905560025461ffff84161115610f3e576040805162461bcd60e51b815260206004820152601d60248201527f62696464696e67207072696365206973206f7574206f662072616e6765000000604482015290519081900360640190fd5b805461ffff600160f01b90910481169084161015610f8d5760405162461bcd60e51b8152600401808060200182810382526033815260200180612edb6033913960400191505060405180910390fd5b629896806001600160401b0385161015610fe1576040805162461bcd60e51b815260206004820152601060248201526f1d1bdbc81cdb585b1b08185b5bdd5b9d60821b604482015290519081900360640190fd5b805460009061100b90600160a01b81046001600160401b031690600160f01b900461ffff1661262c565b90506000611026866001600160401b03168661ffff1661262c565b90508181101561107d576040805162461bcd60e51b815260206004820152601e60248201527f636f6c6c61746572616c2063616e6e6f74206265206465637265617365640000604482015290519081900360640190fd5b6110856124ec565b1561126257825461ffff600160f01b9091048116908616116110d85760405162461bcd60e51b815260040180806020018281038252602c815260200180612e5e602c913960400191505060405180910390fd5b82546001600160401b03600160a01b9091048116908716111561112c5760405162461bcd60e51b8152600401808060200182810382526037815260200180612f906037913960400191505060405180910390fd5b60006201518060095442038161113e57fe5b6001860154919004915060ff8083166401000000009092041610156111845760018401805464ff00000000191664010000000060ff8416021766ffff0000000000191690555b83546000906111b99061ffff600160e01b82048116916111b391600160f01b90910481168b03166103e861250f565b90612568565b9050600060036002840360ff16600581106111d057fe5b0154600187015490915081906111f2908490600160281b900461ffff16612711565b111561122f5760405162461bcd60e51b8152600401808060200182810382526035815260200180612df76035913960400191505060405180910390fd5b5060018501805461ffff600160281b80830482169094011690920266ffff00000000001990921691909117905550611288565b61126a611f64565b1561128857825461ffff60e01b1916600160e01b61ffff8716021783555b825467ffffffffffffffff60a01b1916600160a01b6001600160401b03881602176001600160f01b0316600160f01b61ffff871602178355818111156112d7576112d78430610c91848661276b565b604080516001600160401b038816815261ffff8716602082015281516001600160a01b038716927f9e533f91d4ed3abe015e213140fcc387cf310c5fa9c4f5672058fec6f6f7d26a928290030190a2505050505050565b6113587f0af0c3ebe77999ca20698e1ff25f812bf82409a59d21ca15a41f39e0ce9f250082610821565b6040516001600160a01b038216907f4790a4adb426ca2345bb5108f6e454eae852a7bf687544cd66a7270dff3a41d690600090a250565b6113976125bf565b6008546001600160a01b039081169116146113f9576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b611401611680565b61144e576040805162461bcd60e51b815260206004820152601960248201527861756374696f6e206973207374696c6c206f6e20676f696e6760381b604482015290519081900360640190fd5b601054600b5410156114915760405162461bcd60e51b8152600401808060200182810382526030815260200180612f3a6030913960400191505060405180910390fd5b600d54604080516370a0823160e01b815230600482015290516115219284926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b1580156114e257600080fd5b505afa1580156114f6573d6000803e3d6000fd5b505050506040513d602081101561150c57600080fd5b5051600d546001600160a01b031691906127ad565b600c54604080516370a0823160e01b815230600482015290516115b19284926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561157257600080fd5b505afa158015611586573d6000803e3d6000fd5b505050506040513d602081101561159c57600080fd5b5051600c546001600160a01b031691906127ad565b50565b600a5460ff1615156001146115fa5760405162461bcd60e51b8152600401808060200182810382526027815260200180612dd06027913960400191505060405180910390fd5b815b8183018110156116665760006010828154811061161557fe5b6000918252602090912060029091020180549091506001600160a01b0316801580159061164e57506001820154600160381b900460ff16155b1561165c5761165c81611d5f565b50506001016115fc565b505050565b600c546001600160a01b031681565b600f5481565b60095462093a8001421190565b60608080848401601054861080156116a55750600085115b80156116b357506010548111155b6116f9576040805162461bcd60e51b8152602060048201526012602482015271696e646578206f7574206f662072616e676560701b604482015290519081900360640190fd5b6060856001600160401b038111801561171157600080fd5b5060405190808252806020026020018201604052801561173b578160200160208202803683370190505b5090506060866001600160401b038111801561175657600080fd5b50604051908082528060200260200182016040528015611780578160200160208202803683370190505b5090506060876001600160401b038111801561179b57600080fd5b506040519080825280602002602001820160405280156117c5578160200160208202803683370190505b5090506000895b8581101561188b576000601082815481106117e357fe5b60009182526020909120600290910201805487519192506001600160a01b03169087908590811061181057fe5b6001600160a01b03929092166020928302919091019091015280548551600160a01b9091046001600160401b03169086908590811061184b57fe5b602090810291909101015280548451600160f01b90910461ffff169085908590811061187357fe5b602090810291909101015250600191820191016117cc565b5092999198509650945050505050565b6008546001600160a01b031690565b60008281526020819052604081206118c290836127ff565b90505b92915050565b60008281526020819052604081206118c2908361280b565b600081565b6001600160a01b038116600090815260116020526040812054611947576040805162461bcd60e51b8152602060048201526012602482015271189a5908191bd95cc81b9bdd08195e1a5cdd60721b604482015290519081900360640190fd5b6001600160a01b0382166000908152601160205260408120546010805490916000190190811061197357fe5b9060005260206000209060020201905061198b6124ec565b15611a73576000620151806009544203816119a257fe5b04905060008060036002840360ff16600581106119bb57fe5b0154600185015490915060ff8481166401000000009092041614156119ed576001840154600160281b900461ffff1691505b808210611a0c5750509054600160f01b900461ffff1691506108169050565b83546000198383030190600090611a4b9061ffff600160f01b8204811691611a45916103e8916111b3918891600160e01b90041661250f565b90612711565b90506002548111611a63579550610816945050505050565b6002549650505050505050610816565b5050600254610816565b606080808080868601866001600160401b0381118015611a9c57600080fd5b50604051908082528060200260200182016040528015611ac6578160200160208202803683370190505b509550866001600160401b0381118015611adf57600080fd5b50604051908082528060200260200182016040528015611b09578160200160208202803683370190505b509450866001600160401b0381118015611b2257600080fd5b50604051908082528060200260200182016040528015611b4c578160200160208202803683370190505b509350866001600160401b0381118015611b6557600080fd5b50604051908082528060200260200182016040528015611b8f578160200160208202803683370190505b509250866001600160401b0381118015611ba857600080fd5b50604051908082528060200260200182016040528015611bd2578160200160208202803683370190505b50915060105488108015611be65750600087115b8015611bf457506010548111155b611c3a576040805162461bcd60e51b8152602060048201526012602482015271696e646578206f7574206f662072616e676560701b604482015290519081900360640190fd5b6000885b82811015611d5257600060108281548110611c5557fe5b9060005260206000209060020201905080600001601c9054906101000a900461ffff1661ffff16898481518110611c8857fe5b60209081029190910101526001810154885163ffffffff90911690899085908110611caf57fe5b6020026020010181815250508060010160049054906101000a900460ff1660ff16878481518110611cdc57fe5b6020026020010181815250508060010160059054906101000a900461ffff1661ffff16868481518110611d0b57fe5b6020026020010181815250508060010160079054906101000a900460ff16858481518110611d3557fe5b911515602092830291909101909101525060019182019101611c3e565b5050509295509295909350565b600a5460ff161515600114611da55760405162461bcd60e51b8152600401808060200182810382526027815260200180612dd06027913960400191505060405180910390fd5b6001600160a01b038116600090815260116020526040902054611dc757600080fd5b6001600160a01b03811660009081526011602052604081205460108054909160001901908110611df357fe5b600091825260209091206002909102016001810154909150600160381b900460ff1615611e1f57600080fd5b6001818101805460ff60381b1916600160381b179055600b80549091019055600e54815461ffff600160f01b9091041610611f24578054600e54600160a01b82046001600160401b031691600160f01b900461ffff16148015611e865750600f546103e814155b15611ea957611ea66103e86111b3600f548461250f90919063ffffffff16565b90505b6000611ee7611eba83600e5461262c565b8454611ee190600160a01b81046001600160401b031690600160f01b900461ffff1661262c565b9061276b565b90508015611f0657600d54611f06906001600160a01b031685836127ad565b600c54611f1d906001600160a01b031685846127ad565b5050610889565b8054610889908390611f5190600160a01b81046001600160401b031690600160f01b900461ffff1661262c565b600d546001600160a01b031691906127ad565b60006009544210158015611f7f57506009546202a300014211155b905090565b611f8c6125bf565b6008546001600160a01b03908116911614611fee576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b611ff6611680565b612043576040805162461bcd60e51b815260206004820152601960248201527861756374696f6e206973207374696c6c206f6e20676f696e6760381b604482015290519081900360640190fd5b600a5460ff161561209b576040805162461bcd60e51b815260206004820152601b60248201527f7468726573686f6c6420616c72656164792066696e616c697a65640000000000604482015290519081900360640190fd5b60015482101580156120af57506002548211155b612100576040805162461bcd60e51b815260206004820152601f60248201527f7468726573686f6c64207072696365206973206f7574206f662072616e676500604482015290519081900360640190fd5b6103e8811115612157576040805162461bcd60e51b815260206004820152601f60248201527f7468726573686f6c6420726174696f206973206f7574206f662072616e676500604482015290519081900360640190fd5b600b541561216457600080fd5b600e829055600f819055600a805460ff19166001179055604080518381526020810183905281517fa9b994c5f360eb267c36dec4b76776cae1c2f79cf0b3863baf389a499a6d689a929181900390910190a15050565b60015481565b600e5481565b6000806000806000806000806121da612d3a565b6001600160a01b038a166000908152601160205260409020546010805490916000190190811061220657fe5b60009182526020918290206040805161010081018252600290930290910180546001600160a01b0381168085526001600160401b03600160a01b83041695850186905261ffff600160e01b83048116948601859052600160f01b90920482166060860181905260019093015463ffffffff81166080870181905260ff6401000000008304811660a08901819052600160281b840490951660c08901819052600160381b90930416151560e0909701879052919f50959d50929b509099509097509550909350915050919395975091939597565b60008181526020819052604081206118c590612820565b60008281526020819052604090206002015461230e9061083f6125bf565b610d605760405162461bcd60e51b8152600401808060200182810382526030815260200180612e8a6030913960400191505060405180910390fd5b612351611680565b61239e576040805162461bcd60e51b815260206004820152601960248201527861756374696f6e206973207374696c6c206f6e20676f696e6760381b604482015290519081900360640190fd5b600954620d2f000142116123e35760405162461bcd60e51b8152600401808060200182810382526022815260200180612fc76022913960400191505060405180910390fd5b600a5460ff16156124255760405162461bcd60e51b815260040180806020018281038252602c815260200180612f0e602c913960400191505060405180910390fd5b6001600160a01b03811660009081526011602052604090205461244757600080fd5b6001600160a01b0381166000908152601160205260408120546010805490916000190190811061247357fe5b600091825260209091206002909102016001810154909150600160381b900460ff161561249f57600080fd5b6001818101805460ff60381b1916600160381b179055600b805490910190558054610889908390611f51906001600160401b03600160a01b8204169061ffff600160f01b9091041661262c565b6009546000906202a3000142118015611f7f57505060095462093a800142111590565b60008261251e575060006118c5565b8282028284828161252b57fe5b04146118c25760405162461bcd60e51b8152600401808060200182810382526021815260200180612eba6021913960400191505060405180910390fd5b60006118c283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061282b565b60006118c2836001600160a01b0384166128cd565b3390565b60008281526020819052604090206125db90826125aa565b15610889576125e86125bf565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006118c260646111b36001612642878761250f565b9061250f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526126a2908590612917565b50505050565b60008281526020819052604090206126c090826129c8565b15610889576126cd6125bf565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000828201838110156118c2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006118c283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506129dd565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611666908490612917565b60006118c28383612a37565b60006118c2836001600160a01b038416612a9b565b60006118c582612ab3565b600081836128b75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561287c578181015183820152602001612864565b50505050905090810190601f1680156128a95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816128c357fe5b0495945050505050565b60006128d98383612a9b565b61290f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556118c5565b5060006118c5565b606061296c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ab79092919063ffffffff16565b8051909150156116665780806020019051602081101561298b57600080fd5b50516116665760405162461bcd60e51b815260040180806020018281038252602a815260200180612fe9602a913960400191505060405180910390fd5b60006118c2836001600160a01b038416612ace565b60008184841115612a2f5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561287c578181015183820152602001612864565b505050900390565b81546000908210612a795760405162461bcd60e51b8152600401808060200182810382526022815260200180612d7f6022913960400191505060405180910390fd5b826000018281548110612a8857fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6060612ac68484600085612b94565b949350505050565b60008181526001830160205260408120548015612b8a5783546000198083019190810190600090879083908110612b0157fe5b9060005260206000200154905080876000018481548110612b1e57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080612b4e57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506118c5565b60009150506118c5565b6060612b9f85612d01565b612bf0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612c2f5780518252601f199092019160209182019101612c10565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612c91576040519150601f19603f3d011682016040523d82523d6000602084013e612c96565b606091505b50915091508115612caa579150612ac69050565b805115612cba5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561287c578181015183820152602001612864565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612ac6575050151592915050565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101919091529056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7461756374696f6e207468726573686f6c6420776173206e6f742066696e616c697a6564207965747072696365206973206f766572206d6178696d756d206461696c7920707269636520696e6372656d656e7420616c6c6f77616e63657570646174696e67206269642063616e2774206265206d6f7265206f6674656e207468616e206f6e636520616e20686f75726e6577207072696365206d7573742062652067726561746572207468616e2063757272656e74207072696365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776e6577207072696365206d7573742062652067726561746572206f7220657175616c20746f2063757272656e7420707269636561756374696f6e207468726573686f6c642077617320616c72656164792073657420746f2070726f636565647374696c6c206e6f742066756c6c79206469737472696275746520746f6b656e20666f7220746865206269646465727361756374696f6e20746f6b656e20776173206e6f74206465706f736974656420656e6f7567686e657720616d6f756e74206d757374206265206c657373207468616e206f7220657175616c20746f2063757272656e7420616d6f756e7466756e647320617265207374696c6c206c6f636b656420666f722061756374696f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564416363657373436f6e74726f6c3a206f6e6c79207768697465206c69737420616464726573732063616e206a6f696e207468652061756374696f6e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208ebb32c4047772b595cd1396e3a67a48f9668c47bc7e8caddcd8dd092e60655264736f6c634300060c0033
Deployed Bytecode Sourcemap
35003:16447:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36241:23;;;:::i;:::-;;;;;;;;;;;;;;;;19668:114;;;;;;;;;;;;;;;;-1:-1:-1;19668:114:0;;:::i;48017:90::-;;;:::i;20044:227::-;;;;;;;;;;;;;;;;-1:-1:-1;20044:227:0;;;;;;-1:-1:-1;;;;;20044:227:0;;:::i;:::-;;40249:1427;;;;;;;;;;;;;;;;-1:-1:-1;40249:1427:0;;-1:-1:-1;;;;;40249:1427:0;;;;;;;;:::i;36397:27::-;;;:::i;:::-;;;;-1:-1:-1;;;;;36397:27:0;;;;;;;;;;;;;;21253:209;;;;;;;;;;;;;;;;-1:-1:-1;21253:209:0;;;;;;-1:-1:-1;;;;;21253:209:0;;:::i;42899:2569::-;;;;;;;;;;;;;;;;-1:-1:-1;42899:2569:0;;-1:-1:-1;;;;;42899:2569:0;;;;;;;;:::i;40041:196::-;;;;;;;;;;;;;;;;-1:-1:-1;40041:196:0;-1:-1:-1;;;;;40041:196:0;;:::i;51095:352::-;;;;;;;;;;;;;;;;-1:-1:-1;51095:352:0;-1:-1:-1;;;;;51095:352:0;;:::i;50086:354::-;;;;;;;;;;;;;;;;-1:-1:-1;50086:354:0;;;;;;;:::i;36361:29::-;;;:::i;36468:30::-;;;:::i;39826:121::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;46168:759;;;;;;;;;;;;;;;;-1:-1:-1;46168:759:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39170:79;;;:::i;19341:138::-;;;;;;;;;;;;;;;;-1:-1:-1;19341:138:0;;;;;;;:::i;18302:139::-;;;;;;;;;;;;;;;;-1:-1:-1;18302:139:0;;;;;;-1:-1:-1;;;;;18302:139:0;;:::i;17047:49::-;;;:::i;41738:1149::-;;;;;;;;;;;;;;;;-1:-1:-1;41738:1149:0;-1:-1:-1;;;;;41738:1149:0;;:::i;46939:1007::-;;;;;;;;;;;;;;;;-1:-1:-1;46939:1007:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48989:1089;;;;;;;;;;;;;;;;-1:-1:-1;48989:1089:0;-1:-1:-1;;;;;48989:1089:0;;:::i;39469:165::-;;;:::i;48304:677::-;;;;;;;;;;;;;;;;-1:-1:-1;48304:677:0;;;;;;;:::i;35806:24::-;;;:::i;36431:30::-;;;:::i;45546:451::-;;;;;;;;;;;;;;;;-1:-1:-1;45546:451:0;-1:-1:-1;;;;;45546:451:0;;:::i;:::-;;;;-1:-1:-1;;;;;45546:451:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18615:127;;;;;;;;;;;;;;;;-1:-1:-1;18615:127:0;;:::i;20516:230::-;;;;;;;;;;;;;;;;-1:-1:-1;20516:230:0;;;;;;-1:-1:-1;;;;;20516:230:0;;:::i;50448:563::-;;;;;;;;;;;;;;;;-1:-1:-1;50448:563:0;-1:-1:-1;;;;;50448:563:0;;:::i;39642:176::-;;;:::i;36241:23::-;;;;:::o;19668:114::-;19725:7;19752:12;;;;;;;;;;:22;;;19668:114;;;;:::o;48017:90::-;48087:5;:12;48017:90;:::o;20044:227::-;20136:6;:12;;;;;;;;;;:22;;;20128:45;;20160:12;:10;:12::i;:::-;20128:7;:45::i;:::-;20120:105;;;;-1:-1:-1;;;20120:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20238:25;20249:4;20255:7;20238:10;:25::i;:::-;20044:227;;:::o;40249:1427::-;37010:21;:19;:21::i;:::-;:43;;;;37035:18;:16;:18::i;:::-;37002:76;;;;;-1:-1:-1;;;37002:76:0;;;;;;;;;;;;-1:-1:-1;;;37002:76:0;;;;;;;;;;;;;;;40335:15:::1;40353:12;:10;:12::i;:::-;40470:5;:12:::0;40335:30;;-1:-1:-1;40466:160:0::1;;40512:15;::::0;:40:::1;::::0;;-1:-1:-1;;;40512:40:0;;40546:4:::1;40512:40;::::0;::::1;::::0;;;36003:17;;-1:-1:-1;;;;;40512:15:0::1;::::0;:25:::1;::::0;:40;;;;;::::1;::::0;;;;;;;;:15;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;40512:40:0;:59:::1;;40504:110;;;;-1:-1:-1::0;;;40504:110:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40701:27;35181:22;40720:7;40701;:27::i;:::-;40693:99;;;;-1:-1:-1::0;;;40693:99:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40865:21;:19;:21::i;:::-;40857:57;;;::::0;;-1:-1:-1;;;40857:57:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;40968:20:0;::::1;;::::0;;;:11:::1;:20;::::0;;;;;:25;40960:59:::1;;;::::0;;-1:-1:-1;;;40960:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;40960:59:0;;;;;;;;;;;;;::::1;;41047:9;;41038:5;:18;;;;:40;;;;;41069:9;;41060:5;:18;;;;41038:40;41030:82;;;::::0;;-1:-1:-1;;;41030:82:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;35941:12:::0;-1:-1:-1;;;;;41131:20:0;::::1;;;41123:49;;;::::0;;-1:-1:-1;;;41123:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;41123:49:0;;;;;;;;;;;;;::::1;;41203:5;:12:::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;;::::1;::::0;;::::1;41226:25:::0;;-1:-1:-1;;;;;;41226:25:0::1;-1:-1:-1::0;;;;;41226:25:0;::::1;::::0;;::::1;-1:-1:-1::0;;;;41262:19:0::1;-1:-1:-1::0;;;;;;;;41262:19:0;::::1;::::0;;::::1;::::0;;;::::1;-1:-1:-1::0;;;;41292:26:0::1;-1:-1:-1::0;;;41292:26:0::1;::::0;::::1;::::0;;::::1;::::0;;;::::1;-1:-1:-1::0;;;;;41329:17:0::1;-1:-1:-1::0;;;41329:17:0;::::1;;::::0;;41357:15;;;;:41;;-1:-1:-1;;41357:41:0::1;41382:15;41357:41;;;::::0;;41484:12;;-1:-1:-1;41461:20:0;;;:11:::1;41203:12;41461:20:::0;;;;;:35;41203:12;41532:86:::1;::::0;41226:25;;41580:4:::1;::::0;41587:30:::1;::::0;41262:19;41587:15:::1;:30::i;:::-;41532:13;::::0;-1:-1:-1;;;;;41532:13:0::1;::::0;:86;;:30:::1;:86::i;:::-;41634:34;::::0;;-1:-1:-1;;;;;41634:34:0;::::1;::::0;;::::1;::::0;::::1;;::::0;::::1;::::0;;;-1:-1:-1;;;;;41634:34:0;::::1;::::0;::::1;::::0;;;;;;::::1;37089:1;;40249:1427:::0;;:::o;36397:27::-;;;-1:-1:-1;;;;;36397:27:0;;:::o;21253:209::-;21351:12;:10;:12::i;:::-;-1:-1:-1;;;;;21340:23:0;:7;-1:-1:-1;;;;;21340:23:0;;21332:83;;;;-1:-1:-1;;;21332:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21428:26;21440:4;21446:7;21428:11;:26::i;42899:2569::-;37010:21;:19;:21::i;:::-;:43;;;;37035:18;:16;:18::i;:::-;37002:76;;;;;-1:-1:-1;;;37002:76:0;;;;;;;;;;;;-1:-1:-1;;;37002:76:0;;;;;;;;;;;;;;;42985:15:::1;43003:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;43034:20:0;::::1;43057:1;43034:20:::0;;;:11:::1;:20;::::0;;;;;42985:30;;-1:-1:-1;43026:55:0::1;;;::::0;;-1:-1:-1;;;43026:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;43026:55:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;43116:20:0;::::1;43092:15;43116:20:::0;;;:11:::1;:20;::::0;;;;;43110:5:::1;:31:::0;;:5;;-1:-1:-1;;43116:24:0;;43110:31;::::1;;;;;;;;;;;;;;;43092:49;;43268:2;35787:5;43261:9;;;;;43241:15;::::0;::::1;::::0;43261:9;;::::1;43241:15;::::0;;::::1;43223;:33;:48;;43215:111;;;;-1:-1:-1::0;;;43215:111:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43337:15;::::0;::::1;:41:::0;;-1:-1:-1;;43337:41:0::1;43362:15;43337:41;;;::::0;;43431:9:::1;::::0;43422:18:::1;::::0;::::1;;;43414:60;;;::::0;;-1:-1:-1;;;43414:60:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;43502:9:::0;;::::1;-1:-1:-1::0;;;43502:9:0;;::::1;::::0;::::1;43493:18:::0;;::::1;;;43485:82;;;;-1:-1:-1::0;;;43485:82:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35941:12:::0;-1:-1:-1;;;;;43586:20:0;::::1;;;43578:49;;;::::0;;-1:-1:-1;;;43578:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;43578:49:0;;;;;;;;;;;;;::::1;;43689:10:::0;;43648:22:::1;::::0;43673:38:::1;::::0;-1:-1:-1;;;43689:10:0;::::1;-1:-1:-1::0;;;;;43689:10:0::1;::::0;-1:-1:-1;;;43701:9:0;::::1;;;43673:15;:38::i;:::-;43648:63;;43722:22;43747:30;43763:6;-1:-1:-1::0;;;;;43747:30:0::1;43771:5;43747:30;;:15;:30::i;:::-;43722:55;;43814:14;43796;:32;;43788:75;;;::::0;;-1:-1:-1;;;43788:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;43960:18;:16;:18::i;:::-;43956:1164;;;44011:9:::0;;::::1;-1:-1:-1::0;;;44011:9:0;;::::1;::::0;::::1;44003:17:::0;;::::1;;43995:74;;;;-1:-1:-1::0;;;43995:74:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44102:10:::0;;-1:-1:-1;;;;;;;;44102:10:0;;::::1;::::0;::::1;44092:20:::0;;::::1;;;44084:88;;;;-1:-1:-1::0;;;44084:88:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44187:20;35787:5;44235:11;;44217:15;:29;44216:40;;;;;44276:18;::::0;::::1;::::0;44216:40;;::::1;::::0;-1:-1:-1;44276:35:0::1;::::0;;::::1;:18:::0;;;::::1;;:35;44272:182;;;44365:18;::::0;::::1;:35:::0;;-1:-1:-1;;44365:35:0::1;::::0;::::1;::::0;::::1;;;-1:-1:-1::0;;44419:19:0::1;::::0;;44272:182:::1;44608:18:::0;;44547::::1;::::0;44569:59:::1;::::0;44608:18:::1;-1:-1:-1::0;;;44608:18:0;::::1;::::0;::::1;::::0;44569:33:::1;::::0;-1:-1:-1;;;44582:9:0;;::::1;::::0;::::1;44574:17:::0;::::1;44569:23;44597:4;44569:27;:33::i;:::-;:37:::0;::::1;:59::i;:::-;44547:81;;44643:20;44666:21;44703:1;44688:14;:16;44666:39;;;;;;;;;;::::0;44763:15:::1;::::0;::::1;::::0;44666:39;;-1:-1:-1;44666:39:0;;44744:36:::1;::::0;:13;;-1:-1:-1;;;44763:15:0;::::1;;;44744:17;:36::i;:::-;:56;;44734:147;;;;-1:-1:-1::0;;;44734:147:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;44921:15:0::1;::::0;::::1;::::0;;::::1;-1:-1:-1::0;;;44921:15:0;;::::1;::::0;::::1;:31:::0;;::::1;44896:57;::::0;;::::1;-1:-1:-1::0;;44896:57:0;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;43956:1164:0::1;;;45001:21;:19;:21::i;:::-;44997:123;;;45082:26:::0;;-1:-1:-1;;;;45082:26:0::1;-1:-1:-1::0;;;45082:26:0::1;::::0;::::1;;;::::0;;44997:123:::1;45197:19:::0;;-1:-1:-1;;;;45197:19:0::1;-1:-1:-1::0;;;;;;;;45197:19:0;::::1;;;-1:-1:-1::0;;;;;45227:17:0::1;-1:-1:-1::0;;;45227:17:0::1;::::0;::::1;;;::::0;;45261:31;;::::1;45257:154;;;45309:90;45340:7:::0;45357:4:::1;45364:34;:14:::0;45383;45364:18:::1;:34::i;45309:90::-;45426:34;::::0;;-1:-1:-1;;;;;45426:34:0;::::1;::::0;;::::1;::::0;::::1;;::::0;::::1;::::0;;;-1:-1:-1;;;;;45426:34:0;::::1;::::0;::::1;::::0;;;;;;::::1;37089:1;;;;42899:2569:::0;;:::o;40041:196::-;40161:29;35181:22;40182:7;40161:9;:29::i;:::-;40206:23;;-1:-1:-1;;;;;40206:23:0;;;;;;;;40041:196;:::o;51095:352::-;39392:12;:10;:12::i;:::-;39382:6;;-1:-1:-1;;;;;39382:6:0;;;:22;;;39374:67;;;;;-1:-1:-1;;;39374:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37153:14:::1;:12;:14::i;:::-;37145:52;;;::::0;;-1:-1:-1;;;37145:52:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37145:52:0;;;;;;;;;;;;;::::1;;51204:5:::2;:12:::0;51182:18:::2;::::0;:34:::2;;51174:95;;;;-1:-1:-1::0;;;51174:95:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51313:13;::::0;:38:::2;::::0;;-1:-1:-1;;;51313:38:0;;51345:4:::2;51313:38;::::0;::::2;::::0;;;51280:72:::2;::::0;51307:4;;-1:-1:-1;;;;;51313:13:0;;::::2;::::0;:23:::2;::::0;:38;;;;;::::2;::::0;;;;;;;;;:13;:38;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;51313:38:0;51280:13:::2;::::0;-1:-1:-1;;;;;51280:13:0::2;::::0;:72;:26:::2;:72::i;:::-;51398:15;::::0;:40:::2;::::0;;-1:-1:-1;;;51398:40:0;;51432:4:::2;51398:40;::::0;::::2;::::0;;;51363:76:::2;::::0;51392:4;;-1:-1:-1;;;;;51398:15:0;;::::2;::::0;:25:::2;::::0;:40;;;;;::::2;::::0;;;;;;;;;:15;:40;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;51398:40:0;51363:15:::2;::::0;-1:-1:-1;;;;;51363:15:0::2;::::0;:76;:28:::2;:76::i;:::-;51095:352:::0;:::o;50086:354::-;37276:20;;;;:28;;:20;:28;37268:80;;;;-1:-1:-1;;;37268:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50195:4;50181:252:::1;50212:5;50205:4;:12;50201:1;:16;50181:252;;;50239:15;50257:5;50263:1;50257:8;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;50309:15:::0;;50257:8;;-1:-1:-1;;;;;;50309:15:0::1;50343:20:::0;;;::::1;::::0;:40:::1;;-1:-1:-1::0;50368:15:0::1;::::0;::::1;::::0;-1:-1:-1;;;50368:15:0;::::1;;;50367:16;50343:40;50339:83;;;50400:22;50417:4;50400:16;:22::i;:::-;-1:-1:-1::0;;50219:3:0::1;;50181:252;;;;50086:354:::0;;:::o;36361:29::-;;;-1:-1:-1;;;;;36361:29:0;;:::o;36468:30::-;;;;:::o;39826:121::-;39913:11;;39928:10;39913:26;39895:15;:44;39826:121;:::o;46168:759::-;46231:16;;;46315:12;;;46366:5;:12;46359:19;;46346:45;;;;;46390:1;46382:5;:9;46346:45;:71;;;;-1:-1:-1;46405:5:0;:12;46395:22;;;46346:71;46338:102;;;;;-1:-1:-1;;;46338:102:0;;;;;;;;;;;;-1:-1:-1;;;46338:102:0;;;;;;;;;;;;;;;46451:26;46494:5;-1:-1:-1;;;;;46480:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46480:20:0;;46451:49;;46511:24;46552:5;-1:-1:-1;;;;;46538:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46538:20:0;;46511:47;;46569:23;46609:5;-1:-1:-1;;;;;46595:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46595:20:0;-1:-1:-1;46569:46:0;-1:-1:-1;46626:6:0;46661:4;46647:227;46671:6;46667:1;:10;46647:227;;;46699:15;46717:5;46723:1;46717:8;;;;;;;;;;;;;;;;;;;;;46755:15;;46740:12;;46717:8;;-1:-1:-1;;;;;;46755:15:0;;46740:9;;46750:1;;46740:12;;;;;;-1:-1:-1;;;;;46740:30:0;;;;:12;;;;;;;;;;;:30;46798:10;;46785;;-1:-1:-1;;;46798:10:0;;;-1:-1:-1;;;;;46798:10:0;;46785;;46793:1;;46785:10;;;;;;;;;;;;;;;:23;46835:9;;46823;;-1:-1:-1;;;46835:9:0;;;;;;46823;;46830:1;;46823:9;;;;;;;;;;;;;;;:21;-1:-1:-1;46859:3:0;;;;;46679;46647:227;;;-1:-1:-1;46892:9:0;;46903:7;;-1:-1:-1;46903:7:0;-1:-1:-1;46168:759:0;-1:-1:-1;;;;;46168:759:0:o;39170:79::-;39235:6;;-1:-1:-1;;;;;39235:6:0;39170:79;:::o;19341:138::-;19414:7;19441:12;;;;;;;;;;:30;;19465:5;19441:23;:30::i;:::-;19434:37;;19341:138;;;;;:::o;18302:139::-;18371:4;18395:12;;;;;;;;;;:38;;18425:7;18395:29;:38::i;17047:49::-;17092:4;17047:49;:::o;41738:1149::-;-1:-1:-1;;;;;41841:19:0;;41813:7;41841:19;;;:11;:19;;;;;;41833:54;;;;;-1:-1:-1;;;41833:54:0;;;;;;;;;;;;-1:-1:-1;;;41833:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;41922:19:0;;41898:15;41922:19;;;:11;:19;;;;;;41916:5;:30;;:5;;-1:-1:-1;;41922:23:0;;41916:30;;;;;;;;;;;;;;;;41898:48;;41961:18;:16;:18::i;:::-;41957:921;;;41996:20;35787:5;42044:11;;42026:15;:29;42025:40;;;;;;41996:70;;42081:16;42116:29;42148:21;42185:1;42170:14;:16;42148:39;;;;;;;;;;;42220:18;;;;42148:39;;-1:-1:-1;42220:36:0;;;;:18;;;;;:36;42216:104;;;42289:15;;;;-1:-1:-1;;;42289:15:0;;;;;-1:-1:-1;42216:104:0;42355:24;42340:11;:39;42336:94;;-1:-1:-1;;42405:9:0;;-1:-1:-1;;;42405:9:0;;;;;-1:-1:-1;42398:16:0;;-1:-1:-1;42398:16:0;42336:94;42660:9;;-1:-1:-1;;42465:38:0;;;:42;;42444:18;;42604:66;;42660:9;-1:-1:-1;;;42660:9:0;;;;;42605:49;;42649:4;;42606:37;;42465:42;;-1:-1:-1;;;42624:18:0;;;42606:17;:37::i;42605:49::-;42604:55;;:66::i;:::-;42582:88;;42721:9;;42703:14;:27;42699:120;;42754:14;-1:-1:-1;42747:21:0;;-1:-1:-1;;;;;42747:21:0;42699:120;42810:9;;42803:16;;;;;;;;;;41957:921;-1:-1:-1;;42857:9:0;;42850:16;;46939:1007;47014:28;;;;;47201:12;;;47208:5;-1:-1:-1;;;;;47241:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47241:17:0;;47224:34;;47294:5;-1:-1:-1;;;;;47283:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47283:17:0;;47269:31;;47339:5;-1:-1:-1;;;;;47328:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47328:17:0;;47311:34;;47381:5;-1:-1:-1;;;;;47370:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47370:17:0;;47356:31;;47423:5;-1:-1:-1;;;;;47412:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47412:17:0;-1:-1:-1;47398:31:0;-1:-1:-1;47478:5:0;:12;47471:19;;47458:45;;;;;47502:1;47494:5;:9;47458:45;:71;;;;-1:-1:-1;47517:5:0;:12;47507:22;;;47458:71;47450:102;;;;;-1:-1:-1;;;47450:102:0;;;;;;;;;;;;-1:-1:-1;;;47450:102:0;;;;;;;;;;;;;;;47563:6;47598:4;47584:355;47608:6;47604:1;:10;47584:355;;;47636:15;47654:5;47660:1;47654:8;;;;;;;;;;;;;;;;;;47636:26;;47697:3;:18;;;;;;;;;;;;47677:38;;:14;47692:1;47677:17;;;;;;;;;;;;;;;;;:38;47747:15;;;;47730:14;;47747:15;;;;;47730:11;;47742:1;;47730:14;;;;;;;;;;;:32;;;;;47797:3;:18;;;;;;;;;;;;47777:38;;:14;47792:1;47777:17;;;;;;;;;;;;;:38;;;;;47847:3;:15;;;;;;;;;;;;47830:32;;:11;47842:1;47830:14;;;;;;;;;;;;;:32;;;;;47894:3;:15;;;;;;;;;;;;47877:11;47889:1;47877:14;;;;;;;;:32;;;:14;;;;;;;;;;;:32;-1:-1:-1;47924:3:0;;;;;47616;47584:355;;;;46939:1007;;;;;;;;;;:::o;48989:1089::-;37276:20;;;;:28;;:20;:28;37268:80;;;;-1:-1:-1;;;37268:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49076:17:0;::::1;49096:1;49076:17:::0;;;:11:::1;:17;::::0;;;;;49068:30:::1;;;::::0;::::1;;-1:-1:-1::0;;;;;49133:17:0;::::1;49109:15;49133:17:::0;;;:11:::1;:17;::::0;;;;;49127:5:::1;:28:::0;;:5;;-1:-1:-1;;49133:21:0;;49127:28;::::1;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;49174:15;::::0;::::1;::::0;49127:28;;-1:-1:-1;;;;49174:15:0;::::1;;;:24;49166:33;;;::::0;::::1;;49228:4;49210:15:::0;;::::1;:22:::0;;-1:-1:-1;;;;49210:22:0::1;-1:-1:-1::0;;;49210:22:0::1;::::0;;49243:18:::1;:20:::0;;;;::::1;::::0;;49291:15:::1;::::0;49278:9;;::::1;-1:-1:-1::0;;;49278:9:0;;::::1;;:28;49274:797;;49342:10:::0;;49384:15:::1;::::0;-1:-1:-1;;;49342:10:0;::::1;-1:-1:-1::0;;;;;49342:10:0::1;::::0;-1:-1:-1;;;49371:9:0;::::1;;;:28;:55:::0;::::1;;;;49403:15;;49422:4;49403:23;;49371:55;49367:199;;;49511:39;49545:4;49511:29;49524:15;;49511:8;:12;;:29;;;;:::i;:39::-;49500:50;;49367:199;49594:25;49622:86;49665:42;49681:8;49691:15;;49665;:42::i;:::-;49638:10:::0;;49622:38:::1;::::0;-1:-1:-1;;;49638:10:0;::::1;-1:-1:-1::0;;;;;49638:10:0::1;::::0;-1:-1:-1;;;49650:9:0;::::1;;;49622:15;:38::i;:::-;:42:::0;::::1;:86::i;:::-;49594:114:::0;-1:-1:-1;49727:21:0;;49723:113:::1;;49769:13;::::0;:51:::1;::::0;-1:-1:-1;;;;;49769:13:0::1;49796:4:::0;49802:17;49769:26:::1;:51::i;:::-;49850:15;::::0;:44:::1;::::0;-1:-1:-1;;;;;49850:15:0::1;49879:4:::0;49885:8;49850:28:::1;:44::i;:::-;49274:797;;;;;50036:10:::0;;49987:72:::1;::::0;50014:4;;50020:38:::1;::::0;-1:-1:-1;;;50036:10:0;::::1;-1:-1:-1::0;;;;;50036:10:0::1;::::0;-1:-1:-1;;;50048:9:0;::::1;;;50020:15;:38::i;:::-;49987:13;::::0;-1:-1:-1;;;;;49987:13:0::1;::::0;:72;:26:::1;:72::i;39469:165::-:0;39521:4;39565:11;;39546:15;:30;;:79;;;;-1:-1:-1;39599:11:0;;39614:10;39599:26;39580:15;:45;;39546:79;39538:88;;39469:165;:::o;48304:677::-;39392:12;:10;:12::i;:::-;39382:6;;-1:-1:-1;;;;;39382:6:0;;;:22;;;39374:67;;;;;-1:-1:-1;;;39374:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37153:14:::1;:12;:14::i;:::-;37145:52;;;::::0;;-1:-1:-1;;;37145:52:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37145:52:0;;;;;;;;;;;;;::::1;;48411:20:::2;::::0;::::2;;:29;48403:69;;;::::0;;-1:-1:-1;;;48403:69:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;48500:9;;48491:5;:18;;:40;;;;;48522:9;;48513:5;:18;;48491:40;48483:84;;;::::0;;-1:-1:-1;;;48483:84:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;48609:4;48600:5;:13;;48578:71;;;::::0;;-1:-1:-1;;;48578:71:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;48668:18;::::0;:23;48660:32:::2;;;::::0;::::2;;48836:15;:23:::0;;;48870:15:::2;:23:::0;;;48904:20:::2;:27:::0;;-1:-1:-1;;48904:27:0::2;48927:4;48904:27;::::0;;48947:26:::2;::::0;;;;;::::2;::::0;::::2;::::0;;;;;::::2;::::0;;;;;;;;;::::2;48304:677:::0;;:::o;35806:24::-;;;;:::o;36431:30::-;;;;:::o;45546:451::-;45599:7;45608;45617;45626;45635:4;45641;45647;45653;45670:14;;:::i;:::-;-1:-1:-1;;;;;45693:17:0;;;;;;:11;:17;;;;;;45687:5;:28;;:5;;-1:-1:-1;;45693:21:0;;45687:28;;;;;;;;;;;;;;;45670:45;;;;;;;;45687:28;;;;;;;45670:45;;-1:-1:-1;;;;;45670:45:0;;;;;-1:-1:-1;;;;;;;;45670:45:0;;;;;;;;;;-1:-1:-1;;;45670:45:0;;;;;;;;;;-1:-1:-1;;;45670:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;45670:45:0;;;;;;;;;;;-1:-1:-1;;;45670:45:0;;;;;;;;;;;;;;;-1:-1:-1;45670:45:0;;-1:-1:-1;45670:45:0;;-1:-1:-1;45670:45:0;;-1:-1:-1;45670:45:0;;-1:-1:-1;45670:45:0;-1:-1:-1;45670:45:0;;-1:-1:-1;45670:45:0;-1:-1:-1;;45546:451:0;;;;;;;;;:::o;18615:127::-;18678:7;18705:12;;;;;;;;;;:29;;:27;:29::i;20516:230::-;20609:6;:12;;;;;;;;;;:22;;;20601:45;;20633:12;:10;:12::i;20601:45::-;20593:106;;;;-1:-1:-1;;;20593:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50448:563;37153:14;:12;:14::i;:::-;37145:52;;;;;-1:-1:-1;;;37145:52:0;;;;;;;;;;;;-1:-1:-1;;;37145:52:0;;;;;;;;;;;;;;;50551:11:::1;::::0;50566;50551:27:::1;50533:15;:45;50525:92;;;;-1:-1:-1::0;;;50525:92:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50636:20;::::0;::::1;;:29;50628:86;;;;-1:-1:-1::0;;;50628:86:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;50733:17:0;::::1;50753:1;50733:17:::0;;;:11:::1;:17;::::0;;;;;50725:30:::1;;;::::0;::::1;;-1:-1:-1::0;;;;;50790:17:0;::::1;50766:15;50790:17:::0;;;:11:::1;:17;::::0;;;;;50784:5:::1;:28:::0;;:5;;-1:-1:-1;;50790:21:0;;50784:28;::::1;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;50831:15;::::0;::::1;::::0;50784:28;;-1:-1:-1;;;;50831:15:0;::::1;;;:24;50823:33;;;::::0;::::1;;50885:4;50867:15:::0;;::::1;:22:::0;;-1:-1:-1;;;;50867:22:0::1;-1:-1:-1::0;;;50867:22:0::1;::::0;;50900:18:::1;:20:::0;;;;::::1;::::0;;50980:10;;50931:72:::1;::::0;50958:4;;50964:38:::1;::::0;-1:-1:-1;;;;;;;;50980:10:0;::::1;;::::0;50992:9:::1;-1:-1:-1::0;;;50992:9:0;;::::1;;50964:15;:38::i;39642:176::-:0;39734:11;;39691:4;;39749:10;39734:26;39716:15;:44;:93;;;;-1:-1:-1;;39783:11:0;;39798:10;39783:26;39764:15;:45;;;39642:176::o;25176:471::-;25234:7;25479:6;25475:47;;-1:-1:-1;25509:1:0;25502:8;;25475:47;25546:5;;;25550:1;25546;:5;:1;25570:5;;;;;:10;25562:56;;;;-1:-1:-1;;;25562:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26123:132;26181:7;26208:39;26212:1;26215;26208:39;;;;;;;;;;;;;;;;;:3;:39::i;5078:143::-;5148:4;5172:41;5177:3;-1:-1:-1;;;;;5197:14:0;;5172:4;:41::i;14982:106::-;15070:10;14982:106;:::o;22496:188::-;22570:6;:12;;;;;;;;;;:33;;22595:7;22570:24;:33::i;:::-;22566:111;;;22652:12;:10;:12::i;:::-;-1:-1:-1;;;;;22625:40:0;22643:7;-1:-1:-1;;;;;22625:40:0;22637:4;22625:40;;;;;;;;;;22496:188;;:::o;37839:180::-;37918:7;37944:67;35563:3;37944:48;35514:1;37944:17;:6;37955:5;37944:10;:17::i;:::-;:21;;:48::i;31940:205::-;32068:68;;;-1:-1:-1;;;;;32068:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32068:68:0;-1:-1:-1;;;32068:68:0;;;32041:96;;32061:5;;32041:19;:96::i;:::-;31940:205;;;;:::o;22692:192::-;22767:6;:12;;;;;;;;;;:36;;22795:7;22767:27;:36::i;:::-;22763:114;;;22852:12;:10;:12::i;:::-;-1:-1:-1;;;;;22825:40:0;22843:7;-1:-1:-1;;;;;22825:40:0;22837:4;22825:40;;;;;;;;;;22692:192;;:::o;23822:181::-;23880:7;23912:5;;;23936:6;;;;23928:46;;;;;-1:-1:-1;;;23928:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;24286:136;24344:7;24371:43;24375:1;24378;24371:43;;;;;;;;;;;;;;;;;:3;:43::i;31755:177::-;31865:58;;;-1:-1:-1;;;;;31865:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31865:58:0;-1:-1:-1;;;31865:58:0;;;31838:86;;31858:5;;31838:19;:86::i;6337:149::-;6411:7;6454:22;6458:3;6470:5;6454:3;:22::i;5632:158::-;5712:4;5736:46;5746:3;-1:-1:-1;;;;;5766:14:0;;5736:9;:46::i;5876:117::-;5939:7;5966:19;5974:3;5966:7;:19::i;26751:278::-;26837:7;26872:12;26865:5;26857:28;;;;-1:-1:-1;;;26857:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26896:9;26912:1;26908;:5;;;;;;;26751:278;-1:-1:-1;;;;;26751:278:0:o;1732:414::-;1795:4;1817:21;1827:3;1832:5;1817:9;:21::i;:::-;1812:327;;-1:-1:-1;1855:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;2038:18;;2016:19;;;:12;;;:19;;;;;;:40;;;;2071:11;;1812:327;-1:-1:-1;2122:5:0;2115:12;;34060:761;34484:23;34510:69;34538:4;34510:69;;;;;;;;;;;;;;;;;34518:5;-1:-1:-1;;;;;34510:27:0;;;:69;;;;;:::i;:::-;34594:17;;34484:95;;-1:-1:-1;34594:21:0;34590:224;;34736:10;34725:30;;;;;;;;;;;;;;;-1:-1:-1;34725:30:0;34717:85;;;;-1:-1:-1;;;34717:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5397:149;5470:4;5494:44;5502:3;-1:-1:-1;;;;;5522:14:0;;5494:7;:44::i;24725:192::-;24811:7;24847:12;24839:6;;;;24831:29;;;;-1:-1:-1;;;24831:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;24883:5:0;;;24725:192::o;4620:204::-;4715:18;;4687:7;;4715:26;-1:-1:-1;4707:73:0;;;;-1:-1:-1;;;4707:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4798:3;:11;;4810:5;4798:18;;;;;;;;;;;;;;;;4791:25;;4620:204;;;;:::o;3952:129::-;4025:4;4049:19;;;:12;;;;;:19;;;;;;:24;;;3952:129::o;4167:109::-;4250:18;;4167:109::o;11987:196::-;12090:12;12122:53;12145:6;12153:4;12159:1;12162:12;12122:22;:53::i;:::-;12115:60;11987:196;-1:-1:-1;;;;11987:196:0:o;2322:1544::-;2388:4;2527:19;;;:12;;;:19;;;;;;2563:15;;2559:1300;;2998:18;;-1:-1:-1;;2949:14:0;;;;2998:22;;;;2925:21;;2998:3;;:22;;3285;;;;;;;;;;;;;;3265:42;;3431:9;3402:3;:11;;3414:13;3402:26;;;;;;;;;;;;;;;;;;;:38;;;;3508:23;;;3550:1;3508:12;;;:23;;;;;;3534:17;;;3508:43;;3660:17;;3508:3;;3660:17;;;;;;;;;;;;;;;;;;;;;;3755:3;:12;;:19;3768:5;3755:19;;;;;;;;;;;3748:26;;;3798:4;3791:11;;;;;;;;2559:1300;3842:5;3835:12;;;;;13364:979;13494:12;13527:18;13538:6;13527:10;:18::i;:::-;13519:60;;;;;-1:-1:-1;;;13519:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13653:12;13667:23;13694:6;-1:-1:-1;;;;;13694:11:0;13714:8;13725:4;13694:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13694:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13652:78;;;;13745:7;13741:595;;;13776:10;-1:-1:-1;13769:17:0;;-1:-1:-1;13769:17:0;13741:595;13890:17;;:21;13886:439;;14153:10;14147:17;14214:15;14201:10;14197:2;14193:19;14186:44;14101:148;14289:20;;-1:-1:-1;;;14289:20:0;;;;;;;;;;;;;;;;;14296:12;;14289:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8872:619;8932:4;9400:20;;9243:66;9440:23;;;;;;:42;;-1:-1:-1;;9467:15:0;;;9432:51;-1:-1:-1;;8872:619:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://8ebb32c4047772b595cd1396e3a67a48f9668c47bc7e8caddcd8dd092e606552
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.