Source Code
Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 94 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Mint Score | 27962495 | 8 days ago | IN | 0.0025 ETH | 0.00000729 | ||||
| Upgrade Score | 27928420 | 9 days ago | IN | 0.00125 ETH | 0.00000333 | ||||
| Mint Score | 27869637 | 11 days ago | IN | 0.0025 ETH | 0.00000729 | ||||
| Mint Score | 27806167 | 12 days ago | IN | 0.0025 ETH | 0.00000694 | ||||
| Mint Score | 27711187 | 14 days ago | IN | 0.0025 ETH | 0.00000833 | ||||
| Upgrade Score | 27678689 | 15 days ago | IN | 0.00125 ETH | 0.00000333 | ||||
| Mint Score | 27648115 | 16 days ago | IN | 0.0025 ETH | 0.00000833 | ||||
| Mint Score | 27517128 | 19 days ago | IN | 0.0025 ETH | 0.00000729 | ||||
| Mint Score | 27347308 | 23 days ago | IN | 0.0025 ETH | 0.00000694 | ||||
| Mint Score | 27183550 | 28 days ago | IN | 0.0025 ETH | 0.00000694 | ||||
| Upgrade Score | 27179528 | 28 days ago | IN | 0.00125 ETH | 0.00000333 | ||||
| Mint Score | 27075722 | 31 days ago | IN | 0.0025 ETH | 0.00000764 | ||||
| Mint Score | 27007680 | 33 days ago | IN | 0.0025 ETH | 0.00000764 | ||||
| Upgrade Score | 26826739 | 38 days ago | IN | 0.00125 ETH | 0.00000349 | ||||
| Update Config | 26819050 | 39 days ago | IN | 0 ETH | 0.00000156 | ||||
| Mint Score | 26702885 | 42 days ago | IN | 0.002 ETH | 0.00000666 | ||||
| Upgrade Score | 26692695 | 42 days ago | IN | 0.001 ETH | 0.00000333 | ||||
| Upgrade Score | 26677259 | 42 days ago | IN | 0.001 ETH | 0.00000381 | ||||
| Mint Score | 26648654 | 43 days ago | IN | 0.002 ETH | 0.00000764 | ||||
| Upgrade Score | 26647578 | 43 days ago | IN | 0.001 ETH | 0.00000334 | ||||
| Mint Score | 26630027 | 44 days ago | IN | 0.002 ETH | 0.00000764 | ||||
| Mint Score | 26624407 | 44 days ago | IN | 0.002 ETH | 0.00000767 | ||||
| Mint Score | 26615331 | 44 days ago | IN | 0.002 ETH | 0.00000764 | ||||
| Upgrade Score | 26612263 | 44 days ago | IN | 0.001 ETH | 0.00000333 | ||||
| Mint Score | 26585258 | 45 days ago | IN | 0.002 ETH | 0.00000729 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 27962495 | 8 days ago | 0 ETH | ||||
| 27962495 | 8 days ago | 0.0025 ETH | ||||
| 27962495 | 8 days ago | 0 ETH | ||||
| 27928420 | 9 days ago | 0 ETH | ||||
| 27928420 | 9 days ago | 0.00125 ETH | ||||
| 27928420 | 9 days ago | 0 ETH | ||||
| 27869637 | 11 days ago | 0 ETH | ||||
| 27869637 | 11 days ago | 0.0025 ETH | ||||
| 27869637 | 11 days ago | 0 ETH | ||||
| 27806167 | 12 days ago | 0 ETH | ||||
| 27806167 | 12 days ago | 0.0025 ETH | ||||
| 27806167 | 12 days ago | 0 ETH | ||||
| 27711187 | 14 days ago | 0 ETH | ||||
| 27711187 | 14 days ago | 0.0025 ETH | ||||
| 27711187 | 14 days ago | 0 ETH | ||||
| 27678689 | 15 days ago | 0 ETH | ||||
| 27678689 | 15 days ago | 0.00125 ETH | ||||
| 27678689 | 15 days ago | 0 ETH | ||||
| 27648115 | 16 days ago | 0 ETH | ||||
| 27648115 | 16 days ago | 0.0025 ETH | ||||
| 27648115 | 16 days ago | 0 ETH | ||||
| 27517128 | 19 days ago | 0 ETH | ||||
| 27517128 | 19 days ago | 0.0025 ETH | ||||
| 27517128 | 19 days ago | 0 ETH | ||||
| 27347308 | 23 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ScoreManager
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
interface INFT {
function mint(address account, uint256 score) external returns (uint256);
function editInfo(
address owner,
uint256 tokenId,
uint256 score
) external returns (uint256);
}
contract ScoreManager is AccessControl, ReentrancyGuard, EIP712 {
using ECDSA for bytes32;
using SafeMath for uint256;
bytes32 internal constant SCORE_DATA_HASH =
keccak256(
"ScoreData(uint256 nonce,uint256 score,address sender,address referral)"
);
bytes32 public constant SIGNER_ROLE = keccak256("SIGNER_ROLE");
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
uint256 private constant STATIC_GAS_LIMIT = 100_000;
mapping(address => bool) public isOwnerScore;
mapping(uint256 => bool) internal nonces;
INFT public scoreAddress;
uint256 public mintingFee;
uint256 public upgradeFee;
address private feeRecipient;
uint256 private percenPerRef = 1000;
uint256 private feeDenominator = 10000;
error TransferFailed();
error MaxPerWallet();
error InsufficientFund();
error NonceAlreadyUsed();
error IsNotSigner();
error Unauthorized();
event Mint(
address indexed owner,
uint256 score,
uint256 chainId,
uint256 tokenId,
uint256 mintingTime
);
event UpgradeScore(
address indexed owner,
uint256 chainId,
uint256 tokenId,
uint256 score,
uint256 timeOfLastUpdate
);
struct ScoreData {
uint256 nonce;
uint256 score;
address sender;
address referral;
}
constructor(
address _feeRecipient,
address _score,
address _signer,
uint256 _mintingFee,
uint256 _upgradeFee
) EIP712("ScoreManager", "1") {
scoreAddress = INFT(_score);
mintingFee = _mintingFee;
upgradeFee = _upgradeFee;
feeRecipient = _feeRecipient;
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(ADMIN_ROLE, msg.sender);
_setupRole(SIGNER_ROLE, _signer);
}
/* ============ External Functions ============ */
function mintScore(
ScoreData calldata data,
bytes calldata signature
) external payable nonReentrant {
_validateSignature(data, signature);
if (isOwnerScore[data.sender]) {
revert MaxPerWallet();
}
_payoutFund(data.sender, data.referral, mintingFee);
uint256 tokenId = scoreAddress.mint(data.sender, data.score);
isOwnerScore[data.sender] = true;
emit Mint(
_msgSender(),
data.score,
block.chainid,
tokenId,
block.timestamp
);
}
function upgradeScore(
ScoreData calldata data,
bytes calldata signature,
uint256 _tokenId
) external payable nonReentrant {
_validateSignature(data, signature);
_payoutFund(data.sender, data.referral, upgradeFee);
uint256 tokenId = scoreAddress.editInfo(
data.sender,
_tokenId,
data.score
);
emit UpgradeScore(
data.sender,
block.chainid,
tokenId,
data.score,
block.timestamp
);
}
/* ============ Internal Functions ============ */
function _payoutFund(
address sender,
address referral,
uint256 protocolFee
) internal {
if (sender == referral) {
revert Unauthorized();
}
if (msg.value < protocolFee) {
revert InsufficientFund();
}
uint256 remainder = msg.value - protocolFee;
if (referral == address(0)) {
transferFund(sender, remainder, protocolFee);
} else {
uint256 refFee = protocolFee.mul(percenPerRef).div(feeDenominator);
uint256 treasuryFee = protocolFee.sub(refFee);
transferFund(sender, remainder.add(refFee), treasuryFee);
}
}
function transferFund(
address sender,
uint256 remainder,
uint256 costMint
) internal {
if (remainder > 0) {
_payout(sender, remainder);
}
_payout(feeRecipient, costMint);
}
function _payout(address recipient, uint256 value) internal {
if (value > 0) {
(bool success, ) = payable(recipient).call{
value: value,
gas: gasleft() > STATIC_GAS_LIMIT ? STATIC_GAS_LIMIT : gasleft()
}("");
if (!success) {
revert TransferFailed();
}
}
}
function _validateSignature(
ScoreData calldata data,
bytes calldata signature
) internal {
address signer = _getSigner(data, signature);
if (!hasRole(SIGNER_ROLE, signer)) {
revert IsNotSigner();
}
if (nonces[data.nonce]) {
revert NonceAlreadyUsed();
}
nonces[data.nonce] = true;
}
function _getSigner(
ScoreData calldata data,
bytes calldata sig
) internal view returns (address) {
bytes32 digest = _computeDigest(data);
return digest.recover(sig);
}
function _computeDigest(
ScoreData calldata data
) internal view returns (bytes32) {
return _hashTypedDataV4(keccak256(_getScoreHash(data)));
}
function _getScoreHash(
ScoreData calldata data
) internal pure returns (bytes memory) {
return
abi.encode(
SCORE_DATA_HASH,
data.nonce,
data.score,
data.sender,
data.referral
);
}
/* ============ Admin Functions ============ */
function emergencyWithdraw() external onlyRole(ADMIN_ROLE) {
uint256 bnbBalance = address(this).balance;
if (bnbBalance > 0) {
(bool success, ) = payable(feeRecipient).call{
value: address(this).balance
}("");
if (!success) {
revert TransferFailed();
}
}
}
function updateConfig(
address _feeRecipient,
address _score,
address _signer,
uint256 _mintingFee,
uint256 _upgradeFee
) external onlyRole(ADMIN_ROLE) {
scoreAddress = INFT(_score);
mintingFee = _mintingFee;
upgradeFee = _upgradeFee;
feeRecipient = _feeRecipient;
_setupRole(SIGNER_ROLE, _signer);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
function hasRole(bytes32 role, address account) external view returns (bool);
function getRoleAdmin(bytes32 role) external view returns (bytes32);
function grantRole(bytes32 role, address account) external;
function revokeRole(bytes32 role, address account) external;
function renounceRole(bytes32 role, address account) external;
}
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* 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, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) 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 Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
*/
function _checkRole(bytes32 role, address account) internal view {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @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 override 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 override onlyRole(getRoleAdmin(role)) {
_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 override onlyRole(getRoleAdmin(role)) {
_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 override {
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, getRoleAdmin(role), adminRole);
_roles[role].adminRole = adminRole;
}
function _grantRole(bytes32 role, address account) private {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
function _revokeRole(bytes32 role, address account) private {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
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;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ECDSA.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].
*
* _Available since v3.4._
*/
abstract contract EIP712 {
/* solhint-disable var-name-mixedcase */
// Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
// invalidate the cached domain separator if the chain id changes.
bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
uint256 private immutable _CACHED_CHAIN_ID;
bytes32 private immutable _HASHED_NAME;
bytes32 private immutable _HASHED_VERSION;
bytes32 private immutable _TYPE_HASH;
/* solhint-enable var-name-mixedcase */
/**
* @dev Initializes the domain separator and parameter caches.
*
* The meaning of `name` and `version` is specified in
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
*
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
* - `version`: the current major version of the signing domain.
*
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
* contract upgrade].
*/
constructor(string memory name, string memory version) {
bytes32 hashedName = keccak256(bytes(name));
bytes32 hashedVersion = keccak256(bytes(version));
bytes32 typeHash = keccak256(
"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
);
_HASHED_NAME = hashedName;
_HASHED_VERSION = hashedVersion;
_CACHED_CHAIN_ID = block.chainid;
_CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
_TYPE_HASH = typeHash;
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
if (block.chainid == _CACHED_CHAIN_ID) {
return _CACHED_DOMAIN_SEPARATOR;
} else {
return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
}
}
function _buildDomainSeparator(
bytes32 typeHash,
bytes32 nameHash,
bytes32 versionHash
) private view returns (bytes32) {
return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
}
/**
* @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
* function returns the hash of the fully encoded EIP712 message for this domain.
*
* This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
*
* ```solidity
* bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
* keccak256("Mail(address to,string contents)"),
* mailTo,
* keccak256(bytes(mailContents))
* )));
* address signer = ECDSA.recover(digest, signature);
* ```
*/
function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @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 {
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return recover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return recover(hash, r, vs);
} else {
revert("ECDSA: invalid signature length");
}
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
bytes32 s;
uint8 v;
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return recover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
require(
uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
"ECDSA: invalid signature 's' value"
);
require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
require(signer != address(0), "ECDSA: invalid signature");
return signer;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @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 a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* 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) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_feeRecipient","type":"address"},{"internalType":"address","name":"_score","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint256","name":"_mintingFee","type":"uint256"},{"internalType":"uint256","name":"_upgradeFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InsufficientFund","type":"error"},{"inputs":[],"name":"IsNotSigner","type":"error"},{"inputs":[],"name":"MaxPerWallet","type":"error"},{"inputs":[],"name":"NonceAlreadyUsed","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"score","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"chainId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintingTime","type":"uint256"}],"name":"Mint","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":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"chainId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"score","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeOfLastUpdate","type":"uint256"}],"name":"UpgradeScore","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","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":"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":"address","name":"","type":"address"}],"name":"isOwnerScore","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"score","type":"uint256"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"referral","type":"address"}],"internalType":"struct ScoreManager.ScoreData","name":"data","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintScore","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingFee","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":[],"name":"scoreAddress","outputs":[{"internalType":"contract INFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeRecipient","type":"address"},{"internalType":"address","name":"_score","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint256","name":"_mintingFee","type":"uint256"},{"internalType":"uint256","name":"_upgradeFee","type":"uint256"}],"name":"updateConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"score","type":"uint256"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"referral","type":"address"}],"internalType":"struct ScoreManager.ScoreData","name":"data","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"upgradeScore","outputs":[],"stateMutability":"payable","type":"function"}]Contract Creation Code
6101206040526103e86008556127106009553480156200001e57600080fd5b5060405162001a9a38038062001a9a833981016040819052620000419162000293565b604080518082018252600c81526b29b1b7b932a6b0b730b3b2b960a11b6020808301918252835180850185526001808252603160f81b9183019190915280559151902060c08181527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660e08190524660a081815286517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8188018190528189019690965260608101939093526080808401929092523083820152865180840390910181529190920190945283519390920192909220905261010052600480546001600160a01b038681166001600160a01b03199283161790925560058490556006839055600780549288169290911691909117905562000163600033620001c6565b6200018f7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533620001c6565b620001bb7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7084620001c6565b5050505050620002f0565b620001d28282620001d6565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001d2576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002323390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b80516001600160a01b03811681146200028e57600080fd5b919050565b600080600080600060a08688031215620002ac57600080fd5b620002b78662000276565b9450620002c76020870162000276565b9350620002d76040870162000276565b6060870151608090970151959894975095949392505050565b60805160a05160c05160e051610100516117656200033560003960006112d101526000611320015260006112fb01526000611280015260006112a801526117656000f3fe6080604052600436106100fe5760003560e01c806375b238fc11610095578063af3784bd11610064578063af3784bd146102d1578063d547741f14610309578063da2aa57d14610329578063db2e21bc1461033c578063e181853f1461035157600080fd5b806375b238fc1461023457806391d1485414610268578063a1ebf35d14610288578063a217fddf146102bc57600080fd5b806336568abe116100d157806336568abe146101c85780633a19ce63146101e857806340fa61f7146102085780635a64ad951461021e57600080fd5b806301ffc9a71461010357806316e74df014610138578063248a9ca3146101685780632f2ff15d146101a6575b600080fd5b34801561010f57600080fd5b5061012361011e36600461136e565b610364565b60405190151581526020015b60405180910390f35b34801561014457600080fd5b506101236101533660046113b4565b60026020526000908152604090205460ff1681565b34801561017457600080fd5b506101986101833660046113cf565b60009081526020819052604090206001015490565b60405190815260200161012f565b3480156101b257600080fd5b506101c66101c13660046113e8565b61039b565b005b3480156101d457600080fd5b506101c66101e33660046113e8565b6103c6565b3480156101f457600080fd5b506101c6610203366004611414565b610449565b34801561021457600080fd5b5061019860065481565b34801561022a57600080fd5b5061019860055481565b34801561024057600080fd5b506101987fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b34801561027457600080fd5b506101236102833660046113e8565b6104e0565b34801561029457600080fd5b506101987fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b3480156102c857600080fd5b50610198600081565b3480156102dd57600080fd5b506004546102f1906001600160a01b031681565b6040516001600160a01b03909116815260200161012f565b34801561031557600080fd5b506101c66103243660046113e8565b610509565b6101c66103373660046114ca565b61052f565b34801561034857600080fd5b506101c66106d8565b6101c661035f366004611525565b61077e565b60006001600160e01b03198216637965db0b60e01b148061039557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000828152602081905260409020600101546103b78133610994565b6103c183836109f8565b505050565b6001600160a01b038116331461043b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104458282610a7c565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756104748133610994565b600480546001600160a01b038088166001600160a01b0319928316179092556005859055600684905560078054928916929091169190911790556104d87fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7085610ae1565b505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000828152602081905260409020600101546105258133610994565b6103c18383610a7c565b6002600154036105815760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610432565b6002600155610591848484610aeb565b6105bc6105a460608601604087016113b4565b6105b460808701606088016113b4565b600654610b91565b6004546000906001600160a01b031663d96a3be66105e060608801604089016113b4565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052602088013560448201526064016020604051808303816000875af1158015610637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065b9190611579565b905061066d60608601604087016113b4565b6001600160a01b03167fc47187dd08a167e269b6e03f15cda763bfc30a22b7501e1c20e2e0050796fe2a46838860200135426040516106c5949392919093845260208401929092526040830152606082015260800190565b60405180910390a2505060018055505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756107038133610994565b478015610445576007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610757576040519150601f19603f3d011682016040523d82523d6000602084013e61075c565b606091505b50509050806103c1576040516312171d8360e31b815260040160405180910390fd5b6002600154036107d05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610432565b60026001556107e0838383610aeb565b600260006107f460608601604087016113b4565b6001600160a01b0316815260208101919091526040016000205460ff161561082f57604051638bec1c6d60e01b815260040160405180910390fd5b61085a61084260608501604086016113b4565b61085260808601606087016113b4565b600554610b91565b6004546000906001600160a01b03166340c10f1961087e60608701604088016113b4565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602087013560248201526044016020604051808303816000875af11580156108ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f29190611579565b905060016002600061090a60608801604089016113b4565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790553360408051602080880135825246908201529081018390524260608201526001600160a01b0391909116907f94c792774c59479f7bd68442f3af3691c02123a5aabee8b6f9116d8af8aa66699060800160405180910390a25050600180555050565b61099e82826104e0565b610445576109b6816001600160a01b03166014610c5c565b6109c1836020610c5c565b6040516020016109d29291906115be565b60408051601f198184030181529082905262461bcd60e51b825261043291600401611633565b610a0282826104e0565b610445576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610a383390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610a8682826104e0565b15610445576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61044582826109f8565b6000610af8848484610dff565b9050610b247fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70826104e0565b610b4157604051632c2b07ef60e01b815260040160405180910390fd5b833560009081526003602052604090205460ff1615610b7257604051623f613760e71b815260040160405180910390fd5b505050356000908152600360205260409020805460ff19166001179055565b816001600160a01b0316836001600160a01b031603610bc2576040516282b42960e81b815260040160405180910390fd5b80341015610be357604051636a259e3160e11b815260040160405180910390fd5b6000610bef823461167c565b90506001600160a01b038316610c0f57610c0a848284610e58565b610c56565b6000610c32600954610c2c60085486610e7e90919063ffffffff16565b90610e8a565b90506000610c408483610e96565b90506104d886610c508585610ea2565b83610e58565b50505050565b60606000610c6b836002611693565b610c769060026116b2565b67ffffffffffffffff811115610c8e57610c8e6116ca565b6040519080825280601f01601f191660200182016040528015610cb8576020820181803683370190505b509050600360fc1b81600081518110610cd357610cd36116e0565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610d0257610d026116e0565b60200101906001600160f81b031916908160001a9053506000610d26846002611693565b610d319060016116b2565b90505b6001811115610da9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610d6557610d656116e0565b1a60f81b828281518110610d7b57610d7b6116e0565b60200101906001600160f81b031916908160001a90535060049490941c93610da2816116f6565b9050610d34565b508315610df85760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610432565b9392505050565b600080610e0b85610eae565b9050610e4f84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508593925050610ec89050565b95945050505050565b8115610e6857610e688383610f6a565b6007546103c1906001600160a01b031682610f6a565b6000610df88284611693565b6000610df8828461170d565b6000610df8828461167c565b6000610df882846116b2565b6000610395610ebc83610fd2565b80519060200120611064565b60008151604103610efb5760208201516040830151606084015160001a610ef1868285856110b2565b9350505050610395565b8151604003610f225760208201516040830151610f19858383611252565b92505050610395565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610432565b8015610445576000826001600160a01b031682620186a05a11610f8d575a610f92565b620186a05b6040519091906000818181858888f193505050503d8060008114610757576040519150601f19603f3d011682016040523d82523d6000602084013e61075c565b60607f85b3ff6200fc5d898b0127934cef940fcd1e70c5244f9775630b97dfbffacee08235602084013561100b858501604087016113b4565b61101b60808701606088016113b4565b60408051602081019690965285019390935260608401919091526001600160a01b0390811660808401521660a082015260c0016040516020818303038152906040529050919050565b600061039561107161127c565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561112f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610432565b8360ff16601b148061114457508360ff16601c145b61119b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610432565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa1580156111ef573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e4f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610432565b60006001600160ff1b03821660ff83901c601b01611272868287856110b2565b9695505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000046036112ca57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60006020828403121561138057600080fd5b81356001600160e01b031981168114610df857600080fd5b80356001600160a01b03811681146113af57600080fd5b919050565b6000602082840312156113c657600080fd5b610df882611398565b6000602082840312156113e157600080fd5b5035919050565b600080604083850312156113fb57600080fd5b8235915061140b60208401611398565b90509250929050565b600080600080600060a0868803121561142c57600080fd5b61143586611398565b945061144360208701611398565b935061145160408701611398565b94979396509394606081013594506080013592915050565b60006080828403121561147b57600080fd5b50919050565b60008083601f84011261149357600080fd5b50813567ffffffffffffffff8111156114ab57600080fd5b6020830191508360208285010111156114c357600080fd5b9250929050565b60008060008060c085870312156114e057600080fd5b6114ea8686611469565b9350608085013567ffffffffffffffff81111561150657600080fd5b61151287828801611481565b9598909750949560a00135949350505050565b600080600060a0848603121561153a57600080fd5b6115448585611469565b9250608084013567ffffffffffffffff81111561156057600080fd5b61156c86828701611481565b9497909650939450505050565b60006020828403121561158b57600080fd5b5051919050565b60005b838110156115ad578181015183820152602001611595565b83811115610c565750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516115f6816017850160208801611592565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611627816028840160208801611592565b01602801949350505050565b6020815260008251806020840152611652816040850160208701611592565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b60008282101561168e5761168e611666565b500390565b60008160001904831182151516156116ad576116ad611666565b500290565b600082198211156116c5576116c5611666565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008161170557611705611666565b506000190190565b60008261172a57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212206d35433dfc3321ebc7eb559aed7001e4fd8b8abf919de70fbac6a5462003234764736f6c634300080d0033000000000000000000000000538f85f181fbae0d1cd2f190ec903eb21e434bd80000000000000000000000004a6a5af20650a6fcfe799ad50887e89493c5773d000000000000000000000000e1d6f78840f2ad73da3ebc8f76220da1b8830fda0000000000000000000000000000000000000000000000000005543df729c0000000000000000000000000000000000000000000000000000002aa1efb94e000
Deployed Bytecode
0x6080604052600436106100fe5760003560e01c806375b238fc11610095578063af3784bd11610064578063af3784bd146102d1578063d547741f14610309578063da2aa57d14610329578063db2e21bc1461033c578063e181853f1461035157600080fd5b806375b238fc1461023457806391d1485414610268578063a1ebf35d14610288578063a217fddf146102bc57600080fd5b806336568abe116100d157806336568abe146101c85780633a19ce63146101e857806340fa61f7146102085780635a64ad951461021e57600080fd5b806301ffc9a71461010357806316e74df014610138578063248a9ca3146101685780632f2ff15d146101a6575b600080fd5b34801561010f57600080fd5b5061012361011e36600461136e565b610364565b60405190151581526020015b60405180910390f35b34801561014457600080fd5b506101236101533660046113b4565b60026020526000908152604090205460ff1681565b34801561017457600080fd5b506101986101833660046113cf565b60009081526020819052604090206001015490565b60405190815260200161012f565b3480156101b257600080fd5b506101c66101c13660046113e8565b61039b565b005b3480156101d457600080fd5b506101c66101e33660046113e8565b6103c6565b3480156101f457600080fd5b506101c6610203366004611414565b610449565b34801561021457600080fd5b5061019860065481565b34801561022a57600080fd5b5061019860055481565b34801561024057600080fd5b506101987fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b34801561027457600080fd5b506101236102833660046113e8565b6104e0565b34801561029457600080fd5b506101987fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7081565b3480156102c857600080fd5b50610198600081565b3480156102dd57600080fd5b506004546102f1906001600160a01b031681565b6040516001600160a01b03909116815260200161012f565b34801561031557600080fd5b506101c66103243660046113e8565b610509565b6101c66103373660046114ca565b61052f565b34801561034857600080fd5b506101c66106d8565b6101c661035f366004611525565b61077e565b60006001600160e01b03198216637965db0b60e01b148061039557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000828152602081905260409020600101546103b78133610994565b6103c183836109f8565b505050565b6001600160a01b038116331461043b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104458282610a7c565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756104748133610994565b600480546001600160a01b038088166001600160a01b0319928316179092556005859055600684905560078054928916929091169190911790556104d87fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f7085610ae1565b505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000828152602081905260409020600101546105258133610994565b6103c18383610a7c565b6002600154036105815760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610432565b6002600155610591848484610aeb565b6105bc6105a460608601604087016113b4565b6105b460808701606088016113b4565b600654610b91565b6004546000906001600160a01b031663d96a3be66105e060608801604089016113b4565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052602088013560448201526064016020604051808303816000875af1158015610637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065b9190611579565b905061066d60608601604087016113b4565b6001600160a01b03167fc47187dd08a167e269b6e03f15cda763bfc30a22b7501e1c20e2e0050796fe2a46838860200135426040516106c5949392919093845260208401929092526040830152606082015260800190565b60405180910390a2505060018055505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756107038133610994565b478015610445576007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610757576040519150601f19603f3d011682016040523d82523d6000602084013e61075c565b606091505b50509050806103c1576040516312171d8360e31b815260040160405180910390fd5b6002600154036107d05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610432565b60026001556107e0838383610aeb565b600260006107f460608601604087016113b4565b6001600160a01b0316815260208101919091526040016000205460ff161561082f57604051638bec1c6d60e01b815260040160405180910390fd5b61085a61084260608501604086016113b4565b61085260808601606087016113b4565b600554610b91565b6004546000906001600160a01b03166340c10f1961087e60608701604088016113b4565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602087013560248201526044016020604051808303816000875af11580156108ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f29190611579565b905060016002600061090a60608801604089016113b4565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790553360408051602080880135825246908201529081018390524260608201526001600160a01b0391909116907f94c792774c59479f7bd68442f3af3691c02123a5aabee8b6f9116d8af8aa66699060800160405180910390a25050600180555050565b61099e82826104e0565b610445576109b6816001600160a01b03166014610c5c565b6109c1836020610c5c565b6040516020016109d29291906115be565b60408051601f198184030181529082905262461bcd60e51b825261043291600401611633565b610a0282826104e0565b610445576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610a383390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610a8682826104e0565b15610445576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61044582826109f8565b6000610af8848484610dff565b9050610b247fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70826104e0565b610b4157604051632c2b07ef60e01b815260040160405180910390fd5b833560009081526003602052604090205460ff1615610b7257604051623f613760e71b815260040160405180910390fd5b505050356000908152600360205260409020805460ff19166001179055565b816001600160a01b0316836001600160a01b031603610bc2576040516282b42960e81b815260040160405180910390fd5b80341015610be357604051636a259e3160e11b815260040160405180910390fd5b6000610bef823461167c565b90506001600160a01b038316610c0f57610c0a848284610e58565b610c56565b6000610c32600954610c2c60085486610e7e90919063ffffffff16565b90610e8a565b90506000610c408483610e96565b90506104d886610c508585610ea2565b83610e58565b50505050565b60606000610c6b836002611693565b610c769060026116b2565b67ffffffffffffffff811115610c8e57610c8e6116ca565b6040519080825280601f01601f191660200182016040528015610cb8576020820181803683370190505b509050600360fc1b81600081518110610cd357610cd36116e0565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610d0257610d026116e0565b60200101906001600160f81b031916908160001a9053506000610d26846002611693565b610d319060016116b2565b90505b6001811115610da9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610d6557610d656116e0565b1a60f81b828281518110610d7b57610d7b6116e0565b60200101906001600160f81b031916908160001a90535060049490941c93610da2816116f6565b9050610d34565b508315610df85760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610432565b9392505050565b600080610e0b85610eae565b9050610e4f84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508593925050610ec89050565b95945050505050565b8115610e6857610e688383610f6a565b6007546103c1906001600160a01b031682610f6a565b6000610df88284611693565b6000610df8828461170d565b6000610df8828461167c565b6000610df882846116b2565b6000610395610ebc83610fd2565b80519060200120611064565b60008151604103610efb5760208201516040830151606084015160001a610ef1868285856110b2565b9350505050610395565b8151604003610f225760208201516040830151610f19858383611252565b92505050610395565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610432565b8015610445576000826001600160a01b031682620186a05a11610f8d575a610f92565b620186a05b6040519091906000818181858888f193505050503d8060008114610757576040519150601f19603f3d011682016040523d82523d6000602084013e61075c565b60607f85b3ff6200fc5d898b0127934cef940fcd1e70c5244f9775630b97dfbffacee08235602084013561100b858501604087016113b4565b61101b60808701606088016113b4565b60408051602081019690965285019390935260608401919091526001600160a01b0390811660808401521660a082015260c0016040516020818303038152906040529050919050565b600061039561107161127c565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561112f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610432565b8360ff16601b148061114457508360ff16601c145b61119b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610432565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa1580156111ef573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e4f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610432565b60006001600160ff1b03821660ff83901c601b01611272868287856110b2565b9695505050505050565b60007f000000000000000000000000000000000000000000000000000000000000e70846036112ca57507fde67b3a601999c71861977eaeb90bad9bccc27f5e414775b5053aa7e3569bbc890565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f1c829115aa24447d7c5bd62cbbe47d99e7df3c2046ab989cc12459f7509bdf59828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60006020828403121561138057600080fd5b81356001600160e01b031981168114610df857600080fd5b80356001600160a01b03811681146113af57600080fd5b919050565b6000602082840312156113c657600080fd5b610df882611398565b6000602082840312156113e157600080fd5b5035919050565b600080604083850312156113fb57600080fd5b8235915061140b60208401611398565b90509250929050565b600080600080600060a0868803121561142c57600080fd5b61143586611398565b945061144360208701611398565b935061145160408701611398565b94979396509394606081013594506080013592915050565b60006080828403121561147b57600080fd5b50919050565b60008083601f84011261149357600080fd5b50813567ffffffffffffffff8111156114ab57600080fd5b6020830191508360208285010111156114c357600080fd5b9250929050565b60008060008060c085870312156114e057600080fd5b6114ea8686611469565b9350608085013567ffffffffffffffff81111561150657600080fd5b61151287828801611481565b9598909750949560a00135949350505050565b600080600060a0848603121561153a57600080fd5b6115448585611469565b9250608084013567ffffffffffffffff81111561156057600080fd5b61156c86828701611481565b9497909650939450505050565b60006020828403121561158b57600080fd5b5051919050565b60005b838110156115ad578181015183820152602001611595565b83811115610c565750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516115f6816017850160208801611592565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611627816028840160208801611592565b01602801949350505050565b6020815260008251806020840152611652816040850160208701611592565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b60008282101561168e5761168e611666565b500390565b60008160001904831182151516156116ad576116ad611666565b500290565b600082198211156116c5576116c5611666565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008161170557611705611666565b506000190190565b60008261172a57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212206d35433dfc3321ebc7eb559aed7001e4fd8b8abf919de70fbac6a5462003234764736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000538f85f181fbae0d1cd2f190ec903eb21e434bd80000000000000000000000004a6a5af20650a6fcfe799ad50887e89493c5773d000000000000000000000000e1d6f78840f2ad73da3ebc8f76220da1b8830fda0000000000000000000000000000000000000000000000000005543df729c0000000000000000000000000000000000000000000000000000002aa1efb94e000
-----Decoded View---------------
Arg [0] : _feeRecipient (address): 0x538f85f181FbAE0d1cd2f190ec903EB21E434BD8
Arg [1] : _score (address): 0x4a6a5AF20650a6fCfe799AD50887e89493C5773D
Arg [2] : _signer (address): 0xe1d6f78840F2aD73dA3EBC8f76220Da1b8830FDa
Arg [3] : _mintingFee (uint256): 1500000000000000
Arg [4] : _upgradeFee (uint256): 750000000000000
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000538f85f181fbae0d1cd2f190ec903eb21e434bd8
Arg [1] : 0000000000000000000000004a6a5af20650a6fcfe799ad50887e89493c5773d
Arg [2] : 000000000000000000000000e1d6f78840f2ad73da3ebc8f76220da1b8830fda
Arg [3] : 0000000000000000000000000000000000000000000000000005543df729c000
Arg [4] : 0000000000000000000000000000000000000000000000000002aa1efb94e000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.