Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 19 from a total of 19 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Revoke Role | 16031476 | 586 days ago | IN | 0 ETH | 0.00071386 | ||||
Grant Role | 16031448 | 586 days ago | IN | 0 ETH | 0.00117598 | ||||
Revoke Role | 14992808 | 743 days ago | IN | 0 ETH | 0.00272614 | ||||
Grant Role | 14992772 | 743 days ago | IN | 0 ETH | 0.00471064 | ||||
Revoke Role | 14741814 | 784 days ago | IN | 0 ETH | 0.00100947 | ||||
Grant Role | 14741784 | 784 days ago | IN | 0 ETH | 0.00261981 | ||||
Revoke Role | 14725118 | 787 days ago | IN | 0 ETH | 0.00145408 | ||||
Grant Role | 14725084 | 787 days ago | IN | 0 ETH | 0.00363996 | ||||
Grant Role | 14687857 | 793 days ago | IN | 0 ETH | 0.00370873 | ||||
Revoke Role | 12453456 | 1141 days ago | IN | 0 ETH | 0.00496935 | ||||
Grant Role | 12453392 | 1141 days ago | IN | 0 ETH | 0.01235731 | ||||
Revoke Role | 12291528 | 1166 days ago | IN | 0 ETH | 0.00518899 | ||||
Grant Role | 12291401 | 1166 days ago | IN | 0 ETH | 0.01440374 | ||||
Revoke Role | 11815899 | 1239 days ago | IN | 0 ETH | 0.00678785 | ||||
Grant Role | 11815847 | 1239 days ago | IN | 0 ETH | 0.01172502 | ||||
Revoke Role | 11777738 | 1245 days ago | IN | 0 ETH | 0.00639654 | ||||
Grant Role | 11777733 | 1245 days ago | IN | 0 ETH | 0.01691965 | ||||
Grant Role | 11777539 | 1245 days ago | IN | 0 ETH | 0.01389561 | ||||
0x60806040 | 11777504 | 1245 days ago | IN | Create: LiquidityProtectionSystemStore | 0 ETH | 0.13334055 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LiquidityProtectionSystemStore
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-02-02 */ // File: @openzeppelin/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/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) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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/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/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/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: solidity/contracts/token/interfaces/IERC20Token.sol pragma solidity 0.6.12; /* ERC20 Standard Token interface */ interface IERC20Token { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address _owner) external view returns (uint256); function allowance(address _owner, address _spender) external view returns (uint256); function transfer(address _to, uint256 _value) external returns (bool); function transferFrom( address _from, address _to, uint256 _value ) external returns (bool); function approve(address _spender, uint256 _value) external returns (bool); } // File: solidity/contracts/utility/interfaces/IOwned.sol pragma solidity 0.6.12; /* Owned contract interface */ interface IOwned { // this function isn't since the compiler emits automatically generated getter functions as external function owner() external view returns (address); function transferOwnership(address _newOwner) external; function acceptOwnership() external; } // File: solidity/contracts/converter/interfaces/IConverterAnchor.sol pragma solidity 0.6.12; /* Converter Anchor interface */ interface IConverterAnchor is IOwned { } // File: solidity/contracts/liquidity-protection/interfaces/ILiquidityProtectionSystemStore.sol pragma solidity 0.6.12; /* Liquidity Protection System Store interface */ interface ILiquidityProtectionSystemStore { function systemBalance(IERC20Token poolToken) external view returns (uint256); function incSystemBalance(IERC20Token poolToken, uint256 poolAmount) external; function decSystemBalance(IERC20Token poolToken, uint256 poolAmount) external; function networkTokensMinted(IConverterAnchor poolAnchor) external view returns (uint256); function incNetworkTokensMinted(IConverterAnchor poolAnchor, uint256 amount) external; function decNetworkTokensMinted(IConverterAnchor poolAnchor, uint256 amount) external; } // File: solidity/contracts/utility/Utils.sol pragma solidity 0.6.12; /** * @dev Utilities & Common Modifiers */ contract Utils { // verifies that a value is greater than zero modifier greaterThanZero(uint256 _value) { _greaterThanZero(_value); _; } // error message binary size optimization function _greaterThanZero(uint256 _value) internal pure { require(_value > 0, "ERR_ZERO_VALUE"); } // validates an address - currently only checks that it isn't null modifier validAddress(address _address) { _validAddress(_address); _; } // error message binary size optimization function _validAddress(address _address) internal pure { require(_address != address(0), "ERR_INVALID_ADDRESS"); } // verifies that the address is different than this contract address modifier notThis(address _address) { _notThis(_address); _; } // error message binary size optimization function _notThis(address _address) internal view { require(_address != address(this), "ERR_ADDRESS_IS_SELF"); } // validates an external address - currently only checks that it isn't null or this modifier validExternalAddress(address _address) { _validExternalAddress(_address); _; } // error message binary size optimization function _validExternalAddress(address _address) internal view { require(_address != address(0) && _address != address(this), "ERR_INVALID_EXTERNAL_ADDRESS"); } } // File: solidity/contracts/liquidity-protection/LiquidityProtectionSystemStore.sol pragma solidity 0.6.12; /** * @dev This contract aggregates the system balances of the liquidity protection mechanism. */ contract LiquidityProtectionSystemStore is ILiquidityProtectionSystemStore, AccessControl, Utils { using SafeMath for uint256; bytes32 public constant ROLE_SUPERVISOR = keccak256("ROLE_SUPERVISOR"); bytes32 public constant ROLE_OWNER = keccak256("ROLE_OWNER"); // system balances mapping(IERC20Token => uint256) private _systemBalances; // network tokens minted mapping(IConverterAnchor => uint256) private _networkTokensMinted; // allows execution only by an owner modifier ownerOnly { _hasRole(ROLE_OWNER); _; } // error message binary size optimization function _hasRole(bytes32 role) internal view { require(hasRole(role, msg.sender), "ERR_ACCESS_DENIED"); } /** * @dev triggered when the system balance for a given token is updated * * @param token token address * @param prevAmount previous amount * @param newAmount new amount */ event SystemBalanceUpdated(IERC20Token indexed token, uint256 prevAmount, uint256 newAmount); /** * @dev triggered when the amount of network tokens minted into a specific pool is updated * * @param poolAnchor pool anchor * @param prevAmount previous amount * @param newAmount new amount */ event NetworkTokensMintedUpdated(IConverterAnchor indexed poolAnchor, uint256 prevAmount, uint256 newAmount); constructor() public { // set up administrative roles _setRoleAdmin(ROLE_SUPERVISOR, ROLE_SUPERVISOR); _setRoleAdmin(ROLE_OWNER, ROLE_SUPERVISOR); // allow the deployer to initially govern the contract _setupRole(ROLE_SUPERVISOR, msg.sender); } /** * @dev returns the system balance for a given token * * @param token token address * @return system balance */ function systemBalance(IERC20Token token) external view override returns (uint256) { return _systemBalances[token]; } /** * @dev increases the system balance for a given token * can be executed only by an owner * * @param token token address * @param amount token amount */ function incSystemBalance(IERC20Token token, uint256 amount) external override ownerOnly validAddress(address(token)) { uint256 prevAmount = _systemBalances[token]; uint256 newAmount = prevAmount.add(amount); _systemBalances[token] = newAmount; emit SystemBalanceUpdated(token, prevAmount, newAmount); } /** * @dev decreases the system balance for a given token * can be executed only by an owner * * @param token token address * @param amount token amount */ function decSystemBalance(IERC20Token token, uint256 amount) external override ownerOnly validAddress(address(token)) { uint256 prevAmount = _systemBalances[token]; uint256 newAmount = prevAmount.sub(amount); _systemBalances[token] = newAmount; emit SystemBalanceUpdated(token, prevAmount, newAmount); } /** * @dev returns the amount of network tokens minted into a specific pool * * @param poolAnchor pool anchor * @return amount of network tokens */ function networkTokensMinted(IConverterAnchor poolAnchor) external view override returns (uint256) { return _networkTokensMinted[poolAnchor]; } /** * @dev increases the amount of network tokens minted into a specific pool * can be executed only by an owner * * @param poolAnchor pool anchor * @param amount amount to increase the minted tokens by */ function incNetworkTokensMinted(IConverterAnchor poolAnchor, uint256 amount) external override ownerOnly validAddress(address(poolAnchor)) { uint256 prevAmount = _networkTokensMinted[poolAnchor]; uint256 newAmount = prevAmount.add(amount); _networkTokensMinted[poolAnchor] = newAmount; emit NetworkTokensMintedUpdated(poolAnchor, prevAmount, newAmount); } /** * @dev decreases the amount of network tokens minted into a specific pool * can be executed only by an owner * * @param poolAnchor pool anchor * @param amount amount to decrease the minted tokens by */ function decNetworkTokensMinted(IConverterAnchor poolAnchor, uint256 amount) external override ownerOnly validAddress(address(poolAnchor)) { uint256 prevAmount = _networkTokensMinted[poolAnchor]; uint256 newAmount = prevAmount > amount ? prevAmount - amount : 0; _networkTokensMinted[poolAnchor] = newAmount; emit NetworkTokensMintedUpdated(poolAnchor, prevAmount, newAmount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IConverterAnchor","name":"poolAnchor","type":"address"},{"indexed":false,"internalType":"uint256","name":"prevAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"NetworkTokensMintedUpdated","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":true,"internalType":"contract IERC20Token","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"prevAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"SystemBalanceUpdated","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_OWNER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_SUPERVISOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IConverterAnchor","name":"poolAnchor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decNetworkTokensMinted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Token","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decSystemBalance","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"contract IConverterAnchor","name":"poolAnchor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"incNetworkTokensMinted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Token","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"incSystemBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IConverterAnchor","name":"poolAnchor","type":"address"}],"name":"networkTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Token","name":"token","type":"address"}],"name":"systemBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200002d60008051602062000edd8339815191528062000089565b620000687f9f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a8960008051602062000edd83398151915262000089565b6200008360008051602062000edd83398151915233620000db565b620001ef565b600082815260208190526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526020829052604090912060020155565b620000e78282620000eb565b5050565b600082815260208181526040909120620001109183906200074662000164821b17901c565b15620000e7576200012062000184565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200017b836001600160a01b03841662000188565b90505b92915050565b3390565b6000620001968383620001d7565b620001ce575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200017e565b5060006200017e565b60009081526001919091016020526040902054151590565b610cde80620001ff6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063802fa3ba11610097578063a217fddf11610066578063a217fddf146102ed578063ca15c873146102f5578063d547741f14610312578063deacd84e1461033e57610100565b8063802fa3ba1461023a5780638ad682af146102665780639010d07c1461026e57806391d14854146102ad57610100565b8063332100fa116100d3578063332100fa14610196578063350ed8e7146101c257806336568abe146101e85780635121220c1461021457610100565b80630d80af9b1461010557806319c6a5e41461011f578063248a9ca31461014d5780632f2ff15d1461016a575b600080fd5b61010d61036a565b60408051918252519081900360200190f35b61014b6004803603604081101561013557600080fd5b506001600160a01b03813516906020013561038e565b005b61010d6004803603602081101561016357600080fd5b5035610435565b61014b6004803603604081101561018057600080fd5b50803590602001356001600160a01b031661044a565b61014b600480360360408110156101ac57600080fd5b506001600160a01b0381351690602001356104b6565b61010d600480360360208110156101d857600080fd5b50356001600160a01b03166104fb565b61014b600480360360408110156101fe57600080fd5b50803590602001356001600160a01b0316610516565b61010d6004803603602081101561022a57600080fd5b50356001600160a01b0316610577565b61014b6004803603604081101561025057600080fd5b506001600160a01b038135169060200135610592565b61010d610641565b6102916004803603604081101561028457600080fd5b5080359060200135610653565b604080516001600160a01b039092168252519081900360200190f35b6102d9600480360360408110156102c357600080fd5b50803590602001356001600160a01b0316610674565b604080519115158252519081900360200190f35b61010d61068c565b61010d6004803603602081101561030b57600080fd5b5035610691565b61014b6004803603604081101561032857600080fd5b50803590602001356001600160a01b03166106a8565b61014b6004803603604081101561035457600080fd5b506001600160a01b038135169060200135610701565b7f0c7ade2c7c08453ea605b4a8f3fb0e03e3ffcffbfa41ca8ee543d0fd74cada3881565b6103a5600080516020610c5a83398151915261075b565b816103af816107ad565b6001600160a01b038316600090815260016020526040812054906103d382856107fe565b6001600160a01b0386166000818152600160209081526040918290208490558151868152908101849052815193945091927f407aa06211cf8eec4798e12787e05d8e5ba13eab80aac8df1b59ed5db85201979281900390910190a25050505050565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461046d90610468610840565b610674565b6104a85760405162461bcd60e51b815260040180806020018281038252602f815260200180610bfb602f913960400191505060405180910390fd5b6104b28282610844565b5050565b6104cd600080516020610c5a83398151915261075b565b816104d7816107ad565b6001600160a01b038316600090815260016020526040812054906103d382856108ad565b6001600160a01b031660009081526002602052604090205490565b61051e610840565b6001600160a01b0316816001600160a01b03161461056d5760405162461bcd60e51b815260040180806020018281038252602f815260200180610c7a602f913960400191505060405180910390fd5b6104b28282610907565b6001600160a01b031660009081526001602052604090205490565b6105a9600080516020610c5a83398151915261075b565b816105b3816107ad565b6001600160a01b038316600090815260026020526040812054908382116105db5760006105df565b8382035b6001600160a01b0386166000818152600260209081526040918290208490558151868152908101849052815193945091927fac906a35879322fae6cc4da99d202a54cee7958738dda32d3ff821913a0f27399281900390910190a25050505050565b600080516020610c5a83398151915281565b600082815260208190526040812061066b9083610970565b90505b92915050565b600082815260208190526040812061066b908361097c565b600081565b600081815260208190526040812061066e90610991565b6000828152602081905260409020600201546106c690610468610840565b61056d5760405162461bcd60e51b8152600401808060200182810382526030815260200180610c2a6030913960400191505060405180910390fd5b610718600080516020610c5a83398151915261075b565b81610722816107ad565b6001600160a01b038316600090815260026020526040812054906105df82856108ad565b600061066b836001600160a01b03841661099c565b6107658133610674565b6107aa576040805162461bcd60e51b815260206004820152601160248201527011549497d050d0d154d4d7d11153925151607a1b604482015290519081900360640190fd5b50565b6001600160a01b0381166107aa576040805162461bcd60e51b81526020600482015260136024820152724552525f494e56414c49445f4144445245535360681b604482015290519081900360640190fd5b600061066b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109e6565b3390565b600082815260208190526040902061085c9082610746565b156104b257610869610840565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008282018381101561066b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082815260208190526040902061091f9082610a7d565b156104b25761092c610840565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600061066b8383610a92565b600061066b836001600160a01b038416610af6565b600061066e82610b0e565b60006109a88383610af6565b6109de5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561066e565b50600061066e565b60008184841115610a755760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610a3a578181015183820152602001610a22565b50505050905090810190601f168015610a675780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600061066b836001600160a01b038416610b12565b81546000908210610ad45760405162461bcd60e51b8152600401808060200182810382526022815260200180610bd96022913960400191505060405180910390fd5b826000018281548110610ae357fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60008181526001830160205260408120548015610bce5783546000198083019190810190600090879083908110610b4557fe5b9060005260206000200154905080876000018481548110610b6257fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080610b9257fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061066e565b600091505061066e56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b659f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a89416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212209fc94d124f8d1ea8070c9f1f302d76d4279ccec91630855e342808a81917562864736f6c634300060c00330c7ade2c7c08453ea605b4a8f3fb0e03e3ffcffbfa41ca8ee543d0fd74cada38
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063802fa3ba11610097578063a217fddf11610066578063a217fddf146102ed578063ca15c873146102f5578063d547741f14610312578063deacd84e1461033e57610100565b8063802fa3ba1461023a5780638ad682af146102665780639010d07c1461026e57806391d14854146102ad57610100565b8063332100fa116100d3578063332100fa14610196578063350ed8e7146101c257806336568abe146101e85780635121220c1461021457610100565b80630d80af9b1461010557806319c6a5e41461011f578063248a9ca31461014d5780632f2ff15d1461016a575b600080fd5b61010d61036a565b60408051918252519081900360200190f35b61014b6004803603604081101561013557600080fd5b506001600160a01b03813516906020013561038e565b005b61010d6004803603602081101561016357600080fd5b5035610435565b61014b6004803603604081101561018057600080fd5b50803590602001356001600160a01b031661044a565b61014b600480360360408110156101ac57600080fd5b506001600160a01b0381351690602001356104b6565b61010d600480360360208110156101d857600080fd5b50356001600160a01b03166104fb565b61014b600480360360408110156101fe57600080fd5b50803590602001356001600160a01b0316610516565b61010d6004803603602081101561022a57600080fd5b50356001600160a01b0316610577565b61014b6004803603604081101561025057600080fd5b506001600160a01b038135169060200135610592565b61010d610641565b6102916004803603604081101561028457600080fd5b5080359060200135610653565b604080516001600160a01b039092168252519081900360200190f35b6102d9600480360360408110156102c357600080fd5b50803590602001356001600160a01b0316610674565b604080519115158252519081900360200190f35b61010d61068c565b61010d6004803603602081101561030b57600080fd5b5035610691565b61014b6004803603604081101561032857600080fd5b50803590602001356001600160a01b03166106a8565b61014b6004803603604081101561035457600080fd5b506001600160a01b038135169060200135610701565b7f0c7ade2c7c08453ea605b4a8f3fb0e03e3ffcffbfa41ca8ee543d0fd74cada3881565b6103a5600080516020610c5a83398151915261075b565b816103af816107ad565b6001600160a01b038316600090815260016020526040812054906103d382856107fe565b6001600160a01b0386166000818152600160209081526040918290208490558151868152908101849052815193945091927f407aa06211cf8eec4798e12787e05d8e5ba13eab80aac8df1b59ed5db85201979281900390910190a25050505050565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461046d90610468610840565b610674565b6104a85760405162461bcd60e51b815260040180806020018281038252602f815260200180610bfb602f913960400191505060405180910390fd5b6104b28282610844565b5050565b6104cd600080516020610c5a83398151915261075b565b816104d7816107ad565b6001600160a01b038316600090815260016020526040812054906103d382856108ad565b6001600160a01b031660009081526002602052604090205490565b61051e610840565b6001600160a01b0316816001600160a01b03161461056d5760405162461bcd60e51b815260040180806020018281038252602f815260200180610c7a602f913960400191505060405180910390fd5b6104b28282610907565b6001600160a01b031660009081526001602052604090205490565b6105a9600080516020610c5a83398151915261075b565b816105b3816107ad565b6001600160a01b038316600090815260026020526040812054908382116105db5760006105df565b8382035b6001600160a01b0386166000818152600260209081526040918290208490558151868152908101849052815193945091927fac906a35879322fae6cc4da99d202a54cee7958738dda32d3ff821913a0f27399281900390910190a25050505050565b600080516020610c5a83398151915281565b600082815260208190526040812061066b9083610970565b90505b92915050565b600082815260208190526040812061066b908361097c565b600081565b600081815260208190526040812061066e90610991565b6000828152602081905260409020600201546106c690610468610840565b61056d5760405162461bcd60e51b8152600401808060200182810382526030815260200180610c2a6030913960400191505060405180910390fd5b610718600080516020610c5a83398151915261075b565b81610722816107ad565b6001600160a01b038316600090815260026020526040812054906105df82856108ad565b600061066b836001600160a01b03841661099c565b6107658133610674565b6107aa576040805162461bcd60e51b815260206004820152601160248201527011549497d050d0d154d4d7d11153925151607a1b604482015290519081900360640190fd5b50565b6001600160a01b0381166107aa576040805162461bcd60e51b81526020600482015260136024820152724552525f494e56414c49445f4144445245535360681b604482015290519081900360640190fd5b600061066b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109e6565b3390565b600082815260208190526040902061085c9082610746565b156104b257610869610840565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008282018381101561066b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082815260208190526040902061091f9082610a7d565b156104b25761092c610840565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600061066b8383610a92565b600061066b836001600160a01b038416610af6565b600061066e82610b0e565b60006109a88383610af6565b6109de5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561066e565b50600061066e565b60008184841115610a755760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610a3a578181015183820152602001610a22565b50505050905090810190601f168015610a675780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600061066b836001600160a01b038416610b12565b81546000908210610ad45760405162461bcd60e51b8152600401808060200182810382526022815260200180610bd96022913960400191505060405180910390fd5b826000018281548110610ae357fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60008181526001830160205260408120548015610bce5783546000198083019190810190600090879083908110610b4557fe5b9060005260206000200154905080876000018481548110610b6257fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080610b9257fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061066e565b600091505061066e56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b659f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a89416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212209fc94d124f8d1ea8070c9f1f302d76d4279ccec91630855e342808a81917562864736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.