ETH Price: $2,483.40 (-1.20%)

Contract

0x7964929Ecbaf3F9704edCd6120126F6E85900883
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Bid175086262023-06-18 19:05:11440 days ago1687115111IN
0x7964929E...E85900883
0 ETH0.0014414621.11481448
Withdraw Bid175086132023-06-18 19:02:11440 days ago1687114931IN
0x7964929E...E85900883
0 ETH0.0018971727.79013422
Withdraw Bid175069482023-06-18 13:26:11440 days ago1687094771IN
0x7964929E...E85900883
0 ETH0.0011198315.32599071
Stage Bid175045132023-06-18 5:13:35441 days ago1687065215IN
0x7964929E...E85900883
0.1 ETH0.0009710114.18839163
Stage Bid175044432023-06-18 4:59:23441 days ago1687064363IN
0x7964929E...E85900883
0.1 ETH0.0018785214.11511054
Stage Bid175043982023-06-18 4:50:23441 days ago1687063823IN
0x7964929E...E85900883
0.1 ETH0.002214113.23544313
Withdraw Bid173380752023-05-25 18:55:59464 days ago1685040959IN
0x7964929E...E85900883
0 ETH0.0024885136.45211821
Withdraw Bid172880362023-05-18 17:52:35471 days ago1684432355IN
0x7964929E...E85900883
0 ETH0.0044789773.26719828
Withdraw Bid172880112023-05-18 17:47:23471 days ago1684432043IN
0x7964929E...E85900883
0 ETH0.0045978175.21127626
Stage Bid172747062023-05-16 20:44:35473 days ago1684269875IN
0x7964929E...E85900883
1.2 ETH0.0114091368.20138423
Stage Bid172612962023-05-14 23:17:59475 days ago1684106279IN
0x7964929E...E85900883
0.1 ETH0.0052347731.29235019
Stage Bid172540702023-05-13 22:41:47476 days ago1684017707IN
0x7964929E...E85900883
0.1 ETH0.0039843637.42773567
Stage Bid172540692023-05-13 22:41:35476 days ago1684017695IN
0x7964929E...E85900883
0.3 ETH0.003878636.43421103
Stage Bid172540672023-05-13 22:41:11476 days ago1684017671IN
0x7964929E...E85900883
1 ETH0.0037240137.63262198
Stage Bid172539992023-05-13 22:27:11476 days ago1684016831IN
0x7964929E...E85900883
1 ETH0.0034971135.33978744
Stage Bid172539702023-05-13 22:21:23476 days ago1684016483IN
0x7964929E...E85900883
4.222223 ETH0.0061358737.50399373
Stage Bid172539682023-05-13 22:20:59476 days ago1684016459IN
0x7964929E...E85900883
0.9 ETH0.0024826136.27597886
Stage Bid172539432023-05-13 22:15:59476 days ago1684016159IN
0x7964929E...E85900883
1.9 ETH0.0032742633.08770534
Stage Bid172538902023-05-13 22:05:23476 days ago1684015523IN
0x7964929E...E85900883
2.1 ETH0.0034138434.49826063
Stage Bid172538722023-05-13 22:01:47476 days ago1684015307IN
0x7964929E...E85900883
0.22 ETH0.0038122338.52418555
Stage Bid172538362023-05-13 21:53:59476 days ago1684014839IN
0x7964929E...E85900883
0.68 ETH0.0044537945.0073265
Stage Bid172537602023-05-13 21:38:23476 days ago1684013903IN
0x7964929E...E85900883
0.1 ETH0.0038728739.1369685
Stage Bid172537532023-05-13 21:36:59476 days ago1684013819IN
0x7964929E...E85900883
12.1 ETH0.002748940.16701314
Stage Bid172536972023-05-13 21:25:47476 days ago1684013147IN
0x7964929E...E85900883
2 ETH0.0065296739.03299626
Withdraw Bid172252982023-05-09 20:36:47480 days ago1683664607IN
0x7964929E...E85900883
0 ETH0.00749614109.80463142
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
175086262023-06-18 19:05:11440 days ago1687115111
0x7964929E...E85900883
0.1 ETH
175086132023-06-18 19:02:11440 days ago1687114931
0x7964929E...E85900883
0.1 ETH
175069482023-06-18 13:26:11440 days ago1687094771
0x7964929E...E85900883
0.2 ETH
173380752023-05-25 18:55:59464 days ago1685040959
0x7964929E...E85900883
1.2 ETH
172540672023-05-13 22:41:11476 days ago1684017671
0x7964929E...E85900883
26.222223 ETH
172540512023-05-13 22:37:47476 days ago1684017467
0x7964929E...E85900883
25.222223 ETH
172540512023-05-13 22:37:47476 days ago1684017467
0x7964929E...E85900883
25.222223 ETH
172539992023-05-13 22:27:11476 days ago1684016831
0x7964929E...E85900883
25.222223 ETH
172539782023-05-13 22:22:59476 days ago1684016579
0x7964929E...E85900883
24.222223 ETH
172539782023-05-13 22:22:59476 days ago1684016579
0x7964929E...E85900883
24.222223 ETH
172539702023-05-13 22:21:23476 days ago1684016483
0x7964929E...E85900883
24.222223 ETH
172539492023-05-13 22:17:11476 days ago1684016231
0x7964929E...E85900883
19.1 ETH
172539492023-05-13 22:17:11476 days ago1684016231
0x7964929E...E85900883
19.1 ETH
172539432023-05-13 22:15:59476 days ago1684016159
0x7964929E...E85900883
19.1 ETH
172538952023-05-13 22:06:23476 days ago1684015583
0x7964929E...E85900883
17.2 ETH
172538952023-05-13 22:06:23476 days ago1684015583
0x7964929E...E85900883
17.2 ETH
172538902023-05-13 22:05:23476 days ago1684015523
0x7964929E...E85900883
17.2 ETH
172538812023-05-13 22:03:35476 days ago1684015415
0x7964929E...E85900883
15.1 ETH
172538812023-05-13 22:03:35476 days ago1684015415
0x7964929E...E85900883
15.1 ETH
172538722023-05-13 22:01:47476 days ago1684015307
0x7964929E...E85900883
15.1 ETH
172538662023-05-13 22:00:35476 days ago1684015235
0x7964929E...E85900883
14.88 ETH
172538662023-05-13 22:00:35476 days ago1684015235
0x7964929E...E85900883
14.88 ETH
172538362023-05-13 21:53:59476 days ago1684014839
0x7964929E...E85900883
14.88 ETH
172538092023-05-13 21:48:23476 days ago1684014503
0x7964929E...E85900883
14.2 ETH
172538092023-05-13 21:48:23476 days ago1684014503
0x7964929E...E85900883
14.2 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BonkletBidder

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : BonkletBidder.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.19;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

import "../interfaces/IBonklerAuction.sol";
import "../interfaces/IBonklerTreasury.sol";
import "../interfaces/ITiny721.sol";

/**
	Thrown when attempting to stage a bid that does not meet minimum requirements.

	@param bidAmount The bid amount that the caller attempted to stage.
*/
error InvalidBidAmount (
	uint256 bidAmount
);

/**
	Thrown when including another staged bid would overfractionalize a Bonkler.

	@param bonklerId The ID of the Bonkler which would overfractionalize.
*/
error CannotOverfractionalize (
	uint256 bonklerId
);

/**
	Thrown when attempting to stage a bid on an old Bonkler.

	@param bonklerId The ID of the Bonkler which the bid was attempted on.
*/
error InvalidBonklerBid (
	uint256 bonklerId
);

/**
	Thrown when attempting to stage a bid while already winning an auction.

	@param bonklerId The ID of the Bonkler which the bid was attempted on.
*/
error AlreadyWinningAuction (
	uint256 bonklerId
);

/**
	Thrown when attempting to withdraw a bid from a settled auction.

	@param bonklerId The ID of the Bonkler which the withdraw was attempted on.
*/
error CannotWithdrawSettledItem (
	uint256 bonklerId
);

/**
	Thrown when attempting to withdraw a bid from a live auction.

	@param bonklerId The ID of the Bonkler which the withdraw was attempted on.
*/
error CannotWithdrawActiveBid (
	uint256 bonklerId
);

/**
	Thrown when unable to withdraw Ether from the contract.
*/
error EtherTransferWasUnsuccessful ();

/**
	Thrown when attempting to settle a won bid on an invalid Bonkler.

	@param bonklerId The ID of the Bonkler which the settle was attempted on.
*/
error CannotSettle (
	uint256 bonklerId
);

/// Thrown when attempting to vote without a valid Bonklet.
error Unauthorized ();

/**
	Thrown when attempting to redeem a Bonklet for an unredeemed Bonkler.

	@param bonklerId The ID of the unredeemed Bonkler.
*/
error CannotClaimUnredeemedBonkler (
	uint256 bonklerId
);

/**
	Thrown when receiving Ether from a caller other than the extended treasury.

	@param sender The address of the unexpected sender.
*/
error SenderNotTreasury (
	address sender
);

/**
	@custom:benediction DEVS BENEDICAT ET PROTEGAT CONTRACTVS MEAM
	@title A fractionalized bidding system for Bonkler.
	@author Tim Clancy <tim-clancy.eth>
	@custom:version 1.0

	Bonkler is a religious artifact bestowed to us by the Remilia Corporation. 
	This contract allows callers to pool their Ether together to bid for a shared 
	Bonkler. Fractional Bonkler shares are represented as ERC-721 tokens called 
	Bonklets. Fractional holders may vote to redeem or transfer their shared 
	Bonkler.

	@custom:date April 20th, 2023.
*/
contract BonkletBidder is ReentrancyGuard {

	/// The address of the Bonkler auction contract.
	address immutable public BONKLER_AUCTION;

	/// The address of the Bonkler NFT contract.
	address immutable public BONKLER;
	
	/// The address of the extended Bonkler treasury contract.
	address immutable public BONKLER_TREASURY;

	/// The address of the Bonklet NFT contract.
	address immutable public BONKLET;

	/// The minimum bid accepted for joining a Bonkler fractionalization.
	uint256 immutable public BID_MINIMUM;

	/// The maximum number of bidders on a Bonkler.
	uint256 immutable public BIDDER_LIMIT;

	/// The quorum required for conducting a redemption.
	uint256 immutable public REDEMPTION_QUORUM;

	/// A mapping of specific Bonkler IDs to the total Ether staged to bid on it.
	mapping ( uint256 => uint256 ) public stagedTotal;

	/// A mapping of specific Bonkler IDs to a mapping of per-caller staged bids.
	mapping ( uint256 => mapping ( address => uint256 )) public callerStagedBids;

	/**
		This struct defines a set of specific bidders who participated in a Bonkler 
		round.

		@param bidders An array of unique bidder addresses.
		@param didBid A mapping to track whether a particular address has yet bid.
	*/
	struct BidderSet {
		address[] bidders;
		mapping ( address => bool ) didBid;
	}

	/// A mapping of specific Bonkler IDs to bidder sets.
	mapping ( uint256 => BidderSet ) private _bidderSets;

	/// A mapping of Bonkler IDs to whether their receipt has been settled.
	mapping ( uint256 => bool ) public settled;

	/**
		This struct defines relevant data required for tracking the voting powers 
		of a specific Bonklet. This information also impacts the display of 
		metadata.

		@param bonklerId The ID of the corresponding Bonkler that this Bonklet is 
			fractionalizing.
		@param stagedEther The amount of Ether represented by this Bonklet fraction.
	*/
	struct BonkletData {
		uint128 bonklerId;
		uint128 stagedEther;
	}

	/// A mapping of Bonklet token ID to relevant voting-based metadata.
	mapping ( uint256 => BonkletData ) public bonkletData;

	/**
		A mapping of a Bonklet token ID to whether it has voted in favor of Bonkler 
		redemption.
	*/
	mapping ( uint256 => bool ) public redemptionVoted;

	/**
		A mapping from a Bonkler token ID to the number of shares that have voted 
		in favor of redemption.
	*/
	mapping ( uint256 => uint256 ) public redemptionShares;

	/// A mapping of Bonkler IDs to their redeemed shares.
	mapping ( uint256 => uint256 ) public redeemed;

	/**
		A mapping of a Bonklet token ID to whether it has voted in favor of Bonkler 
		transfer to a particular destination address.
	*/
	mapping ( uint256 => mapping ( address => bool )) public transferVoted;

	/**
		A mapping from a Bonkler token ID to the number of shares that have voted 
		in favor of transfer to a particular destination address.
	*/
	mapping ( uint256 => mapping ( address => uint256 )) public transferShares;

	/**
		This event is emitted when a bid is staged.

		@param bidder The address of the caller who created the bid.
		@param bonklerId The Bonkler ID being bid on.
		@param amount The amount of Ether just staged for bidding.
		@param totalAmount The total amount of Ether ready to bid.
	*/
	event BidStaged (
		address indexed bidder,
		uint256 bonklerId,
		uint256 amount,
		uint256 totalAmount
	);

	/**
		This event is emitted when a bid is executed against the Bonkler auction 
		contract.

		@param bidder The address of the caller who created the bid.
		@param bonklerId The Bonkler ID being bid on.
		@param totalAmount The total amount of Ether ready to bid.
	*/
	event BidExecuted (
		address indexed bidder,
		uint256 bonklerId,
		uint256 totalAmount
	);

	/**
		This event is emitted when a failed bid is withdrawn.

		@param bidder The address of the caller who created the bid.
		@param bonklerId The Bonkler ID being bid on.
		@param totalAmount The total amount of Ether withdrawn.
	*/
	event BidWithdrawn (
		address indexed bidder,
		uint256 bonklerId,
		uint256 totalAmount
	);

	/**
		This event is emitted when a won Bonkler is settled.

		@param settler The address of the caller who performs the settling.
		@param bonklerId The Bonkler ID being settled.
	*/
	event Settled (
		address indexed settler,
		uint256 bonklerId
	);

	/**
		This event records when a vote has been placed for redeeming a Bonkler.

		@param voter The address of the voter.
		@param bonklerId The ID of the Bonkler being voted on.
		@param bonkletId The ID of the Bonklet being voted with.
		@param signal Whether or not the voter is in favor.
		@param shares The number of shares this voter has.
	*/
	event RedemptionVote (
		address indexed voter,
		uint256 bonklerId,
		uint256 bonkletId,
		bool signal,
		uint256 shares
	);

	/**
		This event records when a vote for redeeming a Bonkler has been executed.

		@param voter The final voter who executed the redemption.
		@param bonklerId The ID of the Bonkler being redeemed.
		@param bonkletId The ID of the Bonklet which triggered the redemption.
	*/
	event RedemptionExecuted (
		address indexed voter,
		uint256 bonklerId,
		uint256 bonkletId
	);

	/**
		This event records when a caller claims a redeemed portion of a Bonkler 
		using a Bonklet.

		@param claimant The address of the caller who claimed.
		@param bonkletId The ID of the Bonklet which claimed.
		@param reward The Ether rewarded for this claim.
	*/
	event BonkletClaimed (
		address indexed claimant,
		uint256 bonkletId,
		uint256 reward
	);

	/**
		This event records when a vote has been placed for transferring a Bonkler 
		to a particular address.

		@param voter The address of the voter.
		@param bonklerId The ID of the Bonkler being voted on.
		@param bonkletId The ID of the Bonklet being voted with.
		@param destination The destination address of the Bonkler being voted for.
		@param signal Whether or not the voter is in favor.
		@param shares The number of shares this voter has.
	*/
	event TransferVote (
		address indexed voter,
		uint256 bonklerId,
		uint256 bonkletId,
		address destination,
		bool signal,
		uint256 shares
	);

	/**
		This event records when a vote for redeeming a Bonkler has been executed.

		@param voter The final voter who executed the redemption.
		@param bonklerId The ID of the Bonkler being redeemed.
		@param bonkletId The ID of the Bonklet which triggered the redemption.
		@param destination The destination address where the Bonkler was sent.
	*/
	event TransferExecuted (
		address indexed voter,
		uint256 bonklerId,
		uint256 bonkletId,
		address destination
	);

	/**
		Construct a new instance of the Bonklet bid fractionalizer configured with 
		the given immutable contract addresses.

		@param _bonklerAuction The address of the Bonkler auction contract.
		@param _bonkler The address of the Bonkler NFT contract.
		@param _bonklerTreasury The address of the extended Bonkler treasury.
		@param _bonklet The address of the fractional Bonklet NFT contract.
		@param _bidMinimum The minimum bid accepted for fractionalization.
		@param _bidderLimit The maximum number of bidders who may share 
			fractionalization on a first-come, first-serve basis.
		@param _redemptionQuorum The threshold required to reach a quorum for a 
			redemption vote.
	*/
	constructor (
		address _bonklerAuction,
		address _bonkler,
		address _bonklerTreasury,
		address _bonklet,
		uint256 _bidMinimum,
		uint256 _bidderLimit,
		uint256 _redemptionQuorum
	) {
		BONKLER_AUCTION = _bonklerAuction;
		BONKLER = _bonkler;
		BONKLER_TREASURY = _bonklerTreasury;
		BONKLET = _bonklet;
		BID_MINIMUM = _bidMinimum;
		BIDDER_LIMIT = _bidderLimit;
		REDEMPTION_QUORUM = _redemptionQuorum;

		// Approve the extended treasury to handle Bonkler redemption.
		IERC721(BONKLER).setApprovalForAll(BONKLER_TREASURY, true);
	}

	/**
		Stage a bid for submission to the Bonkler auction contract. If the 
		resources for a bid are obtained, one is automatically created.

		@param _bonklerId The ID of the Bonkler to withdraw failed bid Ether for.
		@param _generationHash The generation hash to submit for the Bonkler.
	*/
	function stageBid (
		uint256 _bonklerId,
		uint256 _generationHash
	) external payable nonReentrant {

		// Revert if the provided bid is too small.
		if (msg.value < BID_MINIMUM) {
			revert InvalidBidAmount(msg.value);
		}

		// Check for, and record, whether the current bidder is new.
		BidderSet storage bidderSet = _bidderSets[_bonklerId];
		if (!bidderSet.didBid[msg.sender]) {
			bidderSet.bidders.push(msg.sender);
			bidderSet.didBid[msg.sender] = true;

			// Prevent exceeding the limit on the number of bidders on a Bonkler.
			if (bidderSet.bidders.length > BIDDER_LIMIT) {
				revert CannotOverfractionalize(_bonklerId);
			}
		}

		// Retrieve the current auction details.
		AuctionData memory auction = IBonklerAuction(BONKLER_AUCTION).auctionData();

		// Revert if we are bidding on a not-current Bonkler.
		if (auction.bonklerId != _bonklerId) {
			revert InvalidBonklerBid(_bonklerId);
		}

		// Revert if we are already winning the auction.
		if (auction.bidder == address(this)) {
			revert AlreadyWinningAuction(_bonklerId);
		}

		// Store the current message value against this auction.
		uint256 newTotal;
		unchecked {
			newTotal = stagedTotal[_bonklerId] + msg.value;
			callerStagedBids[_bonklerId][msg.sender] += msg.value;
		}
		stagedTotal[_bonklerId] = newTotal;

		// Emit a bid-staging event.
		emit BidStaged(msg.sender, _bonklerId, msg.value, newTotal);

		// If we have obtained sufficient Ether, emit an event then create a bid.
		if (auction.amount < newTotal) {
			emit BidExecuted(msg.sender, _bonklerId, newTotal);

			// Create the bid by calling out to the Bonkler auction contract.
			IBonklerAuction(BONKLER_AUCTION).createBid{ value: newTotal }(
				_bonklerId,
				_generationHash
			);
		}
	}

	/**
		Permit callers to withdraw embedded Ether for an intended bid if the bid is 
		not active in the current auction and the bid failed.

		@param _bonklerId The ID of the Bonkler to withdraw failed bid Ether for.
	*/
	function withdrawBid (
		uint256 _bonklerId
	) external nonReentrant {

		/*
			Prevent withdrawals if the Bonkler is owned by this contract, or if 
			receipt of the Bonkler has already been settled.
		*/
		if (
			IERC721(BONKLER).ownerOf(_bonklerId) == address(this) || 
			settled[_bonklerId]
		) {
			revert CannotWithdrawSettledItem(_bonklerId);
		}

		// Retrieve the current auction details.
		AuctionData memory auction = IBonklerAuction(BONKLER_AUCTION).auctionData();

		// Revert if attempting to withdraw from the active, unsettled bid.
		if (auction.bonklerId == _bonklerId && !auction.settled) {
			revert CannotWithdrawActiveBid(auction.bonklerId);
		}

		// Track the caller withdrawal.
		uint256 withdrawal = callerStagedBids[_bonklerId][msg.sender];
		if (withdrawal > 0) {
			unchecked {
				stagedTotal[_bonklerId] -= withdrawal;
			}
			callerStagedBids[_bonklerId][msg.sender] = 0;

			// Return the caller their Ether.
			(bool success, ) = (msg.sender).call{ value: withdrawal }("");
			if (!success) {
				revert EtherTransferWasUnsuccessful();
			}

			// Emit an event.
			emit BidWithdrawn(msg.sender, _bonklerId, withdrawal);
		}
	}

	/**
		Allow for Bonklets to be created from victorious auctions.

		@param _bonklerId The ID of the Bonkler to settle.
	*/
	function settle (
		uint256 _bonklerId
	) external nonReentrant {
		
		// Prevent settlement of an unowned or already-settled Bonkler.
		if (
			settled[_bonklerId] ||
			IERC721(BONKLER).ownerOf(_bonklerId) != address(this) 
		) {
			revert CannotSettle(_bonklerId);
		}

		// Mint a Bonklet to every participating bidder given their score.
		uint256 tokenId = ITiny721(BONKLET).totalSupply() + 1;
		address[] memory bidders = _bidderSets[_bonklerId].bidders;
		for (uint256 i; i < bidders.length; ) {
			address bidder = bidders[i];
			ITiny721(BONKLET).mint_Qgo(bidder, 1);

			// Store relevant voting information for each Bonklet.
			unchecked {
				bonkletData[tokenId + i] = BonkletData({
					bonklerId: uint128(_bonklerId),
					stagedEther: uint128(callerStagedBids[_bonklerId][bidder])
				});
				++i;
			}
		}
		settled[_bonklerId] = true;

		// Emit an event.
		emit Settled(msg.sender, _bonklerId);
	}

	/**
		Toggle support for a quorum vote to redeem a Bonkler.

		@param _bonkletId The ID of the Bonklet to vote with.
	*/
	function redeem (
		uint256 _bonkletId
	) external nonReentrant {

		// Only allow Bonklet holders to vote with their own Bonklets.
		if (IERC721(BONKLET).ownerOf(_bonkletId) != msg.sender) {
			revert Unauthorized();
		}

		// If the Bonklet had previously voted, remove its support.
		BonkletData memory bonklet = bonkletData[_bonkletId];
		uint256 bonklerId = bonklet.bonklerId;
		if (redemptionVoted[_bonkletId]) {
			redemptionVoted[_bonkletId] = false;
			unchecked {
				redemptionShares[bonklerId] -= bonklet.stagedEther;
			}

			// Emit an event recording the vote.
			emit RedemptionVote(
				msg.sender,
				bonklerId,
				_bonkletId,
				false,
				bonklet.stagedEther
			);

		// Otherwise, record the Bonklet vote.
		} else {
			redemptionVoted[_bonkletId] = true;
			unchecked {
				redemptionShares[bonklerId] += bonklet.stagedEther;
			}

			// Emit an event recording the vote.
			emit RedemptionVote(
				msg.sender,
				bonklerId,
				_bonkletId,
				true,
				bonklet.stagedEther
			);

			// If redemption quorum is achieved, redeem.
			uint256 power;
			unchecked {
				power = redemptionShares[bonklerId] * 100 / stagedTotal[bonklerId];
			}
			if (power > REDEMPTION_QUORUM) {
				redeemed[bonklerId] = IBonklerTreasury(BONKLER_TREASURY).redeemBonkler(
					bonklerId
				);

				// Emit an event recording execution of the redemption vote.
				emit RedemptionExecuted(
					msg.sender,
					bonklerId,
					_bonkletId
				);
			}
		}
	}

	/**
		This function allows Bonklet holders to claim their share of rewards from a
		redeemed Bonkler. Calling this function requires approving this contract to 
		transfer Bonklets on behalf of the caller. After claiming, the Bonklet is 
		transferred to be held in eternal escrow by this contract.

		@param _bonkletId The ID of the Bonklet to vote with.
	*/
	function claim (
		uint256 _bonkletId
	) external nonReentrant {

		// Only allow Bonklet holders to claim with their own Bonklets.
		if (IERC721(BONKLET).ownerOf(_bonkletId) != msg.sender) {
			revert Unauthorized();
		}

		// Prevent claiming an unredeeemed Bonkler.
		BonkletData memory bonklet = bonkletData[_bonkletId];
		uint256 bonklerId = bonklet.bonklerId;
		if (redeemed[bonklerId] == 0) {
			revert CannotClaimUnredeemedBonkler(bonklerId);
		}

		// Transfer the caller Bonklet to be held in eternal escrow.
		IERC721(BONKLET).transferFrom(
			msg.sender,
			address(this),
			_bonkletId
		);

		// Return the claimant's portion of the redeemed reward.
		uint256 reward;
		unchecked {
			reward = bonklet.stagedEther * redeemed[bonklerId]
				/ stagedTotal[bonklerId];
		}
		(bool success, ) = (msg.sender).call{ value: reward }("");
		if (!success) {
			revert EtherTransferWasUnsuccessful();
		}

		// Emit an event recording this claim.
		emit BonkletClaimed(msg.sender, _bonkletId, reward);
	}

	/**
		Toggle support for a unanimous vote to transfer a Bonkler.

		@param _bonkletId The ID of the Bonklet to vote with.
		@param _destination The destination being voted on for the Bonkler transfer.
	*/
	function transfer (
		uint256 _bonkletId,
		address _destination
	) external nonReentrant {

		// Only allow Bonklet holders to vote with their own Bonklets.
		if (IERC721(BONKLET).ownerOf(_bonkletId) != msg.sender) {
			revert Unauthorized();
		}

		// If the Bonklet had previously voted, remove its support.
		BonkletData memory bonklet = bonkletData[_bonkletId];
		uint256 bonklerId = bonklet.bonklerId;
		if (transferVoted[_bonkletId][_destination]) {
			transferVoted[_bonkletId][_destination] = false;
			unchecked {
				transferShares[bonklerId][_destination] -= bonklet.stagedEther;
			}

			// Emit an event recording the vote.
			emit TransferVote(
				msg.sender,
				bonklerId,
				_bonkletId,
				_destination,
				false,
				bonklet.stagedEther
			);

		// Otherwise, record the Bonklet vote.
		} else {
			transferVoted[_bonkletId][_destination] = true;
			unchecked {
				transferShares[bonklerId][_destination] += bonklet.stagedEther;
			}

			// Emit an event recording the vote.
			emit TransferVote(
				msg.sender,
				bonklerId,
				_bonkletId,
				_destination,
				true,
				bonklet.stagedEther
			);

			// If transfer unanimity is achieved, transfer.
			if (transferShares[bonklerId][_destination] == stagedTotal[bonklerId]) {
				IERC721(BONKLER).transferFrom(
					address(this),
					_destination,
					bonklerId
				);
				
				// Emit an event recording execution of the transfer vote.
				emit TransferExecuted(
					msg.sender,
					bonklerId,
					_bonkletId,
					_destination
				);
			}
		}
	}

	/**
		This function allows the BonkletBidder to receive funds from the extended 
		Bonkler treasury.
	*/
	receive () external payable {
		
		/*
			We do not want anyone getting their Ether stuck in this contract, so we 
			revert if the sender is not the extended Bonkler treasury.
		*/
		if (msg.sender != BONKLER_TREASURY) {
			revert SenderNotTreasury(msg.sender);
		}
	}
}

File 2 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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 making 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;
    }
}

File 3 of 7 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 4 of 7 : IBonklerAuction.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.19;

/**
	This struct contains the data and configuration of the Bonkler auction 
	contract.

	@param bidder The address of the current highest bidder.
	@param amount Tha current highest bid amount.
	@param withdrawable The amount of Ether that may be withdrawn by the 
		auction operator.
	@param startTime The start time of the auction.
	@param endTime The end time of the auction.
	@param bonklerId The ID of the next Bonkler generated, starting from one.
	@param generationHashesLength The number of Bonkler generation hashes 
		loaded into the contract.
	@param settled Whether or not the contract's auction has been settled.
	@param reservePercentage The percent of the bid to store in the Bonkler.
	@param bonklers The address of the Bonkler NFT contract.
	@param reservePrice The minimum price accepted in a bid.
	@param bidIncrement The minimum increment of the bid.
	@param duration The duration of a single auction.
	@param timeBuffer The duration within which to extend the auction back to 
		`timeBuffer` duration.
	@param bonklersBalance The amount of ETH in the Bonklers NFT contract. The 
		"treasury" balance.
	@param bonklersTotalRedeemed The total number of Bonklers redeemed for 
		treasury shares.
*/
struct AuctionData {
	address bidder;
	uint96 amount;
	uint96 withdrawable;
	uint40 startTime;
	uint40 endTime;
	uint24 bonklerId;
	uint24 generationHashesLength;
	bool settled;
	uint8 reservePercentage;
	address bonklers;
	uint96 reservePrice;
	uint96 bidIncrement;
	uint32 duration;
	uint32 timeBuffer;
	uint256 bonklersBalance;
	uint256 bonklersTotalRedeemed;
}

/**
	@custom:benediction DEVS BENEDICAT ET PROTEGAT CONTRACTVS MEAM
	@title An interface for the BonklerAuction contract.
	@author Tim Clancy <tim-clancy.eth>

	The BonklerAuction contract manages the daily sale of Bonklers.

	@custom:date April 20th, 2023.
*/
interface IBonklerAuction {

	/**
		Return all public data on the current state of the auction, including 
		useful information regarding the Bonklers NFT itself.

		@return data The current state of the auction.
	*/
	function auctionData () external view returns (AuctionData memory data);

	/**
		Create a bid in Ether for a particular Bonkler.

		@param _bonklerId The ID of the Bonkler to bid on.
		@param _generationHash The generation hash to submit for the Bonkler.
	*/
	function createBid (
		uint256 _bonklerId,
		uint256 _generationHash
	) external payable;
}

File 5 of 7 : IBonklerTreasury.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.19;

/**
	@custom:benediction DEVS BENEDICAT ET PROTEGAT CONTRACTVS MEAM
	@title An improved treasury for Bonkler.
	@author Tim Clancy <tim-clancy.eth>

	Bonkler is a religious artifact bestowed to us by the Remilia Corporation. 
	Currently, the pool of Bonkler reserve assets cannot be independently grown 
	such that redemption of a Bonkler returns more Ether than its direct floor 
	reserve price. This contract is a wrapping treasury around the Bonkler 
	reserve system that allows for growth via external revenue streams.

	@custom:date April 20th, 2023.
*/
interface IBonklerTreasury {

	/**
		Allow a Bonkler holder to burn a Bonkler and redeem the Ether inside it. 
		Burning a Bonkler through this treasury also returns a share of any 
		additional accumulated Ether.

		The BonklerNFT contract has no native support for delegated redemption, so 
		this treasury contract must first be approved to spend the caller's 
		Bonkler. It must first take possession of the Bonkler before it is able to 
		burn the initial reserve.

		@param _bonklerId The ID of the Bonkler to burn and redeem.

		@return _ The total amount that was redeemed.
	*/
	function redeemBonkler (
		uint256 _bonklerId
	) external returns (uint256);
}

File 6 of 7 : ITiny721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.19;

/**
	@custom:benediction DEVS BENEDICAT ET PROTEGAT CONTRACTVS MEAM
	@title A minimalistic, gas-efficient ERC-721 implementation forked from the
		`Super721` ERC-721 implementation used by SuperFarm.
	@author Tim Clancy <tim-clancy.eth>
	@author 0xthrpw
	@author Qazawat Zirak
	@author Rostislav Khlebnikov

	Compared to the original `Super721` implementation that this contract forked
	from, this is a very pared-down contract.

	@custom:date February 8th, 2022.
*/
interface ITiny721 {

	/**
		Return the total number of this token that have ever been minted.

		@return The total supply of minted tokens.
	*/
	function totalSupply () external view returns (uint256);

	/**
		Provided with an address parameter, this function returns the number of all
		tokens in this collection that are owned by the specified address.

		@param _owner The address of the account for which we are checking balances
	*/
	function balanceOf (
		address _owner
	) external returns (uint256);

	/**
		Return the address that holds a particular token ID.

		@param _id The token ID to check for the holding address of.

		@return The address that holds the token with ID of `_id`.
	*/
	function ownerOf (
		uint256 _id
	) external returns (address);

	/**
		This function performs an unsafe transfer of token ID `_id` from address
		`_from` to address `_to`. The transfer is considered unsafe because it does
		not validate that the receiver can actually take proper receipt of an
		ERC-721 token.

		@param _from The address to transfer the token from.
		@param _to The address to transfer the token to.
		@param _id The ID of the token being transferred.
	*/
	function transferFrom (
		address _from,
		address _to,
		uint256 _id
	) external;

	/**
		This function allows permissioned minters of this contract to mint one or
		more tokens dictated by the `_amount` parameter. Any minted tokens are sent
		to the `_recipient` address.

		Note that tokens are always minted sequentially starting at one. That is,
		the list of token IDs is always increasing and looks like [ 1, 2, 3... ].
		Also note that per our use cases the intended recipient of these minted
		items will always be externally-owned accounts and not other contracts. As a
		result there is no safety check on whether or not the mint destination can
		actually correctly handle an ERC-721 token.

		@param _recipient The recipient of the tokens being minted.
		@param _amount The amount of tokens to mint.
	*/
	function mint_Qgo (
		address _recipient,
		uint256 _amount
	) external;
}

File 7 of 7 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_bonklerAuction","type":"address"},{"internalType":"address","name":"_bonkler","type":"address"},{"internalType":"address","name":"_bonklerTreasury","type":"address"},{"internalType":"address","name":"_bonklet","type":"address"},{"internalType":"uint256","name":"_bidMinimum","type":"uint256"},{"internalType":"uint256","name":"_bidderLimit","type":"uint256"},{"internalType":"uint256","name":"_redemptionQuorum","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"bonklerId","type":"uint256"}],"name":"AlreadyWinningAuction","type":"error"},{"inputs":[{"internalType":"uint256","name":"bonklerId","type":"uint256"}],"name":"CannotClaimUnredeemedBonkler","type":"error"},{"inputs":[{"internalType":"uint256","name":"bonklerId","type":"uint256"}],"name":"CannotOverfractionalize","type":"error"},{"inputs":[{"internalType":"uint256","name":"bonklerId","type":"uint256"}],"name":"CannotSettle","type":"error"},{"inputs":[{"internalType":"uint256","name":"bonklerId","type":"uint256"}],"name":"CannotWithdrawActiveBid","type":"error"},{"inputs":[{"internalType":"uint256","name":"bonklerId","type":"uint256"}],"name":"CannotWithdrawSettledItem","type":"error"},{"inputs":[],"name":"EtherTransferWasUnsuccessful","type":"error"},{"inputs":[{"internalType":"uint256","name":"bidAmount","type":"uint256"}],"name":"InvalidBidAmount","type":"error"},{"inputs":[{"internalType":"uint256","name":"bonklerId","type":"uint256"}],"name":"InvalidBonklerBid","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"SenderNotTreasury","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonklerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"BidExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonklerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"BidStaged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonklerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"BidWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonkletId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"BonkletClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonklerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bonkletId","type":"uint256"}],"name":"RedemptionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonklerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bonkletId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"signal","type":"bool"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"RedemptionVote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"settler","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonklerId","type":"uint256"}],"name":"Settled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonklerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bonkletId","type":"uint256"},{"indexed":false,"internalType":"address","name":"destination","type":"address"}],"name":"TransferExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonklerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bonkletId","type":"uint256"},{"indexed":false,"internalType":"address","name":"destination","type":"address"},{"indexed":false,"internalType":"bool","name":"signal","type":"bool"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"TransferVote","type":"event"},{"inputs":[],"name":"BIDDER_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BID_MINIMUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BONKLER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BONKLER_AUCTION","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BONKLER_TREASURY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BONKLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REDEMPTION_QUORUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bonkletData","outputs":[{"internalType":"uint128","name":"bonklerId","type":"uint128"},{"internalType":"uint128","name":"stagedEther","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"callerStagedBids","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonkletId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonkletId","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redemptionShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redemptionVoted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonklerId","type":"uint256"}],"name":"settle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"settled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonklerId","type":"uint256"},{"internalType":"uint256","name":"_generationHash","type":"uint256"}],"name":"stageBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stagedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonkletId","type":"uint256"},{"internalType":"address","name":"_destination","type":"address"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"transferShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"transferVoted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonklerId","type":"uint256"}],"name":"withdrawBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101606040523480156200001257600080fd5b5060405162001ed338038062001ed38339810160408190526200003591620000f6565b600160008190556001600160a01b0388811660805287811660a081905287821660c081905291871660e05261010086905261012085905261014084905260405163a22cb46560e01b81526004810192909252602482019290925263a22cb46590604401600060405180830381600087803b158015620000b357600080fd5b505af1158015620000c8573d6000803e3d6000fd5b505050505050505050505062000170565b80516001600160a01b0381168114620000f157600080fd5b919050565b600080600080600080600060e0888a0312156200011257600080fd5b6200011d88620000d9565b96506200012d60208901620000d9565b95506200013d60408901620000d9565b94506200014d60608901620000d9565b93506080880151925060a0880151915060c0880151905092959891949750929550565b60805160a05160c05160e051610100516101205161014051611c91620002426000396000818161025301526117ea0152600081816104150152610c260152600081816102870152610b7a01526000818161058c015281816108e0015281816109f701528181610fa1015281816110e80152818161125901526115d3015260008181610149015281816105c001526118260152600081816101c70152818161062901528181610f0501526114d90152600081816103e1015281816106dc01528181610c6b0152610e330152611c916000f3fe6080604052600436106101395760003560e01c806357afa5c8116100ab578063b25b25891161006f578063b25b2589146104d2578063b7760c8f1461050a578063c0f3d65f1461052a578063db006a751461055a578063f4791d341461057a578063f6ecc109146105ae57600080fd5b806357afa5c8146104035780636b230faf14610437578063765dcd851461044a5780637ed0f1c1146104855780638df82800146104b257600080fd5b806328345780116100fd57806328345780146102a95780632e58c1d2146102e9578063379607f51461034a5780633ff6bec01461036a57806345579b1f146103975780635762f8bc146103cf57600080fd5b80630eaaf4c814610195578063193e4e5c146101b55780631c02b470146102065780632236a858146102415780632310664c1461027557600080fd5b3661019057336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461018e57604051634ced669360e11b81523360048201526024015b60405180910390fd5b005b600080fd5b3480156101a157600080fd5b5061018e6101b03660046118f1565b6105e2565b3480156101c157600080fd5b506101e97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561021257600080fd5b506102336102213660046118f1565b60016020526000908152604090205481565b6040519081526020016101fd565b34801561024d57600080fd5b506102337f000000000000000000000000000000000000000000000000000000000000000081565b34801561028157600080fd5b506102337f000000000000000000000000000000000000000000000000000000000000000081565b3480156102b557600080fd5b506102d96102c43660046118f1565b60046020526000908152604090205460ff1681565b60405190151581526020016101fd565b3480156102f557600080fd5b5061032a6103043660046118f1565b6005602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016101fd565b34801561035657600080fd5b5061018e6103653660046118f1565b610899565b34801561037657600080fd5b506102336103853660046118f1565b60076020526000908152604090205481565b3480156103a357600080fd5b506102336103b2366004611922565b600a60209081526000928352604080842090915290825290205481565b3480156103db57600080fd5b506101e97f000000000000000000000000000000000000000000000000000000000000000081565b34801561040f57600080fd5b506102337f000000000000000000000000000000000000000000000000000000000000000081565b61018e610445366004611952565b610b51565b34801561045657600080fd5b506102d9610465366004611922565b600960209081526000928352604080842090915290825290205460ff1681565b34801561049157600080fd5b506102336104a03660046118f1565b60086020526000908152604090205481565b3480156104be57600080fd5b5061018e6104cd3660046118f1565b610ea6565b3480156104de57600080fd5b506102336104ed366004611922565b600260209081526000928352604080842090915290825290205481565b34801561051657600080fd5b5061018e610525366004611922565b611212565b34801561053657600080fd5b506102d96105453660046118f1565b60066020526000908152604090205460ff1681565b34801561056657600080fd5b5061018e6105753660046118f1565b61158c565b34801561058657600080fd5b506101e97f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ba57600080fd5b506101e97f000000000000000000000000000000000000000000000000000000000000000081565b6002600054036106045760405162461bcd60e51b815260040161018590611974565b60026000556040516331a9108f60e11b81526004810182905230906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa158015610670573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069491906119bb565b6001600160a01b031614806106b7575060008181526004602052604090205460ff165b156106d857604051634ca4299360e01b815260048101829052602401610185565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b237b1736040518163ffffffff1660e01b815260040161020060405180830381865afa158015610739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075d9190611a90565b9050818160a0015162ffffff1614801561077957508060e00151155b156107a45760a0810151604051633806c9c560e01b815262ffffff9091166004820152602401610185565b6000828152600260209081526040808320338452909152902054801561088f57600083815260016020908152604080832080548590039055600282528083203380855292528083208390555183908381818185875af1925050503d806000811461082a576040519150601f19603f3d011682016040523d82523d6000602084013e61082f565b606091505b505090508061085157604051630fe362ff60e21b815260040160405180910390fd5b604080518581526020810184905233917f0a3d3ac11cf502aaab4363b2a94047d52b45ee3c72068ff8f036cea2c899dae791015b60405180910390a2505b5050600160005550565b6002600054036108bb5760405162461bcd60e51b815260040161018590611974565b60026000556040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa158015610927573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094b91906119bb565b6001600160a01b031614610971576040516282b42960e81b815260040160405180910390fd5b60008181526005602090815260408083208151808301835290546001600160801b03808216808452600160801b90920416828501528085526008909352908320549092036109d557604051631880bf0d60e11b815260048101829052602401610185565b6040516323b872dd60e01b8152336004820152306024820152604481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401600060405180830381600087803b158015610a4357600080fd5b505af1158015610a57573d6000803e3d6000fd5b505050600082815260016020908152604080832054600883529083205491860151929350916001600160801b03160281610a9357610a93611bb8565b0490506000336001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ae3576040519150601f19603f3d011682016040523d82523d6000602084013e610ae8565b606091505b5050905080610b0a57604051630fe362ff60e21b815260040160405180910390fd5b604080518681526020810184905233917fbb1c815588d64ea6f8a186cee6fc7edbd3c14e6e4adc4c2a9e3306be1c714cf2910160405180910390a250506001600055505050565b600260005403610b735760405162461bcd60e51b815260040161018590611974565b60026000557f0000000000000000000000000000000000000000000000000000000000000000341015610bbb57604051630700144760e41b8152346004820152602401610185565b6000828152600360209081526040808320338452600181019092529091205460ff16610c67578054600181810183556000838152602080822090930180546001600160a01b0319163390811790915581528184019092526040909120805460ff1916909117905580547f00000000000000000000000000000000000000000000000000000000000000001015610c6757604051632a122c4760e11b815260048101849052602401610185565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b237b1736040518163ffffffff1660e01b815260040161020060405180830381865afa158015610cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cec9190611a90565b9050838160a0015162ffffff1614610d1a5760405163048a23d360e31b815260048101859052602401610185565b8051306001600160a01b0390911603610d495760405163415a4bd160e01b815260048101859052602401610185565b600084815260016020818152604080842080546002845282862033808852908552838720805434908101909155968b905294845285019081905581518981529283019490945281018390527f27a3809f4e7f9e58fd6e8aebd872d842ded336e4b9d701c53e839e58e6196e559060600160405180910390a28082602001516bffffffffffffffffffffffff161015610e9a57604080518681526020810183905233917f8b3a8fb1803596fe3629031aa2f2219e5a2d94b155fe5ddbec42594625d32579910160405180910390a260405163b7751c7160e01b815260048101869052602481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b7751c719083906044016000604051808303818588803b158015610e8057600080fd5b505af1158015610e94573d6000803e3d6000fd5b50505050505b50506001600055505050565b600260005403610ec85760405162461bcd60e51b815260040161018590611974565b600260009081558181526004602052604090205460ff1680610f7c57506040516331a9108f60e11b81526004810182905230906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa158015610f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7091906119bb565b6001600160a01b031614155b15610f9d5760405163e4f87eeb60e01b815260048101829052602401610185565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ffd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110219190611bce565b61102c906001611be7565b60008381526003602090815260408083208054825181850281018501909352808352949550929390929183018282801561108f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611071575b5050505050905060005b81518110156111b25760008282815181106110b6576110b6611c0e565b60209081029190910101516040516105e160e21b81526001600160a01b038083166004830152600160248301529192507f00000000000000000000000000000000000000000000000000000000000000009091169061178490604401600060405180830381600087803b15801561112c57600080fd5b505af1158015611140573d6000803e3d6000fd5b50506040805180820182526001600160801b03808a16825260008a8152600260209081528482206001600160a01b0390981682529687528381205482168784019081528a89018252600590975292909220905194518216600160801b0294909116939093179092555050600101611099565b5060008381526004602052604090819020805460ff191660011790555133907f7823e479a1a4ebe2418874847436f8a1680c5ee5b17f38bb59dbff28e1b45552906112009086815260200190565b60405180910390a25050600160005550565b6002600054036112345760405162461bcd60e51b815260040161018590611974565b60026000556040516331a9108f60e11b81526004810183905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa1580156112a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c491906119bb565b6001600160a01b0316146112ea576040516282b42960e81b815260040160405180910390fd5b60008281526005602090815260408083208151808301835290546001600160801b03808216808452600160801b9092041682850152868552600984528285206001600160a01b038716865290935292205460ff16156113de5760008481526009602090815260408083206001600160a01b038716808552908352818420805460ff191690558583018051868652600a85528386209286529190935281842080546001600160801b0390921690910390559051905133927fcad6e577d6cfb9907cb0bf1352795518c604c597b287774b7c53565a98143e2d926113d19286928a928a92611c24565b60405180910390a2611581565b60008481526009602090815260408083206001600160a01b038716808552908352818420805460ff191660019081179091558684018051878752600a8652848720938752929094529382902080546001600160801b039092169190910190559051905133927fcad6e577d6cfb9907cb0bf1352795518c604c597b287774b7c53565a98143e2d926114749286928a928a92611c24565b60405180910390a2600081815260016020908152604080832054600a83528184206001600160a01b03881685529092529091205403611581576040516323b872dd60e01b81523060048201526001600160a01b038481166024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b15801561151d57600080fd5b505af1158015611531573d6000803e3d6000fd5b505060408051848152602081018890526001600160a01b0387168183015290513393507fa34dda59a1bb2219edee7e4f0efaafc176bf0327a8884f6d18f19367f6ae255d92509081900360600190a25b505060016000555050565b6002600054036115ae5760405162461bcd60e51b815260040161018590611974565b60026000556040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa15801561161a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163e91906119bb565b6001600160a01b031614611664576040516282b42960e81b815260040160405180910390fd5b60008181526005602090815260408083208151808301835290546001600160801b03808216808452600160801b9092041682850152858552600690935292205460ff1615611735576000838152600660209081526040808320805460ff1916905584820180518585526007845282852080546001600160801b03928316900390559051825186815293840188905291830193909352909116606082015233907f4ab717ed20d6aad02f08172336aef6405502caf2a9bbb84f2fc36e29df7f011b9060800160405180910390a261088f565b6000838152600660209081526040808320805460ff191660019081179091558583018051868652600785529483902080546001600160801b0396871601905551825186815293840188905291830152909116606082015233907f4ab717ed20d6aad02f08172336aef6405502caf2a9bbb84f2fc36e29df7f011b9060800160405180910390a26000818152600160209081526040808320546007909252822054606402816117e5576117e5611bb8565b0490507f00000000000000000000000000000000000000000000000000000000000000008111156118e657604051633d0e99d360e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637a1d33a6906024016020604051808303816000875af1158015611877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189b9190611bce565b60008381526008602090815260409182902092909255805184815291820186905233917f6d35b7d7146608d652fd82f6aad8435caf3165aa7ad1dc0a629ccdbc3242851b9101610885565b505050600160005550565b60006020828403121561190357600080fd5b5035919050565b6001600160a01b038116811461191f57600080fd5b50565b6000806040838503121561193557600080fd5b8235915060208301356119478161190a565b809150509250929050565b6000806040838503121561196557600080fd5b50508035926020909101359150565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b80516119b68161190a565b919050565b6000602082840312156119cd57600080fd5b81516119d88161190a565b9392505050565b604051610200810167ffffffffffffffff81118282101715611a1157634e487b7160e01b600052604160045260246000fd5b60405290565b80516bffffffffffffffffffffffff811681146119b657600080fd5b805164ffffffffff811681146119b657600080fd5b805162ffffff811681146119b657600080fd5b805180151581146119b657600080fd5b805160ff811681146119b657600080fd5b805163ffffffff811681146119b657600080fd5b60006102008284031215611aa357600080fd5b611aab6119df565b611ab4836119ab565b8152611ac260208401611a17565b6020820152611ad360408401611a17565b6040820152611ae460608401611a33565b6060820152611af560808401611a33565b6080820152611b0660a08401611a48565b60a0820152611b1760c08401611a48565b60c0820152611b2860e08401611a5b565b60e0820152610100611b3b818501611a6b565b90820152610120611b4d8482016119ab565b90820152610140611b5f848201611a17565b90820152610160611b71848201611a17565b90820152610180611b83848201611a7c565b908201526101a0611b95848201611a7c565b908201526101c083810151908201526101e0928301519281019290925250919050565b634e487b7160e01b600052601260045260246000fd5b600060208284031215611be057600080fd5b5051919050565b80820180821115611c0857634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052603260045260246000fd5b94855260208501939093526001600160a01b03919091166040840152151560608301526001600160801b0316608082015260a0019056fea2646970667358221220a1cabfa8371ed4ca9c798e0aebee76c3f97d2aaf2949f3407455062ea2ce931b64736f6c63430008130033000000000000000000000000f421391011dc77c0c2489d384c26e915efd9e2c5000000000000000000000000abfae8a54e6817f57f9de7796044e9a60e61ad67000000000000000000000000b92c17ab4afbed8140b7bb09fb7aae92b0efe52200000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f1965000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003c

Deployed Bytecode

0x6080604052600436106101395760003560e01c806357afa5c8116100ab578063b25b25891161006f578063b25b2589146104d2578063b7760c8f1461050a578063c0f3d65f1461052a578063db006a751461055a578063f4791d341461057a578063f6ecc109146105ae57600080fd5b806357afa5c8146104035780636b230faf14610437578063765dcd851461044a5780637ed0f1c1146104855780638df82800146104b257600080fd5b806328345780116100fd57806328345780146102a95780632e58c1d2146102e9578063379607f51461034a5780633ff6bec01461036a57806345579b1f146103975780635762f8bc146103cf57600080fd5b80630eaaf4c814610195578063193e4e5c146101b55780631c02b470146102065780632236a858146102415780632310664c1461027557600080fd5b3661019057336001600160a01b037f000000000000000000000000b92c17ab4afbed8140b7bb09fb7aae92b0efe522161461018e57604051634ced669360e11b81523360048201526024015b60405180910390fd5b005b600080fd5b3480156101a157600080fd5b5061018e6101b03660046118f1565b6105e2565b3480156101c157600080fd5b506101e97f000000000000000000000000abfae8a54e6817f57f9de7796044e9a60e61ad6781565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561021257600080fd5b506102336102213660046118f1565b60016020526000908152604090205481565b6040519081526020016101fd565b34801561024d57600080fd5b506102337f000000000000000000000000000000000000000000000000000000000000003c81565b34801561028157600080fd5b506102337f000000000000000000000000000000000000000000000000016345785d8a000081565b3480156102b557600080fd5b506102d96102c43660046118f1565b60046020526000908152604090205460ff1681565b60405190151581526020016101fd565b3480156102f557600080fd5b5061032a6103043660046118f1565b6005602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016101fd565b34801561035657600080fd5b5061018e6103653660046118f1565b610899565b34801561037657600080fd5b506102336103853660046118f1565b60076020526000908152604090205481565b3480156103a357600080fd5b506102336103b2366004611922565b600a60209081526000928352604080842090915290825290205481565b3480156103db57600080fd5b506101e97f000000000000000000000000f421391011dc77c0c2489d384c26e915efd9e2c581565b34801561040f57600080fd5b506102337f000000000000000000000000000000000000000000000000000000000000002081565b61018e610445366004611952565b610b51565b34801561045657600080fd5b506102d9610465366004611922565b600960209081526000928352604080842090915290825290205460ff1681565b34801561049157600080fd5b506102336104a03660046118f1565b60086020526000908152604090205481565b3480156104be57600080fd5b5061018e6104cd3660046118f1565b610ea6565b3480156104de57600080fd5b506102336104ed366004611922565b600260209081526000928352604080842090915290825290205481565b34801561051657600080fd5b5061018e610525366004611922565b611212565b34801561053657600080fd5b506102d96105453660046118f1565b60066020526000908152604090205460ff1681565b34801561056657600080fd5b5061018e6105753660046118f1565b61158c565b34801561058657600080fd5b506101e97f00000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f196581565b3480156105ba57600080fd5b506101e97f000000000000000000000000b92c17ab4afbed8140b7bb09fb7aae92b0efe52281565b6002600054036106045760405162461bcd60e51b815260040161018590611974565b60026000556040516331a9108f60e11b81526004810182905230906001600160a01b037f000000000000000000000000abfae8a54e6817f57f9de7796044e9a60e61ad671690636352211e90602401602060405180830381865afa158015610670573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069491906119bb565b6001600160a01b031614806106b7575060008181526004602052604090205460ff165b156106d857604051634ca4299360e01b815260048101829052602401610185565b60007f000000000000000000000000f421391011dc77c0c2489d384c26e915efd9e2c56001600160a01b031663b237b1736040518163ffffffff1660e01b815260040161020060405180830381865afa158015610739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075d9190611a90565b9050818160a0015162ffffff1614801561077957508060e00151155b156107a45760a0810151604051633806c9c560e01b815262ffffff9091166004820152602401610185565b6000828152600260209081526040808320338452909152902054801561088f57600083815260016020908152604080832080548590039055600282528083203380855292528083208390555183908381818185875af1925050503d806000811461082a576040519150601f19603f3d011682016040523d82523d6000602084013e61082f565b606091505b505090508061085157604051630fe362ff60e21b815260040160405180910390fd5b604080518581526020810184905233917f0a3d3ac11cf502aaab4363b2a94047d52b45ee3c72068ff8f036cea2c899dae791015b60405180910390a2505b5050600160005550565b6002600054036108bb5760405162461bcd60e51b815260040161018590611974565b60026000556040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f19651690636352211e90602401602060405180830381865afa158015610927573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094b91906119bb565b6001600160a01b031614610971576040516282b42960e81b815260040160405180910390fd5b60008181526005602090815260408083208151808301835290546001600160801b03808216808452600160801b90920416828501528085526008909352908320549092036109d557604051631880bf0d60e11b815260048101829052602401610185565b6040516323b872dd60e01b8152336004820152306024820152604481018490527f00000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f19656001600160a01b0316906323b872dd90606401600060405180830381600087803b158015610a4357600080fd5b505af1158015610a57573d6000803e3d6000fd5b505050600082815260016020908152604080832054600883529083205491860151929350916001600160801b03160281610a9357610a93611bb8565b0490506000336001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ae3576040519150601f19603f3d011682016040523d82523d6000602084013e610ae8565b606091505b5050905080610b0a57604051630fe362ff60e21b815260040160405180910390fd5b604080518681526020810184905233917fbb1c815588d64ea6f8a186cee6fc7edbd3c14e6e4adc4c2a9e3306be1c714cf2910160405180910390a250506001600055505050565b600260005403610b735760405162461bcd60e51b815260040161018590611974565b60026000557f000000000000000000000000000000000000000000000000016345785d8a0000341015610bbb57604051630700144760e41b8152346004820152602401610185565b6000828152600360209081526040808320338452600181019092529091205460ff16610c67578054600181810183556000838152602080822090930180546001600160a01b0319163390811790915581528184019092526040909120805460ff1916909117905580547f00000000000000000000000000000000000000000000000000000000000000201015610c6757604051632a122c4760e11b815260048101849052602401610185565b60007f000000000000000000000000f421391011dc77c0c2489d384c26e915efd9e2c56001600160a01b031663b237b1736040518163ffffffff1660e01b815260040161020060405180830381865afa158015610cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cec9190611a90565b9050838160a0015162ffffff1614610d1a5760405163048a23d360e31b815260048101859052602401610185565b8051306001600160a01b0390911603610d495760405163415a4bd160e01b815260048101859052602401610185565b600084815260016020818152604080842080546002845282862033808852908552838720805434908101909155968b905294845285019081905581518981529283019490945281018390527f27a3809f4e7f9e58fd6e8aebd872d842ded336e4b9d701c53e839e58e6196e559060600160405180910390a28082602001516bffffffffffffffffffffffff161015610e9a57604080518681526020810183905233917f8b3a8fb1803596fe3629031aa2f2219e5a2d94b155fe5ddbec42594625d32579910160405180910390a260405163b7751c7160e01b815260048101869052602481018590527f000000000000000000000000f421391011dc77c0c2489d384c26e915efd9e2c56001600160a01b03169063b7751c719083906044016000604051808303818588803b158015610e8057600080fd5b505af1158015610e94573d6000803e3d6000fd5b50505050505b50506001600055505050565b600260005403610ec85760405162461bcd60e51b815260040161018590611974565b600260009081558181526004602052604090205460ff1680610f7c57506040516331a9108f60e11b81526004810182905230906001600160a01b037f000000000000000000000000abfae8a54e6817f57f9de7796044e9a60e61ad671690636352211e90602401602060405180830381865afa158015610f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7091906119bb565b6001600160a01b031614155b15610f9d5760405163e4f87eeb60e01b815260048101829052602401610185565b60007f00000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f19656001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ffd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110219190611bce565b61102c906001611be7565b60008381526003602090815260408083208054825181850281018501909352808352949550929390929183018282801561108f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611071575b5050505050905060005b81518110156111b25760008282815181106110b6576110b6611c0e565b60209081029190910101516040516105e160e21b81526001600160a01b038083166004830152600160248301529192507f00000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f19659091169061178490604401600060405180830381600087803b15801561112c57600080fd5b505af1158015611140573d6000803e3d6000fd5b50506040805180820182526001600160801b03808a16825260008a8152600260209081528482206001600160a01b0390981682529687528381205482168784019081528a89018252600590975292909220905194518216600160801b0294909116939093179092555050600101611099565b5060008381526004602052604090819020805460ff191660011790555133907f7823e479a1a4ebe2418874847436f8a1680c5ee5b17f38bb59dbff28e1b45552906112009086815260200190565b60405180910390a25050600160005550565b6002600054036112345760405162461bcd60e51b815260040161018590611974565b60026000556040516331a9108f60e11b81526004810183905233906001600160a01b037f00000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f19651690636352211e90602401602060405180830381865afa1580156112a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c491906119bb565b6001600160a01b0316146112ea576040516282b42960e81b815260040160405180910390fd5b60008281526005602090815260408083208151808301835290546001600160801b03808216808452600160801b9092041682850152868552600984528285206001600160a01b038716865290935292205460ff16156113de5760008481526009602090815260408083206001600160a01b038716808552908352818420805460ff191690558583018051868652600a85528386209286529190935281842080546001600160801b0390921690910390559051905133927fcad6e577d6cfb9907cb0bf1352795518c604c597b287774b7c53565a98143e2d926113d19286928a928a92611c24565b60405180910390a2611581565b60008481526009602090815260408083206001600160a01b038716808552908352818420805460ff191660019081179091558684018051878752600a8652848720938752929094529382902080546001600160801b039092169190910190559051905133927fcad6e577d6cfb9907cb0bf1352795518c604c597b287774b7c53565a98143e2d926114749286928a928a92611c24565b60405180910390a2600081815260016020908152604080832054600a83528184206001600160a01b03881685529092529091205403611581576040516323b872dd60e01b81523060048201526001600160a01b038481166024830152604482018390527f000000000000000000000000abfae8a54e6817f57f9de7796044e9a60e61ad6716906323b872dd90606401600060405180830381600087803b15801561151d57600080fd5b505af1158015611531573d6000803e3d6000fd5b505060408051848152602081018890526001600160a01b0387168183015290513393507fa34dda59a1bb2219edee7e4f0efaafc176bf0327a8884f6d18f19367f6ae255d92509081900360600190a25b505060016000555050565b6002600054036115ae5760405162461bcd60e51b815260040161018590611974565b60026000556040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f19651690636352211e90602401602060405180830381865afa15801561161a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163e91906119bb565b6001600160a01b031614611664576040516282b42960e81b815260040160405180910390fd5b60008181526005602090815260408083208151808301835290546001600160801b03808216808452600160801b9092041682850152858552600690935292205460ff1615611735576000838152600660209081526040808320805460ff1916905584820180518585526007845282852080546001600160801b03928316900390559051825186815293840188905291830193909352909116606082015233907f4ab717ed20d6aad02f08172336aef6405502caf2a9bbb84f2fc36e29df7f011b9060800160405180910390a261088f565b6000838152600660209081526040808320805460ff191660019081179091558583018051868652600785529483902080546001600160801b0396871601905551825186815293840188905291830152909116606082015233907f4ab717ed20d6aad02f08172336aef6405502caf2a9bbb84f2fc36e29df7f011b9060800160405180910390a26000818152600160209081526040808320546007909252822054606402816117e5576117e5611bb8565b0490507f000000000000000000000000000000000000000000000000000000000000003c8111156118e657604051633d0e99d360e11b8152600481018390527f000000000000000000000000b92c17ab4afbed8140b7bb09fb7aae92b0efe5226001600160a01b031690637a1d33a6906024016020604051808303816000875af1158015611877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189b9190611bce565b60008381526008602090815260409182902092909255805184815291820186905233917f6d35b7d7146608d652fd82f6aad8435caf3165aa7ad1dc0a629ccdbc3242851b9101610885565b505050600160005550565b60006020828403121561190357600080fd5b5035919050565b6001600160a01b038116811461191f57600080fd5b50565b6000806040838503121561193557600080fd5b8235915060208301356119478161190a565b809150509250929050565b6000806040838503121561196557600080fd5b50508035926020909101359150565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b80516119b68161190a565b919050565b6000602082840312156119cd57600080fd5b81516119d88161190a565b9392505050565b604051610200810167ffffffffffffffff81118282101715611a1157634e487b7160e01b600052604160045260246000fd5b60405290565b80516bffffffffffffffffffffffff811681146119b657600080fd5b805164ffffffffff811681146119b657600080fd5b805162ffffff811681146119b657600080fd5b805180151581146119b657600080fd5b805160ff811681146119b657600080fd5b805163ffffffff811681146119b657600080fd5b60006102008284031215611aa357600080fd5b611aab6119df565b611ab4836119ab565b8152611ac260208401611a17565b6020820152611ad360408401611a17565b6040820152611ae460608401611a33565b6060820152611af560808401611a33565b6080820152611b0660a08401611a48565b60a0820152611b1760c08401611a48565b60c0820152611b2860e08401611a5b565b60e0820152610100611b3b818501611a6b565b90820152610120611b4d8482016119ab565b90820152610140611b5f848201611a17565b90820152610160611b71848201611a17565b90820152610180611b83848201611a7c565b908201526101a0611b95848201611a7c565b908201526101c083810151908201526101e0928301519281019290925250919050565b634e487b7160e01b600052601260045260246000fd5b600060208284031215611be057600080fd5b5051919050565b80820180821115611c0857634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052603260045260246000fd5b94855260208501939093526001600160a01b03919091166040840152151560608301526001600160801b0316608082015260a0019056fea2646970667358221220a1cabfa8371ed4ca9c798e0aebee76c3f97d2aaf2949f3407455062ea2ce931b64736f6c63430008130033

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

000000000000000000000000f421391011dc77c0c2489d384c26e915efd9e2c5000000000000000000000000abfae8a54e6817f57f9de7796044e9a60e61ad67000000000000000000000000b92c17ab4afbed8140b7bb09fb7aae92b0efe52200000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f1965000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003c

-----Decoded View---------------
Arg [0] : _bonklerAuction (address): 0xF421391011Dc77c0C2489d384C26e915Efd9e2C5
Arg [1] : _bonkler (address): 0xABFaE8A54e6817F57F9De7796044E9a60e61ad67
Arg [2] : _bonklerTreasury (address): 0xb92C17AB4AfBed8140b7bB09Fb7aae92b0EFe522
Arg [3] : _bonklet (address): 0x68c51841b4dF39FB84f292cA26B76E7E2b4f1965
Arg [4] : _bidMinimum (uint256): 100000000000000000
Arg [5] : _bidderLimit (uint256): 32
Arg [6] : _redemptionQuorum (uint256): 60

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000f421391011dc77c0c2489d384c26e915efd9e2c5
Arg [1] : 000000000000000000000000abfae8a54e6817f57f9de7796044e9a60e61ad67
Arg [2] : 000000000000000000000000b92c17ab4afbed8140b7bb09fb7aae92b0efe522
Arg [3] : 00000000000000000000000068c51841b4df39fb84f292ca26b76e7e2b4f1965
Arg [4] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [6] : 000000000000000000000000000000000000000000000000000000000000003c


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.