Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- SpunkRace
- Optimization enabled
- true
- Compiler version
- v0.8.24+commit.e11b9ed9
- Optimization runs
- 200
- EVM Version
- paris
- Verified at
- 2026-03-31T18:06:30.574150Z
Constructor Arguments
0000000000000000000000000f79041fa0a1deb4cc8fffe70ceac256eb6e49cd000000000000000000000000351ba6791aee0563b193b30c06363dc5b1938505000000000000000000000000b48592332c267edb41720f239de953dfae12af9f
Arg [0] (address) : 0x0f79041fa0a1deb4cc8fffe70ceac256eb6e49cd
Arg [1] (address) : 0x351ba6791aee0563b193b30c06363dc5b1938505
Arg [2] (address) : 0xb48592332c267edb41720f239de953dfae12af9f
contracts/SpunkRaceV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
interface IRaceStaking {
function stakes(uint256 tokenId) external view returns (address owner, uint48 stakedAt, uint48 effectiveLock);
}
/// @title SpunkRace V2 — Round-based 30-day journey to the egg
/// @notice All entrants run the gauntlet simultaneously. Survivors split the pot.
/// Entry: 200K SPUNK → 100K pot, 80K burned, 20K dev
/// Higher rank NFTs have better survival odds.
contract SpunkRace is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
IERC20 public immutable spunkCoin;
address public immutable stakingContract;
// ── Config ──
uint256 public entryFee = 200_000 ether; // 200K SPUNK
uint256 public potBps = 5000; // 50% to pot
uint256 public burnBps = 4000; // 40% burned
uint256 public devBps = 1000; // 10% to dev
address public devWallet;
uint256 public roundDuration = 24 hours;
uint256 public maxEntries = 50;
uint256 public revealDelay = 5; // blocks after round ends
uint256 public obstacleChance = 4000; // 40% per day (out of 10000)
uint256 public autoSeedAmount = 0; // Auto-add to next pot on resolve (beta testing)
// ── Obstacle kill chances (out of 10000) ──
// 0: White Blood Cell 20%, 1: Antibody 25%, 2: pH Barrier 15%,
// 3: Cervical Mucus 10%, 4: Macrophage 30%, 5: Immune Response 22%,
// 6: Temperature Shock 12%, 7: Toxic Environment 18%
// ── Rank survival bonus (basis points reduction to kill chance) ──
// Mythic (1-10): 30% less likely to die
// Legendary (11-100): 20% less likely
// Rare (101-500): 15% less likely
// Uncommon (501-2000): 10% less likely
// Common (2001+): no bonus
struct Entry {
address player;
uint256 tokenId;
uint256 rank;
bool survived;
uint8 diedOnDay; // 0 = survived all 30 days
}
struct Round {
uint256 startTime;
uint256 endTime;
uint256 potAmount;
uint256 totalEntries;
uint256 resolveBlock;
uint256 survivorCount;
uint256 rolloverFromPrev; // Pot from previous round if nobody survived
bool resolved;
bool active;
}
mapping(uint256 => Round) public rounds;
mapping(uint256 => Entry[]) public roundEntries;
mapping(uint256 => mapping(address => bool)) public hasEntered;
uint256 public currentRoundId;
uint256 public totalRounds;
uint256 public totalBurned;
uint256 public rolloverPot; // Accumulated from rounds with no survivors
// ── Events ──
event RoundStarted(uint256 indexed roundId, uint256 endTime, uint256 rollover);
event Entered(uint256 indexed roundId, address indexed player, uint256 tokenId, uint256 rank);
event RoundResolved(uint256 indexed roundId, uint256 survivors, uint256 totalPot, uint256 burned);
event Survived(uint256 indexed roundId, address indexed player, uint256 tokenId, uint256 prize);
event Died(uint256 indexed roundId, address indexed player, uint256 tokenId, uint8 day, uint8 obstacle);
event NoSurvivors(uint256 indexed roundId, uint256 potRolledOver);
constructor(address _spunkCoin, address _stakingContract, address _devWallet) Ownable(msg.sender) {
spunkCoin = IERC20(_spunkCoin);
stakingContract = _stakingContract;
devWallet = _devWallet;
}
// ══════════════════════════════════════
// ROUNDS
// ══════════════════════════════════════
function startRound() external onlyOwner {
if (currentRoundId > 0 && rounds[currentRoundId].active) revert("Round active");
currentRoundId = ++totalRounds;
Round storage r = rounds[currentRoundId];
r.startTime = block.timestamp;
r.endTime = block.timestamp + roundDuration;
r.active = true;
r.rolloverFromPrev = rolloverPot;
r.potAmount = rolloverPot;
rolloverPot = 0;
emit RoundStarted(currentRoundId, r.endTime, r.rolloverFromPrev);
}
function enter(uint256 tokenId, uint256 rank) external nonReentrant {
Round storage r = rounds[currentRoundId];
require(r.active, "No active round");
require(block.timestamp < r.endTime, "Round ended");
require(r.totalEntries < maxEntries, "Round full");
require(!hasEntered[currentRoundId][msg.sender], "Already entered");
require(rank >= 1 && rank <= 10000, "Invalid rank");
// Verify token is staked by this user
(address stakeOwner,,) = IRaceStaking(stakingContract).stakes(tokenId);
require(stakeOwner == msg.sender, "Not your staked token");
// Take entry fee
spunkCoin.safeTransferFrom(msg.sender, address(this), entryFee);
// Split: pot / burn / dev
uint256 toPot = (entryFee * potBps) / 10000;
uint256 toBurn = (entryFee * burnBps) / 10000;
uint256 toDev = entryFee - toPot - toBurn;
// Burn
spunkCoin.safeTransfer(address(0xdead), toBurn);
totalBurned += toBurn;
// Dev
spunkCoin.safeTransfer(devWallet, toDev);
// Add to pot
r.potAmount += toPot;
// Add entry
roundEntries[currentRoundId].push(Entry({
player: msg.sender,
tokenId: tokenId,
rank: rank,
survived: false,
diedOnDay: 0
}));
r.totalEntries++;
hasEntered[currentRoundId][msg.sender] = true;
emit Entered(currentRoundId, msg.sender, tokenId, rank);
}
function resolveRound(uint256 roundId) external nonReentrant {
Round storage r = rounds[roundId];
require(r.active, "Not active");
require(block.timestamp >= r.endTime, "Round not ended");
require(!r.resolved, "Already resolved");
require(r.totalEntries > 0, "No entries");
// Set resolve block
if (r.resolveBlock == 0) {
r.resolveBlock = block.number + revealDelay;
return;
}
require(block.number > r.resolveBlock, "Wait for reveal block");
require(block.number <= r.resolveBlock + 256, "Expired, restart");
uint256 seed = uint256(blockhash(r.resolveBlock));
require(seed != 0, "Blockhash unavailable");
// Simulate the 30-day journey for each entry
Entry[] storage entries = roundEntries[roundId];
uint256 survivors = 0;
uint256 totalSurvivorWeight = 0;
for (uint256 i = 0; i < entries.length; i++) {
(bool survived, uint8 diedOnDay, uint8 killedBy) = _simulateJourney(seed, i, entries[i].rank);
entries[i].survived = survived;
entries[i].diedOnDay = diedOnDay;
if (survived) {
survivors++;
totalSurvivorWeight += _getWeight(entries[i].rank);
emit Survived(roundId, entries[i].player, entries[i].tokenId, 0); // prize filled below
} else {
emit Died(roundId, entries[i].player, entries[i].tokenId, diedOnDay, killedBy);
}
}
r.survivorCount = survivors;
r.resolved = true;
r.active = false;
if (survivors == 0) {
// Nobody made it — pot rolls to next round
rolloverPot += r.potAmount;
emit NoSurvivors(roundId, r.potAmount);
emit RoundResolved(roundId, 0, r.potAmount, 0);
return;
}
// Distribute pot to survivors weighted by rank
uint256 distributed = 0;
for (uint256 i = 0; i < entries.length; i++) {
if (!entries[i].survived) continue;
uint256 weight = _getWeight(entries[i].rank);
uint256 share = (r.potAmount * weight) / totalSurvivorWeight;
// Last survivor gets remainder (avoid dust)
if (distributed + share > r.potAmount) {
share = r.potAmount - distributed;
}
spunkCoin.safeTransfer(entries[i].player, share);
distributed += share;
}
emit RoundResolved(roundId, survivors, r.potAmount, totalBurned);
// Auto-seed next pot (for beta testing)
if (autoSeedAmount > 0) {
rolloverPot += autoSeedAmount;
}
}
/// @notice Anyone can donate to the current round pot
function seedJackpot(uint256 amount) external {
require(amount > 0, "Zero");
spunkCoin.safeTransferFrom(msg.sender, address(this), amount);
if (currentRoundId > 0 && rounds[currentRoundId].active) {
rounds[currentRoundId].potAmount += amount;
} else {
rolloverPot += amount;
}
}
// ══════════════════════════════════════
// JOURNEY SIMULATION
// ══════════════════════════════════════
function _simulateJourney(uint256 seed, uint256 entryIndex, uint256 rank) internal view returns (bool survived, uint8 diedOnDay, uint8 killedBy) {
survived = true;
uint256 survivalBonus = _getSurvivalBonus(rank);
for (uint256 day = 1; day <= 30; day++) {
uint256 salt = entryIndex * 10000 + day * 100;
// 40% chance of obstacle each day
if (_roll(seed, salt) < obstacleChance) {
uint8 obstType = uint8(_roll(seed, salt + 1) % 8);
uint256 killChance = _getKillChance(obstType);
// Apply rank survival bonus (reduces kill chance)
killChance = (killChance * (10000 - survivalBonus)) / 10000;
if (_roll(seed, salt + 2) < killChance) {
return (false, uint8(day), obstType);
}
}
}
return (true, 0, 0);
}
function _getKillChance(uint8 obstType) internal pure returns (uint256) {
if (obstType == 0) return 2000; // WHITE BLOOD CELL 20%
if (obstType == 1) return 2500; // ANTIBODY ATTACK 25%
if (obstType == 2) return 1500; // PH BARRIER 15%
if (obstType == 3) return 1000; // CERVICAL MUCUS 10%
if (obstType == 4) return 3000; // MACROPHAGE 30%
if (obstType == 5) return 2200; // IMMUNE RESPONSE 22%
if (obstType == 6) return 1200; // TEMPERATURE SHOCK 12%
return 1800; // TOXIC ENVIRONMENT 18%
}
function _getSurvivalBonus(uint256 rank) internal pure returns (uint256) {
if (rank <= 10) return 3000; // Mythic: 30% reduction
if (rank <= 100) return 2000; // Legendary: 20%
if (rank <= 500) return 1500; // Rare: 15%
if (rank <= 2000) return 1000; // Uncommon: 10%
return 0; // Common: no bonus
}
function _getWeight(uint256 rank) internal pure returns (uint256) {
if (rank <= 10) return 500; // Mythic: 5x share
if (rank <= 100) return 300; // Legendary: 3x
if (rank <= 500) return 200; // Rare: 2x
if (rank <= 2000) return 150; // Uncommon: 1.5x
return 100; // Common: 1x
}
function _roll(uint256 seed, uint256 salt) internal pure returns (uint256) {
return uint256(keccak256(abi.encodePacked(seed, salt))) % 10000;
}
// ══════════════════════════════════════
// VIEWS
// ══════════════════════════════════════
function getRoundEntries(uint256 roundId) external view returns (Entry[] memory) {
return roundEntries[roundId];
}
function getCurrentRound() external view returns (Round memory) {
return rounds[currentRoundId];
}
/// @notice Preview what would happen with a given seed (for frontend animation)
function previewJourney(uint256 seed, uint256 entryIndex, uint256 rank) external view returns (bool survived, uint8 diedOnDay, uint8 killedBy) {
return _simulateJourney(seed, entryIndex, rank);
}
// ══════════════════════════════════════
// ADMIN
// ══════════════════════════════════════
function setEntryFee(uint256 _fee) external onlyOwner {
entryFee = _fee;
}
function setRoundDuration(uint256 _duration) external onlyOwner {
require(_duration >= 1 hours && _duration <= 7 days, "1h-7d");
roundDuration = _duration;
}
function setMaxEntries(uint256 _max) external onlyOwner {
require(_max >= 2 && _max <= 200, "2-200");
maxEntries = _max;
}
function setDevWallet(address _dev) external onlyOwner {
require(_dev != address(0), "Zero addr");
devWallet = _dev;
}
function setAutoSeed(uint256 _amount) external onlyOwner {
autoSeedAmount = _amount;
}
function setObstacleChance(uint256 _chance) external onlyOwner {
require(_chance >= 1000 && _chance <= 8000, "10-80%");
obstacleChance = _chance;
}
/// @notice Emergency: cancel round, refund pot to players
function cancelRound(uint256 roundId) external onlyOwner nonReentrant {
Round storage r = rounds[roundId];
require(r.active, "Not active");
require(!r.resolved, "Resolved");
// Refund pot portion of entry fee to each player
uint256 refundPer = (entryFee * potBps) / 10000;
Entry[] storage entries = roundEntries[roundId];
for (uint256 i = 0; i < entries.length; i++) {
spunkCoin.safeTransfer(entries[i].player, refundPer);
}
r.active = false;
r.potAmount = 0;
}
}
/IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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);
}
/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* 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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
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() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}
/Context.sol
// 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;
}
}
/utils/SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}
/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";
/IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)
pragma solidity >=0.4.16;
import {IERC165} from "../utils/introspection/IERC165.sol";
/IERC1363.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)
pragma solidity >=0.6.2;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}
/Ownable.sol
// 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);
}
}
Compiler Settings
{"viaIR":true,"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"paris","compilationTarget":{"contracts/SpunkRaceV2.sol":"SpunkRace"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_spunkCoin","internalType":"address"},{"type":"address","name":"_stakingContract","internalType":"address"},{"type":"address","name":"_devWallet","internalType":"address"}]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"event","name":"Died","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256","indexed":true},{"type":"address","name":"player","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"uint8","name":"day","internalType":"uint8","indexed":false},{"type":"uint8","name":"obstacle","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"Entered","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256","indexed":true},{"type":"address","name":"player","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"uint256","name":"rank","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"NoSurvivors","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256","indexed":true},{"type":"uint256","name":"potRolledOver","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoundResolved","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256","indexed":true},{"type":"uint256","name":"survivors","internalType":"uint256","indexed":false},{"type":"uint256","name":"totalPot","internalType":"uint256","indexed":false},{"type":"uint256","name":"burned","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoundStarted","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256","indexed":true},{"type":"uint256","name":"endTime","internalType":"uint256","indexed":false},{"type":"uint256","name":"rollover","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Survived","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256","indexed":true},{"type":"address","name":"player","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"uint256","name":"prize","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"autoSeedAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"burnBps","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cancelRound","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currentRoundId","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"devBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"devWallet","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"enter","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"rank","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"entryFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct SpunkRace.Round","components":[{"type":"uint256","name":"startTime","internalType":"uint256"},{"type":"uint256","name":"endTime","internalType":"uint256"},{"type":"uint256","name":"potAmount","internalType":"uint256"},{"type":"uint256","name":"totalEntries","internalType":"uint256"},{"type":"uint256","name":"resolveBlock","internalType":"uint256"},{"type":"uint256","name":"survivorCount","internalType":"uint256"},{"type":"uint256","name":"rolloverFromPrev","internalType":"uint256"},{"type":"bool","name":"resolved","internalType":"bool"},{"type":"bool","name":"active","internalType":"bool"}]}],"name":"getCurrentRound","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct SpunkRace.Entry[]","components":[{"type":"address","name":"player","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"rank","internalType":"uint256"},{"type":"bool","name":"survived","internalType":"bool"},{"type":"uint8","name":"diedOnDay","internalType":"uint8"}]}],"name":"getRoundEntries","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasEntered","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxEntries","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"obstacleChance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"potBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"survived","internalType":"bool"},{"type":"uint8","name":"diedOnDay","internalType":"uint8"},{"type":"uint8","name":"killedBy","internalType":"uint8"}],"name":"previewJourney","inputs":[{"type":"uint256","name":"seed","internalType":"uint256"},{"type":"uint256","name":"entryIndex","internalType":"uint256"},{"type":"uint256","name":"rank","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"resolveRound","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"revealDelay","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rolloverPot","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"roundDuration","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"player","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"rank","internalType":"uint256"},{"type":"bool","name":"survived","internalType":"bool"},{"type":"uint8","name":"diedOnDay","internalType":"uint8"}],"name":"roundEntries","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"startTime","internalType":"uint256"},{"type":"uint256","name":"endTime","internalType":"uint256"},{"type":"uint256","name":"potAmount","internalType":"uint256"},{"type":"uint256","name":"totalEntries","internalType":"uint256"},{"type":"uint256","name":"resolveBlock","internalType":"uint256"},{"type":"uint256","name":"survivorCount","internalType":"uint256"},{"type":"uint256","name":"rolloverFromPrev","internalType":"uint256"},{"type":"bool","name":"resolved","internalType":"bool"},{"type":"bool","name":"active","internalType":"bool"}],"name":"rounds","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"seedJackpot","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAutoSeed","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDevWallet","inputs":[{"type":"address","name":"_dev","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setEntryFee","inputs":[{"type":"uint256","name":"_fee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxEntries","inputs":[{"type":"uint256","name":"_max","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setObstacleChance","inputs":[{"type":"uint256","name":"_chance","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRoundDuration","inputs":[{"type":"uint256","name":"_duration","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"spunkCoin","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"stakingContract","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"startRound","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBurned","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalRounds","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Contract Creation Code
0x60c0346200016657601f62001e8038819003918201601f19168301916001600160401b038311848410176200016b5780849260609460405283398101031262000166576200004d8162000181565b620000696040620000616020850162000181565b930162000181565b9133156200014d576000549260018060a01b03918260018060a01b031994338688161760005560405196823391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a360018055692a5a058fc295ed000000600255611388600355610fa0806004556103e86005556201518060075560326008556005600955600a556000600b551660805260a05216906006541617600655611ce990816200019782396080518181816106ea0152818161099d01528181610d00015281816111db015261163a015260a0518181816102910152610cad0152f35b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001665756fe608060408181526004918236101561001657600080fd5b600092833560e01c91826302950fb9146111b357508163072ea61c14611194578163073c74f3146111455781631b5ebcfc146111055781631f53ac021461108657816323972aef14610c0657816336c92c3f14610b975781633cf462fe14610b7857816342b3dfc214610a3857816345a587ae146109cc578163528fdab31461098857816353236d741461096957816353deb3d61461094b57816355e3f086146108435781636264eee614610824578163650b8725146107f8578163715018a61461079e57816378b2c1791461077f5781637e07ab09146106765781638663ae1d146106545781638a568299146106355781638c65c81f146105ad5781638da5cb5b146105855781638ea5220f1461055c5781639cbe5efd1461053d578163a32bf59714610425578163b52adb7c14610406578163bea32b731461038f578163cf7f704914610370578163d044f0ea14610301578163d89135cd146102e2578163eb770d0c146102c0578163ee99205c1461027c578163f23f3ba51461025d578163f2fde38b146101d2575063f7cb789a146101b157600080fd5b346101ce57816003193601126101ce576020906007549051908152f35b5080fd5b905034610259576020366003190112610259576101ed611287565b906101f6611aa8565b6001600160a01b0391821692831561024357505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346101ce57816003193601126101ce576020906008549051908152f35b5050346101ce57816003193601126101ce57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b8390346101ce5760203660031901126101ce576102db611aa8565b3560025580f35b5050346101ce57816003193601126101ce576020906011549051908152f35b9050346102595760203660031901126102595780359161031f611aa8565b6103e883101580610364575b15610338575050600a5580f35b906020606492519162461bcd60e51b8352820152600660248201526531302d38302560d01b6044820152fd5b50611f4083111561032b565b5050346101ce57816003193601126101ce576020906012549051908152f35b5050346101ce5761039f366112a2565b92908152600d60205281812090815484101561040357506103c460a09360ff926112b8565b5091600180851b03835416926001810154916003600283015492015492815195865260208601528401528181161515606084015260081c166080820152f35b80fd5b5050346101ce57816003193601126101ce576020906003549051908152f35b9190503461025957826003193601126102595791828061012094519261044a8461133f565b80845280602085015280828501528060608501528060808501528060a08501528060c08501528060e08501528061010080950152600f548152600c602052208151906104958261133f565b8054948583526001820154936020840194855260028301549181850192835260038401549060608601918252840154916080860192835260058501549360a08701948552600760068701549660c0890197885201549760ff8a60e08a0199828c1615158b52019960081c161515895282519a8b525160208b015251908901525160608801525160808701525160a08601525160c085015251151560e084015251151590820152f35b5050346101ce57816003193601126101ce57602090600f549051908152f35b5050346101ce57816003193601126101ce5760065490516001600160a01b039091168152602090f35b5050346101ce57816003193601126101ce57905490516001600160a01b039091168152602090f35b9050346102595760203660031901126102595780826101209460ff93358152600c602052208054936001820154926002830154906003840154908401549160058501549360076006870154960154968151998a5260208a01528801526060870152608086015260a085015260c0840152818116151560e084015260081c161515610100820152f35b5050346101ce57816003193601126101ce576020906010549051908152f35b8390346101ce5760203660031901126101ce5761066f611aa8565b35600b5580f35b90503461025957602036600319011261025957803592610694611aa8565b61069c611ad4565b838152600c60205282812092600784019260ff84546106bf828260081c166113dc565b1661075257506127106106da600295949554600354906113ad565b04948252600d60205281209080927f0000000000000000000000000000000000000000000000000000000000000000935b835481101561073b578061073588610725600194886112b8565b50848060a01b0390541688611af7565b0161070b565b50845461ff00191685556002018190556001805580f35b6020606492519162461bcd60e51b8352820152600860248201526714995cdbdb1d995960c21b6044820152fd5b5050346101ce57816003193601126101ce576020906005549051908152f35b83346104035780600319360112610403576107b7611aa8565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b8390346101ce5760203660031901126101ce5761081d90610817611ad4565b35611415565b6001805580f35b5050346101ce57816003193601126101ce57602090600a549051908152f35b90503461025957826003193601126102595761085d611aa8565b600f548015159081610930575b506108ff575061087b6010546113cd565b8060105580600f558252600c6020527fa359b664a68acd8839e42112eb50eff3408165e15074fde89ddb58a0db2e691d818320914283556108be600754426112ea565b92600181019384556007810161010061ff001982541617905560125460026006830192828455015584601255600f549354905482519182526020820152a280f35b6020606492519162461bcd60e51b8352820152600c60248201526b526f756e642061637469766560a01b6044820152fd5b845250600c6020528183206007015460081c60ff163861086a565b90503461025957826003193601126102595760209250549051908152f35b5050346101ce57816003193601126101ce576020906009549051908152f35b5050346101ce57816003193601126101ce57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b905034610259576020366003190112610259578035916109ea611aa8565b600283101580610a2d575b15610a0257505060085580f35b906020606492519162461bcd60e51b835282015260056024820152640322d3230360dc1b6044820152fd5b5060c88311156109f5565b839150346101ce57602090816003193601126102595780358352600d825283832091825467ffffffffffffffff8111610b65578551919492610a80600583901b870184611378565b8183528583018095855286852085915b848310610b07575050505050845193808501918186525180925285850193925b828110610abd5785850386f35b835180516001600160a01b031686528083015186840152878101518887015260608082015115159087015260809081015160ff169086015260a09094019392810192600101610ab0565b83896001928c9b98999b51610b1b8161130d565b848060a01b03865416815284860154838201528d600287015490820152600386015460ff908181161515606084015260081c16608082015281520192019201919097959497610a90565b634e487b7160e01b855260418352602485fd5b5050346101ce57816003193601126101ce57602090600b549051908152f35b90503461025957602036600319011261025957803591610bb5611aa8565b610e1083101580610bf9575b15610bce57505060075580f35b906020606492519162461bcd60e51b835282015260056024820152640c5a0b4dd960da1b6044820152fd5b5062093a80831115610bc1565b8383346101ce57610c16366112a2565b91610c1f611ad4565b600f90815493848652602092600c84528287209560ff600788015460081c1615611053576001968781015442101561102257600381019182546008541115610ff2578952600e8652848920338a52865260ff858a205416610fbf578784101580610fb3575b15610f81578451636ad227c360e11b81528a81018890526001600160a01b0391906060816024817f000000000000000000000000000000000000000000000000000000000000000087165afa908115610f77578b91610f1a575b508233911603610edf57610dad6002610d5092610da4898f610d968d91610d8e7f000000000000000000000000000000000000000000000000000000000000000093610d2d8954303388611967565b610d5e8954610d5961271080610d45600354856113ad565b049e8f9754846113ad565b049586926113c0565b6113c0565b95519063a9059cbb60e01b9082015261dead602482015282604482015260448152610d888161135c565b84611b73565b6011546112ea565b601155876006541690611af7565b019182546112ea565b905582548952600d86528885812091865190610dc88261130d565b3382528882018a81528883019188835260608401958587526080850195865280549068010000000000000000821015610eca5790610e0a918f820181556112b8565b949094610eb7575184546001600160a01b0319169116178355518b830155516002820155915160039092018054915161ff0060089190911b1661ffff1990921692151560ff16929092171790557f67f18c62d694f27ab65863682a2757fc3881081d5274f7fe7deb533a5ef32b9e93929190610e8681546113cd565b905580548852600e855282882033895285528288208760ff19825416179055549382519586528501523393a3805580f35b8f8f80602492634e487b7160e01b825252fd5b508f8f6041602492634e487b7160e01b835252fd5b855162461bcd60e51b8152808c0188905260156024820152742737ba103cb7bab91039ba30b5b2b2103a37b5b2b760591b6044820152606490fd5b90506060813d606011610f6f575b81610f3560609383611378565b81010312610f6b578051908382168203610f67578781610f598b610f60940161139a565b500161139a565b508c610cde565b8b80fd5b8a80fd5b3d9150610f28565b87513d8d823e3d90fd5b845162461bcd60e51b8152808b01879052600c60248201526b496e76616c69642072616e6b60a01b6044820152606490fd5b50612710841115610c84565b60648a848888519262461bcd60e51b845283015260248201526e105b1c9958591e48195b9d195c9959608a1b6044820152fd5b855162461bcd60e51b8152808c01889052600a602482015269149bdd5b9908199d5b1b60b21b6044820152606490fd5b845162461bcd60e51b8152808b01879052600b60248201526a149bdd5b9908195b99195960aa1b6044820152606490fd5b606489838787519262461bcd60e51b845283015260248201526e139bc81858dd1a5d99481c9bdd5b99608a1b6044820152fd5b905034610259576020366003190112610259576110a1611287565b6110a9611aa8565b6001600160a01b03169182156110d65750506bffffffffffffffffffffffff60a01b600654161760065580f35b906020606492519162461bcd60e51b835282015260096024820152682d32b9379030b2323960b91b6044820152fd5b9050823461040357606036600319011261040357606060ff848161112f60443560243588356119b0565b8451921515835294166020820152921690820152f35b9050346102595781600319360112610259576024356001600160a01b03811691908290036111905760209360ff928492358252600e8652828220908252855220541690519015158152f35b8380fd5b5050346101ce57816003193601126101ce576020906002549051908152f35b90929150346111905760203660031901126111905782359283156112605750506111ff8230337f0000000000000000000000000000000000000000000000000000000000000000611967565b600f548015159081611245575b501561123257600261122d91600f548552600c6020528420019182546112ea565b905580f35b5061123f906012546112ea565b60125580f35b845250600c6020528083206007015460081c60ff163861120c565b62461bcd60e51b82526020818301526024820152635a65726f60e01b604482015260649150fd5b600435906001600160a01b038216820361129d57565b600080fd5b604090600319011261129d576004359060243590565b80548210156112d45760005260206000209060021b0190600090565b634e487b7160e01b600052603260045260246000fd5b919082018092116112f757565b634e487b7160e01b600052601160045260246000fd5b60a0810190811067ffffffffffffffff82111761132957604052565b634e487b7160e01b600052604160045260246000fd5b610120810190811067ffffffffffffffff82111761132957604052565b6080810190811067ffffffffffffffff82111761132957604052565b90601f8019910116810190811067ffffffffffffffff82111761132957604052565b519065ffffffffffff8216820361129d57565b818102929181159184041417156112f757565b919082039182116112f757565b60001981146112f75760010190565b156113e357565b60405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b6044820152606490fd5b9081600052600c602052604060002090600782015461143960ff8260081c166113dc565b600183015442106119305760ff166118f8576003820154156118c657600482018054156118b2575492834311156118755761010084018085116112f757431161183d57834015611800576000818152600d60205260408120928190815b85548310156116055785856114bb60026114b087856112b8565b500154868c406119b0565b90916114e08160036114cd8b896112b8565b50019060ff801983541691151516179055565b6115088360036114f08b896112b8565b50019061ff0082549160081b169061ff001916179055565b1561159a575050505061153d61151f6001926113cd565b94611537600261152f878b6112b8565b500154611b30565b906112ea565b9261154881886112b8565b50828060a01b03905416867feec82fb9d1c8c88567c2524dc85ee584cca251c9aeb63e6b47d3c301e7edd8a5604085611581868d6112b8565b500154815190815260006020820152a35b019192611496565b606084939260ff7f94ca4a58c60fa7f51edb470e64a3acf05fb20c164d4068c15657af61f659cc12938160016115e98d829c9f9e9b816115d9916112b8565b50838060a01b039054169a6112b8565b50015493604051948552166020840152166040820152a3611592565b91509491939550806005830155600161ffff1960078401541617600783015580156117805793906000906000926002809201947f0000000000000000000000000000000000000000000000000000000000000000935b89548610156117205760ff6003611672888d6112b8565b5001541615611717576116898461152f888d6112b8565b611695885491826113ad565b90891561170157600192888d8c6116dd950493806116b386866112ea565b116116e6575b506116c86116d89285926112b8565b50868060a01b039054168a611af7565b6112ea565b955b019461165b565b6116d89294506116f9846116c8926113c0565b9492506116b9565b634e487b7160e01b600052601260045260246000fd5b946001906116df565b50969350965050507f20a987148d85929795e140c681647eabd265b8fdfd67f5982f65384888cb15889250606091546011549060405192835260208301526040820152a2600b548061176f5750565b61177b906012546112ea565b601255565b506060919394507f20a987148d85929795e140c681647eabd265b8fdfd67f5982f65384888cb158892506002016117ba81546012546112ea565b60125554837f2251cd562b43491985121c9f27f3e5cc8d1c17cb17cf892f8a1aa12c656039186020604051848152a26040519060008252602082015260006040820152a2565b60405162461bcd60e51b8152602060048201526015602482015274426c6f636b6861736820756e617661696c61626c6560581b6044820152606490fd5b60405162461bcd60e51b815260206004820152601060248201526f115e1c1a5c99590b081c995cdd185c9d60821b6044820152606490fd5b60405162461bcd60e51b81526020600482015260156024820152745761697420666f722072657665616c20626c6f636b60581b6044820152606490fd5b915091506118c2600954436112ea565b9055565b60405162461bcd60e51b815260206004820152600a6024820152694e6f20656e747269657360b01b6044820152606490fd5b60405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995cdbdb1d995960821b6044820152606490fd5b60405162461bcd60e51b815260206004820152600f60248201526e149bdd5b99081b9bdd08195b991959608a1b6044820152606490fd5b6040516323b872dd60e01b60208201526001600160a01b0392831660248201529290911660448301526064808301939093529181526119ae916119a98261130d565b611b73565b565b90916119bb90611bdb565b600a54909160015b601e8111156119dc575050505050600190600090600090565b612710808602868104821487151715611a93576064808402908482041484151715611a9357611a0a916112ea565b84611a158286611c20565b10611a2b575b5050611a26906113cd565b6119c3565b60018101808211611a9357611a4260079186611c20565b1691611a4d83611c5a565b878203828111611a9357611a60916113ad565b049060028101809111611a9357611a779085611c20565b10611a825780611a1b565b9450949250505060ff600093169190565b60246000634e487b7160e01b81526011600452fd5b6000546001600160a01b03163303611abc57565b60405163118cdaa760e01b8152336004820152602490fd5b600260015414611ae5576002600155565b604051633ee5aeb560e01b8152600490fd5b60405163a9059cbb60e01b60208201526001600160a01b0390921660248301526044808301939093529181526119ae916119a98261135c565b600a811115611b6c576064811115611b65576101f4811115611b5f576107d01015611b5a57606490565b609690565b5060c890565b5061012c90565b506101f490565b906000602091828151910182855af115611bcf576000513d611bc657506001600160a01b0381163b155b611ba45750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611b9d565b6040513d6000823e3d90fd5b600a811115611c19576064811115611c12576101f4811115611c0b576107d01015611c0557600090565b6103e890565b506105dc90565b506107d090565b50610bb890565b6040519160208301918252604083015260408252606082019180831067ffffffffffffffff84111761132957612710926040525190200690565b60ff168015611c125760018114611cac5760028114611c0b5760038114611ca55760048114611c195760058114611c9e57600614611c985761070890565b6104b090565b5061089890565b506103e890565b506109c49056fea26469706673582212207b80648b4402c28cf8f3c17684205a28d13a96f037d5be6b98232ec33112926c64736f6c634300081800330000000000000000000000000f79041fa0a1deb4cc8fffe70ceac256eb6e49cd000000000000000000000000351ba6791aee0563b193b30c06363dc5b1938505000000000000000000000000b48592332c267edb41720f239de953dfae12af9f
Deployed ByteCode
0x608060408181526004918236101561001657600080fd5b600092833560e01c91826302950fb9146111b357508163072ea61c14611194578163073c74f3146111455781631b5ebcfc146111055781631f53ac021461108657816323972aef14610c0657816336c92c3f14610b975781633cf462fe14610b7857816342b3dfc214610a3857816345a587ae146109cc578163528fdab31461098857816353236d741461096957816353deb3d61461094b57816355e3f086146108435781636264eee614610824578163650b8725146107f8578163715018a61461079e57816378b2c1791461077f5781637e07ab09146106765781638663ae1d146106545781638a568299146106355781638c65c81f146105ad5781638da5cb5b146105855781638ea5220f1461055c5781639cbe5efd1461053d578163a32bf59714610425578163b52adb7c14610406578163bea32b731461038f578163cf7f704914610370578163d044f0ea14610301578163d89135cd146102e2578163eb770d0c146102c0578163ee99205c1461027c578163f23f3ba51461025d578163f2fde38b146101d2575063f7cb789a146101b157600080fd5b346101ce57816003193601126101ce576020906007549051908152f35b5080fd5b905034610259576020366003190112610259576101ed611287565b906101f6611aa8565b6001600160a01b0391821692831561024357505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346101ce57816003193601126101ce576020906008549051908152f35b5050346101ce57816003193601126101ce57517f000000000000000000000000351ba6791aee0563b193b30c06363dc5b19385056001600160a01b03168152602090f35b8390346101ce5760203660031901126101ce576102db611aa8565b3560025580f35b5050346101ce57816003193601126101ce576020906011549051908152f35b9050346102595760203660031901126102595780359161031f611aa8565b6103e883101580610364575b15610338575050600a5580f35b906020606492519162461bcd60e51b8352820152600660248201526531302d38302560d01b6044820152fd5b50611f4083111561032b565b5050346101ce57816003193601126101ce576020906012549051908152f35b5050346101ce5761039f366112a2565b92908152600d60205281812090815484101561040357506103c460a09360ff926112b8565b5091600180851b03835416926001810154916003600283015492015492815195865260208601528401528181161515606084015260081c166080820152f35b80fd5b5050346101ce57816003193601126101ce576020906003549051908152f35b9190503461025957826003193601126102595791828061012094519261044a8461133f565b80845280602085015280828501528060608501528060808501528060a08501528060c08501528060e08501528061010080950152600f548152600c602052208151906104958261133f565b8054948583526001820154936020840194855260028301549181850192835260038401549060608601918252840154916080860192835260058501549360a08701948552600760068701549660c0890197885201549760ff8a60e08a0199828c1615158b52019960081c161515895282519a8b525160208b015251908901525160608801525160808701525160a08601525160c085015251151560e084015251151590820152f35b5050346101ce57816003193601126101ce57602090600f549051908152f35b5050346101ce57816003193601126101ce5760065490516001600160a01b039091168152602090f35b5050346101ce57816003193601126101ce57905490516001600160a01b039091168152602090f35b9050346102595760203660031901126102595780826101209460ff93358152600c602052208054936001820154926002830154906003840154908401549160058501549360076006870154960154968151998a5260208a01528801526060870152608086015260a085015260c0840152818116151560e084015260081c161515610100820152f35b5050346101ce57816003193601126101ce576020906010549051908152f35b8390346101ce5760203660031901126101ce5761066f611aa8565b35600b5580f35b90503461025957602036600319011261025957803592610694611aa8565b61069c611ad4565b838152600c60205282812092600784019260ff84546106bf828260081c166113dc565b1661075257506127106106da600295949554600354906113ad565b04948252600d60205281209080927f0000000000000000000000000f79041fa0a1deb4cc8fffe70ceac256eb6e49cd935b835481101561073b578061073588610725600194886112b8565b50848060a01b0390541688611af7565b0161070b565b50845461ff00191685556002018190556001805580f35b6020606492519162461bcd60e51b8352820152600860248201526714995cdbdb1d995960c21b6044820152fd5b5050346101ce57816003193601126101ce576020906005549051908152f35b83346104035780600319360112610403576107b7611aa8565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b8390346101ce5760203660031901126101ce5761081d90610817611ad4565b35611415565b6001805580f35b5050346101ce57816003193601126101ce57602090600a549051908152f35b90503461025957826003193601126102595761085d611aa8565b600f548015159081610930575b506108ff575061087b6010546113cd565b8060105580600f558252600c6020527fa359b664a68acd8839e42112eb50eff3408165e15074fde89ddb58a0db2e691d818320914283556108be600754426112ea565b92600181019384556007810161010061ff001982541617905560125460026006830192828455015584601255600f549354905482519182526020820152a280f35b6020606492519162461bcd60e51b8352820152600c60248201526b526f756e642061637469766560a01b6044820152fd5b845250600c6020528183206007015460081c60ff163861086a565b90503461025957826003193601126102595760209250549051908152f35b5050346101ce57816003193601126101ce576020906009549051908152f35b5050346101ce57816003193601126101ce57517f0000000000000000000000000f79041fa0a1deb4cc8fffe70ceac256eb6e49cd6001600160a01b03168152602090f35b905034610259576020366003190112610259578035916109ea611aa8565b600283101580610a2d575b15610a0257505060085580f35b906020606492519162461bcd60e51b835282015260056024820152640322d3230360dc1b6044820152fd5b5060c88311156109f5565b839150346101ce57602090816003193601126102595780358352600d825283832091825467ffffffffffffffff8111610b65578551919492610a80600583901b870184611378565b8183528583018095855286852085915b848310610b07575050505050845193808501918186525180925285850193925b828110610abd5785850386f35b835180516001600160a01b031686528083015186840152878101518887015260608082015115159087015260809081015160ff169086015260a09094019392810192600101610ab0565b83896001928c9b98999b51610b1b8161130d565b848060a01b03865416815284860154838201528d600287015490820152600386015460ff908181161515606084015260081c16608082015281520192019201919097959497610a90565b634e487b7160e01b855260418352602485fd5b5050346101ce57816003193601126101ce57602090600b549051908152f35b90503461025957602036600319011261025957803591610bb5611aa8565b610e1083101580610bf9575b15610bce57505060075580f35b906020606492519162461bcd60e51b835282015260056024820152640c5a0b4dd960da1b6044820152fd5b5062093a80831115610bc1565b8383346101ce57610c16366112a2565b91610c1f611ad4565b600f90815493848652602092600c84528287209560ff600788015460081c1615611053576001968781015442101561102257600381019182546008541115610ff2578952600e8652848920338a52865260ff858a205416610fbf578784101580610fb3575b15610f81578451636ad227c360e11b81528a81018890526001600160a01b0391906060816024817f000000000000000000000000351ba6791aee0563b193b30c06363dc5b193850587165afa908115610f77578b91610f1a575b508233911603610edf57610dad6002610d5092610da4898f610d968d91610d8e7f0000000000000000000000000f79041fa0a1deb4cc8fffe70ceac256eb6e49cd93610d2d8954303388611967565b610d5e8954610d5961271080610d45600354856113ad565b049e8f9754846113ad565b049586926113c0565b6113c0565b95519063a9059cbb60e01b9082015261dead602482015282604482015260448152610d888161135c565b84611b73565b6011546112ea565b601155876006541690611af7565b019182546112ea565b905582548952600d86528885812091865190610dc88261130d565b3382528882018a81528883019188835260608401958587526080850195865280549068010000000000000000821015610eca5790610e0a918f820181556112b8565b949094610eb7575184546001600160a01b0319169116178355518b830155516002820155915160039092018054915161ff0060089190911b1661ffff1990921692151560ff16929092171790557f67f18c62d694f27ab65863682a2757fc3881081d5274f7fe7deb533a5ef32b9e93929190610e8681546113cd565b905580548852600e855282882033895285528288208760ff19825416179055549382519586528501523393a3805580f35b8f8f80602492634e487b7160e01b825252fd5b508f8f6041602492634e487b7160e01b835252fd5b855162461bcd60e51b8152808c0188905260156024820152742737ba103cb7bab91039ba30b5b2b2103a37b5b2b760591b6044820152606490fd5b90506060813d606011610f6f575b81610f3560609383611378565b81010312610f6b578051908382168203610f67578781610f598b610f60940161139a565b500161139a565b508c610cde565b8b80fd5b8a80fd5b3d9150610f28565b87513d8d823e3d90fd5b845162461bcd60e51b8152808b01879052600c60248201526b496e76616c69642072616e6b60a01b6044820152606490fd5b50612710841115610c84565b60648a848888519262461bcd60e51b845283015260248201526e105b1c9958591e48195b9d195c9959608a1b6044820152fd5b855162461bcd60e51b8152808c01889052600a602482015269149bdd5b9908199d5b1b60b21b6044820152606490fd5b845162461bcd60e51b8152808b01879052600b60248201526a149bdd5b9908195b99195960aa1b6044820152606490fd5b606489838787519262461bcd60e51b845283015260248201526e139bc81858dd1a5d99481c9bdd5b99608a1b6044820152fd5b905034610259576020366003190112610259576110a1611287565b6110a9611aa8565b6001600160a01b03169182156110d65750506bffffffffffffffffffffffff60a01b600654161760065580f35b906020606492519162461bcd60e51b835282015260096024820152682d32b9379030b2323960b91b6044820152fd5b9050823461040357606036600319011261040357606060ff848161112f60443560243588356119b0565b8451921515835294166020820152921690820152f35b9050346102595781600319360112610259576024356001600160a01b03811691908290036111905760209360ff928492358252600e8652828220908252855220541690519015158152f35b8380fd5b5050346101ce57816003193601126101ce576020906002549051908152f35b90929150346111905760203660031901126111905782359283156112605750506111ff8230337f0000000000000000000000000f79041fa0a1deb4cc8fffe70ceac256eb6e49cd611967565b600f548015159081611245575b501561123257600261122d91600f548552600c6020528420019182546112ea565b905580f35b5061123f906012546112ea565b60125580f35b845250600c6020528083206007015460081c60ff163861120c565b62461bcd60e51b82526020818301526024820152635a65726f60e01b604482015260649150fd5b600435906001600160a01b038216820361129d57565b600080fd5b604090600319011261129d576004359060243590565b80548210156112d45760005260206000209060021b0190600090565b634e487b7160e01b600052603260045260246000fd5b919082018092116112f757565b634e487b7160e01b600052601160045260246000fd5b60a0810190811067ffffffffffffffff82111761132957604052565b634e487b7160e01b600052604160045260246000fd5b610120810190811067ffffffffffffffff82111761132957604052565b6080810190811067ffffffffffffffff82111761132957604052565b90601f8019910116810190811067ffffffffffffffff82111761132957604052565b519065ffffffffffff8216820361129d57565b818102929181159184041417156112f757565b919082039182116112f757565b60001981146112f75760010190565b156113e357565b60405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b6044820152606490fd5b9081600052600c602052604060002090600782015461143960ff8260081c166113dc565b600183015442106119305760ff166118f8576003820154156118c657600482018054156118b2575492834311156118755761010084018085116112f757431161183d57834015611800576000818152600d60205260408120928190815b85548310156116055785856114bb60026114b087856112b8565b500154868c406119b0565b90916114e08160036114cd8b896112b8565b50019060ff801983541691151516179055565b6115088360036114f08b896112b8565b50019061ff0082549160081b169061ff001916179055565b1561159a575050505061153d61151f6001926113cd565b94611537600261152f878b6112b8565b500154611b30565b906112ea565b9261154881886112b8565b50828060a01b03905416867feec82fb9d1c8c88567c2524dc85ee584cca251c9aeb63e6b47d3c301e7edd8a5604085611581868d6112b8565b500154815190815260006020820152a35b019192611496565b606084939260ff7f94ca4a58c60fa7f51edb470e64a3acf05fb20c164d4068c15657af61f659cc12938160016115e98d829c9f9e9b816115d9916112b8565b50838060a01b039054169a6112b8565b50015493604051948552166020840152166040820152a3611592565b91509491939550806005830155600161ffff1960078401541617600783015580156117805793906000906000926002809201947f0000000000000000000000000f79041fa0a1deb4cc8fffe70ceac256eb6e49cd935b89548610156117205760ff6003611672888d6112b8565b5001541615611717576116898461152f888d6112b8565b611695885491826113ad565b90891561170157600192888d8c6116dd950493806116b386866112ea565b116116e6575b506116c86116d89285926112b8565b50868060a01b039054168a611af7565b6112ea565b955b019461165b565b6116d89294506116f9846116c8926113c0565b9492506116b9565b634e487b7160e01b600052601260045260246000fd5b946001906116df565b50969350965050507f20a987148d85929795e140c681647eabd265b8fdfd67f5982f65384888cb15889250606091546011549060405192835260208301526040820152a2600b548061176f5750565b61177b906012546112ea565b601255565b506060919394507f20a987148d85929795e140c681647eabd265b8fdfd67f5982f65384888cb158892506002016117ba81546012546112ea565b60125554837f2251cd562b43491985121c9f27f3e5cc8d1c17cb17cf892f8a1aa12c656039186020604051848152a26040519060008252602082015260006040820152a2565b60405162461bcd60e51b8152602060048201526015602482015274426c6f636b6861736820756e617661696c61626c6560581b6044820152606490fd5b60405162461bcd60e51b815260206004820152601060248201526f115e1c1a5c99590b081c995cdd185c9d60821b6044820152606490fd5b60405162461bcd60e51b81526020600482015260156024820152745761697420666f722072657665616c20626c6f636b60581b6044820152606490fd5b915091506118c2600954436112ea565b9055565b60405162461bcd60e51b815260206004820152600a6024820152694e6f20656e747269657360b01b6044820152606490fd5b60405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995cdbdb1d995960821b6044820152606490fd5b60405162461bcd60e51b815260206004820152600f60248201526e149bdd5b99081b9bdd08195b991959608a1b6044820152606490fd5b6040516323b872dd60e01b60208201526001600160a01b0392831660248201529290911660448301526064808301939093529181526119ae916119a98261130d565b611b73565b565b90916119bb90611bdb565b600a54909160015b601e8111156119dc575050505050600190600090600090565b612710808602868104821487151715611a93576064808402908482041484151715611a9357611a0a916112ea565b84611a158286611c20565b10611a2b575b5050611a26906113cd565b6119c3565b60018101808211611a9357611a4260079186611c20565b1691611a4d83611c5a565b878203828111611a9357611a60916113ad565b049060028101809111611a9357611a779085611c20565b10611a825780611a1b565b9450949250505060ff600093169190565b60246000634e487b7160e01b81526011600452fd5b6000546001600160a01b03163303611abc57565b60405163118cdaa760e01b8152336004820152602490fd5b600260015414611ae5576002600155565b604051633ee5aeb560e01b8152600490fd5b60405163a9059cbb60e01b60208201526001600160a01b0390921660248301526044808301939093529181526119ae916119a98261135c565b600a811115611b6c576064811115611b65576101f4811115611b5f576107d01015611b5a57606490565b609690565b5060c890565b5061012c90565b506101f490565b906000602091828151910182855af115611bcf576000513d611bc657506001600160a01b0381163b155b611ba45750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611b9d565b6040513d6000823e3d90fd5b600a811115611c19576064811115611c12576101f4811115611c0b576107d01015611c0557600090565b6103e890565b506105dc90565b506107d090565b50610bb890565b6040519160208301918252604083015260408252606082019180831067ffffffffffffffff84111761132957612710926040525190200690565b60ff168015611c125760018114611cac5760028114611c0b5760038114611ca55760048114611c195760058114611c9e57600614611c985761070890565b6104b090565b5061089890565b506103e890565b506109c49056fea26469706673582212207b80648b4402c28cf8f3c17684205a28d13a96f037d5be6b98232ec33112926c64736f6c63430008180033