Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Get Free Ticket | 23636785 | 87 days ago | IN | 0 ETH | 0.00023724 |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x3E0E0f1c...A2eF171C1 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Raffle
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 2000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @title Raffle contract to start a raffle with as many users as possible /// @author @Bullrich /// @notice Only the deployer of the contract can finish the raffle /// @custom:security-contact [email protected] contract Raffle is Ownable { using EnumerableSet for EnumerableSet.AddressSet; /// Different type of the bundles. Used for specifying a purchase enum BundleSize { Small, Medium, Large } /// Triggered when user wants to interact with a finished raffle error RaffleOver(); /// Triggered when the owner is trying to participate in its own raffle error OwnerCannotParticipate(); /// Triggered when the purchase number or type is invalid error InvalidPurchase(); /// Triggered on lack of funds for the selected bundle error InsufficientFunds(); /// User tried to refer an address that is himself or someone who is not playing error InvalidReferral(string); /// User tried to claim the free ticket more than one error FreeTicketClaimed(); /// There was a problem while finishing the Raffle error ErrorFinishing(string); /// There was a problem while transfering funds on the finished raffle error TransferFailed(uint, address); /// Set with all the players participating. Each user has tickets EnumerableSet.AddressSet private players; /// Tickets each player owns mapping(address => uint) public tickets; /// Emitted when the raffle is over event WinnerPicked(address winner); /// Emitted when a user is referred event Referred(address referral); /// Timestamp of when the raffle ends uint public immutable raffleEndDate; /// The fixed prize that will be given to the winner /// @dev This is if that amount gets reached, if not the pot is split in half uint public immutable fixedPrize; /// Address of the winner /// @dev this value is set up only after the raffle end address public winner; /// Container of ticket information. struct Bundle { uint amount; uint price; } /// Size of the small bundle uint16 public constant SMALL_BUNDLE_AMOUNT = 45; /// Price of the small bundle uint public immutable smallBundlePrice; /// Size of the medium bundle uint16 public constant MEDIUM_BUNDLE_AMOUNT = 200; /// Price of the medium bundle /// @notice the final price should be discounted than buying the same amount of small bundles uint public immutable mediumBundlePrice; /// Size of the large bundle uint16 public constant LARGE_BUNDLE_AMOUNT = 660; /// Prize of the large bundle /// @notice the final price should be discounted than buying the same amount of small bundles uint public immutable largeBundlePrice; /// @param ticketPrice Price of each ticket (without the decimals) /// @param daysToEndDate Duration of the Raffle (in days) /// @param _fixedPrize the prize pool that we are aiming to reach. Exceding pot will go to charity constructor(uint ticketPrice, uint8 daysToEndDate, uint _fixedPrize) Ownable(msg.sender) { raffleEndDate = block.timestamp + (daysToEndDate * 1 days); fixedPrize = _fixedPrize; smallBundlePrice = ticketPrice; mediumBundlePrice = ticketPrice * 3; largeBundlePrice = ticketPrice * 5; } /// Utility method used to buy any given amount of tickets /// @param sizeOfBundle the number of tickets that will be purchased /// @param priceOfBundle the amount to pay for the bundle function buyCollectionOfTickets(uint sizeOfBundle, uint priceOfBundle) private returns (uint) { if (block.timestamp > raffleEndDate) revert RaffleOver(); if (!(sizeOfBundle > 0 && priceOfBundle > 0)) revert InvalidPurchase(); if (msg.sender == owner()) revert OwnerCannotParticipate(); if (msg.value < priceOfBundle) revert InsufficientFunds(); players.add(msg.sender); uint playerTickets = tickets[msg.sender]; tickets[msg.sender] = playerTickets + sizeOfBundle; return sizeOfBundle; } /// Gives a ticket to a user who refered this player /// @param referral address of the user to give the referal bonus /// @dev the referring user must have own a ticket, proving that they are real accounts function addReferral(address referral) private { if (referral == msg.sender) revert InvalidReferral("Referring themselves"); if (!players.contains(referral)) revert InvalidReferral("Not a player"); tickets[referral] += 1; emit Referred(referral); } /// Buy a bundle of tickets and refer a user /// @param size of the bundle /// @param referral Address to give a referral ticket on purchaser function buyTicketBundleWithReferral(BundleSize size, address referral) external payable returns (uint) { uint receipt = buyTicketBundle(size); addReferral(referral); return receipt; } /// Buy a bundle of tickets /// @param size of the bundle function buyTicketBundle(BundleSize size) public payable returns (uint) { if (size == BundleSize.Small) { return buyCollectionOfTickets(SMALL_BUNDLE_AMOUNT, smallBundlePrice); } else if (size == BundleSize.Medium) { return buyCollectionOfTickets(MEDIUM_BUNDLE_AMOUNT, mediumBundlePrice); } else if (size == BundleSize.Large) { return buyCollectionOfTickets(LARGE_BUNDLE_AMOUNT, largeBundlePrice); } else { revert InsufficientFunds(); } } /// Fallback function for when ethers is transfered randomly to this contract receive() external payable { if (msg.sender == owner()) revert OwnerCannotParticipate(); if (block.timestamp > raffleEndDate) revert RaffleOver(); if (msg.value >= largeBundlePrice) { buyCollectionOfTickets(LARGE_BUNDLE_AMOUNT, msg.value); } else if (msg.value >= mediumBundlePrice) { buyCollectionOfTickets(MEDIUM_BUNDLE_AMOUNT, msg.value); } else if (msg.value >= smallBundlePrice) { buyCollectionOfTickets(SMALL_BUNDLE_AMOUNT, msg.value); } else { revert InsufficientFunds(); } } /// Returns all the available bundles sorted from smaller to bigger function getBundles() external view returns (Bundle[] memory) { Bundle[] memory bundles = new Bundle[](3); bundles[0] = Bundle(SMALL_BUNDLE_AMOUNT, smallBundlePrice); bundles[1] = Bundle(MEDIUM_BUNDLE_AMOUNT, mediumBundlePrice); bundles[2] = Bundle(LARGE_BUNDLE_AMOUNT, largeBundlePrice); return bundles; } /// User obtains a free ticket /// @notice only the fist ticket is free function getFreeTicket() external returns (uint) { if (players.contains(msg.sender)) revert FreeTicketClaimed(); if (msg.sender == owner()) revert OwnerCannotParticipate(); players.add(msg.sender); tickets[msg.sender] = 1; return 1; } /// Calculate the total number of tickets /// @notice Can only be invoked by the contract owner function listSoldTickets() public view onlyOwner returns (uint256) { uint ticketsSold = 0; for (uint256 i = 0; i < players.length(); i++) { ticketsSold += tickets[players.at(i)]; } return ticketsSold; } /// Picks a random winner using a weighted algorithm /// @notice the algorithm randomness can be predicted if triggered automatically, better to do it manually function pickRandomWinner() private view returns (address) { uint totalTickets = listSoldTickets(); if (totalTickets == 0) revert ErrorFinishing("No players"); // Generate a pseudo-random number based on block variables uint randomNumber = uint(keccak256(abi.encodePacked(block.timestamp, block.prevrandao, block.number))) % totalTickets; uint cumulativeSum = 0; // Iterate over players to find the winner for (uint i = 0; i < players.length(); i++) { cumulativeSum += tickets[players.at(i)]; if (randomNumber < cumulativeSum) { return players.at(i); } } // This case should never occur if the function is implemented correctly revert ErrorFinishing("Unknown"); } /// See how the prize would be distributed between end users /// @return prize that will go to the winner. /// Usually it's s fixedPrize but if that amount is not reached, then it's half of the pot. /// @return donation amount. It's 75% of the remaining pot. /// @return commission that will go to the contract owner. function prizeDistribution() public view returns (uint, uint, uint) { uint prize = prizePool(); uint remainingPool = address(this).balance - prize; uint donation = (remainingPool * 75) / 100; uint commission = remainingPool - donation; return (prize, donation, commission); } /// See what would be the prize pool with the current treasury function prizePool() public view returns (uint) { if (address(this).balance > fixedPrize) { return fixedPrize; } return address(this).balance / 2; } /// Method used to finish a raffle /// @param donationAddress Address of the charity that will receive the tokens /// @notice Can only be called by the owner after the timestamp of the raffle has been reached function finishRaffle(address payable donationAddress) external onlyOwner returns (address) { if (block.timestamp < raffleEndDate) revert RaffleOver(); if (winner != address(0)) revert RaffleOver(); winner = pickRandomWinner(); emit WinnerPicked(winner); // Divide into parts (uint prize, uint donation, uint commission) = prizeDistribution(); // Send to the winner (bool successWinner, ) = payable(winner).call{value: prize}(""); if (!successWinner) revert TransferFailed(prize, winner); // Send to the charity address (bool successDonation, ) = donationAddress.call{value: donation}(""); if (!successDonation) revert TransferFailed(donation, donationAddress); // Get the commision (bool successOwner, ) = payable(owner()).call{value: commission}(""); if (!successOwner) revert TransferFailed(commission, owner()); return winner; } }
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.20;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position is the index of the value in the `values` array plus 1.
// Position 0 is used to mean a value is not in the set.
mapping(bytes32 value => uint256) _positions;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._positions[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We cache the value's position to prevent multiple reads from the same storage slot
uint256 position = set._positions[value];
if (position != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 valueIndex = position - 1;
uint256 lastIndex = set._values.length - 1;
if (valueIndex != lastIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the lastValue to the index where the value to delete is
set._values[valueIndex] = lastValue;
// Update the tracked position of the lastValue (that was just moved)
set._positions[lastValue] = position;
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the tracked position for the deleted slot
delete set._positions[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._positions[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}{
"optimizer": {
"enabled": true,
"runs": 2000
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"internalType":"uint8","name":"daysToEndDate","type":"uint8"},{"internalType":"uint256","name":"_fixedPrize","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"ErrorFinishing","type":"error"},{"inputs":[],"name":"FreeTicketClaimed","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"InvalidPurchase","type":"error"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"InvalidReferral","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerCannotParticipate","type":"error"},{"inputs":[],"name":"RaffleOver","type":"error"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"referral","type":"address"}],"name":"Referred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"winner","type":"address"}],"name":"WinnerPicked","type":"event"},{"inputs":[],"name":"LARGE_BUNDLE_AMOUNT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MEDIUM_BUNDLE_AMOUNT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMALL_BUNDLE_AMOUNT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Raffle.BundleSize","name":"size","type":"uint8"}],"name":"buyTicketBundle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"enum Raffle.BundleSize","name":"size","type":"uint8"},{"internalType":"address","name":"referral","type":"address"}],"name":"buyTicketBundleWithReferral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"donationAddress","type":"address"}],"name":"finishRaffle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fixedPrize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBundles","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct Raffle.Bundle[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFreeTicket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"largeBundlePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listSoldTickets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mediumBundlePrice","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":"prizeDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prizePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleEndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smallBundlePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tickets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"winner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
0x61012060405234801561001157600080fd5b5060405161166738038061166783398101604081905261003091610102565b338061005657604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005f816100b2565b5061007060ff831662015180610159565b61007f9062ffffff164261017e565b60805260a081905260c0839052610097836003610197565b60e0526100a5836005610197565b61010052506101ae915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060006060848603121561011757600080fd5b8351602085015190935060ff8116811461013057600080fd5b6040949094015192959394509192915050565b634e487b7160e01b600052601160045260246000fd5b62ffffff818116838216029081169081811461017757610177610143565b5092915050565b8082018082111561019157610191610143565b92915050565b808202811582820484141761019157610191610143565b60805160a05160c05160e05161010051611413610254600039600081816101e1015281816104d5015281816107e50152610d72015260008181610216015281816105660152818161078c0152610d2d015260008181610248015281816103fd015281816107340152610ce901526000818161038e01528181610bbb0152610be40152600081816101a001528181610470015281816105ac015261083601526114136000f3fe60806040526004361061016e5760003560e01c8063719ce73e116100cb5780639819ae5b1161007f578063dfbf53ae11610059578063dfbf53ae14610534578063f1c1eeb614610554578063f2fde38b1461058857600080fd5b80639819ae5b146104f7578063b4a285871461050c578063c37668dd1461052157600080fd5b806382f5e5e5116100b057806382f5e5e5146104925780638da5cb5b146104a557806390b819ea146104c357600080fd5b8063719ce73e1461044957806382d1ae7c1461045e57600080fd5b80636633e799116101225780636e52e4f9116101075780636e52e4f9146103eb578063708cbf421461041f578063715018a61461043457600080fd5b80636633e7991461037c5780636dcbf2a3146103be57600080fd5b8063240b7bd111610153578063240b7bd1146102ff578063265aa010146103145780632f2162501461034c57600080fd5b80631f642ab2146102af57806320a225cb146102dd57600080fd5b366102aa576000546001600160a01b0316330361019e576040516318c1cb5160e31b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000004211156101df57604051632c1c2d3160e21b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000341061021457610212610294346105a8565b005b7f000000000000000000000000000000000000000000000000000000000000000034106102465761021260c8346105a8565b7f0000000000000000000000000000000000000000000000000000000000000000341061027857610212602d346105a8565b6040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b3480156102bb57600080fd5b506102c561029481565b60405161ffff90911681526020015b60405180910390f35b3480156102e957600080fd5b506102f26106d7565b6040516102d4919061123e565b34801561030b57600080fd5b506102c560c881565b34801561032057600080fd5b5061033461032f3660046112a2565b61082a565b6040516001600160a01b0390911681526020016102d4565b34801561035857600080fd5b50610361610aee565b604080519384526020840192909252908201526060016102d4565b34801561038857600080fd5b506103b07f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016102d4565b3480156103ca57600080fd5b506103b06103d93660046112a2565b60036020526000908152604090205481565b3480156103f757600080fd5b506103b07f000000000000000000000000000000000000000000000000000000000000000081565b34801561042b57600080fd5b506103b0610b41565b34801561044057600080fd5b50610212610ba3565b34801561045557600080fd5b506103b0610bb7565b34801561046a57600080fd5b506103b07f000000000000000000000000000000000000000000000000000000000000000081565b6103b06104a03660046112ce565b610c16565b3480156104b157600080fd5b506000546001600160a01b0316610334565b3480156104cf57600080fd5b506103b07f000000000000000000000000000000000000000000000000000000000000000081565b34801561050357600080fd5b506103b0610c34565b34801561051857600080fd5b506102c5602d81565b6103b061052f366004611305565b610cc8565b34801561054057600080fd5b50600454610334906001600160a01b031681565b34801561056057600080fd5b506103b07f000000000000000000000000000000000000000000000000000000000000000081565b34801561059457600080fd5b506102126105a33660046112a2565b610d96565b60007f00000000000000000000000000000000000000000000000000000000000000004211156105eb57604051632c1c2d3160e21b815260040160405180910390fd5b6000831180156105fb5750600082115b610631576040517f53d1399200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b0316330361065c576040516318c1cb5160e31b815260040160405180910390fd5b81341015610696576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106a1600133610ded565b50336000908152600360205260409020546106bc8482611336565b33600090815260036020526040902055508290505b92915050565b6040805160038082526080820190925260609160009190816020015b60408051808201909152600080825260208201528152602001906001900390816106f35790505090506040518060400160405280602d61ffff1681526020017f00000000000000000000000000000000000000000000000000000000000000008152508160008151811061076957610769611349565b6020026020010181905250604051806040016040528060c861ffff1681526020017f0000000000000000000000000000000000000000000000000000000000000000815250816001815181106107c1576107c1611349565b6020026020010181905250604051806040016040528061029461ffff1681526020017f00000000000000000000000000000000000000000000000000000000000000008152508160028151811061081a5761081a611349565b6020908102919091010152919050565b6000610834610e02565b7f000000000000000000000000000000000000000000000000000000000000000042101561087557604051632c1c2d3160e21b815260040160405180910390fd5b6004546001600160a01b03161561089f57604051632c1c2d3160e21b815260040160405180910390fd5b6108a7610e48565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039290921691821790556040519081527f5b690ec4a06fe979403046eaeea5b3ce38524683c3001f662c8b5a829632f7df9060200160405180910390a1600080600061091e610aee565b60045460405193965091945092506000916001600160a01b039091169085908381818185875af1925050503d8060008114610975576040519150601f19603f3d011682016040523d82523d6000602084013e61097a565b606091505b50509050806109b5576004805460405163f68179b160e01b81529182018690526001600160a01b031660248201526044015b60405180910390fd5b6000866001600160a01b03168460405160006040518083038185875af1925050503d8060008114610a02576040519150601f19603f3d011682016040523d82523d6000602084013e610a07565b606091505b5050905080610a3b5760405163f68179b160e01b8152600481018590526001600160a01b03881660248201526044016109ac565b600080546040516001600160a01b039091169085908381818185875af1925050503d8060008114610a88576040519150601f19603f3d011682016040523d82523d6000602084013e610a8d565b606091505b5050905080610ad45783610aa96000546001600160a01b031690565b60405163f68179b160e01b815260048101929092526001600160a01b031660248201526044016109ac565b50506004546001600160a01b03169450505050505b919050565b600080600080610afc610bb7565b90506000610b0a824761135f565b905060006064610b1b83604b611372565b610b25919061139f565b90506000610b33828461135f565b939791965092945092505050565b6000610b4b610e02565b6000805b610b596001610fd5565b811015610b9d5760036000610b6f600184610fdf565b6001600160a01b03168152602081019190915260400160002054610b939083611336565b9150600101610b4f565b50905090565b610bab610e02565b610bb56000610feb565b565b60007f0000000000000000000000000000000000000000000000000000000000000000471115610c0657507f000000000000000000000000000000000000000000000000000000000000000090565b610c1160024761139f565b905090565b600080610c2284610cc8565b9050610c2d83611053565b9392505050565b6000610c416001336111a3565b15610c78576040517f88b6f62600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b03163303610ca3576040516318c1cb5160e31b815260040160405180910390fd5b610cae600133610ded565b505033600090815260036020526040902060019081905590565b600080826002811115610cdd57610cdd6113b3565b03610d0d576106d1602d7f00000000000000000000000000000000000000000000000000000000000000006105a8565b6001826002811115610d2157610d216113b3565b03610d51576106d160c87f00000000000000000000000000000000000000000000000000000000000000006105a8565b6002826002811115610d6557610d656113b3565b03610278576106d16102947f00000000000000000000000000000000000000000000000000000000000000006105a8565b610d9e610e02565b6001600160a01b038116610de1576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024016109ac565b610dea81610feb565b50565b6000610c2d836001600160a01b0384166111c5565b6000546001600160a01b03163314610bb5576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016109ac565b600080610e53610b41565b905080600003610ebf576040517f5f7a37ed00000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f20706c61796572730000000000000000000000000000000000000000000060448201526064016109ac565b60408051426020820152449181019190915243606082015260009082906080016040516020818303038152906040528051906020012060001c610f0291906113c9565b90506000805b610f126001610fd5565b811015610f725760036000610f28600184610fdf565b6001600160a01b03168152602081019190915260400160002054610f4c9083611336565b915081831015610f6a57610f61600182610fdf565b94505050505090565b600101610f08565b506040517f5f7a37ed00000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f556e6b6e6f776e0000000000000000000000000000000000000000000000000060448201526064016109ac565b60006106d1825490565b6000610c2d8383611214565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336001600160a01b038216036110c5576040517fd3f9182200000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f526566657272696e67207468656d73656c76657300000000000000000000000060448201526064016109ac565b6110d06001826111a3565b611136576040517fd3f9182200000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74206120706c61796572000000000000000000000000000000000000000060448201526064016109ac565b6001600160a01b038116600090815260036020526040812080546001929061115f908490611336565b90915550506040516001600160a01b03821681527f620e00729397bc5029eda20a891aa9246dacc2aa6a8511aa4cde32396dcd65d69060200160405180910390a150565b6001600160a01b03811660009081526001830160205260408120541515610c2d565b600081815260018301602052604081205461120c575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106d1565b5060006106d1565b600082600001828154811061122b5761122b611349565b9060005260206000200154905092915050565b602080825282518282018190526000918401906040840190835b81811015611282578351805184526020908101518185015290930192604090920191600101611258565b509095945050505050565b6001600160a01b0381168114610dea57600080fd5b6000602082840312156112b457600080fd5b8135610c2d8161128d565b803560038110610ae957600080fd5b600080604083850312156112e157600080fd5b6112ea836112bf565b915060208301356112fa8161128d565b809150509250929050565b60006020828403121561131757600080fd5b610c2d826112bf565b634e487b7160e01b600052601160045260246000fd5b808201808211156106d1576106d1611320565b634e487b7160e01b600052603260045260246000fd5b818103818111156106d1576106d1611320565b80820281158282048414176106d1576106d1611320565b634e487b7160e01b600052601260045260246000fd5b6000826113ae576113ae611389565b500490565b634e487b7160e01b600052602160045260246000fd5b6000826113d8576113d8611389565b50069056fea264697066735822122048e87cb8164bcee1ffae813e08fbfbffd90e94c69e339bf23eece937c349d29064736f6c634300081a0033000000000000000000000000000000000000000000000000000e35fa931a0000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000029a2241af62c0000
Deployed Bytecode
0x60806040526004361061016e5760003560e01c8063719ce73e116100cb5780639819ae5b1161007f578063dfbf53ae11610059578063dfbf53ae14610534578063f1c1eeb614610554578063f2fde38b1461058857600080fd5b80639819ae5b146104f7578063b4a285871461050c578063c37668dd1461052157600080fd5b806382f5e5e5116100b057806382f5e5e5146104925780638da5cb5b146104a557806390b819ea146104c357600080fd5b8063719ce73e1461044957806382d1ae7c1461045e57600080fd5b80636633e799116101225780636e52e4f9116101075780636e52e4f9146103eb578063708cbf421461041f578063715018a61461043457600080fd5b80636633e7991461037c5780636dcbf2a3146103be57600080fd5b8063240b7bd111610153578063240b7bd1146102ff578063265aa010146103145780632f2162501461034c57600080fd5b80631f642ab2146102af57806320a225cb146102dd57600080fd5b366102aa576000546001600160a01b0316330361019e576040516318c1cb5160e31b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000697d526b4211156101df57604051632c1c2d3160e21b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000470de4df820000341061021457610212610294346105a8565b005b7f000000000000000000000000000000000000000000000000002aa1efb94e000034106102465761021260c8346105a8565b7f000000000000000000000000000000000000000000000000000e35fa931a0000341061027857610212602d346105a8565b6040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b3480156102bb57600080fd5b506102c561029481565b60405161ffff90911681526020015b60405180910390f35b3480156102e957600080fd5b506102f26106d7565b6040516102d4919061123e565b34801561030b57600080fd5b506102c560c881565b34801561032057600080fd5b5061033461032f3660046112a2565b61082a565b6040516001600160a01b0390911681526020016102d4565b34801561035857600080fd5b50610361610aee565b604080519384526020840192909252908201526060016102d4565b34801561038857600080fd5b506103b07f00000000000000000000000000000000000000000000000029a2241af62c000081565b6040519081526020016102d4565b3480156103ca57600080fd5b506103b06103d93660046112a2565b60036020526000908152604090205481565b3480156103f757600080fd5b506103b07f000000000000000000000000000000000000000000000000000e35fa931a000081565b34801561042b57600080fd5b506103b0610b41565b34801561044057600080fd5b50610212610ba3565b34801561045557600080fd5b506103b0610bb7565b34801561046a57600080fd5b506103b07f00000000000000000000000000000000000000000000000000000000697d526b81565b6103b06104a03660046112ce565b610c16565b3480156104b157600080fd5b506000546001600160a01b0316610334565b3480156104cf57600080fd5b506103b07f00000000000000000000000000000000000000000000000000470de4df82000081565b34801561050357600080fd5b506103b0610c34565b34801561051857600080fd5b506102c5602d81565b6103b061052f366004611305565b610cc8565b34801561054057600080fd5b50600454610334906001600160a01b031681565b34801561056057600080fd5b506103b07f000000000000000000000000000000000000000000000000002aa1efb94e000081565b34801561059457600080fd5b506102126105a33660046112a2565b610d96565b60007f00000000000000000000000000000000000000000000000000000000697d526b4211156105eb57604051632c1c2d3160e21b815260040160405180910390fd5b6000831180156105fb5750600082115b610631576040517f53d1399200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b0316330361065c576040516318c1cb5160e31b815260040160405180910390fd5b81341015610696576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106a1600133610ded565b50336000908152600360205260409020546106bc8482611336565b33600090815260036020526040902055508290505b92915050565b6040805160038082526080820190925260609160009190816020015b60408051808201909152600080825260208201528152602001906001900390816106f35790505090506040518060400160405280602d61ffff1681526020017f000000000000000000000000000000000000000000000000000e35fa931a00008152508160008151811061076957610769611349565b6020026020010181905250604051806040016040528060c861ffff1681526020017f000000000000000000000000000000000000000000000000002aa1efb94e0000815250816001815181106107c1576107c1611349565b6020026020010181905250604051806040016040528061029461ffff1681526020017f00000000000000000000000000000000000000000000000000470de4df8200008152508160028151811061081a5761081a611349565b6020908102919091010152919050565b6000610834610e02565b7f00000000000000000000000000000000000000000000000000000000697d526b42101561087557604051632c1c2d3160e21b815260040160405180910390fd5b6004546001600160a01b03161561089f57604051632c1c2d3160e21b815260040160405180910390fd5b6108a7610e48565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039290921691821790556040519081527f5b690ec4a06fe979403046eaeea5b3ce38524683c3001f662c8b5a829632f7df9060200160405180910390a1600080600061091e610aee565b60045460405193965091945092506000916001600160a01b039091169085908381818185875af1925050503d8060008114610975576040519150601f19603f3d011682016040523d82523d6000602084013e61097a565b606091505b50509050806109b5576004805460405163f68179b160e01b81529182018690526001600160a01b031660248201526044015b60405180910390fd5b6000866001600160a01b03168460405160006040518083038185875af1925050503d8060008114610a02576040519150601f19603f3d011682016040523d82523d6000602084013e610a07565b606091505b5050905080610a3b5760405163f68179b160e01b8152600481018590526001600160a01b03881660248201526044016109ac565b600080546040516001600160a01b039091169085908381818185875af1925050503d8060008114610a88576040519150601f19603f3d011682016040523d82523d6000602084013e610a8d565b606091505b5050905080610ad45783610aa96000546001600160a01b031690565b60405163f68179b160e01b815260048101929092526001600160a01b031660248201526044016109ac565b50506004546001600160a01b03169450505050505b919050565b600080600080610afc610bb7565b90506000610b0a824761135f565b905060006064610b1b83604b611372565b610b25919061139f565b90506000610b33828461135f565b939791965092945092505050565b6000610b4b610e02565b6000805b610b596001610fd5565b811015610b9d5760036000610b6f600184610fdf565b6001600160a01b03168152602081019190915260400160002054610b939083611336565b9150600101610b4f565b50905090565b610bab610e02565b610bb56000610feb565b565b60007f00000000000000000000000000000000000000000000000029a2241af62c0000471115610c0657507f00000000000000000000000000000000000000000000000029a2241af62c000090565b610c1160024761139f565b905090565b600080610c2284610cc8565b9050610c2d83611053565b9392505050565b6000610c416001336111a3565b15610c78576040517f88b6f62600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b03163303610ca3576040516318c1cb5160e31b815260040160405180910390fd5b610cae600133610ded565b505033600090815260036020526040902060019081905590565b600080826002811115610cdd57610cdd6113b3565b03610d0d576106d1602d7f000000000000000000000000000000000000000000000000000e35fa931a00006105a8565b6001826002811115610d2157610d216113b3565b03610d51576106d160c87f000000000000000000000000000000000000000000000000002aa1efb94e00006105a8565b6002826002811115610d6557610d656113b3565b03610278576106d16102947f00000000000000000000000000000000000000000000000000470de4df8200006105a8565b610d9e610e02565b6001600160a01b038116610de1576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024016109ac565b610dea81610feb565b50565b6000610c2d836001600160a01b0384166111c5565b6000546001600160a01b03163314610bb5576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016109ac565b600080610e53610b41565b905080600003610ebf576040517f5f7a37ed00000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f20706c61796572730000000000000000000000000000000000000000000060448201526064016109ac565b60408051426020820152449181019190915243606082015260009082906080016040516020818303038152906040528051906020012060001c610f0291906113c9565b90506000805b610f126001610fd5565b811015610f725760036000610f28600184610fdf565b6001600160a01b03168152602081019190915260400160002054610f4c9083611336565b915081831015610f6a57610f61600182610fdf565b94505050505090565b600101610f08565b506040517f5f7a37ed00000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f556e6b6e6f776e0000000000000000000000000000000000000000000000000060448201526064016109ac565b60006106d1825490565b6000610c2d8383611214565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336001600160a01b038216036110c5576040517fd3f9182200000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f526566657272696e67207468656d73656c76657300000000000000000000000060448201526064016109ac565b6110d06001826111a3565b611136576040517fd3f9182200000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74206120706c61796572000000000000000000000000000000000000000060448201526064016109ac565b6001600160a01b038116600090815260036020526040812080546001929061115f908490611336565b90915550506040516001600160a01b03821681527f620e00729397bc5029eda20a891aa9246dacc2aa6a8511aa4cde32396dcd65d69060200160405180910390a150565b6001600160a01b03811660009081526001830160205260408120541515610c2d565b600081815260018301602052604081205461120c575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106d1565b5060006106d1565b600082600001828154811061122b5761122b611349565b9060005260206000200154905092915050565b602080825282518282018190526000918401906040840190835b81811015611282578351805184526020908101518185015290930192604090920191600101611258565b509095945050505050565b6001600160a01b0381168114610dea57600080fd5b6000602082840312156112b457600080fd5b8135610c2d8161128d565b803560038110610ae957600080fd5b600080604083850312156112e157600080fd5b6112ea836112bf565b915060208301356112fa8161128d565b809150509250929050565b60006020828403121561131757600080fd5b610c2d826112bf565b634e487b7160e01b600052601160045260246000fd5b808201808211156106d1576106d1611320565b634e487b7160e01b600052603260045260246000fd5b818103818111156106d1576106d1611320565b80820281158282048414176106d1576106d1611320565b634e487b7160e01b600052601260045260246000fd5b6000826113ae576113ae611389565b500490565b634e487b7160e01b600052602160045260246000fd5b6000826113d8576113d8611389565b50069056fea264697066735822122048e87cb8164bcee1ffae813e08fbfbffd90e94c69e339bf23eece937c349d29064736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.