Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 274 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Sale Data | 14382605 | 1453 days ago | IN | 0 ETH | 0.00151997 | ||||
| Suei Bian Buy | 14049355 | 1504 days ago | IN | 0.08 ETH | 0.00593444 | ||||
| Withdraw | 14042954 | 1505 days ago | IN | 0 ETH | 0.00318825 | ||||
| Suei Bian Buy | 14042936 | 1505 days ago | IN | 0.08 ETH | 0.01451469 | ||||
| Suei Bian Buy | 14042935 | 1505 days ago | IN | 0.08 ETH | 0.01412903 | ||||
| Suei Bian Buy | 14042931 | 1505 days ago | IN | 0.08 ETH | 0.01294205 | ||||
| Suei Bian Buy | 14042928 | 1505 days ago | IN | 0.08 ETH | 0.01382667 | ||||
| Suei Bian Buy | 14042923 | 1505 days ago | IN | 0.08 ETH | 0.0174469 | ||||
| Suei Bian Buy | 14042922 | 1505 days ago | IN | 0.16 ETH | 0.02617139 | ||||
| Suei Bian Buy | 14042916 | 1505 days ago | IN | 0.08 ETH | 0.01908007 | ||||
| Suei Bian Buy | 14042916 | 1505 days ago | IN | 0.08 ETH | 0.01979543 | ||||
| Suei Bian Buy | 14042916 | 1505 days ago | IN | 0.08 ETH | 0.01949336 | ||||
| Suei Bian Buy | 14042916 | 1505 days ago | IN | 0.16 ETH | 0.0323047 | ||||
| Suei Bian Buy | 14042916 | 1505 days ago | IN | 0.16 ETH | 0.0323047 | ||||
| Suei Bian Buy | 14042916 | 1505 days ago | IN | 0.08 ETH | 0.01949336 | ||||
| Suei Bian Buy | 14042915 | 1505 days ago | IN | 0.16 ETH | 0.02880061 | ||||
| Suei Bian Buy | 14042911 | 1505 days ago | IN | 0.08 ETH | 0.01498557 | ||||
| Suei Bian Buy | 14042911 | 1505 days ago | IN | 0.08 ETH | 0.01453892 | ||||
| Suei Bian Buy | 14042911 | 1505 days ago | IN | 0.08 ETH | 0.01475689 | ||||
| Suei Bian Buy | 14042909 | 1505 days ago | IN | 0.08 ETH | 0.01631435 | ||||
| Suei Bian Buy | 14042908 | 1505 days ago | IN | 0.08 ETH | 0.01455327 | ||||
| Suei Bian Buy | 14042907 | 1505 days ago | IN | 0.08 ETH | 0.01313767 | ||||
| Suei Bian Buy | 14042907 | 1505 days ago | IN | 0.08 ETH | 0.01313767 | ||||
| Suei Bian Buy | 14042905 | 1505 days ago | IN | 0.16 ETH | 0.02296014 | ||||
| Suei Bian Buy | 14042903 | 1505 days ago | IN | 0.16 ETH | 0.0244017 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SueiBianDispenser
Compiler Version
v0.8.7+commit.e28d00a7
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.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
enum SaleStage {
None,
FirstWhiteList,
SecondWhiteList,
PublicSale
}
interface NFT {
function mint(address receiver) external;
}
contract SueiBianDispenser is Ownable, ReentrancyGuard {
using Strings for uint256;
using MerkleProof for bytes32[];
uint256 public firstWhiteListSaleStartTime = 1642683600; // Jan 20th 2022. 9:00PM UTC+8
uint256 public firstWhiteListSaleEndTime = 1642685400; // Jan 20th 2022. 9:30PM UTC+8
uint256 public firstWhiteListSaleRemainingCount = 120;
uint256 public secondWhiteListSaleStartTime = 1642685400; // Jan 20th 2022. 9:30PM UTC+8
uint256 public secondWhiteListSaleEndTime = 1642687200; // Jan 20th 2022. 10:00PM UTC+8
uint256 public secondWhiteListSaleRemainingCount = 180;
uint256 public publicSaleStartTime = 1642687200; // Jan 20th 2022. 10:00PM UTC+8
uint256 public publicSaleEndTime = 1642689000; // Jan 20th 2022. 10:30PM UTC+8
uint256 public publicSalePurchasedCount = 0;
uint256 public publicSaleMaxPurchaseAmount = 3;
uint256 public maxDispenseCount = 300;
uint256 public mintPrice = 0.08 ether;
bytes32 private _firstWhiteListMerkleRoot;
bytes32 private _secondWhiteListMerkleRoot;
address public sueiBianDAOAddress;
mapping(address => bool) public firstWhiteListPurchased;
mapping(address => bool) public secondWhiteListPurchased;
constructor(address _sueiBianDAOAddress) {
sueiBianDAOAddress = _sueiBianDAOAddress;
}
/* ************** */
/* USER FUNCTIONS */
/* ************** */
function publicSaleRemainingCount() public view returns (uint256) {
uint256 totalWhiteListRemainingCount = firstWhiteListSaleRemainingCount +
secondWhiteListSaleRemainingCount;
return
publicSalePurchasedCount <= totalWhiteListRemainingCount
? totalWhiteListRemainingCount - publicSalePurchasedCount
: 0;
}
// @notice This function returns the current active sale stage
// @notice 0: NONE, 1: First Whitelist Sale, 2: Second Whitelist Sale, 3: Public Sale
function getCurrentActiveSaleStage() public view returns (SaleStage) {
bool firstWhiteListSaleIsActive = (block.timestamp >
firstWhiteListSaleStartTime) &&
(block.timestamp < firstWhiteListSaleEndTime);
if (firstWhiteListSaleIsActive) {
return SaleStage.FirstWhiteList;
}
bool secondWhiteListSaleIsActive = (block.timestamp >
secondWhiteListSaleStartTime) &&
(block.timestamp < secondWhiteListSaleEndTime);
if (secondWhiteListSaleIsActive) {
return SaleStage.SecondWhiteList;
}
bool publicSaleIsActive = (block.timestamp > publicSaleStartTime) &&
(block.timestamp < publicSaleEndTime);
if (publicSaleIsActive) {
return SaleStage.PublicSale;
}
return SaleStage.None;
}
function sueiBianBuy(bytes32[] calldata proof, uint256 numberOfTokens)
external
payable
nonReentrant
{
require(
msg.value == mintPrice * numberOfTokens,
"sent ether value incorrect"
);
SaleStage currentActiveSaleStage = getCurrentActiveSaleStage();
require(
currentActiveSaleStage != SaleStage.None,
"no active sale right now"
);
require(numberOfTokens > 0, "numberOfTokens cannot be 0");
if (currentActiveSaleStage == SaleStage.FirstWhiteList) {
_sueiBianBuyFirstWhiteList(proof, numberOfTokens);
} else if (currentActiveSaleStage == SaleStage.SecondWhiteList) {
_sueiBianBuySecondWhiteList(proof, numberOfTokens);
} else {
_sueiBianBuyPublicSale(numberOfTokens);
}
}
function _sueiBianBuyFirstWhiteList(
bytes32[] calldata proof,
uint256 numberOfTokens
) internal {
require(
!firstWhiteListPurchased[msg.sender],
"firstWhiteListPurchased already"
);
require(
proof.verify(
_firstWhiteListMerkleRoot,
keccak256(abi.encodePacked(msg.sender, numberOfTokens))
),
"failed to verify first WL merkle root"
);
require(
firstWhiteListSaleRemainingCount >= numberOfTokens,
"first whitelist sold out"
);
firstWhiteListPurchased[msg.sender] = true;
firstWhiteListSaleRemainingCount -= numberOfTokens;
for (uint256 i = 0; i < numberOfTokens; i++) {
NFT(sueiBianDAOAddress).mint(msg.sender);
}
}
function _sueiBianBuySecondWhiteList(
bytes32[] calldata proof,
uint256 numberOfTokens
) internal {
require(
!secondWhiteListPurchased[msg.sender],
"secondWhiteListPurchased already"
);
require(
proof.verify(
_secondWhiteListMerkleRoot,
keccak256(abi.encodePacked(msg.sender, numberOfTokens))
),
"failed to verify second WL merkle root"
);
require(
secondWhiteListSaleRemainingCount >= numberOfTokens,
"second whitelist sold out"
);
secondWhiteListPurchased[msg.sender] = true;
secondWhiteListSaleRemainingCount -= numberOfTokens;
for (uint256 i = 0; i < numberOfTokens; i++) {
NFT(sueiBianDAOAddress).mint(msg.sender);
}
}
function _sueiBianBuyPublicSale(uint256 numberOfTokens) internal {
require(
publicSaleRemainingCount() >= numberOfTokens,
"public sale sold out"
);
require(
numberOfTokens <= publicSaleMaxPurchaseAmount,
"numberOfTokens exceeds publicSaleMaxPurchaseAmount"
);
publicSalePurchasedCount += numberOfTokens;
for (uint256 i = 0; i < numberOfTokens; i++) {
NFT(sueiBianDAOAddress).mint(msg.sender);
}
}
/* *************** */
/* ADMIN FUNCTIONS */
/* *************** */
function setMerkleRoots(bytes32 _firstMerkleRoot, bytes32 _secondMerkleRoot)
external
onlyOwner
{
_firstWhiteListMerkleRoot = _firstMerkleRoot;
_secondWhiteListMerkleRoot = _secondMerkleRoot;
}
function setSaleData(
uint256 _firstWhiteListSaleStartTime,
uint256 _firstWhiteListSaleEndTime,
uint256 _firstWhiteListSaleRemainingCount,
uint256 _secondWhiteListSaleStartTime,
uint256 _secondWhiteListSaleEndTime,
uint256 _secondWhiteListSaleRemainingCount,
uint256 _publicSaleStartTime,
uint256 _publicSaleEndTime,
uint256 _publicSalePurchasedCount,
uint256 _publicSaleMaxPurchaseAmount,
uint256 _maxDispenseCount,
uint256 _mintPrice
) external onlyOwner {
firstWhiteListSaleStartTime = _firstWhiteListSaleStartTime;
firstWhiteListSaleEndTime = _firstWhiteListSaleEndTime;
firstWhiteListSaleRemainingCount = _firstWhiteListSaleRemainingCount;
secondWhiteListSaleStartTime = _secondWhiteListSaleStartTime;
secondWhiteListSaleEndTime = _secondWhiteListSaleEndTime;
secondWhiteListSaleRemainingCount = _secondWhiteListSaleRemainingCount;
publicSaleStartTime = _publicSaleStartTime;
publicSaleEndTime = _publicSaleEndTime;
publicSalePurchasedCount = _publicSalePurchasedCount;
publicSaleMaxPurchaseAmount = _publicSaleMaxPurchaseAmount;
maxDispenseCount = _maxDispenseCount;
mintPrice = _mintPrice;
}
function withdraw() public onlyOwner {
uint256 balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
// Hash(current element of the proof + current computed hash)
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
}
}
// Check if the computed hash (root) is equal to the provided root
return computedHash == root;
}
}// 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 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);
}
}// 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;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_sueiBianDAOAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"firstWhiteListPurchased","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstWhiteListSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstWhiteListSaleRemainingCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstWhiteListSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentActiveSaleStage","outputs":[{"internalType":"enum SaleStage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDispenseCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleMaxPurchaseAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePurchasedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleRemainingCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"secondWhiteListPurchased","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondWhiteListSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondWhiteListSaleRemainingCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondWhiteListSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_firstMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_secondMerkleRoot","type":"bytes32"}],"name":"setMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_firstWhiteListSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_firstWhiteListSaleEndTime","type":"uint256"},{"internalType":"uint256","name":"_firstWhiteListSaleRemainingCount","type":"uint256"},{"internalType":"uint256","name":"_secondWhiteListSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_secondWhiteListSaleEndTime","type":"uint256"},{"internalType":"uint256","name":"_secondWhiteListSaleRemainingCount","type":"uint256"},{"internalType":"uint256","name":"_publicSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_publicSaleEndTime","type":"uint256"},{"internalType":"uint256","name":"_publicSalePurchasedCount","type":"uint256"},{"internalType":"uint256","name":"_publicSaleMaxPurchaseAmount","type":"uint256"},{"internalType":"uint256","name":"_maxDispenseCount","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setSaleData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"sueiBianBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"sueiBianDAOAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526361e95cd06002556361e963d860035560786004556361e963d86005556361e96ae060065560b46007556361e96ae06008556361e971e86009556000600a556003600b5561012c600c5567011c37937e080000600d5534801561006657600080fd5b5060405161129d38038061129d83398101604081905261008591610107565b61008e336100b7565b60018055601080546001600160a01b0319166001600160a01b0392909216919091179055610137565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561011957600080fd5b81516001600160a01b038116811461013057600080fd5b9392505050565b611157806101466000396000f3fe60806040526004361061014b5760003560e01c8063715018a6116100b6578063a384d2561161006f578063a384d2561461035c578063c963243814610372578063d0e924b414610388578063e59b40e5146103b8578063f10a3e05146103ce578063f2fde38b146103e357600080fd5b8063715018a6146102a9578063735b04a6146102be57806389322d60146102d45780638da5cb5b146102ea57806393a75f001461031c5780639a48eb511461033c57600080fd5b806342ccc06c1161010857806342ccc06c1461021c578063474b0e231461023e57806360bb738214610251578063612721c3146102675780636817c76c1461027d5780636bb7b1d91461029357600080fd5b8063028cc645146101505780631e4d185f14610179578063216929281461018f57806331e480d4146101b15780633ccfd60b146101c75780633ead9cca146101dc575b600080fd5b34801561015c57600080fd5b5061016660025481565b6040519081526020015b60405180910390f35b34801561018557600080fd5b5061016660095481565b34801561019b57600080fd5b506101af6101aa366004610f9e565b610403565b005b3480156101bd57600080fd5b5061016660055481565b3480156101d357600080fd5b506101af61046e565b3480156101e857600080fd5b5061020c6101f7366004610ed1565b60126020526000908152604090205460ff1681565b6040519015158152602001610170565b34801561022857600080fd5b506102316104cb565b6040516101709190611019565b6101af61024c366004610f01565b610545565b34801561025d57600080fd5b50610166600a5481565b34801561027357600080fd5b5061016660075481565b34801561028957600080fd5b50610166600d5481565b34801561029f57600080fd5b5061016660085481565b3480156102b557600080fd5b506101af610719565b3480156102ca57600080fd5b50610166600c5481565b3480156102e057600080fd5b5061016660065481565b3480156102f657600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610170565b34801561032857600080fd5b50601054610304906001600160a01b031681565b34801561034857600080fd5b506101af610357366004610f7c565b61074f565b34801561036857600080fd5b5061016660035481565b34801561037e57600080fd5b50610166600b5481565b34801561039457600080fd5b5061020c6103a3366004610ed1565b60116020526000908152604090205460ff1681565b3480156103c457600080fd5b5061016660045481565b3480156103da57600080fd5b50610166610784565b3480156103ef57600080fd5b506101af6103fe366004610ed1565b6107bd565b6000546001600160a01b031633146104365760405162461bcd60e51b815260040161042d90611041565b60405180910390fd5b60029b909b55600399909955600497909755600595909555600693909355600791909155600855600955600a55600b55600c55600d55565b6000546001600160a01b031633146104985760405162461bcd60e51b815260040161042d90611041565b6040514790339082156108fc029083906000818181858888f193505050501580156104c7573d6000803e3d6000fd5b5050565b600080600254421180156104e0575060035442105b905080156104f057600191505090565b600060055442118015610504575060065442105b905080156105155760029250505090565b600060085442118015610529575060095442105b9050801561053b576003935050505090565b6000935050505090565b600260015414156105985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161042d565b6002600155600d546105ab90829061108e565b34146105f95760405162461bcd60e51b815260206004820152601a60248201527f73656e742065746865722076616c756520696e636f7272656374000000000000604482015260640161042d565b60006106036104cb565b90506000816003811115610619576106196110f5565b14156106675760405162461bcd60e51b815260206004820152601860248201527f6e6f206163746976652073616c65207269676874206e6f770000000000000000604482015260640161042d565b600082116106b75760405162461bcd60e51b815260206004820152601a60248201527f6e756d6265724f66546f6b656e732063616e6e6f742062652030000000000000604482015260640161042d565b60018160038111156106cb576106cb6110f5565b14156106e1576106dc848484610858565b61070f565b60028160038111156106f5576106f56110f5565b1415610706576106dc848484610a98565b61070f82610c84565b5050600180555050565b6000546001600160a01b031633146107435760405162461bcd60e51b815260040161042d90611041565b61074d6000610dd2565b565b6000546001600160a01b031633146107795760405162461bcd60e51b815260040161042d90611041565b600e91909155600f55565b6000806007546004546107979190611076565b905080600a5411156107aa5760006107b7565b600a546107b790826110ad565b91505090565b6000546001600160a01b031633146107e75760405162461bcd60e51b815260040161042d90611041565b6001600160a01b03811661084c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161042d565b61085581610dd2565b50565b3360009081526011602052604090205460ff16156108b85760405162461bcd60e51b815260206004820152601f60248201527f666972737457686974654c69737450757263686173656420616c726561647900604482015260640161042d565b600e546040516bffffffffffffffffffffffff193360601b1660208201526034810183905261093991906054015b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929493925050610e229050565b6109935760405162461bcd60e51b815260206004820152602560248201527f6661696c656420746f2076657269667920666972737420574c206d65726b6c65604482015264081c9bdbdd60da1b606482015260840161042d565b8060045410156109e55760405162461bcd60e51b815260206004820152601860248201527f66697273742077686974656c69737420736f6c64206f75740000000000000000604482015260640161042d565b336000908152601160205260408120805460ff1916600117905560048054839290610a119084906110ad565b90915550600090505b81811015610a92576010546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b158015610a6757600080fd5b505af1158015610a7b573d6000803e3d6000fd5b505050508080610a8a906110c4565b915050610a1a565b50505050565b3360009081526012602052604090205460ff1615610af85760405162461bcd60e51b815260206004820181905260248201527f7365636f6e6457686974654c69737450757263686173656420616c7265616479604482015260640161042d565b600f546040516bffffffffffffffffffffffff193360601b16602082015260348101839052610b2a91906054016108e6565b610b855760405162461bcd60e51b815260206004820152602660248201527f6661696c656420746f20766572696679207365636f6e6420574c206d65726b6c60448201526519481c9bdbdd60d21b606482015260840161042d565b806007541015610bd75760405162461bcd60e51b815260206004820152601960248201527f7365636f6e642077686974656c69737420736f6c64206f757400000000000000604482015260640161042d565b336000908152601260205260408120805460ff1916600117905560078054839290610c039084906110ad565b90915550600090505b81811015610a92576010546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b158015610c5957600080fd5b505af1158015610c6d573d6000803e3d6000fd5b505050508080610c7c906110c4565b915050610c0c565b80610c8d610784565b1015610cd25760405162461bcd60e51b81526020600482015260146024820152731c1d589b1a58c81cd85b19481cdbdb19081bdd5d60621b604482015260640161042d565b600b54811115610d3f5760405162461bcd60e51b815260206004820152603260248201527f6e756d6265724f66546f6b656e732065786365656473207075626c696353616c6044820152711953585e141d5c98da185cd9505b5bdd5b9d60721b606482015260840161042d565b80600a6000828254610d519190611076565b90915550600090505b818110156104c7576010546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b158015610da757600080fd5b505af1158015610dbb573d6000803e3d6000fd5b505050508080610dca906110c4565b915050610d5a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b8551811015610ec6576000868281518110610e4457610e4461110b565b60200260200101519050808311610e86576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610eb3565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610ebe816110c4565b915050610e27565b509092149392505050565b600060208284031215610ee357600080fd5b81356001600160a01b0381168114610efa57600080fd5b9392505050565b600080600060408486031215610f1657600080fd5b833567ffffffffffffffff80821115610f2e57600080fd5b818601915086601f830112610f4257600080fd5b813581811115610f5157600080fd5b8760208260051b8501011115610f6657600080fd5b6020928301989097509590910135949350505050565b60008060408385031215610f8f57600080fd5b50508035926020909101359150565b6000806000806000806000806000806000806101808d8f031215610fc157600080fd5b50508a359c60208c01359c5060408c01359b60608101359b5060808101359a5060a0810135995060c0810135985060e08101359750610100810135965061012081013595506101408101359450610160013592509050565b602081016004831061103b57634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611089576110896110df565b500190565b60008160001904831182151516156110a8576110a86110df565b500290565b6000828210156110bf576110bf6110df565b500390565b60006000198214156110d8576110d86110df565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212204ededa95176b7049766179f6b447324df270b19accd463a6566fff3a567b8e4364736f6c63430008070033000000000000000000000000a720a6754b20e1204e77a4f1625410c6e9e8413a
Deployed Bytecode
0x60806040526004361061014b5760003560e01c8063715018a6116100b6578063a384d2561161006f578063a384d2561461035c578063c963243814610372578063d0e924b414610388578063e59b40e5146103b8578063f10a3e05146103ce578063f2fde38b146103e357600080fd5b8063715018a6146102a9578063735b04a6146102be57806389322d60146102d45780638da5cb5b146102ea57806393a75f001461031c5780639a48eb511461033c57600080fd5b806342ccc06c1161010857806342ccc06c1461021c578063474b0e231461023e57806360bb738214610251578063612721c3146102675780636817c76c1461027d5780636bb7b1d91461029357600080fd5b8063028cc645146101505780631e4d185f14610179578063216929281461018f57806331e480d4146101b15780633ccfd60b146101c75780633ead9cca146101dc575b600080fd5b34801561015c57600080fd5b5061016660025481565b6040519081526020015b60405180910390f35b34801561018557600080fd5b5061016660095481565b34801561019b57600080fd5b506101af6101aa366004610f9e565b610403565b005b3480156101bd57600080fd5b5061016660055481565b3480156101d357600080fd5b506101af61046e565b3480156101e857600080fd5b5061020c6101f7366004610ed1565b60126020526000908152604090205460ff1681565b6040519015158152602001610170565b34801561022857600080fd5b506102316104cb565b6040516101709190611019565b6101af61024c366004610f01565b610545565b34801561025d57600080fd5b50610166600a5481565b34801561027357600080fd5b5061016660075481565b34801561028957600080fd5b50610166600d5481565b34801561029f57600080fd5b5061016660085481565b3480156102b557600080fd5b506101af610719565b3480156102ca57600080fd5b50610166600c5481565b3480156102e057600080fd5b5061016660065481565b3480156102f657600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610170565b34801561032857600080fd5b50601054610304906001600160a01b031681565b34801561034857600080fd5b506101af610357366004610f7c565b61074f565b34801561036857600080fd5b5061016660035481565b34801561037e57600080fd5b50610166600b5481565b34801561039457600080fd5b5061020c6103a3366004610ed1565b60116020526000908152604090205460ff1681565b3480156103c457600080fd5b5061016660045481565b3480156103da57600080fd5b50610166610784565b3480156103ef57600080fd5b506101af6103fe366004610ed1565b6107bd565b6000546001600160a01b031633146104365760405162461bcd60e51b815260040161042d90611041565b60405180910390fd5b60029b909b55600399909955600497909755600595909555600693909355600791909155600855600955600a55600b55600c55600d55565b6000546001600160a01b031633146104985760405162461bcd60e51b815260040161042d90611041565b6040514790339082156108fc029083906000818181858888f193505050501580156104c7573d6000803e3d6000fd5b5050565b600080600254421180156104e0575060035442105b905080156104f057600191505090565b600060055442118015610504575060065442105b905080156105155760029250505090565b600060085442118015610529575060095442105b9050801561053b576003935050505090565b6000935050505090565b600260015414156105985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161042d565b6002600155600d546105ab90829061108e565b34146105f95760405162461bcd60e51b815260206004820152601a60248201527f73656e742065746865722076616c756520696e636f7272656374000000000000604482015260640161042d565b60006106036104cb565b90506000816003811115610619576106196110f5565b14156106675760405162461bcd60e51b815260206004820152601860248201527f6e6f206163746976652073616c65207269676874206e6f770000000000000000604482015260640161042d565b600082116106b75760405162461bcd60e51b815260206004820152601a60248201527f6e756d6265724f66546f6b656e732063616e6e6f742062652030000000000000604482015260640161042d565b60018160038111156106cb576106cb6110f5565b14156106e1576106dc848484610858565b61070f565b60028160038111156106f5576106f56110f5565b1415610706576106dc848484610a98565b61070f82610c84565b5050600180555050565b6000546001600160a01b031633146107435760405162461bcd60e51b815260040161042d90611041565b61074d6000610dd2565b565b6000546001600160a01b031633146107795760405162461bcd60e51b815260040161042d90611041565b600e91909155600f55565b6000806007546004546107979190611076565b905080600a5411156107aa5760006107b7565b600a546107b790826110ad565b91505090565b6000546001600160a01b031633146107e75760405162461bcd60e51b815260040161042d90611041565b6001600160a01b03811661084c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161042d565b61085581610dd2565b50565b3360009081526011602052604090205460ff16156108b85760405162461bcd60e51b815260206004820152601f60248201527f666972737457686974654c69737450757263686173656420616c726561647900604482015260640161042d565b600e546040516bffffffffffffffffffffffff193360601b1660208201526034810183905261093991906054015b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929493925050610e229050565b6109935760405162461bcd60e51b815260206004820152602560248201527f6661696c656420746f2076657269667920666972737420574c206d65726b6c65604482015264081c9bdbdd60da1b606482015260840161042d565b8060045410156109e55760405162461bcd60e51b815260206004820152601860248201527f66697273742077686974656c69737420736f6c64206f75740000000000000000604482015260640161042d565b336000908152601160205260408120805460ff1916600117905560048054839290610a119084906110ad565b90915550600090505b81811015610a92576010546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b158015610a6757600080fd5b505af1158015610a7b573d6000803e3d6000fd5b505050508080610a8a906110c4565b915050610a1a565b50505050565b3360009081526012602052604090205460ff1615610af85760405162461bcd60e51b815260206004820181905260248201527f7365636f6e6457686974654c69737450757263686173656420616c7265616479604482015260640161042d565b600f546040516bffffffffffffffffffffffff193360601b16602082015260348101839052610b2a91906054016108e6565b610b855760405162461bcd60e51b815260206004820152602660248201527f6661696c656420746f20766572696679207365636f6e6420574c206d65726b6c60448201526519481c9bdbdd60d21b606482015260840161042d565b806007541015610bd75760405162461bcd60e51b815260206004820152601960248201527f7365636f6e642077686974656c69737420736f6c64206f757400000000000000604482015260640161042d565b336000908152601260205260408120805460ff1916600117905560078054839290610c039084906110ad565b90915550600090505b81811015610a92576010546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b158015610c5957600080fd5b505af1158015610c6d573d6000803e3d6000fd5b505050508080610c7c906110c4565b915050610c0c565b80610c8d610784565b1015610cd25760405162461bcd60e51b81526020600482015260146024820152731c1d589b1a58c81cd85b19481cdbdb19081bdd5d60621b604482015260640161042d565b600b54811115610d3f5760405162461bcd60e51b815260206004820152603260248201527f6e756d6265724f66546f6b656e732065786365656473207075626c696353616c6044820152711953585e141d5c98da185cd9505b5bdd5b9d60721b606482015260840161042d565b80600a6000828254610d519190611076565b90915550600090505b818110156104c7576010546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b158015610da757600080fd5b505af1158015610dbb573d6000803e3d6000fd5b505050508080610dca906110c4565b915050610d5a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b8551811015610ec6576000868281518110610e4457610e4461110b565b60200260200101519050808311610e86576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610eb3565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610ebe816110c4565b915050610e27565b509092149392505050565b600060208284031215610ee357600080fd5b81356001600160a01b0381168114610efa57600080fd5b9392505050565b600080600060408486031215610f1657600080fd5b833567ffffffffffffffff80821115610f2e57600080fd5b818601915086601f830112610f4257600080fd5b813581811115610f5157600080fd5b8760208260051b8501011115610f6657600080fd5b6020928301989097509590910135949350505050565b60008060408385031215610f8f57600080fd5b50508035926020909101359150565b6000806000806000806000806000806000806101808d8f031215610fc157600080fd5b50508a359c60208c01359c5060408c01359b60608101359b5060808101359a5060a0810135995060c0810135985060e08101359750610100810135965061012081013595506101408101359450610160013592509050565b602081016004831061103b57634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611089576110896110df565b500190565b60008160001904831182151516156110a8576110a86110df565b500290565b6000828210156110bf576110bf6110df565b500390565b60006000198214156110d8576110d86110df565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212204ededa95176b7049766179f6b447324df270b19accd463a6566fff3a567b8e4364736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a720a6754b20e1204e77a4f1625410c6e9e8413a
-----Decoded View---------------
Arg [0] : _sueiBianDAOAddress (address): 0xa720A6754B20E1204e77A4F1625410C6e9E8413A
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a720a6754b20e1204e77a4f1625410c6e9e8413a
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 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.