ETH Price: $2,715.10 (+0.37%)

Token

Diva Token (DIVA)
 

Overview

Max Total Supply

1,000,000,000 DIVA

Holders

4,551 (0.00%)
Created with Highcharts 10.2.1

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
d-aykroyd.eth
Balance
12,000 DIVA

Value
$0.00
0x8cd11D507dEfb717a596E381BE860ED1331Eb516
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Diva stands for 'Distributed Validation.' Diva is the first solution to offer a Liquid Staking Derivative (divETH) that accrues staking rewards, and it is fully powered by Distributed Validation Technology (DVT).

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DivaToken

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 23 : DivaToken.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @dev Error: transfer attempt while protocol is paused.
*/
error ProtocolPaused(address sender, address recipient, uint256 amount);
/**
* @dev Error: attempt to enable transferability before the end of the non-transferability period.
*/
error TransferabilityCannotBeEnabled();
/**
* @dev Error: total supply minted is not equal to max supply.
* @param currentTotalSupply total supply attempted to be minted.
* @param expectedTotalSupply expected total supply.
*/
error InvalidTotalSupply(
uint256 currentTotalSupply,
uint256 expectedTotalSupply
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 2 of 23 : Ownable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 3 of 23 : IVotes.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (governance/utils/IVotes.sol)
pragma solidity ^0.8.0;
/**
* @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts.
*
* _Available since v4.5._
*/
interface IVotes {
/**
* @dev Emitted when an account changes their delegate.
*/
event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);
/**
* @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of votes.
*/
event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);
/**
* @dev Returns the current amount of votes that `account` has.
*/
function getVotes(address account) external view returns (uint256);
/**
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 4 of 23 : IERC5267.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)
pragma solidity ^0.8.0;
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
/**
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
* signature.
*/
function eip712Domain()
external
view
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 5 of 23 : IERC5805.sol
1
2
3
4
5
6
7
8
9
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5805.sol)
pragma solidity ^0.8.0;
import "../governance/utils/IVotes.sol";
import "./IERC6372.sol";
interface IERC5805 is IERC6372, IVotes {}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 6 of 23 : IERC6372.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC6372.sol)
pragma solidity ^0.8.0;
interface IERC6372 {
/**
* @dev Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting).
*/
function clock() external view returns (uint48);
/**
* @dev Description of the clock
*/
// solhint-disable-next-line func-name-mixedcase
function CLOCK_MODE() external view returns (string memory);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 7 of 23 : Pausable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 8 of 23 : ERC20.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 9 of 23 : IERC20.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 10 of 23 : ERC20Permit.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Permit.sol)
pragma solidity ^0.8.0;
import "./IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/ECDSA.sol";
import "../../../utils/cryptography/EIP712.sol";
import "../../../utils/Counters.sol";
/**
* @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* _Available since v3.4._
*/
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
using Counters for Counters.Counter;
mapping(address => Counters.Counter) private _nonces;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 11 of 23 : ERC20Votes.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Votes.sol)
pragma solidity ^0.8.0;
import "./ERC20Permit.sol";
import "../../../interfaces/IERC5805.sol";
import "../../../utils/math/Math.sol";
import "../../../utils/math/SafeCast.sol";
import "../../../utils/cryptography/ECDSA.sol";
/**
* @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's,
* and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1.
*
* NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module.
*
* This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either
* by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting
* power can be queried through the public accessors {getVotes} and {getPastVotes}.
*
* By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
* requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
*
* _Available since v4.2._
*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 12 of 23 : IERC20Metadata.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 13 of 23 : IERC20Permit.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 14 of 23 : Context.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 15 of 23 : Counters.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 16 of 23 : ShortStrings.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)
pragma solidity ^0.8.8;
import "./StorageSlot.sol";
// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
// | length | 0x BB |
type ShortString is bytes32;
/**
* @dev This library provides functions to convert short memory strings
* into a `ShortString` type that can be used as an immutable variable.
*
* Strings of arbitrary length can be optimized using this library if
* they are short enough (up to 31 bytes) by packing them with their
* length (1 byte) in a single EVM word (32 bytes). Additionally, a
* fallback mechanism can be used for every other case.
*
* Usage example:
*
* ```solidity
* contract Named {
* using ShortStrings for *;
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 17 of 23 : StorageSlot.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 18 of 23 : Strings.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
import "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 19 of 23 : ECDSA.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV // Deprecated in v4.8
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 20 of 23 : EIP712.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)
pragma solidity ^0.8.8;
import "./ECDSA.sol";
import "../ShortStrings.sol";
import "../../interfaces/IERC5267.sol";
/**
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
*
* The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
* thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
* they need in their contracts using a combination of `abi.encode` and `keccak256`.
*
* This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
* ({_hashTypedDataV4}).
*
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating
* the chain id to protect against replay attacks on an eventual fork of the chain.
*
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 21 of 23 : Math.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 22 of 23 : SafeCast.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.
pragma solidity ^0.8.0;
/**
* @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
* checks.
*
* Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this intuition by
* reverting the transaction when such 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.
*
* Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
* all math on `uint256` and `int256` and then downcasting.
*/
library SafeCast {
/**
* @dev Returns the downcasted uint248 from uint256, reverting on
* overflow (when the input is greater than largest uint248).
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 23 of 23 : SignedMath.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"uint256","name":"currentTotalSupply","type":"uint256"},{"internalType":"uint256","name":"expectedTotalSupply","type":"uint256"}],"name":"InvalidTotalSupply","type":"error"},{"inputs":[],"name":"OnlyFoundationMinterCanCallThis","type":"error"},{"inputs":[],"name":"OnlyMerkleDistributorCanCallThisMethod","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ProtocolPaused","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TransferabilityCannotBeEnabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CLOCK_MODE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FOUNDATION_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_NON_TRANSFERABILITY_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clock","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegateFromMerkleDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct DivaToken.Recipient[]","name":"_recipients","type":"tuple[]"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct DivaToken.Recipient","name":"airdrop","type":"tuple"},{"internalType":"address","name":"_dao","type":"address"}],"name":"distributeAndTransferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timepoint","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"timepoint","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_foundation","type":"address"}],"name":"mintFoundationDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonTransferabilityPeriodEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101a06040523480156200001257600080fd5b5060405162002e3b38038062002e3b8339810160408190526200003591620003ea565b6040805180820190915260018152603160f81b60208201526000805460ff1916905582908190818460046200006b8382620004e3565b5060056200007a8282620004e3565b506200008c915083905060066200019f565b610120526200009d8160076200019f565b61014052815160208084019190912060e052815190820120610100524660a0526200012b60e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c052506200014033620001d8565b6200014a6200022a565b60008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c805460ff191660011790556200018e625c490042620005af565b61016052505033610180526200062b565b6000602083511015620001bf57620001b78362000287565b9050620001d2565b81620001cc8482620004e3565b5060ff90505b92915050565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000234620002d3565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200026a3390565b6040516001600160a01b03909116815260200160405180910390a1565b600080829050601f81511115620002be578260405163305a27a960e01b8152600401620002b59190620005d1565b60405180910390fd5b8051620002cb8262000606565b179392505050565b60005460ff16156200031b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620002b5565b565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200035057818101518382015260200162000336565b50506000910152565b600082601f8301126200036b57600080fd5b81516001600160401b03808211156200038857620003886200031d565b604051601f8301601f19908116603f01168101908282118183101715620003b357620003b36200031d565b81604052838152866020858801011115620003cd57600080fd5b620003e084602083016020890162000333565b9695505050505050565b60008060408385031215620003fe57600080fd5b82516001600160401b03808211156200041657600080fd5b620004248683870162000359565b935060208501519150808211156200043b57600080fd5b506200044a8582860162000359565b9150509250929050565b600181811c908216806200046957607f821691505b6020821081036200048a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004de57600081815260208120601f850160051c81016020861015620004b95750805b601f850160051c820191505b81811015620004da57828155600101620004c5565b5050505b505050565b81516001600160401b03811115620004ff57620004ff6200031d565b620005178162000510845462000454565b8462000490565b602080601f8311600181146200054f5760008415620005365750858301515b600019600386901b1c1916600185901b178555620004da565b600085815260208120601f198616915b8281101562000580578886015182559484019460019091019084016200055f565b50858210156200059f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620001d257634e487b7160e01b600052601160045260246000fd5b6020815260008251806020840152620005f281604085016020870162000333565b601f01601f19169190910160400192915050565b805160208083015191908110156200048a5760001960209190910360031b1b16919050565b60805160a05160c05160e0516101005161012051610140516101605161018051612798620006a3600039600061061d015260008181610319015261091c01526000610acf01526000610aa4015260006115520152600061152a01526000611485015260006114af015260006114d901526127986000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80635c975abb1161013057806391ddadf4116100b8578063c3cda5201161007c578063c3cda520146104dd578063d505accf146104f0578063dd62ed3e14610503578063f1127ed814610516578063f2fde38b1461055357600080fd5b806391ddadf41461047d57806395d89b411461049c5780639ab24eb0146104a4578063a457c2d7146104b7578063a9059cbb146104ca57600080fd5b8063715018a6116100ff578063715018a6146104235780637ecebe001461042b57806384b0196e1461043e5780638da5cb5b146104595780638e539e8c1461046a57600080fd5b80635c975abb146103b457806367318286146103bf5780636fcfff45146103d257806370a08231146103fa57600080fd5b806339509351116101b35780633f4ba83a116101825780633f4ba83a1461033b5780634bf5d7e91461034357806351b195701461034b578063587cde1e1461035d5780635c19a95c146103a157600080fd5b806339509351146102e45780633a46b1a8146102f75780633d7b24611461030a5780633ef1f0e21461031457600080fd5b806318160ddd116101fa57806318160ddd1461029557806323b872dd146102a7578063313ce567146102ba57806332cb6b0c146102c95780633644e515146102dc57600080fd5b806306fdde031461022c578063095ea7b31461024a5780630fe746921461026d578063176c752a14610282575b600080fd5b610234610566565b604051610241919061232d565b60405180910390f35b61025d61025836600461235c565b6105f8565b6040519015158152602001610241565b61028061027b366004612386565b610612565b005b6102806102903660046123a1565b6106c5565b6003545b604051908152602001610241565b61025d6102b5366004612444565b610838565b60405160128152602001610241565b6102996b033b2e3c9fd0803ce800000081565b61029961085c565b61025d6102f236600461235c565b61086b565b61029961030536600461235c565b61088d565b610299625c490081565b6102997f000000000000000000000000000000000000000000000000000000000000000081565b610280610912565b61023461096d565b6102996a5fd431158909bc8240000081565b61038961036b366004612386565b6001600160a01b039081166000908152600a60205260409020541690565b6040516001600160a01b039091168152602001610241565b6102806103af366004612386565b610a05565b60005460ff1661025d565b6102806103cd366004612386565b610a0f565b6103e56103e0366004612386565b610a44565b60405163ffffffff9091168152602001610241565b610299610408366004612386565b6001600160a01b031660009081526001602052604090205490565b610280610a66565b610299610439366004612386565b610a78565b610446610a96565b6040516102419796959493929190612480565b600d546001600160a01b0316610389565b610299610478366004612516565b610b1f565b610485610b86565b60405165ffffffffffff9091168152602001610241565b610234610b91565b6102996104b2366004612386565b610ba0565b61025d6104c536600461235c565b610c22565b61025d6104d836600461235c565b610c9d565b6102806104eb366004612540565b610cab565b6102806104fe366004612598565b610de1565b610299610511366004612602565b610f45565b610529610524366004612635565b610f70565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610241565b610280610561366004612386565b610ff4565b60606004805461057590612675565b80601f01602080910402602001604051908101604052809291908181526020018280546105a190612675565b80156105ee5780601f106105c3576101008083540402835291602001916105ee565b820191906000526020600020905b8154815290600101906020018083116105d157829003601f168201915b5050505050905090565b60003361060681858561106a565b60019150505b92915050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461065b576040516351ed73b960e11b815260040160405180910390fd5b610670816a5fd431158909bc8240000061118e565b6b033b2e3c9fd0803ce800000061068660035490565b146106c2576003546040516333491a8f60e01b815260048101919091526b033b2e3c9fd0803ce800000060248201526044015b60405180910390fd5b50565b6106cd61119c565b60005b83811015610736576107248585838181106106ed576106ed6126a9565b6107039260206040909202019081019150612386565b868684818110610715576107156126a9565b9050604002016020013561118e565b8061072e816126d5565b9150506106d0565b506107516107476020840184612386565b836020013561118e565b6001600e60006107646020860186612386565b6001600160a01b03168152602080820192909252604001600020805460ff19169215159290921790915561079a90830183612386565b600f80546001600160a01b0319166001600160a01b03929092169190911790556107db6a5fd431158909bc824000006b033b2e3c9fd0803ce80000006126ee565b60035414610829576003546108076a5fd431158909bc824000006b033b2e3c9fd0803ce80000006126ee565b6040516333491a8f60e01b8152600481019290925260248201526044016106b9565b610832816111f6565b50505050565b600033610846858285611248565b6108518585856112bc565b506001949350505050565b6000610866611478565b905090565b60003361060681858561087e8383610f45565b6108889190612701565b61106a565b6000610897610b86565b65ffffffffffff1682106108e95760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016106b9565b6001600160a01b0383166000908152600b6020526040902061090b90836115a3565b9392505050565b61091a61119c565b7f000000000000000000000000000000000000000000000000000000000000000042101561095b5760405163f085832b60e01b815260040160405180910390fd5b610963610a66565b61096b61168c565b565b606043610978610b86565b65ffffffffffff16146109cd5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a2062726f6b656e20636c6f636b206d6f646500000060448201526064016106b9565b5060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000602082015290565b6106c233826116d3565b600f546001600160a01b03163314610a3a57604051631793614b60e01b815260040160405180910390fd5b6106c281826116d3565b6001600160a01b0381166000908152600b602052604081205461060c9061174d565b610a6e61119c565b61096b60006111f6565b6001600160a01b03811660009081526008602052604081205461060c565b600060608082808083610aca7f000000000000000000000000000000000000000000000000000000000000000060066117b6565b610af57f000000000000000000000000000000000000000000000000000000000000000060076117b6565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000610b29610b86565b65ffffffffffff168210610b7b5760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016106b9565b61060c600c836115a3565b600061086643611861565b60606005805461057590612675565b6001600160a01b0381166000908152600b60205260408120548015610c0f576001600160a01b0383166000908152600b6020526040902080546000198301908110610bed57610bed6126a9565b60009182526020909120015464010000000090046001600160e01b0316610c12565b60005b6001600160e01b03169392505050565b60003381610c308286610f45565b905083811015610c905760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106b9565b610851828686840361106a565b6000336106068185856112bc565b83421115610cfb5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016106b9565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610d7590610d6d9060a001604051602081830303815290604052805190602001206118c8565b8585856118f5565b9050610d808161191d565b8614610dce5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016106b9565b610dd881886116d3565b50505050505050565b83421115610e315760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016106b9565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610e608c61191d565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610ebb826118c8565b90506000610ecb828787876118f5565b9050896001600160a01b0316816001600160a01b031614610f2e5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016106b9565b610f398a8a8a61106a565b50505050505050505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b0383166000908152600b60205260409020805463ffffffff8416908110610fb457610fb46126a9565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b610ffc61119c565b6001600160a01b0381166110615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b9565b6106c2816111f6565b6001600160a01b0383166110cc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106b9565b6001600160a01b03821661112d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106b9565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6111988282611945565b5050565b600d546001600160a01b0316331461096b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b9565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006112548484610f45565b9050600019811461083257818110156112af5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106b9565b610832848484840361106a565b6001600160a01b0383166113205760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106b9565b6001600160a01b0382166113825760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106b9565b61138d8383836119cf565b6001600160a01b038316600090815260016020526040902054818110156114055760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106b9565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906114659086815260200190565b60405180910390a3610832848484611a37565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156114d157507f000000000000000000000000000000000000000000000000000000000000000046145b156114fb57507f000000000000000000000000000000000000000000000000000000000000000090565b610866604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b8154600090818160058111156115fd5760006115be84611a42565b6115c890856126ee565b600088815260209020909150869082015463ffffffff1611156115ed578091506115fb565b6115f8816001612701565b92505b505b8082101561164a5760006116118383611b2a565b600088815260209020909150869082015463ffffffff16111561163657809150611644565b611641816001612701565b92505b506115fd565b8015611676576000868152602090208101600019015464010000000090046001600160e01b0316611679565b60005b6001600160e01b03169695505050505050565b611694611b45565b6000805460ff191690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b6001600160a01b038281166000818152600a6020818152604080842080546001845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610832828483611b8e565b600063ffffffff8211156117b25760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016106b9565b5090565b606060ff83146117d0576117c983611ccb565b905061060c565b8180546117dc90612675565b80601f016020809104026020016040519081016040528092919081815260200182805461180890612675565b80156118555780601f1061182a57610100808354040283529160200191611855565b820191906000526020600020905b81548152906001019060200180831161183857829003601f168201915b5050505050905061060c565b600065ffffffffffff8211156117b25760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203460448201526538206269747360d01b60648201526084016106b9565b600061060c6118d5611478565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600061190687878787611d0a565b9150915061191381611dce565b5095945050505050565b6001600160a01b03811660009081526008602052604090208054600181018255905b50919050565b61194f8282611f18565b6003546001600160e01b0310156119c15760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016106b9565b610832600c611fed83611ff9565b60005460ff1680156119fa57506001600160a01b0383166000908152600e602052604090205460ff16155b15611a3257604051637db190bf60e01b81526001600160a01b03808516600483015283166024820152604481018290526064016106b9565b505050565b611a3283838361216e565b600081600003611a5457506000919050565b60006001611a61846121a0565b901c6001901b90506001818481611a7a57611a7a612714565b048201901c90506001818481611a9257611a92612714565b048201901c90506001818481611aaa57611aaa612714565b048201901c90506001818481611ac257611ac2612714565b048201901c90506001818481611ada57611ada612714565b048201901c90506001818481611af257611af2612714565b048201901c90506001818481611b0a57611b0a612714565b048201901c905061090b81828581611b2457611b24612714565b04612234565b6000611b39600284841861272a565b61090b90848416612701565b60005460ff1661096b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016106b9565b816001600160a01b0316836001600160a01b031614158015611bb05750600081115b15611a32576001600160a01b03831615611c3e576001600160a01b0383166000908152600b602052604081208190611beb9061224a85611ff9565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611c33929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611a32576001600160a01b0382166000908152600b602052604081208190611c7490611fed85611ff9565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611cbc929190918252602082015260400190565b60405180910390a25050505050565b60606000611cd883612256565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611d415750600090506003611dc5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d95573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611dbe57600060019250925050611dc5565b9150600090505b94509492505050565b6000816004811115611de257611de261274c565b03611dea5750565b6001816004811115611dfe57611dfe61274c565b03611e4b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106b9565b6002816004811115611e5f57611e5f61274c565b03611eac5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106b9565b6003816004811115611ec057611ec061274c565b036106c25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106b9565b6001600160a01b038216611f6e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106b9565b611f7a600083836119cf565b8060036000828254611f8c9190612701565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361119860008383611a37565b600061090b8284612701565b825460009081908181156120465760008781526020902082016000190160408051808201909152905463ffffffff8116825264010000000090046001600160e01b0316602082015261205b565b60408051808201909152600080825260208201525b905080602001516001600160e01b0316935061207b84868863ffffffff16565b92506000821180156120a55750612090610b86565b65ffffffffffff16816000015163ffffffff16145b156120ea576120b38361227e565b60008881526020902083016000190180546001600160e01b03929092166401000000000263ffffffff909216919091179055612164565b86604051806040016040528061210e612101610b86565b65ffffffffffff1661174d565b63ffffffff1681526020016121228661227e565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b6001600160a01b038381166000908152600a6020526040808220548584168352912054611a3292918216911683611b8e565b600080608083901c156121b557608092831c92015b604083901c156121c757604092831c92015b602083901c156121d957602092831c92015b601083901c156121eb57601092831c92015b600883901c156121fd57600892831c92015b600483901c1561220f57600492831c92015b600283901c1561222157600292831c92015b600183901c1561060c5760010192915050565b6000818310612243578161090b565b5090919050565b600061090b82846126ee565b600060ff8216601f81111561060c57604051632cd44ac360e21b815260040160405180910390fd5b60006001600160e01b038211156117b25760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016106b9565b6000815180845260005b8181101561230d576020818501810151868301820152016122f1565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061090b60208301846122e7565b80356001600160a01b038116811461235757600080fd5b919050565b6000806040838503121561236f57600080fd5b61237883612340565b946020939093013593505050565b60006020828403121561239857600080fd5b61090b82612340565b60008060008084860360808112156123b857600080fd5b853567ffffffffffffffff808211156123d057600080fd5b818801915088601f8301126123e457600080fd5b8135818111156123f357600080fd5b8960208260061b850101111561240857600080fd5b6020929092019650909450506040601f198201121561242657600080fd5b5060208501915061243960608601612340565b905092959194509250565b60008060006060848603121561245957600080fd5b61246284612340565b925061247060208501612340565b9150604084013590509250925092565b60ff60f81b881681526000602060e0818401526124a060e084018a6122e7565b83810360408501526124b2818a6122e7565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b81811015612504578351835292840192918401916001016124e8565b50909c9b505050505050505050505050565b60006020828403121561252857600080fd5b5035919050565b803560ff8116811461235757600080fd5b60008060008060008060c0878903121561255957600080fd5b61256287612340565b9550602087013594506040870135935061257e6060880161252f565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a0312156125b357600080fd5b6125bc88612340565b96506125ca60208901612340565b955060408801359450606088013593506125e66080890161252f565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561261557600080fd5b61261e83612340565b915061262c60208401612340565b90509250929050565b6000806040838503121561264857600080fd5b61265183612340565b9150602083013563ffffffff8116811461266a57600080fd5b809150509250929050565b600181811c9082168061268957607f821691505b60208210810361193f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016126e7576126e76126bf565b5060010190565b8181038181111561060c5761060c6126bf565b8082018082111561060c5761060c6126bf565b634e487b7160e01b600052601260045260246000fd5b60008261274757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea264697066735822122074c40b8255569aefc8bc14cafc2a1b16dff4b1d97bba3c686e5202098038ead464736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a4469766120546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044449564100000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102275760003560e01c80635c975abb1161013057806391ddadf4116100b8578063c3cda5201161007c578063c3cda520146104dd578063d505accf146104f0578063dd62ed3e14610503578063f1127ed814610516578063f2fde38b1461055357600080fd5b806391ddadf41461047d57806395d89b411461049c5780639ab24eb0146104a4578063a457c2d7146104b7578063a9059cbb146104ca57600080fd5b8063715018a6116100ff578063715018a6146104235780637ecebe001461042b57806384b0196e1461043e5780638da5cb5b146104595780638e539e8c1461046a57600080fd5b80635c975abb146103b457806367318286146103bf5780636fcfff45146103d257806370a08231146103fa57600080fd5b806339509351116101b35780633f4ba83a116101825780633f4ba83a1461033b5780634bf5d7e91461034357806351b195701461034b578063587cde1e1461035d5780635c19a95c146103a157600080fd5b806339509351146102e45780633a46b1a8146102f75780633d7b24611461030a5780633ef1f0e21461031457600080fd5b806318160ddd116101fa57806318160ddd1461029557806323b872dd146102a7578063313ce567146102ba57806332cb6b0c146102c95780633644e515146102dc57600080fd5b806306fdde031461022c578063095ea7b31461024a5780630fe746921461026d578063176c752a14610282575b600080fd5b610234610566565b604051610241919061232d565b60405180910390f35b61025d61025836600461235c565b6105f8565b6040519015158152602001610241565b61028061027b366004612386565b610612565b005b6102806102903660046123a1565b6106c5565b6003545b604051908152602001610241565b61025d6102b5366004612444565b610838565b60405160128152602001610241565b6102996b033b2e3c9fd0803ce800000081565b61029961085c565b61025d6102f236600461235c565b61086b565b61029961030536600461235c565b61088d565b610299625c490081565b6102997f0000000000000000000000000000000000000000000000000000000064f77abb81565b610280610912565b61023461096d565b6102996a5fd431158909bc8240000081565b61038961036b366004612386565b6001600160a01b039081166000908152600a60205260409020541690565b6040516001600160a01b039091168152602001610241565b6102806103af366004612386565b610a05565b60005460ff1661025d565b6102806103cd366004612386565b610a0f565b6103e56103e0366004612386565b610a44565b60405163ffffffff9091168152602001610241565b610299610408366004612386565b6001600160a01b031660009081526001602052604090205490565b610280610a66565b610299610439366004612386565b610a78565b610446610a96565b6040516102419796959493929190612480565b600d546001600160a01b0316610389565b610299610478366004612516565b610b1f565b610485610b86565b60405165ffffffffffff9091168152602001610241565b610234610b91565b6102996104b2366004612386565b610ba0565b61025d6104c536600461235c565b610c22565b61025d6104d836600461235c565b610c9d565b6102806104eb366004612540565b610cab565b6102806104fe366004612598565b610de1565b610299610511366004612602565b610f45565b610529610524366004612635565b610f70565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610241565b610280610561366004612386565b610ff4565b60606004805461057590612675565b80601f01602080910402602001604051908101604052809291908181526020018280546105a190612675565b80156105ee5780601f106105c3576101008083540402835291602001916105ee565b820191906000526020600020905b8154815290600101906020018083116105d157829003601f168201915b5050505050905090565b60003361060681858561106a565b60019150505b92915050565b336001600160a01b037f00000000000000000000000045638a9e2d3fc7f977142d9a9ee630497023b78e161461065b576040516351ed73b960e11b815260040160405180910390fd5b610670816a5fd431158909bc8240000061118e565b6b033b2e3c9fd0803ce800000061068660035490565b146106c2576003546040516333491a8f60e01b815260048101919091526b033b2e3c9fd0803ce800000060248201526044015b60405180910390fd5b50565b6106cd61119c565b60005b83811015610736576107248585838181106106ed576106ed6126a9565b6107039260206040909202019081019150612386565b868684818110610715576107156126a9565b9050604002016020013561118e565b8061072e816126d5565b9150506106d0565b506107516107476020840184612386565b836020013561118e565b6001600e60006107646020860186612386565b6001600160a01b03168152602080820192909252604001600020805460ff19169215159290921790915561079a90830183612386565b600f80546001600160a01b0319166001600160a01b03929092169190911790556107db6a5fd431158909bc824000006b033b2e3c9fd0803ce80000006126ee565b60035414610829576003546108076a5fd431158909bc824000006b033b2e3c9fd0803ce80000006126ee565b6040516333491a8f60e01b8152600481019290925260248201526044016106b9565b610832816111f6565b50505050565b600033610846858285611248565b6108518585856112bc565b506001949350505050565b6000610866611478565b905090565b60003361060681858561087e8383610f45565b6108889190612701565b61106a565b6000610897610b86565b65ffffffffffff1682106108e95760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016106b9565b6001600160a01b0383166000908152600b6020526040902061090b90836115a3565b9392505050565b61091a61119c565b7f0000000000000000000000000000000000000000000000000000000064f77abb42101561095b5760405163f085832b60e01b815260040160405180910390fd5b610963610a66565b61096b61168c565b565b606043610978610b86565b65ffffffffffff16146109cd5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a2062726f6b656e20636c6f636b206d6f646500000060448201526064016106b9565b5060408051808201909152601d81527f6d6f64653d626c6f636b6e756d6265722666726f6d3d64656661756c74000000602082015290565b6106c233826116d3565b600f546001600160a01b03163314610a3a57604051631793614b60e01b815260040160405180910390fd5b6106c281826116d3565b6001600160a01b0381166000908152600b602052604081205461060c9061174d565b610a6e61119c565b61096b60006111f6565b6001600160a01b03811660009081526008602052604081205461060c565b600060608082808083610aca7f4469766120546f6b656e0000000000000000000000000000000000000000000a60066117b6565b610af57f310000000000000000000000000000000000000000000000000000000000000160076117b6565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000610b29610b86565b65ffffffffffff168210610b7b5760405162461bcd60e51b815260206004820152601960248201527804552433230566f7465733a20667574757265206c6f6f6b757603c1b60448201526064016106b9565b61060c600c836115a3565b600061086643611861565b60606005805461057590612675565b6001600160a01b0381166000908152600b60205260408120548015610c0f576001600160a01b0383166000908152600b6020526040902080546000198301908110610bed57610bed6126a9565b60009182526020909120015464010000000090046001600160e01b0316610c12565b60005b6001600160e01b03169392505050565b60003381610c308286610f45565b905083811015610c905760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106b9565b610851828686840361106a565b6000336106068185856112bc565b83421115610cfb5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e6174757265206578706972656400000060448201526064016106b9565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610d7590610d6d9060a001604051602081830303815290604052805190602001206118c8565b8585856118f5565b9050610d808161191d565b8614610dce5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e63650000000000000060448201526064016106b9565b610dd881886116d3565b50505050505050565b83421115610e315760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016106b9565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610e608c61191d565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610ebb826118c8565b90506000610ecb828787876118f5565b9050896001600160a01b0316816001600160a01b031614610f2e5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016106b9565b610f398a8a8a61106a565b50505050505050505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b60408051808201909152600080825260208201526001600160a01b0383166000908152600b60205260409020805463ffffffff8416908110610fb457610fb46126a9565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b610ffc61119c565b6001600160a01b0381166110615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b9565b6106c2816111f6565b6001600160a01b0383166110cc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106b9565b6001600160a01b03821661112d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106b9565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6111988282611945565b5050565b600d546001600160a01b0316331461096b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b9565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006112548484610f45565b9050600019811461083257818110156112af5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106b9565b610832848484840361106a565b6001600160a01b0383166113205760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106b9565b6001600160a01b0382166113825760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106b9565b61138d8383836119cf565b6001600160a01b038316600090815260016020526040902054818110156114055760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106b9565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906114659086815260200190565b60405180910390a3610832848484611a37565b6000306001600160a01b037f000000000000000000000000bfabde619ed5c4311811cf422562709710db587d161480156114d157507f000000000000000000000000000000000000000000000000000000000000000146145b156114fb57507fedd000d2cf92951f7476beee438b32e1eee31c191d29314e02401f558ad0a09390565b610866604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527faf9a0a3c9a138a140fe3d326263d5f68ec097b2f1bcecaaa78acd738c47d34ee918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b8154600090818160058111156115fd5760006115be84611a42565b6115c890856126ee565b600088815260209020909150869082015463ffffffff1611156115ed578091506115fb565b6115f8816001612701565b92505b505b8082101561164a5760006116118383611b2a565b600088815260209020909150869082015463ffffffff16111561163657809150611644565b611641816001612701565b92505b506115fd565b8015611676576000868152602090208101600019015464010000000090046001600160e01b0316611679565b60005b6001600160e01b03169695505050505050565b611694611b45565b6000805460ff191690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b6001600160a01b038281166000818152600a6020818152604080842080546001845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610832828483611b8e565b600063ffffffff8211156117b25760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016106b9565b5090565b606060ff83146117d0576117c983611ccb565b905061060c565b8180546117dc90612675565b80601f016020809104026020016040519081016040528092919081815260200182805461180890612675565b80156118555780601f1061182a57610100808354040283529160200191611855565b820191906000526020600020905b81548152906001019060200180831161183857829003601f168201915b5050505050905061060c565b600065ffffffffffff8211156117b25760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203460448201526538206269747360d01b60648201526084016106b9565b600061060c6118d5611478565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600061190687878787611d0a565b9150915061191381611dce565b5095945050505050565b6001600160a01b03811660009081526008602052604090208054600181018255905b50919050565b61194f8282611f18565b6003546001600160e01b0310156119c15760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b60648201526084016106b9565b610832600c611fed83611ff9565b60005460ff1680156119fa57506001600160a01b0383166000908152600e602052604090205460ff16155b15611a3257604051637db190bf60e01b81526001600160a01b03808516600483015283166024820152604481018290526064016106b9565b505050565b611a3283838361216e565b600081600003611a5457506000919050565b60006001611a61846121a0565b901c6001901b90506001818481611a7a57611a7a612714565b048201901c90506001818481611a9257611a92612714565b048201901c90506001818481611aaa57611aaa612714565b048201901c90506001818481611ac257611ac2612714565b048201901c90506001818481611ada57611ada612714565b048201901c90506001818481611af257611af2612714565b048201901c90506001818481611b0a57611b0a612714565b048201901c905061090b81828581611b2457611b24612714565b04612234565b6000611b39600284841861272a565b61090b90848416612701565b60005460ff1661096b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016106b9565b816001600160a01b0316836001600160a01b031614158015611bb05750600081115b15611a32576001600160a01b03831615611c3e576001600160a01b0383166000908152600b602052604081208190611beb9061224a85611ff9565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611c33929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611a32576001600160a01b0382166000908152600b602052604081208190611c7490611fed85611ff9565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611cbc929190918252602082015260400190565b60405180910390a25050505050565b60606000611cd883612256565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611d415750600090506003611dc5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d95573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611dbe57600060019250925050611dc5565b9150600090505b94509492505050565b6000816004811115611de257611de261274c565b03611dea5750565b6001816004811115611dfe57611dfe61274c565b03611e4b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106b9565b6002816004811115611e5f57611e5f61274c565b03611eac5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106b9565b6003816004811115611ec057611ec061274c565b036106c25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106b9565b6001600160a01b038216611f6e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106b9565b611f7a600083836119cf565b8060036000828254611f8c9190612701565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361119860008383611a37565b600061090b8284612701565b825460009081908181156120465760008781526020902082016000190160408051808201909152905463ffffffff8116825264010000000090046001600160e01b0316602082015261205b565b60408051808201909152600080825260208201525b905080602001516001600160e01b0316935061207b84868863ffffffff16565b92506000821180156120a55750612090610b86565b65ffffffffffff16816000015163ffffffff16145b156120ea576120b38361227e565b60008881526020902083016000190180546001600160e01b03929092166401000000000263ffffffff909216919091179055612164565b86604051806040016040528061210e612101610b86565b65ffffffffffff1661174d565b63ffffffff1681526020016121228661227e565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b5050935093915050565b6001600160a01b038381166000908152600a6020526040808220548584168352912054611a3292918216911683611b8e565b600080608083901c156121b557608092831c92015b604083901c156121c757604092831c92015b602083901c156121d957602092831c92015b601083901c156121eb57601092831c92015b600883901c156121fd57600892831c92015b600483901c1561220f57600492831c92015b600283901c1561222157600292831c92015b600183901c1561060c5760010192915050565b6000818310612243578161090b565b5090919050565b600061090b82846126ee565b600060ff8216601f81111561060c57604051632cd44ac360e21b815260040160405180910390fd5b60006001600160e01b038211156117b25760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016106b9565b6000815180845260005b8181101561230d576020818501810151868301820152016122f1565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061090b60208301846122e7565b80356001600160a01b038116811461235757600080fd5b919050565b6000806040838503121561236f57600080fd5b61237883612340565b946020939093013593505050565b60006020828403121561239857600080fd5b61090b82612340565b60008060008084860360808112156123b857600080fd5b853567ffffffffffffffff808211156123d057600080fd5b818801915088601f8301126123e457600080fd5b8135818111156123f357600080fd5b8960208260061b850101111561240857600080fd5b6020929092019650909450506040601f198201121561242657600080fd5b5060208501915061243960608601612340565b905092959194509250565b60008060006060848603121561245957600080fd5b61246284612340565b925061247060208501612340565b9150604084013590509250925092565b60ff60f81b881681526000602060e0818401526124a060e084018a6122e7565b83810360408501526124b2818a6122e7565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b81811015612504578351835292840192918401916001016124e8565b50909c9b505050505050505050505050565b60006020828403121561252857600080fd5b5035919050565b803560ff8116811461235757600080fd5b60008060008060008060c0878903121561255957600080fd5b61256287612340565b9550602087013594506040870135935061257e6060880161252f565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a0312156125b357600080fd5b6125bc88612340565b96506125ca60208901612340565b955060408801359450606088013593506125e66080890161252f565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561261557600080fd5b61261e83612340565b915061262c60208401612340565b90509250929050565b6000806040838503121561264857600080fd5b61265183612340565b9150602083013563ffffffff8116811461266a57600080fd5b809150509250929050565b600181811c9082168061268957607f821691505b60208210810361193f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016126e7576126e76126bf565b5060010190565b8181038181111561060c5761060c6126bf565b8082018082111561060c5761060c6126bf565b634e487b7160e01b600052601260045260246000fd5b60008261274757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea264697066735822122074c40b8255569aefc8bc14cafc2a1b16dff4b1d97bba3c686e5202098038ead464736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a4469766120546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044449564100000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Diva Token
Arg [1] : _symbol (string): DIVA

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 4469766120546f6b656e00000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 4449564100000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.