Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 10893655 | 1393 days ago | IN | Create: DFOERC20NFTWrapper | 0 ETH | 0.25211917 |
Loading...
Loading
Contract Name:
DFOERC20NFTWrapper
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-19 */ // File: @openzeppelin\contracts\token\ERC20\IERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts\standalone\IERC20NFTWrapper.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; interface IERC20NFTWrapper is IERC20 { function init(uint256 objectId) external; function mainWrapper() external view returns (address); function objectId() external view returns (uint256); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint256); function mint(address owner, uint256 amount) external; function burn(address owner, uint256 amount) external; } // File: contracts\standalone\voting\IDFOERC20NFTWrapper.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; interface IDFOERC20NFTWrapper is IERC20NFTWrapper { function mint(uint256 amount) external; function getProxy() external view returns (address); function setProxy() external; } interface IMVDFunctionalityProposalManager { function isValidProposal(address proposal) external view returns (bool); } // File: node_modules\@openzeppelin\contracts\introspection\IERC165.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.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); } // File: @openzeppelin\contracts\token\ERC1155\IERC1155.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.2; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transfered from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; } // File: @openzeppelin\contracts\token\ERC1155\IERC1155Receiver.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; /** * _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4); } // File: contracts\standalone\IERC1155Views.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; /** * @title IERC1155Views - An optional utility interface to improve the ERC-1155 Standard. * @dev This interface introduces some additional capabilities for ERC-1155 Tokens. */ interface IERC1155Views { /** * @dev Returns the total supply of the given token id * @param objectId the id of the token whose availability you want to know */ function totalSupply(uint256 objectId) external view returns (uint256); /** * @dev Returns the name of the given token id * @param objectId the id of the token whose name you want to know */ function name(uint256 objectId) external view returns (string memory); /** * @dev Returns the symbol of the given token id * @param objectId the id of the token whose symbol you want to know */ function symbol(uint256 objectId) external view returns (string memory); /** * @dev Returns the decimals of the given token id * @param objectId the id of the token whose decimals you want to know */ function decimals(uint256 objectId) external view returns (uint256); /** * @dev Returns the uri of the given token id * @param objectId the id of the token whose uri you want to know */ function uri(uint256 objectId) external view returns (string memory); } // File: contracts\standalone\IERC1155Data.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; interface IERC1155Data { function name() external view returns (string memory); function symbol() external view returns (string memory); } // File: contracts\standalone\ISuperSaiyanToken.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; interface ISuperSaiyanToken is IERC1155, IERC1155Receiver, IERC1155Views, IERC1155Data { function init( address model, address source, string calldata name, string calldata symbol ) external; function fromDecimals(uint256 objectId, uint256 amount) external view returns (uint256); function toDecimals(uint256 objectId, uint256 amount) external view returns (uint256); function getMintData(uint256 objectId) external view returns ( string memory, string memory, uint256 ); function getModel() external view returns (address); function source() external view returns (address); function asERC20(uint256 objectId) external view returns (IERC20NFTWrapper); function emitTransferSingleEvent(address sender, address from, address to, uint256 objectId, uint256 amount) external; function mint(uint256 amount, string calldata partialUri) external returns (uint256, address); function burn( uint256 objectId, uint256 amount, bytes calldata data ) external; function burnBatch( uint256[] calldata objectIds, uint256[] calldata amounts, bytes calldata data ) external; event Mint(uint256 objectId, address tokenAddress); } // File: contracts\standalone\voting\IDFOSuperSaiyanToken.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; interface IDFOSuperSaiyanToken is ISuperSaiyanToken { function doubleProxy() external view returns(address); function setDoubleProxy(address newDoubleProxy) external; function setUri(uint256 objectId, string calldata uri) external; event UriChanged(uint256 indexed objectId, string oldUri, string newUri); } interface IDoubleProxy { function proxy() external view returns(address); } interface IMVDProxy { function getToken() external view returns(address); function getStateHolderAddress() external view returns(address); function getMVDWalletAddress() external view returns(address); function getMVDFunctionalitiesManagerAddress() external view returns(address); function getMVDFunctionalityProposalManagerAddress() external view returns(address); function submit(string calldata codeName, bytes calldata data) external payable returns(bytes memory returnData); } interface IStateHolder { function setUint256(string calldata name, uint256 value) external returns(uint256); function getUint256(string calldata name) external view returns(uint256); function getBool(string calldata varName) external view returns (bool); function clear(string calldata varName) external returns(string memory oldDataType, bytes memory oldVal); } interface IMVDFunctionalitiesManager { function isAuthorizedFunctionality(address functionality) external view returns(bool); } // File: @openzeppelin\contracts\GSN\Context.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin\contracts\math\SafeMath.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin\contracts\utils\Address.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts\standalone\ERC20NFTWrapper.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; contract ERC20NFTWrapper is Context, IERC20NFTWrapper { using SafeMath for uint256; using Address for address; mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) internal _allowances; uint256 internal _totalSupply; string internal _name; string internal _symbol; uint256 internal _decimals; address internal _mainWrapper; uint256 internal _objectId; function init(uint256 objectId) public virtual override { require(_mainWrapper == address(0), "Init already called!"); (_name, _symbol, _decimals) = ISuperSaiyanToken( _mainWrapper = msg.sender ) .getMintData(_objectId = objectId); } function mainWrapper() public virtual override view returns (address) { return _mainWrapper; } function objectId() public virtual override view returns (uint256) { return _objectId; } function name() public virtual override view returns (string memory) { return _name; } function symbol() public virtual override view returns (string memory) { return _symbol; } function decimals() public virtual override view returns (uint256) { return _decimals; } function totalSupply() public virtual override view returns (uint256) { return _totalSupply; } function balanceOf(address account) public virtual override view returns (uint256) { return _balances[account]; } function mint(address owner, uint256 amount) public virtual override { require(msg.sender == _mainWrapper, "Unauthorized action!"); _mint(owner, amount); } function burn(address owner, uint256 amount) public virtual override { require( msg.sender == _mainWrapper || (ISuperSaiyanToken(_mainWrapper).source() == address(0) && msg.sender == owner), "Unauthorized action!" ); _burn(owner, amount); } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public virtual override view returns (uint256 allowanceAmount) { allowanceAmount = _allowances[owner][spender]; if ( allowanceAmount == 0 && ISuperSaiyanToken(_mainWrapper).isApprovedForAll(owner, spender) ) { allowanceAmount = _totalSupply; } } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); if (_msgSender() == _mainWrapper) { return true; } if ( !ISuperSaiyanToken(_mainWrapper).isApprovedForAll( sender, _msgSender() ) ) { _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, "ERC20: transfer amount exceeds allowance" ) ); } return true; } function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub( amount, "ERC20: transfer amount exceeds balance" ); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); ISuperSaiyanToken(_mainWrapper).emitTransferSingleEvent(_msgSender(), sender, recipient, _objectId, amount); } function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub( amount, "ERC20: burn amount exceeds balance" ); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } } // File: contracts\standalone\voting\DFOERC20NFTWrapper.sol // SPDX_License_Identifier: MIT pragma solidity ^0.6.0; /** * @title DFOSuperSaiyanToken */ contract DFOERC20NFTWrapper is IDFOERC20NFTWrapper, ERC20NFTWrapper { function mint(uint256 amount) public virtual override { IMVDProxy proxy = IMVDProxy(getProxy()); require( IMVDFunctionalitiesManager( proxy.getMVDFunctionalitiesManagerAddress() ) .isAuthorizedFunctionality(msg.sender), "Unauthorized action!" ); super._mint(address(proxy), amount); } function transferFrom( address sender, address recipient, uint256 amount ) public override(IERC20, ERC20NFTWrapper) returns (bool) { _transfer(sender, recipient, amount); address txSender = _msgSender(); if (txSender == _mainWrapper || ISuperSaiyanToken(_mainWrapper).isApprovedForAll( sender, txSender )) { return true; } address proxy = getProxy(); if ( proxy == address(0) || !(IMVDFunctionalityProposalManager( IMVDProxy(proxy).getMVDFunctionalityProposalManagerAddress() ) .isValidProposal(txSender) && recipient == txSender) ) { _approve( sender, txSender, _allowances[sender][txSender] = _allowances[sender][txSender].sub( amount, "ERC20: transfer amount exceeds allowance" ) ); } return true; } receive() external payable { revert("ETH not accepted"); } function getProxy() public override view returns (address) { address doubleProxy = IDFOSuperSaiyanToken(_mainWrapper).doubleProxy(); return doubleProxy == address(0) ? address(0) : IDoubleProxy(doubleProxy).proxy(); } function setProxy() public override { } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"allowanceAmount","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":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"objectId","type":"uint256"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mainWrapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"objectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setProxy","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5061170b806100206000396000f3fe6080604052600436106101025760003560e01c8063933a9ce811610095578063a9059cbb11610064578063a9059cbb146103ce578063b7b0422d14610407578063c889c5f414610431578063d4d5a06d14610446578063dd62ed3e1461045b57610147565b8063933a9ce81461032557806395d89b41146103565780639dc29fac1461036b578063a0712d68146103a457610147565b8063313ce567116100d1578063313ce5671461028d5780633914a04f146102a257806340c10f19146102b957806370a08231146102f257610147565b806306fdde031461014c578063095ea7b3146101d657806318160ddd1461022357806323b872dd1461024a57610147565b36610147576040805162461bcd60e51b815260206004820152601060248201526f115512081b9bdd081858d8d95c1d195960821b604482015290519081900360640190fd5b600080fd5b34801561015857600080fd5b50610161610496565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019b578181015183820152602001610183565b50505050905090810190601f1680156101c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e257600080fd5b5061020f600480360360408110156101f957600080fd5b506001600160a01b03813516906020013561052c565b604080519115158252519081900360200190f35b34801561022f57600080fd5b5061023861054a565b60408051918252519081900360200190f35b34801561025657600080fd5b5061020f6004803603606081101561026d57600080fd5b506001600160a01b03813581169160208101359091169060400135610550565b34801561029957600080fd5b506102386107b8565b3480156102ae57600080fd5b506102b76107be565b005b3480156102c557600080fd5b506102b7600480360360408110156102dc57600080fd5b506001600160a01b0381351690602001356107c0565b3480156102fe57600080fd5b506102386004803603602081101561031557600080fd5b50356001600160a01b0316610824565b34801561033157600080fd5b5061033a61083f565b604080516001600160a01b039092168252519081900360200190f35b34801561036257600080fd5b50610161610940565b34801561037757600080fd5b506102b76004803603604081101561038e57600080fd5b506001600160a01b0381351690602001356109a1565b3480156103b057600080fd5b506102b7600480360360208110156103c757600080fd5b5035610a96565b3480156103da57600080fd5b5061020f600480360360408110156103f157600080fd5b506001600160a01b038135169060200135610bcd565b34801561041357600080fd5b506102b76004803603602081101561042a57600080fd5b5035610be1565b34801561043d57600080fd5b5061033a610e63565b34801561045257600080fd5b50610238610e72565b34801561046757600080fd5b506102386004803603604081101561047e57600080fd5b506001600160a01b0381358116916020013516610e78565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105225780601f106104f757610100808354040283529160200191610522565b820191906000526020600020905b81548152906001019060200180831161050557829003601f168201915b5050505050905090565b6000610540610539610f38565b8484610f3c565b5060015b92915050565b60025490565b600061055d848484611028565b6000610567610f38565b6006549091506001600160a01b038083169116148061060357506006546040805163e985e9c560e01b81526001600160a01b03888116600483015284811660248301529151919092169163e985e9c5916044808301926020929190829003018186803b1580156105d657600080fd5b505afa1580156105ea573d6000803e3d6000fd5b505050506040513d602081101561060057600080fd5b50515b156106125760019150506107b1565b600061061c61083f565b90506001600160a01b03811615806107295750806001600160a01b031663c5c2fb6b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561066857600080fd5b505afa15801561067c573d6000803e3d6000fd5b505050506040513d602081101561069257600080fd5b50516040805163a9771afd60e01b81526001600160a01b0385811660048301529151919092169163a9771afd916024808301926020929190829003018186803b1580156106de57600080fd5b505afa1580156106f2573d6000803e3d6000fd5b505050506040513d602081101561070857600080fd5b505180156107275750816001600160a01b0316856001600160a01b0316145b155b156107aa576107aa868361077d87604051806060016040528060288152602001611644602891396001600160a01b03808d166000908152600160209081526040808320938c1683529290522054919061121c565b6001600160a01b03808b166000908152600160209081526040808320938a16835292905220819055610f3c565b6001925050505b9392505050565b60055490565b565b6006546001600160a01b03163314610816576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61082082826112b3565b5050565b6001600160a01b031660009081526020819052604090205490565b600080600660009054906101000a90046001600160a01b03166001600160a01b0316634eb9b5926040518163ffffffff1660e01b815260040160206040518083038186803b15801561089057600080fd5b505afa1580156108a4573d6000803e3d6000fd5b505050506040513d60208110156108ba57600080fd5b505190506001600160a01b0381161561093757806001600160a01b031663ec5568896040518163ffffffff1660e01b815260040160206040518083038186803b15801561090657600080fd5b505afa15801561091a573d6000803e3d6000fd5b505050506040513d602081101561093057600080fd5b505161093a565b60005b91505090565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105225780601f106104f757610100808354040283529160200191610522565b6006546001600160a01b0316331480610a445750600654604080516367e828bf60e01b815290516000926001600160a01b0316916367e828bf916004808301926020929190829003018186803b1580156109fa57600080fd5b505afa158015610a0e573d6000803e3d6000fd5b505050506040513d6020811015610a2457600080fd5b50516001600160a01b0316148015610a445750336001600160a01b038316145b610a8c576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b6108208282611397565b6000610aa061083f565b9050806001600160a01b0316636701586a6040518163ffffffff1660e01b815260040160206040518083038186803b158015610adb57600080fd5b505afa158015610aef573d6000803e3d6000fd5b505050506040513d6020811015610b0557600080fd5b5051604080516318c8e99960e11b815233600482015290516001600160a01b0390921691633191d33291602480820192602092909190829003018186803b158015610b4f57600080fd5b505afa158015610b63573d6000803e3d6000fd5b505050506040513d6020811015610b7957600080fd5b5051610bc3576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61082081836112b3565b6000610540610bda610f38565b8484611028565b6006546001600160a01b031615610c36576040805162461bcd60e51b8152602060048201526014602482015273496e697420616c72656164792063616c6c65642160601b604482015290519081900360640190fd5b600680546001600160a01b031916339081179091556007829055604080516373f1642560e01b81526004810184905290516373f1642591602480820192600092909190829003018186803b158015610c8d57600080fd5b505afa158015610ca1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526060811015610cca57600080fd5b8101908080516040519392919084640100000000821115610cea57600080fd5b908301906020820185811115610cff57600080fd5b8251640100000000811182820188101715610d1957600080fd5b82525081516020918201929091019080838360005b83811015610d46578181015183820152602001610d2e565b50505050905090810190601f168015610d735780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115610d9657600080fd5b908301906020820185811115610dab57600080fd5b8251640100000000811182820188101715610dc557600080fd5b82525081516020918201929091019080838360005b83811015610df2578181015183820152602001610dda565b50505050905090810190601f168015610e1f5780820380516001836020036101000a031916815260200191505b506040526020908101516005819055845190935060039250600091610e4991600491870190611523565b50508351610e5c91906020860190611523565b5050505050565b6006546001600160a01b031690565b60075490565b6001600160a01b0380831660009081526001602090815260408083209385168352929052205480158015610f2957506006546040805163e985e9c560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e985e9c5916044808301926020929190829003018186803b158015610efc57600080fd5b505afa158015610f10573d6000803e3d6000fd5b505050506040513d6020811015610f2657600080fd5b50515b15610544575060025492915050565b3390565b6001600160a01b038316610f815760405162461bcd60e51b81526004018080602001828103825260248152602001806116b26024913960400191505060405180910390fd5b6001600160a01b038216610fc65760405162461bcd60e51b81526004018080602001828103825260228152602001806115fc6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661106d5760405162461bcd60e51b815260040180806020018281038252602581526020018061168d6025913960400191505060405180910390fd5b6001600160a01b0382166110b25760405162461bcd60e51b81526004018080602001828103825260238152602001806115b76023913960400191505060405180910390fd5b6110ef8160405180606001604052806026815260200161161e602691396001600160a01b038616600090815260208190526040902054919061121c565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461111e9082611487565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a36006546001600160a01b031663e82b15f461118c610f38565b8585600754866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b0316815260200183815260200182815260200195505050505050600060405180830381600087803b1580156111ff57600080fd5b505af1158015611213573d6000803e3d6000fd5b50505050505050565b600081848411156112ab5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611270578181015183820152602001611258565b50505050905090810190601f16801561129d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03821661130e576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b60025461131b9082611487565b6002556001600160a01b0382166000908152602081905260409020546113419082611487565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166113dc5760405162461bcd60e51b815260040180806020018281038252602181526020018061166c6021913960400191505060405180910390fd5b611419816040518060600160405280602281526020016115da602291396001600160a01b038516600090815260208190526040902054919061121c565b6001600160a01b03831660009081526020819052604090205560025461143f90826114e1565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000828201838110156107b1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006107b183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061121c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061156457805160ff1916838001178555611591565b82800160010185558215611591579182015b82811115611591578251825591602001919060010190611576565b5061159d9291506115a1565b5090565b5b8082111561159d57600081556001016115a256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a264697066735822122043ae8ffbc3c4d282e1645795df1727a981dc402653ba9250776c1e7d5bf0dd3264736f6c634300060c0033
Deployed Bytecode
0x6080604052600436106101025760003560e01c8063933a9ce811610095578063a9059cbb11610064578063a9059cbb146103ce578063b7b0422d14610407578063c889c5f414610431578063d4d5a06d14610446578063dd62ed3e1461045b57610147565b8063933a9ce81461032557806395d89b41146103565780639dc29fac1461036b578063a0712d68146103a457610147565b8063313ce567116100d1578063313ce5671461028d5780633914a04f146102a257806340c10f19146102b957806370a08231146102f257610147565b806306fdde031461014c578063095ea7b3146101d657806318160ddd1461022357806323b872dd1461024a57610147565b36610147576040805162461bcd60e51b815260206004820152601060248201526f115512081b9bdd081858d8d95c1d195960821b604482015290519081900360640190fd5b600080fd5b34801561015857600080fd5b50610161610496565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019b578181015183820152602001610183565b50505050905090810190601f1680156101c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e257600080fd5b5061020f600480360360408110156101f957600080fd5b506001600160a01b03813516906020013561052c565b604080519115158252519081900360200190f35b34801561022f57600080fd5b5061023861054a565b60408051918252519081900360200190f35b34801561025657600080fd5b5061020f6004803603606081101561026d57600080fd5b506001600160a01b03813581169160208101359091169060400135610550565b34801561029957600080fd5b506102386107b8565b3480156102ae57600080fd5b506102b76107be565b005b3480156102c557600080fd5b506102b7600480360360408110156102dc57600080fd5b506001600160a01b0381351690602001356107c0565b3480156102fe57600080fd5b506102386004803603602081101561031557600080fd5b50356001600160a01b0316610824565b34801561033157600080fd5b5061033a61083f565b604080516001600160a01b039092168252519081900360200190f35b34801561036257600080fd5b50610161610940565b34801561037757600080fd5b506102b76004803603604081101561038e57600080fd5b506001600160a01b0381351690602001356109a1565b3480156103b057600080fd5b506102b7600480360360208110156103c757600080fd5b5035610a96565b3480156103da57600080fd5b5061020f600480360360408110156103f157600080fd5b506001600160a01b038135169060200135610bcd565b34801561041357600080fd5b506102b76004803603602081101561042a57600080fd5b5035610be1565b34801561043d57600080fd5b5061033a610e63565b34801561045257600080fd5b50610238610e72565b34801561046757600080fd5b506102386004803603604081101561047e57600080fd5b506001600160a01b0381358116916020013516610e78565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105225780601f106104f757610100808354040283529160200191610522565b820191906000526020600020905b81548152906001019060200180831161050557829003601f168201915b5050505050905090565b6000610540610539610f38565b8484610f3c565b5060015b92915050565b60025490565b600061055d848484611028565b6000610567610f38565b6006549091506001600160a01b038083169116148061060357506006546040805163e985e9c560e01b81526001600160a01b03888116600483015284811660248301529151919092169163e985e9c5916044808301926020929190829003018186803b1580156105d657600080fd5b505afa1580156105ea573d6000803e3d6000fd5b505050506040513d602081101561060057600080fd5b50515b156106125760019150506107b1565b600061061c61083f565b90506001600160a01b03811615806107295750806001600160a01b031663c5c2fb6b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561066857600080fd5b505afa15801561067c573d6000803e3d6000fd5b505050506040513d602081101561069257600080fd5b50516040805163a9771afd60e01b81526001600160a01b0385811660048301529151919092169163a9771afd916024808301926020929190829003018186803b1580156106de57600080fd5b505afa1580156106f2573d6000803e3d6000fd5b505050506040513d602081101561070857600080fd5b505180156107275750816001600160a01b0316856001600160a01b0316145b155b156107aa576107aa868361077d87604051806060016040528060288152602001611644602891396001600160a01b03808d166000908152600160209081526040808320938c1683529290522054919061121c565b6001600160a01b03808b166000908152600160209081526040808320938a16835292905220819055610f3c565b6001925050505b9392505050565b60055490565b565b6006546001600160a01b03163314610816576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61082082826112b3565b5050565b6001600160a01b031660009081526020819052604090205490565b600080600660009054906101000a90046001600160a01b03166001600160a01b0316634eb9b5926040518163ffffffff1660e01b815260040160206040518083038186803b15801561089057600080fd5b505afa1580156108a4573d6000803e3d6000fd5b505050506040513d60208110156108ba57600080fd5b505190506001600160a01b0381161561093757806001600160a01b031663ec5568896040518163ffffffff1660e01b815260040160206040518083038186803b15801561090657600080fd5b505afa15801561091a573d6000803e3d6000fd5b505050506040513d602081101561093057600080fd5b505161093a565b60005b91505090565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105225780601f106104f757610100808354040283529160200191610522565b6006546001600160a01b0316331480610a445750600654604080516367e828bf60e01b815290516000926001600160a01b0316916367e828bf916004808301926020929190829003018186803b1580156109fa57600080fd5b505afa158015610a0e573d6000803e3d6000fd5b505050506040513d6020811015610a2457600080fd5b50516001600160a01b0316148015610a445750336001600160a01b038316145b610a8c576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b6108208282611397565b6000610aa061083f565b9050806001600160a01b0316636701586a6040518163ffffffff1660e01b815260040160206040518083038186803b158015610adb57600080fd5b505afa158015610aef573d6000803e3d6000fd5b505050506040513d6020811015610b0557600080fd5b5051604080516318c8e99960e11b815233600482015290516001600160a01b0390921691633191d33291602480820192602092909190829003018186803b158015610b4f57600080fd5b505afa158015610b63573d6000803e3d6000fd5b505050506040513d6020811015610b7957600080fd5b5051610bc3576040805162461bcd60e51b8152602060048201526014602482015273556e617574686f72697a656420616374696f6e2160601b604482015290519081900360640190fd5b61082081836112b3565b6000610540610bda610f38565b8484611028565b6006546001600160a01b031615610c36576040805162461bcd60e51b8152602060048201526014602482015273496e697420616c72656164792063616c6c65642160601b604482015290519081900360640190fd5b600680546001600160a01b031916339081179091556007829055604080516373f1642560e01b81526004810184905290516373f1642591602480820192600092909190829003018186803b158015610c8d57600080fd5b505afa158015610ca1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526060811015610cca57600080fd5b8101908080516040519392919084640100000000821115610cea57600080fd5b908301906020820185811115610cff57600080fd5b8251640100000000811182820188101715610d1957600080fd5b82525081516020918201929091019080838360005b83811015610d46578181015183820152602001610d2e565b50505050905090810190601f168015610d735780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115610d9657600080fd5b908301906020820185811115610dab57600080fd5b8251640100000000811182820188101715610dc557600080fd5b82525081516020918201929091019080838360005b83811015610df2578181015183820152602001610dda565b50505050905090810190601f168015610e1f5780820380516001836020036101000a031916815260200191505b506040526020908101516005819055845190935060039250600091610e4991600491870190611523565b50508351610e5c91906020860190611523565b5050505050565b6006546001600160a01b031690565b60075490565b6001600160a01b0380831660009081526001602090815260408083209385168352929052205480158015610f2957506006546040805163e985e9c560e01b81526001600160a01b03868116600483015285811660248301529151919092169163e985e9c5916044808301926020929190829003018186803b158015610efc57600080fd5b505afa158015610f10573d6000803e3d6000fd5b505050506040513d6020811015610f2657600080fd5b50515b15610544575060025492915050565b3390565b6001600160a01b038316610f815760405162461bcd60e51b81526004018080602001828103825260248152602001806116b26024913960400191505060405180910390fd5b6001600160a01b038216610fc65760405162461bcd60e51b81526004018080602001828103825260228152602001806115fc6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661106d5760405162461bcd60e51b815260040180806020018281038252602581526020018061168d6025913960400191505060405180910390fd5b6001600160a01b0382166110b25760405162461bcd60e51b81526004018080602001828103825260238152602001806115b76023913960400191505060405180910390fd5b6110ef8160405180606001604052806026815260200161161e602691396001600160a01b038616600090815260208190526040902054919061121c565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461111e9082611487565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a36006546001600160a01b031663e82b15f461118c610f38565b8585600754866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b0316815260200183815260200182815260200195505050505050600060405180830381600087803b1580156111ff57600080fd5b505af1158015611213573d6000803e3d6000fd5b50505050505050565b600081848411156112ab5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611270578181015183820152602001611258565b50505050905090810190601f16801561129d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03821661130e576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b60025461131b9082611487565b6002556001600160a01b0382166000908152602081905260409020546113419082611487565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166113dc5760405162461bcd60e51b815260040180806020018281038252602181526020018061166c6021913960400191505060405180910390fd5b611419816040518060600160405280602281526020016115da602291396001600160a01b038516600090815260208190526040902054919061121c565b6001600160a01b03831660009081526020819052604090205560025461143f90826114e1565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000828201838110156107b1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006107b183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061121c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061156457805160ff1916838001178555611591565b82800160010185558215611591579182015b82811115611591578251825591602001919060010190611576565b5061159d9291506115a1565b5090565b5b8082111561159d57600081556001016115a256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a264697066735822122043ae8ffbc3c4d282e1645795df1727a981dc402653ba9250776c1e7d5bf0dd3264736f6c634300060c0033
Deployed Bytecode Sourcemap
34725:1955:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36343:26;;;-1:-1:-1;;;36343:26:0;;;;;;;;;;;;-1:-1:-1;;;36343:26:0;;;;;;;;;;;;;;34725:1955;;;;29980:100;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31799:210;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31799:210:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;30310:108;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;35208:1089;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;35208:1089:0;;;;;;;;;;;;;;;;;:::i;30200:102::-;;;;;;;;;;;;;:::i;36633:44::-;;;;;;;;;;;;;:::i;:::-;;30611:178;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30611:178:0;;;;;;;;:::i;30426:177::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30426:177:0;-1:-1:-1;;;;;30426:177:0;;:::i;36385:240::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;36385:240:0;;;;;;;;;;;;;;30088:104;;;;;;;;;;;;;:::i;30797:336::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30797:336:0;;;;;;;;:::i;34802:398::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34802:398:0;;:::i;31141:216::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31141:216:0;;;;;;;;:::i;29455:291::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29455:291:0;;:::i;29754:108::-;;;;;;;;;;;;;:::i;29870:102::-;;;;;;;;;;;;;:::i;31365:426::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31365:426:0;;;;;;;;;;:::i;29980:100::-;30067:5;30060:12;;;;;;;;-1:-1:-1;;30060:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30034:13;;30060:12;;30067:5;;30060:12;;30067:5;30060:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29980:100;:::o;31799:210::-;31918:4;31940:39;31949:12;:10;:12::i;:::-;31963:7;31972:6;31940:8;:39::i;:::-;-1:-1:-1;31997:4:0;31799:210;;;;;:::o;30310:108::-;30398:12;;30310:108;:::o;35208:1089::-;35365:4;35382:36;35392:6;35400:9;35411:6;35382:9;:36::i;:::-;35429:16;35448:12;:10;:12::i;:::-;35487;;35429:31;;-1:-1:-1;;;;;;35475:24:0;;;35487:12;;35475:24;;:143;;-1:-1:-1;35521:12:0;;35503:115;;;-1:-1:-1;;;35503:115:0;;-1:-1:-1;;;;;35503:115:0;;;;;;;;;;;;;;;;35521:12;;;;;35503:48;;:115;;;;;;;;;;;;;;35521:12;35503:115;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35503:115:0;35475:143;35471:187;;;35642:4;35635:11;;;;;35471:187;35668:13;35684:10;:8;:10::i;:::-;35668:26;-1:-1:-1;;;;;;35723:19:0;;;;:234;;;35822:5;-1:-1:-1;;;;;35812:58:0;;:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35812:60:0;35761:170;;;-1:-1:-1;;;35761:170:0;;-1:-1:-1;;;;;35761:170:0;;;;;;;;;:160;;;;;;;:170;;;;;35812:60;;35761:170;;;;;;;:160;:170;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35761:170:0;:195;;;;;35948:8;-1:-1:-1;;;;;35935:21:0;:9;-1:-1:-1;;;;;35935:21:0;;35761:195;35759:198;35723:234;35705:563;;;35984:272;36011:6;36036:8;36095:146;36151:6;36095:146;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36095:19:0;;;;;;;:11;:19;;;;;;;;:29;;;;;;;;;;;:146;:33;:146::i;:::-;-1:-1:-1;;;;;36063:19:0;;;;;;;:11;:19;;;;;;;;:29;;;;;;;;;:178;;;35984:8;:272::i;:::-;36285:4;36278:11;;;;35208:1089;;;;;;:::o;30200:102::-;30285:9;;30200:102;:::o;36633:44::-;:::o;30611:178::-;30713:12;;-1:-1:-1;;;;;30713:12:0;30699:10;:26;30691:59;;;;;-1:-1:-1;;;30691:59:0;;;;;;;;;;;;-1:-1:-1;;;30691:59:0;;;;;;;;;;;;;;;30761:20;30767:5;30774:6;30761:5;:20::i;:::-;30611:178;;:::o;30426:177::-;-1:-1:-1;;;;;30577:18:0;30545:7;30577:18;;;;;;;;;;;;30426:177::o;36385:240::-;36435:7;36455:19;36498:12;;;;;;;;;-1:-1:-1;;;;;36498:12:0;-1:-1:-1;;;;;36477:46:0;;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36477:48:0;;-1:-1:-1;;;;;;36543:25:0;;;:74;;36597:11;-1:-1:-1;;;;;36584:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36584:33:0;36543:74;;;36579:1;36543:74;36536:81;;;36385:240;:::o;30088:104::-;30177:7;30170:14;;;;;;;;-1:-1:-1;;30170:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30144:13;;30170:14;;30177:7;;30170:14;;30177:7;30170:14;;;;;;;;;;;;;;;;;;;;;;;;30797:336;30913:12;;-1:-1:-1;;;;;30913:12:0;30899:10;:26;;:147;;-1:-1:-1;30965:12:0;;30947:40;;;-1:-1:-1;;;30947:40:0;;;;30999:1;;-1:-1:-1;;;;;30965:12:0;;30947:38;;:40;;;;;;;;;;;;;;30965:12;30947:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30947:40:0;-1:-1:-1;;;;;30947:54:0;;:98;;;;-1:-1:-1;31026:10:0;-1:-1:-1;;;;;31026:19:0;;;30947:98;30877:217;;;;;-1:-1:-1;;;30877:217:0;;;;;;;;;;;;-1:-1:-1;;;30877:217:0;;;;;;;;;;;;;;;31105:20;31111:5;31118:6;31105:5;:20::i;34802:398::-;34867:15;34895:10;:8;:10::i;:::-;34867:39;;34984:5;-1:-1:-1;;;;;34984:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34984:43:0;34939:159;;;-1:-1:-1;;;34939:159:0;;35087:10;34939:159;;;;;;-1:-1:-1;;;;;34939:147:0;;;;;;:159;;;;;34984:43;;34939:159;;;;;;;;:147;:159;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34939:159:0;34917:229;;;;;-1:-1:-1;;;34917:229:0;;;;;;;;;;;;-1:-1:-1;;;34917:229:0;;;;;;;;;;;;;;;35157:35;35177:5;35185:6;35157:11;:35::i;31141:216::-;31263:4;31285:42;31295:12;:10;:12::i;:::-;31309:9;31320:6;31285:9;:42::i;29455:291::-;29530:12;;-1:-1:-1;;;;;29530:12:0;:26;29522:59;;;;;-1:-1:-1;;;29522:59:0;;;;;;;;;;;;-1:-1:-1;;;29522:59:0;;;;;;;;;;;;;;;29654:12;:25;;-1:-1:-1;;;;;;29654:25:0;29669:10;29654:25;;;;;;29717:9;:20;;;29622:116;;;-1:-1:-1;;;29622:116:0;;;;;;;;;;:94;;:116;;;;;29654:12;;29622:116;;;;;;;;29669:10;29622:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29622:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29622:116:0;;;;;;;;;;-1:-1:-1;29622:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29622:116:0;;;;;;;;;;-1:-1:-1;29622:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29622:116:0;;;;;;;29609:9;29592:146;;;;;29622:116;;-1:-1:-1;29593:5:0;;-1:-1:-1;29593:5:0;;29592:146;;29600:7;;29592:146;;;;:::i;:::-;-1:-1:-1;;29592:146:0;;;;;;;;;;:::i;:::-;;;;;29455:291;:::o;29754:108::-;29842:12;;-1:-1:-1;;;;;29842:12:0;29754:108;:::o;29870:102::-;29955:9;;29870:102;:::o;31365:426::-;-1:-1:-1;;;;;31558:18:0;;;31499:23;31558:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;31614:20;;:101;;;;-1:-1:-1;31669:12:0;;31651:64;;;-1:-1:-1;;;31651:64:0;;-1:-1:-1;;;;;31651:64:0;;;;;;;;;;;;;;;;31669:12;;;;;31651:48;;:64;;;;;;;;;;;;;;31669:12;31651:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31651:64:0;31614:101;31596:188;;;-1:-1:-1;31760:12:0;;31365:426;;;;:::o;16823:106::-;16911:10;16823:106;:::o;34166:380::-;-1:-1:-1;;;;;34302:19:0;;34294:68;;;;-1:-1:-1;;;34294:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34381:21:0;;34373:68;;;;-1:-1:-1;;;34373:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34454:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;34506:32;;;;;;;;;;;;;;;;;34166:380;;;:::o;32765:668::-;-1:-1:-1;;;;;32905:20:0;;32897:70;;;;-1:-1:-1;;;32897:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32986:23:0;;32978:71;;;;-1:-1:-1;;;32978:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33082:108;33118:6;33082:108;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33082:17:0;;:9;:17;;;;;;;;;;;;:108;:21;:108::i;:::-;-1:-1:-1;;;;;33062:17:0;;;:9;:17;;;;;;;;;;;:128;;;;33224:20;;;;;;;:32;;33249:6;33224:24;:32::i;:::-;-1:-1:-1;;;;;33201:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;33272:35;;;;;;;33201:20;;33272:35;;;;;;;;;;;;;33336:12;;-1:-1:-1;;;;;33336:12:0;33318:55;33374:12;:10;:12::i;:::-;33388:6;33396:9;33407;;33418:6;33318:107;;;;;;;;;;;;;-1:-1:-1;;;;;33318:107:0;;;;;;-1:-1:-1;;;;;33318:107:0;;;;;;-1:-1:-1;;;;;33318:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32765:668;;;:::o;19036:192::-;19122:7;19158:12;19150:6;;;;19142:29;;;;-1:-1:-1;;;19142:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;19194:5:0;;;19036:192::o;33441:316::-;-1:-1:-1;;;;;33525:21:0;;33517:65;;;;;-1:-1:-1;;;33517:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;33610:12;;:24;;33627:6;33610:16;:24::i;:::-;33595:12;:39;-1:-1:-1;;;;;33666:18:0;;:9;:18;;;;;;;;;;;:30;;33689:6;33666:22;:30::i;:::-;-1:-1:-1;;;;;33645:18:0;;:9;:18;;;;;;;;;;;:51;;;;33712:37;;;;;;;33645:18;;:9;;33712:37;;;;;;;;;;33441:316;;:::o;33765:393::-;-1:-1:-1;;;;;33849:21:0;;33841:67;;;;-1:-1:-1;;;33841:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33942:105;33979:6;33942:105;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33942:18:0;;:9;:18;;;;;;;;;;;;:105;:22;:105::i;:::-;-1:-1:-1;;;;;33921:18:0;;:9;:18;;;;;;;;;;:126;34073:12;;:24;;34090:6;34073:16;:24::i;:::-;34058:12;:39;34113:37;;;;;;;;34139:1;;-1:-1:-1;;;;;34113:37:0;;;;;;;;;;;;33765:393;;:::o;18133:181::-;18191:7;18223:5;;;18247:6;;;;18239:46;;;;;-1:-1:-1;;;18239:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;18597:136;18655:7;18682:43;18686:1;18689;18682:43;;;;;;;;;;;;;;;;;:3;:43::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;
Swarm Source
ipfs://43ae8ffbc3c4d282e1645795df1727a981dc402653ba9250776c1e7d5bf0dd32
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.