Polygon Sponsored slots available. Book your slot here!
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 857 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 81037364 | 20 days ago | IN | 0 POL | 0.05399407 | ||||
| Transfer | 79965286 | 45 days ago | IN | 0 POL | 0.00182875 | ||||
| Claim Tokens | 79780105 | 49 days ago | IN | 0 POL | 0.01157326 | ||||
| Claim Tokens | 79537605 | 55 days ago | IN | 0 POL | 0.00289213 | ||||
| Approve | 79533524 | 55 days ago | IN | 0 POL | 0.00260172 | ||||
| Approve | 79480167 | 56 days ago | IN | 0 POL | 0.0385893 | ||||
| Transfer | 79354076 | 59 days ago | IN | 0 POL | 0.00297525 | ||||
| Claim Tokens | 79354043 | 59 days ago | IN | 0 POL | 0.00540685 | ||||
| Approve | 79322846 | 60 days ago | IN | 0 POL | 0.00473145 | ||||
| Approve | 79309919 | 60 days ago | IN | 0 POL | 0.01372943 | ||||
| Claim Tokens | 79285072 | 61 days ago | IN | 0 POL | 0.00340981 | ||||
| Claim Tokens | 79218337 | 62 days ago | IN | 0 POL | 0.02927768 | ||||
| Approve | 79192751 | 63 days ago | IN | 0 POL | 0.00238813 | ||||
| Approve | 79192531 | 63 days ago | IN | 0 POL | 0.00276882 | ||||
| Approve | 79192445 | 63 days ago | IN | 0 POL | 0.00259498 | ||||
| Approve | 79191881 | 63 days ago | IN | 0 POL | 0.00422448 | ||||
| Approve | 79190864 | 63 days ago | IN | 0 POL | 0.00501961 | ||||
| Approve | 79190832 | 63 days ago | IN | 0 POL | 0.00512975 | ||||
| Approve | 79190635 | 63 days ago | IN | 0 POL | 0.0061938 | ||||
| Approve | 79181917 | 63 days ago | IN | 0 POL | 0.00796352 | ||||
| Approve | 79181655 | 63 days ago | IN | 0 POL | 0.00822203 | ||||
| Approve | 79151007 | 64 days ago | IN | 0 POL | 0.00379192 | ||||
| Transfer | 78691032 | 74 days ago | IN | 0 POL | 0.00366659 | ||||
| Approve | 78197973 | 86 days ago | IN | 0 POL | 0.00121716 | ||||
| Claim Tokens | 78134203 | 87 days ago | IN | 0 POL | 0.00200636 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
GSXTokenV2
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
/**
* @title GSXTokenV2
* @notice An ERC20 token with tiered sale, vesting, and referral mechanisms.
*/
contract GSXTokenV2 is ERC20, Ownable, ReentrancyGuard, Pausable {
using SafeERC20 for IERC20;
string private constant TOKEN_NAME = "GSXToken";
string private constant TOKEN_SYMBOL = "GSX";
uint256 private constant DECIMALS = 10**18;
uint256 private constant MAX_SUPPLY = 80_000_000 * DECIMALS;
uint256 private constant VALIDATORS_REWARDS_AMOUNT = 30_000_000 * DECIMALS;
uint256 private constant COMMUNITY_RESERVE_AMOUNT = 14_000_000 * DECIMALS;
uint256 private constant SEED_ROUND_AMOUNT = 10_000_000 * DECIMALS;
uint256 private constant CEX_DEX_AMOUNT = 8_000_000 * DECIMALS;
uint256 private constant OPERATIONAL_RESERVES_AMOUNT = 4_000_000 * DECIMALS;
uint256 private constant TEAM_AMOUNT = 4_000_000 * DECIMALS;
/** @notice Unix timestamp for the start of the token sale (e.g., 4 Nov 2024) */
uint256 public immutable saleStartUnix;
/** @notice Unix timestamp for the start of the vesting period (e.g., 6 Jan 2025) */
uint256 public immutable vestingStartUnix;
/** @notice Mapping of tier number to its end Unix timestamp */
mapping(uint8 => uint256) public tierEndUnix;
uint256 public immutable singleWalletPurchaseLimitInUsdAtoms;
IERC20 private immutable usdcToken;
IERC20 private immutable usdtToken;
uint256 private immutable usdTokensDecimals;
address public validatorsRewardsWallet;
address public communityReserveWallet;
address public seedRoundWallet;
address public cexDexWallet;
address public operationalReservesWallet;
address public teamWallet;
uint256 public immutable tokenPriceUsdCents;
uint256 public immutable minimumPurchaseAmountUsdAtoms;
mapping(uint8 => uint256) public tierCapsGsxAtoms;
mapping(uint8 => uint256) public tierTokensSoldGsxAtoms;
mapping(uint8 => uint256) public tierVestingPeriodMonths;
mapping(uint8 => uint256) public tierBonusPercent;
mapping(address => uint256) public usdAtomsSpentOnGsx;
uint256 public totalTokensBoughtGsxAtoms;
mapping(address => mapping(uint8 => uint256)) public vestedAmountsGsxAtoms; // tokenOwner => tier => tokenAmount
mapping(address => mapping(uint8 => uint256)) public claimedAmounts; // tokenOwner => tier => tokenAmount
// Referrals
address private admin;
uint8 public immutable referralUserDiscountPercent;
mapping(address => bool) public whitelistedReferrers;
mapping(address => bool) public whitelistedSupporters;
mapping(address => address) public usersReferrers;
mapping(address => uint256) public totalUsdAtomsSpentByReferrersSupporters;
/**
* @notice Emitted when tokens are purchased.
* @param contributor Address of the contributor.
* @param tier Tier number of the purchase.
* @param amountGsx Amount of GSX tokens purchased (excluding bonus).
* @param amountGsxBonus Amount of bonus GSX tokens awarded.
* @param cost Total cost in USD atoms.
*/
event TokensPurchased(address indexed contributor, uint8 tier, uint256 amountGsx, uint256 amountGsxBonus, uint256 cost);
/**
* @notice Emitted when a user claims their vested tokens.
* @param user Address of the user claiming tokens.
* @param amount Amount of GSX tokens claimed.
*/
event TokensClaimed(address indexed user, uint256 amount);
/**
* @notice Emitted when a referrer claims their referral rewards.
* @param user Address of the referrer.
* @param amount Amount of GSX tokens claimed as referral rewards.
*/
event ReferralTokensClaimed(address indexed user, uint256 amount);
/**
* @notice Emitted when a referrer is removed from the whitelist.
* @param user The address of the referrer being removed.
* @param reason The reason for the removal of the referrer.
*/
event ReferrerRemoved(address indexed user, string reason);
/**
* @notice Initializes the GSXTokenV2 contract with initial parameters.
* @param _usdcTokenAddress Address of the USDC token contract.
* @param _usdtTokenAddress Address of the USDT token contract.
* @param _validatorsRewardsWallet Address for validators' rewards.
* @param _communityReserveWallet Address for community reserve.
* @param _seedRoundWallet Address for seed round tokens.
* @param _cexDexWallet Address for CEX/DEX liquidity.
* @param _operationalReservesWallet Address for operational reserves.
* @param _teamWallet Address for team tokens.
* @param _saleStartUnix Unix timestamp for sale start.
* @param _vestingStartUnix Unix timestamp for vesting start.
*/
constructor(
address _usdcTokenAddress,
address _usdtTokenAddress,
address _validatorsRewardsWallet,
address _communityReserveWallet,
address _seedRoundWallet,
address _cexDexWallet,
address _operationalReservesWallet,
address _teamWallet,
uint256 _saleStartUnix,
uint256 _vestingStartUnix
) ERC20(TOKEN_NAME, TOKEN_SYMBOL) Ownable(msg.sender) {
_mint(address(this), MAX_SUPPLY);
_distributeInitialTokens(
_validatorsRewardsWallet,
_communityReserveWallet,
_seedRoundWallet,
_cexDexWallet,
_operationalReservesWallet,
_teamWallet
);
saleStartUnix = _saleStartUnix;
vestingStartUnix = _vestingStartUnix;
tierEndUnix[1] = saleStartUnix + 2 weeks;
tierEndUnix[2] = saleStartUnix + 4 weeks;
tierEndUnix[3] = saleStartUnix + 6 weeks;
tokenPriceUsdCents = 85;
tierVestingPeriodMonths[1] = 9;
tierVestingPeriodMonths[2] = 6;
tierVestingPeriodMonths[3] = 0; // No vesting period
tierBonusPercent[1] = 85;
tierBonusPercent[2] = 25;
tierBonusPercent[3] = 0;
tierCapsGsxAtoms[1] = 4_400_000 * DECIMALS; // 4.4 M
tierCapsGsxAtoms[2] = 3_200_000 * DECIMALS; // 3.2 M
tierCapsGsxAtoms[3] = 2_400_000 * DECIMALS; // 2.4 M
usdTokensDecimals = 10 ** 6;
usdcToken = IERC20(_usdcTokenAddress);
usdtToken = IERC20(_usdtTokenAddress);
singleWalletPurchaseLimitInUsdAtoms = 30_000 * usdTokensDecimals; // in USD atoms
minimumPurchaseAmountUsdAtoms = 50 * usdTokensDecimals;
referralUserDiscountPercent = 5;
totalTokensBoughtGsxAtoms = 0;
}
modifier onlyAdminOrOwner() {
require(msg.sender == admin || msg.sender == owner(), "Caller is not the referral admin");
_;
}
/**
* @notice Distributes tokens to a recipient.
* @dev Only callable by the owner.
* @param recipient Address to receive the tokens.
* @param amount Amount of tokens to distribute.
*/
function distribute(address recipient, uint256 amount) external onlyOwner {
require(balanceOf(address(this)) >= amount, "Insufficient tokens in contract");
_transfer(address(this), recipient, amount);
}
function _distributeInitialTokens(
address _validatorsRewardsWallet,
address _communityReserveWallet,
address _seedRoundWallet,
address _cexDexWallet,
address _operationalReservesWallet,
address _teamWallet
) private {
require(_validatorsRewardsWallet != address(0), "Initial Addresses cannot be zero.");
require(_communityReserveWallet != address(0), "Initial Addresses cannot be zero.");
require(_seedRoundWallet != address(0), "Initial Addresses cannot be zero.");
require(_cexDexWallet != address(0), "Initial Addresses cannot be zero.");
require(_operationalReservesWallet != address(0), "Initial Addresses cannot be zero.");
require(_teamWallet != address(0), "Initial Addresses cannot be zero.");
validatorsRewardsWallet = _validatorsRewardsWallet;
communityReserveWallet = _communityReserveWallet;
seedRoundWallet = _seedRoundWallet;
cexDexWallet = _cexDexWallet;
operationalReservesWallet = _operationalReservesWallet;
teamWallet = _teamWallet;
_transfer(address(this), validatorsRewardsWallet, VALIDATORS_REWARDS_AMOUNT);
_transfer(address(this), communityReserveWallet, COMMUNITY_RESERVE_AMOUNT);
_transfer(address(this), seedRoundWallet, SEED_ROUND_AMOUNT);
_transfer(address(this), cexDexWallet, CEX_DEX_AMOUNT);
_transfer(address(this), operationalReservesWallet, OPERATIONAL_RESERVES_AMOUNT);
_transfer(address(this), teamWallet, TEAM_AMOUNT);
}
/**
* @notice Allows users to claim their vested tokens.
* @dev Tokens become claimable based on the vesting schedule.
*/
function claimTokens() public nonReentrant whenNotPaused {
require(block.timestamp >= vestingStartUnix, "Vesting has not started yet");
uint256 claimableTier1 = getClaimableAmountForTier(msg.sender, 1);
uint256 claimableTier2 = getClaimableAmountForTier(msg.sender, 2);
uint256 claimableTier3 = getClaimableAmountForTier(msg.sender, 3);
uint256 totalClaimable = claimableTier1 + claimableTier2 + claimableTier3;
require(totalClaimable > 0, "No tokens available to claim at the moment");
if (claimableTier1 > 0) {
claimedAmounts[msg.sender][1] += claimableTier1;
}
if (claimableTier2 > 0) {
claimedAmounts[msg.sender][2] += claimableTier2;
}
if (claimableTier3 > 0) {
claimedAmounts[msg.sender][3] += claimableTier3;
}
_transfer(address(this), msg.sender, totalClaimable);
emit TokensClaimed(msg.sender, totalClaimable);
}
/**
* @dev Internal function to handle the purchase of GSX tokens using a USD-pegged ERC20 token.
* @param amountToContributeGsxAtoms Amount of GSX atoms to contribute.
* @param usdPaymentToken ERC20 token used for payment (e.g., USDC or USDT).
*/
function contributeGsxAtomsForUsd(uint256 amountToContributeGsxAtoms, IERC20 usdPaymentToken) private {
require(whitelistedSupporters[msg.sender], "You need to be whitelisted after KYC in oder to contribute tokens");
require(block.timestamp > saleStartUnix, "Sale has not started yet");
require(block.timestamp < getEndSaleUnix(), "Sale has ended");
uint8 tier = getCurrentTier();
require(tier != 0, "The token sale is closed");
uint256 currentTierCapGsxAtoms = getTierCapGsxAtoms(tier);
address usersReferrer = usersReferrers[msg.sender];
uint256 bonusPercent = tierBonusPercent[tier];
uint256 bonusTokens = (amountToContributeGsxAtoms * bonusPercent) / 100;
uint256 totalTokensToVest = amountToContributeGsxAtoms + bonusTokens;
require(getAvailableGsxAmount() >= totalTokensToVest, "Insufficient tokens in contract");
require(totalTokensToVest + tierTokensSoldGsxAtoms[tier] <= currentTierCapGsxAtoms, "Amount exceeds available tokens in the current tier");
uint256 totalCostInUsdAtoms = calculateCostForGsxInUsdAtoms(msg.sender, amountToContributeGsxAtoms);
require(usdAtomsSpentOnGsx[msg.sender] + totalCostInUsdAtoms <= singleWalletPurchaseLimitInUsdAtoms, "Exceeded wallet purchase limit");
require(usdAtomsSpentOnGsx[msg.sender] + totalCostInUsdAtoms >= minimumPurchaseAmountUsdAtoms, "Minimum purchase amount is not reached");
usdPaymentToken.safeTransferFrom(msg.sender, address(this), totalCostInUsdAtoms);
vestedAmountsGsxAtoms[msg.sender][tier] += totalTokensToVest;
tierTokensSoldGsxAtoms[tier] += totalTokensToVest;
usdAtomsSpentOnGsx[msg.sender] += totalCostInUsdAtoms;
totalTokensBoughtGsxAtoms += totalTokensToVest;
if (usersReferrer != address(0) && whitelistedReferrers[usersReferrer]) {
totalUsdAtomsSpentByReferrersSupporters[usersReferrer] += totalCostInUsdAtoms;
}
emit TokensPurchased(msg.sender, tier, amountToContributeGsxAtoms, bonusTokens, totalCostInUsdAtoms);
}
/**
* @notice Calculates the cost in USD atoms for a given amount of GSX atoms.
* @param user Address of the contributor.
* @param amountGsxAtomsToContribute Amount of GSX atoms to contribute.
* @return totalCostInUsdAtoms Total cost in USD atoms after any discounts.
*/
function calculateCostForGsxInUsdAtoms(address user, uint256 amountGsxAtomsToContribute) public view returns (uint256) {
address usersReferrer = usersReferrers[user];
uint256 totalCostInUsdAtoms = ((amountGsxAtomsToContribute * tokenPriceUsdCents * usdTokensDecimals) / DECIMALS ) / 100;
if (usersReferrer != address(0)) {
uint256 discount = (totalCostInUsdAtoms * referralUserDiscountPercent) / 100;
totalCostInUsdAtoms -= discount;
}
require(totalCostInUsdAtoms > 0, "Amount to contribute is too low");
return totalCostInUsdAtoms;
}
/**
* @notice Calculates the claimable amount for a user in a specific tier.
* @param _wallet Address of the user.
* @param tier Tier number (1, 2, or 3).
* @return Claimable amount of tokens in GSX atoms.
*/
function getClaimableAmountForTier(address _wallet, uint8 tier) public view returns (uint256) {
require(tier <= 3, "Invalid tier");
uint256 totalVestedForCurrentTier = vestedAmountsGsxAtoms[_wallet][tier];
uint256 alreadyClaimedForCurrentTier = claimedAmounts[_wallet][tier];
if (totalVestedForCurrentTier == 0) {
return 0;
}
// Division by 30 rounded up
uint256 monthsSinceVestingStart = (block.timestamp - vestingStartUnix + 30 days) / 30 days;
uint256 tierVestingFullLength = tierVestingPeriodMonths[tier];
if (monthsSinceVestingStart >= tierVestingFullLength) {
// allow to claim all remaining tokens
return totalVestedForCurrentTier - alreadyClaimedForCurrentTier;
}
uint256 totalClaimableUntilNow = (totalVestedForCurrentTier / tierVestingFullLength) * monthsSinceVestingStart;
if (totalClaimableUntilNow > alreadyClaimedForCurrentTier) {
return totalClaimableUntilNow - alreadyClaimedForCurrentTier;
}
return 0;
}
/**
* @notice Returns the amount of GSX tokens available for sale.
* @return Amount of tokens available in GSX atoms.
*/
function getAvailableGsxAmount() public view returns (uint256) {
// return IERC20(address(this)).balanceOf(address(this)) - totalTokensBoughtGsxAtoms - tokensLockedForReferrals;
return IERC20(address(this)).balanceOf(address(this)) - totalTokensBoughtGsxAtoms;
}
/**
* @notice Allows a user to purchase GSX tokens using USDC.
* @param amount Amount of USDC tokens to spend (in smallest units).
*/
function contributeGsxAtomsForUsdc(uint256 amount) public whenNotPaused {
contributeGsxAtomsForUsd(amount, usdcToken);
}
/**
* @notice Allows a user to purchase GSX tokens using USDC, specifying the amount in whole tokens.
* @param amount Amount of USDC tokens to spend (in whole tokens).
*/
function contributeGsxForUsdc(uint256 amount) external whenNotPaused {
contributeGsxAtomsForUsdc(amount * DECIMALS);
}
/**
* @notice Allows a user to purchase GSX tokens using USDT.
* @param amount Amount of USDT tokens to spend (in smallest units).
*/
function contributeGsxAtomsForUsdt(uint256 amount) public whenNotPaused {
contributeGsxAtomsForUsd(amount, usdtToken);
}
/**
* @notice Allows a user to purchase GSX tokens using USDT, specifying the amount in whole tokens.
* @param amount Amount of USDT tokens to spend (in whole tokens).
*/
function contributeGsxForUsdt(uint256 amount) external whenNotPaused {
contributeGsxAtomsForUsdt(amount * DECIMALS);
}
/**
* @notice Retrieves the token cap for a specific tier.
* @param tier Tier number.
* @return Cap amount in GSX atoms.
*/
function getTierCapGsxAtoms(uint8 tier) public view returns (uint256) {
uint256 cap = tierCapsGsxAtoms[tier];
require(cap > 0, "Invalid tier");
return cap;
}
function getAvailableTierVolume(uint8 tier) public view returns (uint256) {
return getTierCapGsxAtoms(tier) - tierTokensSoldGsxAtoms[tier];
}
function getCurrentTier() public view returns (uint8) {
if (block.timestamp < saleStartUnix) {
return 0;
}
if (block.timestamp < tierEndUnix[1]) {
return 1;
} else if (block.timestamp < tierEndUnix[2]) {
return 2;
} else if (block.timestamp < tierEndUnix[3]) {
return 3;
}
return 0;
}
function getEndSaleUnix() internal view returns (uint256) {
return tierEndUnix[3];
}
/**
* @notice Whitelists a referrer.
* @dev Only callable by admin or owner.
* @param referrer Address of the referrer to whitelist.
*/
function whitelistReferrer(address referrer) external onlyAdminOrOwner {
whitelistedReferrers[referrer] = true;
}
/**
* @notice Removes a referrer from the whitelist.
* @dev Only callable by admin or owner.
* @param referrer Address of the referrer to remove.
*/
function removeReferrerFromWhitelist(address referrer, string memory reason) external onlyAdminOrOwner {
whitelistedReferrers[referrer] = false;
emit ReferrerRemoved(referrer, reason);
}
/**
* @notice Assigns a referrer to a contributor.
* @dev Only callable by admin or owner.
* @param contributor Address of the contributor.
* @param referrer Address of the referrer.
*/
function addReferrer(address contributor, address referrer) external onlyAdminOrOwner {
require(whitelistedReferrers[referrer], "This referrer is not in the referrer whitelist");
usersReferrers[contributor] = referrer;
}
/**
* @notice Whitelists a supporter (contributor) who has completed KYC.
* @dev Only callable by admin or owner.
* @param supporter Address of the supporter to whitelist.
*/
function whitelistSupporter(address supporter) external onlyAdminOrOwner {
whitelistedSupporters[supporter] = true;
}
/**
* @notice Removes a supporter from the whitelist.
* @dev Only callable by admin or owner.
* @param supporter Address of the supporter to remove.
*/
function removeSupporterFromWhitelist(address supporter) external onlyAdminOrOwner {
whitelistedSupporters[supporter] = false;
}
function setReferralAdmin(address _referralAdmin) external onlyOwner {
require(_referralAdmin != address(0), "Referral admin cannot be zero address");
admin = _referralAdmin;
}
function pause() external onlyOwner {
_pause();
}
function unpause() external onlyOwner {
_unpause();
}
/**
* @notice Allows the owner to withdraw any USD tokens (e.g., USDC or USDT) from the contract.
* @param token Address of the ERC20 token contract (e.g., USDC or USDT).
* @param amountAtoms Amount of tokens to withdraw in smallest units (atoms).
* @param to Address to send the withdrawn tokens to.
*/
function withdrawUsdTokens(IERC20 token, uint256 amountAtoms, address to) external onlyOwner {
require(to != address(0), "Cannot withdraw to the zero address");
require(amountAtoms > 0, "Withdrawal amount must be greater than zero");
uint256 contractBalance = token.balanceOf(address(this));
require(contractBalance >= amountAtoms, "Insufficient token balance in contract");
token.safeTransfer(to, amountAtoms);
}
}// 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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
import {Address} from "../../../utils/Address.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 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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
bool private _paused;
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
/**
* @dev The operation failed because the contract is paused.
*/
error EnforcedPause();
/**
* @dev The operation failed because the contract is not paused.
*/
error ExpectedPause();
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
if (paused()) {
revert EnforcedPause();
}
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
if (!paused()) {
revert ExpectedPause();
}
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert Errors.FailedCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {Errors.FailedCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance(address(this).balance, value);
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
* of an unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {Errors.FailedCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly ("memory-safe") {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.FailedCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @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);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_usdcTokenAddress","type":"address"},{"internalType":"address","name":"_usdtTokenAddress","type":"address"},{"internalType":"address","name":"_validatorsRewardsWallet","type":"address"},{"internalType":"address","name":"_communityReserveWallet","type":"address"},{"internalType":"address","name":"_seedRoundWallet","type":"address"},{"internalType":"address","name":"_cexDexWallet","type":"address"},{"internalType":"address","name":"_operationalReservesWallet","type":"address"},{"internalType":"address","name":"_teamWallet","type":"address"},{"internalType":"uint256","name":"_saleStartUnix","type":"uint256"},{"internalType":"uint256","name":"_vestingStartUnix","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReferralTokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"ReferrerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contributor","type":"address"},{"indexed":false,"internalType":"uint8","name":"tier","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"amountGsx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountGsxBonus","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"TokensPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"contributor","type":"address"},{"internalType":"address","name":"referrer","type":"address"}],"name":"addReferrer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amountGsxAtomsToContribute","type":"uint256"}],"name":"calculateCostForGsxInUsdAtoms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cexDexWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"claimedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityReserveWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"contributeGsxAtomsForUsdc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"contributeGsxAtomsForUsdt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"contributeGsxForUsdc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"contributeGsxForUsdt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAvailableGsxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"tier","type":"uint8"}],"name":"getAvailableTierVolume","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint8","name":"tier","type":"uint8"}],"name":"getClaimableAmountForTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTier","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"tier","type":"uint8"}],"name":"getTierCapGsxAtoms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumPurchaseAmountUsdAtoms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operationalReservesWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referralUserDiscountPercent","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"},{"internalType":"string","name":"reason","type":"string"}],"name":"removeReferrerFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"supporter","type":"address"}],"name":"removeSupporterFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStartUnix","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seedRoundWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_referralAdmin","type":"address"}],"name":"setReferralAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"singleWalletPurchaseLimitInUsdAtoms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"tierBonusPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"tierCapsGsxAtoms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"tierEndUnix","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"tierTokensSoldGsxAtoms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"tierVestingPeriodMonths","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPriceUsdCents","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensBoughtGsxAtoms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalUsdAtomsSpentByReferrersSupporters","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usdAtomsSpentOnGsx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersReferrers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validatorsRewardsWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"vestedAmountsGsxAtoms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingStartUnix","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"}],"name":"whitelistReferrer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"supporter","type":"address"}],"name":"whitelistSupporter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedReferrers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedSupporters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amountAtoms","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawUsdTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6101a060405234801562000011575f80fd5b5060405162005c4938038062005c49833981810160405281019062000037919062000f58565b336040518060400160405280600881526020017f475358546f6b656e0000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f47535800000000000000000000000000000000000000000000000000000000008152508160039081620000b59190620012a3565b508060049081620000c79190620012a3565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200013d575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040162000134919062001398565b60405180910390fd5b6200014e816200045560201b60201c565b5060016006819055505f60075f6101000a81548160ff0219169083151502179055506200019b30670de0b6b3a76400006304c4b4006200018f9190620013e0565b6200051860201b60201c565b620001b1888888888888620005a260201b60201c565b81608081815250508060a0818152505062127500608051620001d491906200142a565b60085f600160ff1681526020019081526020015f20819055506224ea006080516200020091906200142a565b60085f600260ff1681526020019081526020015f208190555062375f006080516200022c91906200142a565b60085f600360ff1681526020019081526020015f208190555060556101408181525050600960115f600160ff1681526020019081526020015f2081905550600660115f600260ff1681526020019081526020015f20819055505f60115f600360ff1681526020019081526020015f2081905550605560125f600160ff1681526020019081526020015f2081905550601960125f600260ff1681526020019081526020015f20819055505f60125f600360ff1681526020019081526020015f2081905550670de0b6b3a764000062432380620003089190620013e0565b600f5f600160ff1681526020019081526020015f2081905550670de0b6b3a76400006230d4006200033a9190620013e0565b600f5f600260ff1681526020019081526020015f2081905550670de0b6b3a764000062249f006200036c9190620013e0565b600f5f600360ff1681526020019081526020015f2081905550620f424061012081815250508973ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff16815250508873ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff1681525050610120516175306200040d9190620013e0565b60c08181525050610120516032620004269190620013e0565b6101608181525050600560ff166101808160ff16815250505f601481905550505050505050505050506200156f565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200058b575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040162000582919062001398565b60405180910390fd5b6200059e5f838362000b9960201b60201c565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff160362000613576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200060a90620014e8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160362000684576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200067b90620014e8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603620006f5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006ec90620014e8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000766576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200075d90620014e8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620007d7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007ce90620014e8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000848576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200083f90620014e8565b60405180910390fd5b8560095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600d5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000a153060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a76400006301c9c38062000a099190620013e0565b62000dbd60201b60201c565b62000a6130600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a764000062d59f8062000a559190620013e0565b62000dbd60201b60201c565b62000aad30600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a76400006298968062000aa19190620013e0565b62000dbd60201b60201c565b62000af930600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a7640000627a120062000aed9190620013e0565b62000dbd60201b60201c565b62000b4530600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a7640000623d090062000b399190620013e0565b62000dbd60201b60201c565b62000b9130600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a7640000623d090062000b859190620013e0565b62000dbd60201b60201c565b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000bed578060025f82825462000be091906200142a565b9250508190555062000cbe565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101562000c79578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040162000c709392919062001519565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000d07578060025f828254039250508190555062000d51565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000db0919062001554565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000e30575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040162000e27919062001398565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000ea3575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040162000e9a919062001398565b60405180910390fd5b62000eb683838362000b9960201b60201c565b505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f62000eea8262000ebf565b9050919050565b62000efc8162000ede565b811462000f07575f80fd5b50565b5f8151905062000f1a8162000ef1565b92915050565b5f819050919050565b62000f348162000f20565b811462000f3f575f80fd5b50565b5f8151905062000f528162000f29565b92915050565b5f805f805f805f805f806101408b8d03121562000f7a5762000f7962000ebb565b5b5f62000f898d828e0162000f0a565b9a5050602062000f9c8d828e0162000f0a565b995050604062000faf8d828e0162000f0a565b985050606062000fc28d828e0162000f0a565b975050608062000fd58d828e0162000f0a565b96505060a062000fe88d828e0162000f0a565b95505060c062000ffb8d828e0162000f0a565b94505060e06200100e8d828e0162000f0a565b935050610100620010228d828e0162000f42565b925050610120620010368d828e0162000f42565b9150509295989b9194979a5092959850565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620010c457607f821691505b602082108103620010da57620010d96200107f565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026200113e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262001101565b6200114a868362001101565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6200118b620011856200117f8462000f20565b62001162565b62000f20565b9050919050565b5f819050919050565b620011a6836200116b565b620011be620011b58262001192565b8484546200110d565b825550505050565b5f90565b620011d4620011c6565b620011e18184846200119b565b505050565b5b818110156200120857620011fc5f82620011ca565b600181019050620011e7565b5050565b601f82111562001257576200122181620010e0565b6200122c84620010f2565b810160208510156200123c578190505b620012546200124b85620010f2565b830182620011e6565b50505b505050565b5f82821c905092915050565b5f620012795f19846008026200125c565b1980831691505092915050565b5f62001293838362001268565b9150826002028217905092915050565b620012ae8262001048565b67ffffffffffffffff811115620012ca57620012c962001052565b5b620012d68254620010ac565b620012e38282856200120c565b5f60209050601f83116001811462001319575f841562001304578287015190505b62001310858262001286565b8655506200137f565b601f1984166200132986620010e0565b5f5b8281101562001352578489015182556001820191506020850194506020810190506200132b565b868310156200137257848901516200136e601f89168262001268565b8355505b6001600288020188555050505b505050505050565b620013928162000ede565b82525050565b5f602082019050620013ad5f83018462001387565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f620013ec8262000f20565b9150620013f98362000f20565b9250828202620014098162000f20565b91508282048414831517620014235762001422620013b3565b5b5092915050565b5f620014368262000f20565b9150620014438362000f20565b92508282019050808211156200145e576200145d620013b3565b5b92915050565b5f82825260208201905092915050565b7f496e697469616c204164647265737365732063616e6e6f74206265207a65726f5f8201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b5f620014d060218362001464565b9150620014dd8262001474565b604082019050919050565b5f6020820190508181035f8301526200150181620014c2565b9050919050565b620015138162000f20565b82525050565b5f6060820190506200152e5f83018662001387565b6200153d602083018562001508565b6200154c604083018462001508565b949350505050565b5f602082019050620015695f83018462001508565b92915050565b60805160a05160c05160e051610100516101205161014051610160516101805161463c6200160d5f395f818161202e01526121c801525f81816114cb0152612c6301525f8181610c320152611fac01525f611f8b01525f6117e601525f61229701525f81816121a40152612bb801525f818161122e01528181611e3501526122c001525f81816111fa015281816116ed0152612950015261463c5ff3fe608060405234801561000f575f80fd5b5060043610610396575f3560e01c80637412c223116101e7578063c11727b31161010d578063dd62ed3e116100ab578063f2fde38b1161007a578063f2fde38b14610b0e578063f3695f0414610b2a578063faa764ab14610b5a578063fb93210814610b7857610396565b8063dd62ed3e14610a74578063eca9176a14610aa4578063ed02542c14610ad4578063f02c6d8f14610af057610396565b8063c7c0935c116100e7578063c7c0935c146109fe578063ced9341614610a1c578063d7a1d40614610a38578063d820e1fa14610a5657610396565b8063c11727b314610980578063c7627519146109b0578063c786afad146109ce57610396565b8063966cb5d711610185578063ab53e24411610154578063ab53e244146108f8578063abd53dbf14610916578063b94265b814610934578063bc7def781461095057610396565b8063966cb5d71461085e5780639cb70fec1461087a5780639e433495146108aa578063a9059cbb146108c857610396565b8063856b29a5116101c1578063856b29a5146107d657806388e3e7fe146108065780638da5cb5b1461082257806395d89b411461084057610396565b80637412c2231461077e5780637c4016b81461079c5780638456cb59146107cc57610396565b8063357b00d3116102cc5780634b40a0fb1161026a5780635c975abb116102395780635c975abb146106f65780636bf9cc301461071457806370a0823114610744578063715018a61461077457610396565b80634b40a0fb1461066e5780634e5047391461068c57806353b8b2e7146106bc57806359927044146106d857610396565b80633d54770d116102a65780633d54770d146106205780633f4ba83a1461063c57806342686b2a1461064657806348c54b9d1461066457610396565b8063357b00d3146105b85780633798a39b146105e85780633a529d701461060457610396565b806310244baf1161033957806323b872dd1161031357806323b872dd1461051e5780632c47a2221461054e5780633086ee101461056a578063313ce5671461059a57610396565b806310244baf146104b457806318160ddd146104d057806319d18419146104ee57610396565b806306df533e1161037557806306df533e1461042a57806306fdde0314610448578063095ea7b3146104665780630b979c221461049657610396565b8062c429261461039a5780630252919e146103ca57806306b0a220146103fa575b5f80fd5b6103b460048036038101906103af919061353f565b610b94565b6040516103c19190613582565b60405180910390f35b6103e460048036038101906103df91906135d1565b610ba9565b6040516103f19190613582565b60405180910390f35b610414600480360381019061040f919061360f565b610bc9565b6040516104219190613582565b60405180910390f35b610432610c30565b60405161043f9190613582565b60405180910390f35b610450610c54565b60405161045d91906136c4565b60405180910390f35b610480600480360381019061047b919061370e565b610ce4565b60405161048d9190613766565b60405180910390f35b61049e610d06565b6040516104ab919061378e565b60405180910390f35b6104ce60048036038101906104c991906137a7565b610d2b565b005b6104d8610d52565b6040516104e59190613582565b60405180910390f35b6105086004803603810190610503919061360f565b610d5b565b6040516105159190613582565b60405180910390f35b610538600480360381019061053391906137d2565b610d70565b6040516105459190613766565b60405180910390f35b6105686004803603810190610563919061353f565b610d9e565b005b610584600480360381019061057f919061360f565b610ec2565b6040516105919190613582565b60405180910390f35b6105a2610ed7565b6040516105af9190613831565b60405180910390f35b6105d260048036038101906105cd919061360f565b610edf565b6040516105df9190613582565b60405180910390f35b61060260048036038101906105fd9190613885565b610ef4565b005b61061e6004803603810190610619919061353f565b61109b565b005b61063a600480360381019061063591906137a7565b6111bf565b005b6106446111e6565b005b61064e6111f8565b60405161065b9190613582565b60405180910390f35b61066c61121c565b005b6106766114c9565b6040516106839190613582565b60405180910390f35b6106a660048036038101906106a1919061360f565b6114ed565b6040516106b39190613582565b60405180910390f35b6106d660048036038101906106d1919061353f565b611502565b005b6106e0611625565b6040516106ed919061378e565b60405180910390f35b6106fe61164a565b60405161070b9190613766565b60405180910390f35b61072e6004803603810190610729919061360f565b61165f565b60405161073b9190613582565b60405180910390f35b61075e6004803603810190610759919061353f565b611692565b60405161076b9190613582565b60405180910390f35b61077c6116d7565b005b6107866116ea565b6040516107939190613831565b60405180910390f35b6107b660048036038101906107b1919061360f565b611794565b6040516107c39190613582565b60405180910390f35b6107d46117a9565b005b6107f060048036038101906107eb919061353f565b6117bb565b6040516107fd9190613766565b60405180910390f35b610820600480360381019061081b91906137a7565b6117d8565b005b61082a61180d565b604051610837919061378e565b60405180910390f35b610848611835565b60405161085591906136c4565b60405180910390f35b61087860048036038101906108739190613a01565b6118c5565b005b610894600480360381019061088f919061353f565b611a37565b6040516108a1919061378e565b60405180910390f35b6108b2611a67565b6040516108bf919061378e565b60405180910390f35b6108e260048036038101906108dd919061370e565b611a8c565b6040516108ef9190613766565b60405180910390f35b610900611aae565b60405161090d9190613582565b60405180910390f35b61091e611b39565b60405161092b9190613582565b60405180910390f35b61094e60048036038101906109499190613a5b565b611b3f565b005b61096a6004803603810190610965919061353f565b611d13565b6040516109779190613582565b60405180910390f35b61099a600480360381019061099591906135d1565b611d28565b6040516109a79190613582565b60405180910390f35b6109b8611ef7565b6040516109c5919061378e565b60405180910390f35b6109e860048036038101906109e3919061370e565b611f1c565b6040516109f59190613582565b60405180910390f35b610a066120c4565b604051610a13919061378e565b60405180910390f35b610a366004803603810190610a31919061353f565b6120e9565b005b610a406121a2565b604051610a4d9190613582565b60405180910390f35b610a5e6121c6565b604051610a6b9190613831565b60405180910390f35b610a8e6004803603810190610a899190613a5b565b6121ea565b604051610a9b9190613582565b60405180910390f35b610abe6004803603810190610ab9919061353f565b61226c565b604051610acb9190613766565b60405180910390f35b610aee6004803603810190610ae991906137a7565b612289565b005b610af86122be565b604051610b059190613582565b60405180910390f35b610b286004803603810190610b23919061353f565b6122e2565b005b610b446004803603810190610b3f91906135d1565b612366565b604051610b519190613582565b60405180910390f35b610b62612386565b604051610b6f919061378e565b60405180910390f35b610b926004803603810190610b8d919061370e565b6123ab565b005b6013602052805f5260405f205f915090505481565b6016602052815f5260405f20602052805f5260405f205f91509150505481565b5f80600f5f8460ff1660ff1681526020019081526020015f205490505f8111610c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1e90613ae3565b60405180910390fd5b80915050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b606060038054610c6390613b2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8f90613b2e565b8015610cda5780601f10610cb157610100808354040283529160200191610cda565b820191905f5260205f20905b815481529060010190602001808311610cbd57829003601f168201915b5050505050905090565b5f80610cee61240d565b9050610cfb818585612414565b600191505092915050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d33612426565b610d4f670de0b6b3a764000082610d4a9190613b8b565b612289565b50565b5f600254905090565b6011602052805f5260405f205f915090505481565b5f80610d7a61240d565b9050610d87858285612467565b610d928585856124f9565b60019150509392505050565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610e2b5750610dfc61180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610e6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6190613c16565b60405180910390fd5b600160185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b6010602052805f5260405f205f915090505481565b5f6012905090565b6012602052805f5260405f205f915090505481565b610efc6125e9565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6190613ca4565b60405180910390fd5b5f8211610fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa390613d32565b60405180910390fd5b5f8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fe6919061378e565b602060405180830381865afa158015611001573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110259190613d64565b90508281101561106a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106190613dff565b60405180910390fd5b61109582848673ffffffffffffffffffffffffffffffffffffffff166126709092919063ffffffff16565b50505050565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061112857506110f961180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e90613c16565b60405180910390fd5b600160195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b6111c7612426565b6111e3670de0b6b3a7640000826111de9190613b8b565b6117d8565b50565b6111ee6125e9565b6111f66126ef565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b611224612750565b61122c612426565b7f000000000000000000000000000000000000000000000000000000000000000042101561128f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128690613e67565b60405180910390fd5b5f61129b336001611d28565b90505f6112a9336002611d28565b90505f6112b7336003611d28565b90505f8183856112c79190613e85565b6112d19190613e85565b90505f8111611315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130c90613f28565b60405180910390fd5b5f841115611384578360165f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f600160ff1681526020019081526020015f205f82825461137c9190613e85565b925050819055505b5f8311156113f3578260165f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f600260ff1681526020019081526020015f205f8282546113eb9190613e85565b925050819055505b5f821115611462578160165f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f600360ff1681526020019081526020015f205f82825461145a9190613e85565b925050819055505b61146d3033836124f9565b3373ffffffffffffffffffffffffffffffffffffffff167f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e430826040516114b39190613582565b60405180910390a2505050506114c7612796565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b600f602052805f5260405f205f915090505481565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061158f575061156061180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c590613c16565b60405180910390fd5b5f60195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60075f9054906101000a900460ff16905090565b5f60105f8360ff1660ff1681526020019081526020015f205461168183610bc9565b61168b9190613f46565b9050919050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6116df6125e9565b6116e85f6127a0565b565b5f7f000000000000000000000000000000000000000000000000000000000000000042101561171b575f9050611791565b60085f600160ff1681526020019081526020015f20544210156117415760019050611791565b60085f600260ff1681526020019081526020015f20544210156117675760029050611791565b60085f600360ff1681526020019081526020015f205442101561178d5760039050611791565b5f90505b90565b6008602052805f5260405f205f915090505481565b6117b16125e9565b6117b9612863565b565b6019602052805f5260405f205f915054906101000a900460ff1681565b6117e0612426565b61180a817f00000000000000000000000000000000000000000000000000000000000000006128c5565b50565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461184490613b2e565b80601f016020809104026020016040519081016040528092919081815260200182805461187090613b2e565b80156118bb5780601f10611892576101008083540402835291602001916118bb565b820191905f5260205f20905b81548152906001019060200180831161189e57829003601f168201915b5050505050905090565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611952575061192361180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611991576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198890613c16565b60405180910390fd5b5f60185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f73a79fb17462eb62e1d29c0949a1fd4ab2020954ecfb3fd0e7775e8b10bd86cc82604051611a2b91906136c4565b60405180910390a25050565b601a602052805f5260405f205f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80611a9661240d565b9050611aa38185856124f9565b600191505092915050565b5f6014543073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611aeb919061378e565b602060405180830381865afa158015611b06573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b2a9190613d64565b611b349190613f46565b905090565b60145481565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611bcc5750611b9d61180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0290613c16565b60405180910390fd5b60185f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8b90613fe9565b60405180910390fd5b80601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b601b602052805f5260405f205f915090505481565b5f60038260ff161115611d70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6790613ae3565b60405180910390fd5b5f60155f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8460ff1660ff1681526020019081526020015f205490505f60165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8560ff1660ff1681526020019081526020015f205490505f8203611e2d575f92505050611ef1565b5f62278d00807f000000000000000000000000000000000000000000000000000000000000000042611e5f9190613f46565b611e699190613e85565b611e739190614034565b90505f60115f8760ff1660ff1681526020019081526020015f20549050808210611eae578284611ea39190613f46565b945050505050611ef1565b5f828286611ebc9190614034565b611ec69190613b8b565b905083811115611ee8578381611edc9190613f46565b95505050505050611ef1565b5f955050505050505b92915050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80601a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f6064670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000087611fd69190613b8b565b611fe09190613b8b565b611fea9190614034565b611ff49190614034565b90505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612077575f60647f000000000000000000000000000000000000000000000000000000000000000060ff168361205b9190613b8b565b6120659190614034565b905080826120739190613f46565b9150505b5f81116120b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b0906140ae565b60405180910390fd5b809250505092915050565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6120f16125e9565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361215f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121569061413c565b60405180910390fd5b8060175f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6018602052805f5260405f205f915054906101000a900460ff1681565b612291612426565b6122bb817f00000000000000000000000000000000000000000000000000000000000000006128c5565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b6122ea6125e9565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361235a575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401612351919061378e565b60405180910390fd5b612363816127a0565b50565b6015602052815f5260405f20602052805f5260405f205f91509150505481565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6123b36125e9565b806123bd30611692565b10156123fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f5906141a4565b60405180910390fd5b6124093083836124f9565b5050565b5f33905090565b6124218383836001612f73565b505050565b61242e61164a565b15612465576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f61247284846121ea565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146124f357818110156124e4578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016124db939291906141c2565b60405180910390fd5b6124f284848484035f612f73565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612569575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401612560919061378e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036125d9575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016125d0919061378e565b60405180910390fd5b6125e4838383613142565b505050565b6125f161240d565b73ffffffffffffffffffffffffffffffffffffffff1661260f61180d565b73ffffffffffffffffffffffffffffffffffffffff161461266e5761263261240d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612665919061378e565b60405180910390fd5b565b6126ea838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016126a39291906141f7565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061335b565b505050565b6126f76133f6565b5f60075f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61273961240d565b604051612746919061378e565b60405180910390a1565b60026006540361278c576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600681905550565b6001600681905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61286b612426565b600160075f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128ae61240d565b6040516128bb919061378e565b60405180910390a1565b60195f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661294e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612945906142b4565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000042116129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a79061431c565b60405180910390fd5b6129b8613436565b42106129f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f090614384565b60405180910390fd5b5f612a026116ea565b90505f8160ff1603612a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a40906143ec565b60405180910390fd5b5f612a5382610bc9565b90505f601a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f60125f8560ff1660ff1681526020019081526020015f205490505f60648288612adf9190613b8b565b612ae99190614034565b90505f8188612af89190613e85565b905080612b03611aae565b1015612b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3b906141a4565b60405180910390fd5b8460105f8860ff1660ff1681526020019081526020015f205482612b689190613e85565b1115612ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba09061447a565b60405180910390fd5b5f612bb4338a611f1c565b90507f00000000000000000000000000000000000000000000000000000000000000008160135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054612c209190613e85565b1115612c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c58906144e2565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008160135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054612ccb9190613e85565b1015612d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0390614570565b60405180910390fd5b612d393330838b73ffffffffffffffffffffffffffffffffffffffff16613452909392919063ffffffff16565b8160155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8960ff1660ff1681526020019081526020015f205f828254612d9a9190613e85565b925050819055508160105f8960ff1660ff1681526020019081526020015f205f828254612dc79190613e85565b925050819055508060135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254612e1a9190613e85565b925050819055508160145f828254612e329190613e85565b925050819055505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614158015612ebb575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612f145780601b5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254612f0c9190613e85565b925050819055505b3373ffffffffffffffffffffffffffffffffffffffff167fe6a826d7d16c6fbccc90b8ae82c4727f2e25855b91a49b964a2da4b3f80a972a888b8685604051612f60949392919061458e565b60405180910390a2505050505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612fe3575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401612fda919061378e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613053575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161304a919061378e565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550801561313c578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516131339190613582565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613192578060025f8282546131869190613e85565b92505081905550613260565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561321b578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401613212939291906141c2565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036132a7578060025f82825403925050819055506132f1565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161334e9190613582565b60405180910390a3505050565b5f8060205f8451602086015f885af18061337a576040513d5f823e3d81fd5b3d92505f519150505f82146133935760018114156133ae565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156133f057836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016133e7919061378e565b60405180910390fd5b50505050565b6133fe61164a565b613434576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f60085f600360ff1681526020019081526020015f2054905090565b6134ce848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401613487939291906145d1565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061335b565b50505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61350e826134e5565b9050919050565b61351e81613504565b8114613528575f80fd5b50565b5f8135905061353981613515565b92915050565b5f60208284031215613554576135536134dd565b5b5f6135618482850161352b565b91505092915050565b5f819050919050565b61357c8161356a565b82525050565b5f6020820190506135955f830184613573565b92915050565b5f60ff82169050919050565b6135b08161359b565b81146135ba575f80fd5b50565b5f813590506135cb816135a7565b92915050565b5f80604083850312156135e7576135e66134dd565b5b5f6135f48582860161352b565b9250506020613605858286016135bd565b9150509250929050565b5f60208284031215613624576136236134dd565b5b5f613631848285016135bd565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015613671578082015181840152602081019050613656565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6136968261363a565b6136a08185613644565b93506136b0818560208601613654565b6136b98161367c565b840191505092915050565b5f6020820190508181035f8301526136dc818461368c565b905092915050565b6136ed8161356a565b81146136f7575f80fd5b50565b5f81359050613708816136e4565b92915050565b5f8060408385031215613724576137236134dd565b5b5f6137318582860161352b565b9250506020613742858286016136fa565b9150509250929050565b5f8115159050919050565b6137608161374c565b82525050565b5f6020820190506137795f830184613757565b92915050565b61378881613504565b82525050565b5f6020820190506137a15f83018461377f565b92915050565b5f602082840312156137bc576137bb6134dd565b5b5f6137c9848285016136fa565b91505092915050565b5f805f606084860312156137e9576137e86134dd565b5b5f6137f68682870161352b565b93505060206138078682870161352b565b9250506040613818868287016136fa565b9150509250925092565b61382b8161359b565b82525050565b5f6020820190506138445f830184613822565b92915050565b5f61385482613504565b9050919050565b6138648161384a565b811461386e575f80fd5b50565b5f8135905061387f8161385b565b92915050565b5f805f6060848603121561389c5761389b6134dd565b5b5f6138a986828701613871565b93505060206138ba868287016136fa565b92505060406138cb8682870161352b565b9150509250925092565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6139138261367c565b810181811067ffffffffffffffff82111715613932576139316138dd565b5b80604052505050565b5f6139446134d4565b9050613950828261390a565b919050565b5f67ffffffffffffffff82111561396f5761396e6138dd565b5b6139788261367c565b9050602081019050919050565b828183375f83830152505050565b5f6139a56139a084613955565b61393b565b9050828152602081018484840111156139c1576139c06138d9565b5b6139cc848285613985565b509392505050565b5f82601f8301126139e8576139e76138d5565b5b81356139f8848260208601613993565b91505092915050565b5f8060408385031215613a1757613a166134dd565b5b5f613a248582860161352b565b925050602083013567ffffffffffffffff811115613a4557613a446134e1565b5b613a51858286016139d4565b9150509250929050565b5f8060408385031215613a7157613a706134dd565b5b5f613a7e8582860161352b565b9250506020613a8f8582860161352b565b9150509250929050565b7f496e76616c6964207469657200000000000000000000000000000000000000005f82015250565b5f613acd600c83613644565b9150613ad882613a99565b602082019050919050565b5f6020820190508181035f830152613afa81613ac1565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613b4557607f821691505b602082108103613b5857613b57613b01565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613b958261356a565b9150613ba08361356a565b9250828202613bae8161356a565b91508282048414831517613bc557613bc4613b5e565b5b5092915050565b7f43616c6c6572206973206e6f742074686520726566657272616c2061646d696e5f82015250565b5f613c00602083613644565b9150613c0b82613bcc565b602082019050919050565b5f6020820190508181035f830152613c2d81613bf4565b9050919050565b7f43616e6e6f7420776974686472617720746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613c8e602383613644565b9150613c9982613c34565b604082019050919050565b5f6020820190508181035f830152613cbb81613c82565b9050919050565b7f5769746864726177616c20616d6f756e74206d757374206265206772656174655f8201527f72207468616e207a65726f000000000000000000000000000000000000000000602082015250565b5f613d1c602b83613644565b9150613d2782613cc2565b604082019050919050565b5f6020820190508181035f830152613d4981613d10565b9050919050565b5f81519050613d5e816136e4565b92915050565b5f60208284031215613d7957613d786134dd565b5b5f613d8684828501613d50565b91505092915050565b7f496e73756666696369656e7420746f6b656e2062616c616e636520696e20636f5f8201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b5f613de9602683613644565b9150613df482613d8f565b604082019050919050565b5f6020820190508181035f830152613e1681613ddd565b9050919050565b7f56657374696e6720686173206e6f7420737461727465642079657400000000005f82015250565b5f613e51601b83613644565b9150613e5c82613e1d565b602082019050919050565b5f6020820190508181035f830152613e7e81613e45565b9050919050565b5f613e8f8261356a565b9150613e9a8361356a565b9250828201905080821115613eb257613eb1613b5e565b5b92915050565b7f4e6f20746f6b656e7320617661696c61626c6520746f20636c61696d206174205f8201527f746865206d6f6d656e7400000000000000000000000000000000000000000000602082015250565b5f613f12602a83613644565b9150613f1d82613eb8565b604082019050919050565b5f6020820190508181035f830152613f3f81613f06565b9050919050565b5f613f508261356a565b9150613f5b8361356a565b9250828203905081811115613f7357613f72613b5e565b5b92915050565b7f54686973207265666572726572206973206e6f7420696e2074686520726566655f8201527f727265722077686974656c697374000000000000000000000000000000000000602082015250565b5f613fd3602e83613644565b9150613fde82613f79565b604082019050919050565b5f6020820190508181035f83015261400081613fc7565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61403e8261356a565b91506140498361356a565b92508261405957614058614007565b5b828204905092915050565b7f416d6f756e7420746f20636f6e7472696275746520697320746f6f206c6f77005f82015250565b5f614098601f83613644565b91506140a382614064565b602082019050919050565b5f6020820190508181035f8301526140c58161408c565b9050919050565b7f526566657272616c2061646d696e2063616e6e6f74206265207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f614126602583613644565b9150614131826140cc565b604082019050919050565b5f6020820190508181035f8301526141538161411a565b9050919050565b7f496e73756666696369656e7420746f6b656e7320696e20636f6e7472616374005f82015250565b5f61418e601f83613644565b91506141998261415a565b602082019050919050565b5f6020820190508181035f8301526141bb81614182565b9050919050565b5f6060820190506141d55f83018661377f565b6141e26020830185613573565b6141ef6040830184613573565b949350505050565b5f60408201905061420a5f83018561377f565b6142176020830184613573565b9392505050565b7f596f75206e65656420746f2062652077686974656c69737465642061667465725f8201527f204b594320696e206f64657220746f20636f6e7472696275746520746f6b656e60208201527f7300000000000000000000000000000000000000000000000000000000000000604082015250565b5f61429e604183613644565b91506142a98261421e565b606082019050919050565b5f6020820190508181035f8301526142cb81614292565b9050919050565b7f53616c6520686173206e6f7420737461727465642079657400000000000000005f82015250565b5f614306601883613644565b9150614311826142d2565b602082019050919050565b5f6020820190508181035f830152614333816142fa565b9050919050565b7f53616c652068617320656e6465640000000000000000000000000000000000005f82015250565b5f61436e600e83613644565b91506143798261433a565b602082019050919050565b5f6020820190508181035f83015261439b81614362565b9050919050565b7f54686520746f6b656e2073616c6520697320636c6f73656400000000000000005f82015250565b5f6143d6601883613644565b91506143e1826143a2565b602082019050919050565b5f6020820190508181035f830152614403816143ca565b9050919050565b7f416d6f756e74206578636565647320617661696c61626c6520746f6b656e73205f8201527f696e207468652063757272656e74207469657200000000000000000000000000602082015250565b5f614464603383613644565b915061446f8261440a565b604082019050919050565b5f6020820190508181035f83015261449181614458565b9050919050565b7f45786365656465642077616c6c6574207075726368617365206c696d697400005f82015250565b5f6144cc601e83613644565b91506144d782614498565b602082019050919050565b5f6020820190508181035f8301526144f9816144c0565b9050919050565b7f4d696e696d756d20707572636861736520616d6f756e74206973206e6f7420725f8201527f6561636865640000000000000000000000000000000000000000000000000000602082015250565b5f61455a602683613644565b915061456582614500565b604082019050919050565b5f6020820190508181035f8301526145878161454e565b9050919050565b5f6080820190506145a15f830187613822565b6145ae6020830186613573565b6145bb6040830185613573565b6145c86060830184613573565b95945050505050565b5f6060820190506145e45f83018661377f565b6145f1602083018561377f565b6145fe6040830184613573565b94935050505056fea2646970667358221220b9721a202ca380a80ce4fa145e9e788a0cd8bb27ae4d1035226393126bccf42a64736f6c634300081800330000000000000000000000003c499c542cef5e3811e1192ce70d8cc03d5c3359000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f000000000000000000000000db687143a0b963fbeb5dcee1839d9016fe24a97c000000000000000000000000fac494bfbb8106c0c1f21af8d11db9bf5e73d7ba000000000000000000000000f2410c2d4e02c7e842f1542da6bf2862dcfe9cd40000000000000000000000006126f9a052156616601b337f5eda21b31b962a9700000000000000000000000081952e12e2a61b6ce89f9ea73da1f5f2c39a1c42000000000000000000000000ed3695b7c1fd32210964f6585b69021d94f80446000000000000000000000000000000000000000000000000000000006733515000000000000000000000000000000000000000000000000000000000678f9a50
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610396575f3560e01c80637412c223116101e7578063c11727b31161010d578063dd62ed3e116100ab578063f2fde38b1161007a578063f2fde38b14610b0e578063f3695f0414610b2a578063faa764ab14610b5a578063fb93210814610b7857610396565b8063dd62ed3e14610a74578063eca9176a14610aa4578063ed02542c14610ad4578063f02c6d8f14610af057610396565b8063c7c0935c116100e7578063c7c0935c146109fe578063ced9341614610a1c578063d7a1d40614610a38578063d820e1fa14610a5657610396565b8063c11727b314610980578063c7627519146109b0578063c786afad146109ce57610396565b8063966cb5d711610185578063ab53e24411610154578063ab53e244146108f8578063abd53dbf14610916578063b94265b814610934578063bc7def781461095057610396565b8063966cb5d71461085e5780639cb70fec1461087a5780639e433495146108aa578063a9059cbb146108c857610396565b8063856b29a5116101c1578063856b29a5146107d657806388e3e7fe146108065780638da5cb5b1461082257806395d89b411461084057610396565b80637412c2231461077e5780637c4016b81461079c5780638456cb59146107cc57610396565b8063357b00d3116102cc5780634b40a0fb1161026a5780635c975abb116102395780635c975abb146106f65780636bf9cc301461071457806370a0823114610744578063715018a61461077457610396565b80634b40a0fb1461066e5780634e5047391461068c57806353b8b2e7146106bc57806359927044146106d857610396565b80633d54770d116102a65780633d54770d146106205780633f4ba83a1461063c57806342686b2a1461064657806348c54b9d1461066457610396565b8063357b00d3146105b85780633798a39b146105e85780633a529d701461060457610396565b806310244baf1161033957806323b872dd1161031357806323b872dd1461051e5780632c47a2221461054e5780633086ee101461056a578063313ce5671461059a57610396565b806310244baf146104b457806318160ddd146104d057806319d18419146104ee57610396565b806306df533e1161037557806306df533e1461042a57806306fdde0314610448578063095ea7b3146104665780630b979c221461049657610396565b8062c429261461039a5780630252919e146103ca57806306b0a220146103fa575b5f80fd5b6103b460048036038101906103af919061353f565b610b94565b6040516103c19190613582565b60405180910390f35b6103e460048036038101906103df91906135d1565b610ba9565b6040516103f19190613582565b60405180910390f35b610414600480360381019061040f919061360f565b610bc9565b6040516104219190613582565b60405180910390f35b610432610c30565b60405161043f9190613582565b60405180910390f35b610450610c54565b60405161045d91906136c4565b60405180910390f35b610480600480360381019061047b919061370e565b610ce4565b60405161048d9190613766565b60405180910390f35b61049e610d06565b6040516104ab919061378e565b60405180910390f35b6104ce60048036038101906104c991906137a7565b610d2b565b005b6104d8610d52565b6040516104e59190613582565b60405180910390f35b6105086004803603810190610503919061360f565b610d5b565b6040516105159190613582565b60405180910390f35b610538600480360381019061053391906137d2565b610d70565b6040516105459190613766565b60405180910390f35b6105686004803603810190610563919061353f565b610d9e565b005b610584600480360381019061057f919061360f565b610ec2565b6040516105919190613582565b60405180910390f35b6105a2610ed7565b6040516105af9190613831565b60405180910390f35b6105d260048036038101906105cd919061360f565b610edf565b6040516105df9190613582565b60405180910390f35b61060260048036038101906105fd9190613885565b610ef4565b005b61061e6004803603810190610619919061353f565b61109b565b005b61063a600480360381019061063591906137a7565b6111bf565b005b6106446111e6565b005b61064e6111f8565b60405161065b9190613582565b60405180910390f35b61066c61121c565b005b6106766114c9565b6040516106839190613582565b60405180910390f35b6106a660048036038101906106a1919061360f565b6114ed565b6040516106b39190613582565b60405180910390f35b6106d660048036038101906106d1919061353f565b611502565b005b6106e0611625565b6040516106ed919061378e565b60405180910390f35b6106fe61164a565b60405161070b9190613766565b60405180910390f35b61072e6004803603810190610729919061360f565b61165f565b60405161073b9190613582565b60405180910390f35b61075e6004803603810190610759919061353f565b611692565b60405161076b9190613582565b60405180910390f35b61077c6116d7565b005b6107866116ea565b6040516107939190613831565b60405180910390f35b6107b660048036038101906107b1919061360f565b611794565b6040516107c39190613582565b60405180910390f35b6107d46117a9565b005b6107f060048036038101906107eb919061353f565b6117bb565b6040516107fd9190613766565b60405180910390f35b610820600480360381019061081b91906137a7565b6117d8565b005b61082a61180d565b604051610837919061378e565b60405180910390f35b610848611835565b60405161085591906136c4565b60405180910390f35b61087860048036038101906108739190613a01565b6118c5565b005b610894600480360381019061088f919061353f565b611a37565b6040516108a1919061378e565b60405180910390f35b6108b2611a67565b6040516108bf919061378e565b60405180910390f35b6108e260048036038101906108dd919061370e565b611a8c565b6040516108ef9190613766565b60405180910390f35b610900611aae565b60405161090d9190613582565b60405180910390f35b61091e611b39565b60405161092b9190613582565b60405180910390f35b61094e60048036038101906109499190613a5b565b611b3f565b005b61096a6004803603810190610965919061353f565b611d13565b6040516109779190613582565b60405180910390f35b61099a600480360381019061099591906135d1565b611d28565b6040516109a79190613582565b60405180910390f35b6109b8611ef7565b6040516109c5919061378e565b60405180910390f35b6109e860048036038101906109e3919061370e565b611f1c565b6040516109f59190613582565b60405180910390f35b610a066120c4565b604051610a13919061378e565b60405180910390f35b610a366004803603810190610a31919061353f565b6120e9565b005b610a406121a2565b604051610a4d9190613582565b60405180910390f35b610a5e6121c6565b604051610a6b9190613831565b60405180910390f35b610a8e6004803603810190610a899190613a5b565b6121ea565b604051610a9b9190613582565b60405180910390f35b610abe6004803603810190610ab9919061353f565b61226c565b604051610acb9190613766565b60405180910390f35b610aee6004803603810190610ae991906137a7565b612289565b005b610af86122be565b604051610b059190613582565b60405180910390f35b610b286004803603810190610b23919061353f565b6122e2565b005b610b446004803603810190610b3f91906135d1565b612366565b604051610b519190613582565b60405180910390f35b610b62612386565b604051610b6f919061378e565b60405180910390f35b610b926004803603810190610b8d919061370e565b6123ab565b005b6013602052805f5260405f205f915090505481565b6016602052815f5260405f20602052805f5260405f205f91509150505481565b5f80600f5f8460ff1660ff1681526020019081526020015f205490505f8111610c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1e90613ae3565b60405180910390fd5b80915050919050565b7f000000000000000000000000000000000000000000000000000000000000005581565b606060038054610c6390613b2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8f90613b2e565b8015610cda5780601f10610cb157610100808354040283529160200191610cda565b820191905f5260205f20905b815481529060010190602001808311610cbd57829003601f168201915b5050505050905090565b5f80610cee61240d565b9050610cfb818585612414565b600191505092915050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d33612426565b610d4f670de0b6b3a764000082610d4a9190613b8b565b612289565b50565b5f600254905090565b6011602052805f5260405f205f915090505481565b5f80610d7a61240d565b9050610d87858285612467565b610d928585856124f9565b60019150509392505050565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610e2b5750610dfc61180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610e6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6190613c16565b60405180910390fd5b600160185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b6010602052805f5260405f205f915090505481565b5f6012905090565b6012602052805f5260405f205f915090505481565b610efc6125e9565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6190613ca4565b60405180910390fd5b5f8211610fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa390613d32565b60405180910390fd5b5f8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fe6919061378e565b602060405180830381865afa158015611001573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110259190613d64565b90508281101561106a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106190613dff565b60405180910390fd5b61109582848673ffffffffffffffffffffffffffffffffffffffff166126709092919063ffffffff16565b50505050565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061112857506110f961180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e90613c16565b60405180910390fd5b600160195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b6111c7612426565b6111e3670de0b6b3a7640000826111de9190613b8b565b6117d8565b50565b6111ee6125e9565b6111f66126ef565b565b7f000000000000000000000000000000000000000000000000000000006733515081565b611224612750565b61122c612426565b7f00000000000000000000000000000000000000000000000000000000678f9a5042101561128f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128690613e67565b60405180910390fd5b5f61129b336001611d28565b90505f6112a9336002611d28565b90505f6112b7336003611d28565b90505f8183856112c79190613e85565b6112d19190613e85565b90505f8111611315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130c90613f28565b60405180910390fd5b5f841115611384578360165f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f600160ff1681526020019081526020015f205f82825461137c9190613e85565b925050819055505b5f8311156113f3578260165f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f600260ff1681526020019081526020015f205f8282546113eb9190613e85565b925050819055505b5f821115611462578160165f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f600360ff1681526020019081526020015f205f82825461145a9190613e85565b925050819055505b61146d3033836124f9565b3373ffffffffffffffffffffffffffffffffffffffff167f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e430826040516114b39190613582565b60405180910390a2505050506114c7612796565b565b7f0000000000000000000000000000000000000000000000000000000002faf08081565b600f602052805f5260405f205f915090505481565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061158f575061156061180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c590613c16565b60405180910390fd5b5f60195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60075f9054906101000a900460ff16905090565b5f60105f8360ff1660ff1681526020019081526020015f205461168183610bc9565b61168b9190613f46565b9050919050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6116df6125e9565b6116e85f6127a0565b565b5f7f000000000000000000000000000000000000000000000000000000006733515042101561171b575f9050611791565b60085f600160ff1681526020019081526020015f20544210156117415760019050611791565b60085f600260ff1681526020019081526020015f20544210156117675760029050611791565b60085f600360ff1681526020019081526020015f205442101561178d5760039050611791565b5f90505b90565b6008602052805f5260405f205f915090505481565b6117b16125e9565b6117b9612863565b565b6019602052805f5260405f205f915054906101000a900460ff1681565b6117e0612426565b61180a817f000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f6128c5565b50565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461184490613b2e565b80601f016020809104026020016040519081016040528092919081815260200182805461187090613b2e565b80156118bb5780601f10611892576101008083540402835291602001916118bb565b820191905f5260205f20905b81548152906001019060200180831161189e57829003601f168201915b5050505050905090565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611952575061192361180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611991576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198890613c16565b60405180910390fd5b5f60185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f73a79fb17462eb62e1d29c0949a1fd4ab2020954ecfb3fd0e7775e8b10bd86cc82604051611a2b91906136c4565b60405180910390a25050565b601a602052805f5260405f205f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80611a9661240d565b9050611aa38185856124f9565b600191505092915050565b5f6014543073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611aeb919061378e565b602060405180830381865afa158015611b06573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b2a9190613d64565b611b349190613f46565b905090565b60145481565b60175f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611bcc5750611b9d61180d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0290613c16565b60405180910390fd5b60185f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8b90613fe9565b60405180910390fd5b80601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b601b602052805f5260405f205f915090505481565b5f60038260ff161115611d70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6790613ae3565b60405180910390fd5b5f60155f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8460ff1660ff1681526020019081526020015f205490505f60165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8560ff1660ff1681526020019081526020015f205490505f8203611e2d575f92505050611ef1565b5f62278d00807f00000000000000000000000000000000000000000000000000000000678f9a5042611e5f9190613f46565b611e699190613e85565b611e739190614034565b90505f60115f8760ff1660ff1681526020019081526020015f20549050808210611eae578284611ea39190613f46565b945050505050611ef1565b5f828286611ebc9190614034565b611ec69190613b8b565b905083811115611ee8578381611edc9190613f46565b95505050505050611ef1565b5f955050505050505b92915050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80601a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f6064670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000f42407f000000000000000000000000000000000000000000000000000000000000005587611fd69190613b8b565b611fe09190613b8b565b611fea9190614034565b611ff49190614034565b90505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612077575f60647f000000000000000000000000000000000000000000000000000000000000000560ff168361205b9190613b8b565b6120659190614034565b905080826120739190613f46565b9150505b5f81116120b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b0906140ae565b60405180910390fd5b809250505092915050565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6120f16125e9565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361215f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121569061413c565b60405180910390fd5b8060175f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f00000000000000000000000000000000000000000000000000000006fc23ac0081565b7f000000000000000000000000000000000000000000000000000000000000000581565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6018602052805f5260405f205f915054906101000a900460ff1681565b612291612426565b6122bb817f0000000000000000000000003c499c542cef5e3811e1192ce70d8cc03d5c33596128c5565b50565b7f00000000000000000000000000000000000000000000000000000000678f9a5081565b6122ea6125e9565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361235a575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401612351919061378e565b60405180910390fd5b612363816127a0565b50565b6015602052815f5260405f20602052805f5260405f205f91509150505481565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6123b36125e9565b806123bd30611692565b10156123fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f5906141a4565b60405180910390fd5b6124093083836124f9565b5050565b5f33905090565b6124218383836001612f73565b505050565b61242e61164a565b15612465576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f61247284846121ea565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146124f357818110156124e4578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016124db939291906141c2565b60405180910390fd5b6124f284848484035f612f73565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612569575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401612560919061378e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036125d9575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016125d0919061378e565b60405180910390fd5b6125e4838383613142565b505050565b6125f161240d565b73ffffffffffffffffffffffffffffffffffffffff1661260f61180d565b73ffffffffffffffffffffffffffffffffffffffff161461266e5761263261240d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612665919061378e565b60405180910390fd5b565b6126ea838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016126a39291906141f7565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061335b565b505050565b6126f76133f6565b5f60075f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61273961240d565b604051612746919061378e565b60405180910390a1565b60026006540361278c576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600681905550565b6001600681905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61286b612426565b600160075f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128ae61240d565b6040516128bb919061378e565b60405180910390a1565b60195f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661294e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612945906142b4565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000006733515042116129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a79061431c565b60405180910390fd5b6129b8613436565b42106129f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f090614384565b60405180910390fd5b5f612a026116ea565b90505f8160ff1603612a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a40906143ec565b60405180910390fd5b5f612a5382610bc9565b90505f601a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f60125f8560ff1660ff1681526020019081526020015f205490505f60648288612adf9190613b8b565b612ae99190614034565b90505f8188612af89190613e85565b905080612b03611aae565b1015612b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3b906141a4565b60405180910390fd5b8460105f8860ff1660ff1681526020019081526020015f205482612b689190613e85565b1115612ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba09061447a565b60405180910390fd5b5f612bb4338a611f1c565b90507f00000000000000000000000000000000000000000000000000000006fc23ac008160135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054612c209190613e85565b1115612c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c58906144e2565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000002faf0808160135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054612ccb9190613e85565b1015612d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0390614570565b60405180910390fd5b612d393330838b73ffffffffffffffffffffffffffffffffffffffff16613452909392919063ffffffff16565b8160155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8960ff1660ff1681526020019081526020015f205f828254612d9a9190613e85565b925050819055508160105f8960ff1660ff1681526020019081526020015f205f828254612dc79190613e85565b925050819055508060135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254612e1a9190613e85565b925050819055508160145f828254612e329190613e85565b925050819055505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614158015612ebb575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612f145780601b5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254612f0c9190613e85565b925050819055505b3373ffffffffffffffffffffffffffffffffffffffff167fe6a826d7d16c6fbccc90b8ae82c4727f2e25855b91a49b964a2da4b3f80a972a888b8685604051612f60949392919061458e565b60405180910390a2505050505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612fe3575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401612fda919061378e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613053575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161304a919061378e565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550801561313c578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516131339190613582565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613192578060025f8282546131869190613e85565b92505081905550613260565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561321b578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401613212939291906141c2565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036132a7578060025f82825403925050819055506132f1565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161334e9190613582565b60405180910390a3505050565b5f8060205f8451602086015f885af18061337a576040513d5f823e3d81fd5b3d92505f519150505f82146133935760018114156133ae565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156133f057836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016133e7919061378e565b60405180910390fd5b50505050565b6133fe61164a565b613434576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f60085f600360ff1681526020019081526020015f2054905090565b6134ce848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401613487939291906145d1565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061335b565b50505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61350e826134e5565b9050919050565b61351e81613504565b8114613528575f80fd5b50565b5f8135905061353981613515565b92915050565b5f60208284031215613554576135536134dd565b5b5f6135618482850161352b565b91505092915050565b5f819050919050565b61357c8161356a565b82525050565b5f6020820190506135955f830184613573565b92915050565b5f60ff82169050919050565b6135b08161359b565b81146135ba575f80fd5b50565b5f813590506135cb816135a7565b92915050565b5f80604083850312156135e7576135e66134dd565b5b5f6135f48582860161352b565b9250506020613605858286016135bd565b9150509250929050565b5f60208284031215613624576136236134dd565b5b5f613631848285016135bd565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015613671578082015181840152602081019050613656565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6136968261363a565b6136a08185613644565b93506136b0818560208601613654565b6136b98161367c565b840191505092915050565b5f6020820190508181035f8301526136dc818461368c565b905092915050565b6136ed8161356a565b81146136f7575f80fd5b50565b5f81359050613708816136e4565b92915050565b5f8060408385031215613724576137236134dd565b5b5f6137318582860161352b565b9250506020613742858286016136fa565b9150509250929050565b5f8115159050919050565b6137608161374c565b82525050565b5f6020820190506137795f830184613757565b92915050565b61378881613504565b82525050565b5f6020820190506137a15f83018461377f565b92915050565b5f602082840312156137bc576137bb6134dd565b5b5f6137c9848285016136fa565b91505092915050565b5f805f606084860312156137e9576137e86134dd565b5b5f6137f68682870161352b565b93505060206138078682870161352b565b9250506040613818868287016136fa565b9150509250925092565b61382b8161359b565b82525050565b5f6020820190506138445f830184613822565b92915050565b5f61385482613504565b9050919050565b6138648161384a565b811461386e575f80fd5b50565b5f8135905061387f8161385b565b92915050565b5f805f6060848603121561389c5761389b6134dd565b5b5f6138a986828701613871565b93505060206138ba868287016136fa565b92505060406138cb8682870161352b565b9150509250925092565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6139138261367c565b810181811067ffffffffffffffff82111715613932576139316138dd565b5b80604052505050565b5f6139446134d4565b9050613950828261390a565b919050565b5f67ffffffffffffffff82111561396f5761396e6138dd565b5b6139788261367c565b9050602081019050919050565b828183375f83830152505050565b5f6139a56139a084613955565b61393b565b9050828152602081018484840111156139c1576139c06138d9565b5b6139cc848285613985565b509392505050565b5f82601f8301126139e8576139e76138d5565b5b81356139f8848260208601613993565b91505092915050565b5f8060408385031215613a1757613a166134dd565b5b5f613a248582860161352b565b925050602083013567ffffffffffffffff811115613a4557613a446134e1565b5b613a51858286016139d4565b9150509250929050565b5f8060408385031215613a7157613a706134dd565b5b5f613a7e8582860161352b565b9250506020613a8f8582860161352b565b9150509250929050565b7f496e76616c6964207469657200000000000000000000000000000000000000005f82015250565b5f613acd600c83613644565b9150613ad882613a99565b602082019050919050565b5f6020820190508181035f830152613afa81613ac1565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613b4557607f821691505b602082108103613b5857613b57613b01565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613b958261356a565b9150613ba08361356a565b9250828202613bae8161356a565b91508282048414831517613bc557613bc4613b5e565b5b5092915050565b7f43616c6c6572206973206e6f742074686520726566657272616c2061646d696e5f82015250565b5f613c00602083613644565b9150613c0b82613bcc565b602082019050919050565b5f6020820190508181035f830152613c2d81613bf4565b9050919050565b7f43616e6e6f7420776974686472617720746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613c8e602383613644565b9150613c9982613c34565b604082019050919050565b5f6020820190508181035f830152613cbb81613c82565b9050919050565b7f5769746864726177616c20616d6f756e74206d757374206265206772656174655f8201527f72207468616e207a65726f000000000000000000000000000000000000000000602082015250565b5f613d1c602b83613644565b9150613d2782613cc2565b604082019050919050565b5f6020820190508181035f830152613d4981613d10565b9050919050565b5f81519050613d5e816136e4565b92915050565b5f60208284031215613d7957613d786134dd565b5b5f613d8684828501613d50565b91505092915050565b7f496e73756666696369656e7420746f6b656e2062616c616e636520696e20636f5f8201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b5f613de9602683613644565b9150613df482613d8f565b604082019050919050565b5f6020820190508181035f830152613e1681613ddd565b9050919050565b7f56657374696e6720686173206e6f7420737461727465642079657400000000005f82015250565b5f613e51601b83613644565b9150613e5c82613e1d565b602082019050919050565b5f6020820190508181035f830152613e7e81613e45565b9050919050565b5f613e8f8261356a565b9150613e9a8361356a565b9250828201905080821115613eb257613eb1613b5e565b5b92915050565b7f4e6f20746f6b656e7320617661696c61626c6520746f20636c61696d206174205f8201527f746865206d6f6d656e7400000000000000000000000000000000000000000000602082015250565b5f613f12602a83613644565b9150613f1d82613eb8565b604082019050919050565b5f6020820190508181035f830152613f3f81613f06565b9050919050565b5f613f508261356a565b9150613f5b8361356a565b9250828203905081811115613f7357613f72613b5e565b5b92915050565b7f54686973207265666572726572206973206e6f7420696e2074686520726566655f8201527f727265722077686974656c697374000000000000000000000000000000000000602082015250565b5f613fd3602e83613644565b9150613fde82613f79565b604082019050919050565b5f6020820190508181035f83015261400081613fc7565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61403e8261356a565b91506140498361356a565b92508261405957614058614007565b5b828204905092915050565b7f416d6f756e7420746f20636f6e7472696275746520697320746f6f206c6f77005f82015250565b5f614098601f83613644565b91506140a382614064565b602082019050919050565b5f6020820190508181035f8301526140c58161408c565b9050919050565b7f526566657272616c2061646d696e2063616e6e6f74206265207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f614126602583613644565b9150614131826140cc565b604082019050919050565b5f6020820190508181035f8301526141538161411a565b9050919050565b7f496e73756666696369656e7420746f6b656e7320696e20636f6e7472616374005f82015250565b5f61418e601f83613644565b91506141998261415a565b602082019050919050565b5f6020820190508181035f8301526141bb81614182565b9050919050565b5f6060820190506141d55f83018661377f565b6141e26020830185613573565b6141ef6040830184613573565b949350505050565b5f60408201905061420a5f83018561377f565b6142176020830184613573565b9392505050565b7f596f75206e65656420746f2062652077686974656c69737465642061667465725f8201527f204b594320696e206f64657220746f20636f6e7472696275746520746f6b656e60208201527f7300000000000000000000000000000000000000000000000000000000000000604082015250565b5f61429e604183613644565b91506142a98261421e565b606082019050919050565b5f6020820190508181035f8301526142cb81614292565b9050919050565b7f53616c6520686173206e6f7420737461727465642079657400000000000000005f82015250565b5f614306601883613644565b9150614311826142d2565b602082019050919050565b5f6020820190508181035f830152614333816142fa565b9050919050565b7f53616c652068617320656e6465640000000000000000000000000000000000005f82015250565b5f61436e600e83613644565b91506143798261433a565b602082019050919050565b5f6020820190508181035f83015261439b81614362565b9050919050565b7f54686520746f6b656e2073616c6520697320636c6f73656400000000000000005f82015250565b5f6143d6601883613644565b91506143e1826143a2565b602082019050919050565b5f6020820190508181035f830152614403816143ca565b9050919050565b7f416d6f756e74206578636565647320617661696c61626c6520746f6b656e73205f8201527f696e207468652063757272656e74207469657200000000000000000000000000602082015250565b5f614464603383613644565b915061446f8261440a565b604082019050919050565b5f6020820190508181035f83015261449181614458565b9050919050565b7f45786365656465642077616c6c6574207075726368617365206c696d697400005f82015250565b5f6144cc601e83613644565b91506144d782614498565b602082019050919050565b5f6020820190508181035f8301526144f9816144c0565b9050919050565b7f4d696e696d756d20707572636861736520616d6f756e74206973206e6f7420725f8201527f6561636865640000000000000000000000000000000000000000000000000000602082015250565b5f61455a602683613644565b915061456582614500565b604082019050919050565b5f6020820190508181035f8301526145878161454e565b9050919050565b5f6080820190506145a15f830187613822565b6145ae6020830186613573565b6145bb6040830185613573565b6145c86060830184613573565b95945050505050565b5f6060820190506145e45f83018661377f565b6145f1602083018561377f565b6145fe6040830184613573565b94935050505056fea2646970667358221220b9721a202ca380a80ce4fa145e9e788a0cd8bb27ae4d1035226393126bccf42a64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003c499c542cef5e3811e1192ce70d8cc03d5c3359000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f000000000000000000000000db687143a0b963fbeb5dcee1839d9016fe24a97c000000000000000000000000fac494bfbb8106c0c1f21af8d11db9bf5e73d7ba000000000000000000000000f2410c2d4e02c7e842f1542da6bf2862dcfe9cd40000000000000000000000006126f9a052156616601b337f5eda21b31b962a9700000000000000000000000081952e12e2a61b6ce89f9ea73da1f5f2c39a1c42000000000000000000000000ed3695b7c1fd32210964f6585b69021d94f80446000000000000000000000000000000000000000000000000000000006733515000000000000000000000000000000000000000000000000000000000678f9a50
-----Decoded View---------------
Arg [0] : _usdcTokenAddress (address): 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
Arg [1] : _usdtTokenAddress (address): 0xc2132D05D31c914a87C6611C10748AEb04B58e8F
Arg [2] : _validatorsRewardsWallet (address): 0xdB687143a0B963FbEb5DCEE1839D9016FE24a97c
Arg [3] : _communityReserveWallet (address): 0xfAC494bFBB8106C0C1f21aF8d11dB9bf5e73D7BA
Arg [4] : _seedRoundWallet (address): 0xF2410C2D4e02c7E842f1542Da6bf2862dcfE9cD4
Arg [5] : _cexDexWallet (address): 0x6126F9A052156616601b337f5EDa21B31b962a97
Arg [6] : _operationalReservesWallet (address): 0x81952e12E2A61b6ce89F9eA73da1f5F2C39A1c42
Arg [7] : _teamWallet (address): 0xed3695B7C1FD32210964F6585b69021D94f80446
Arg [8] : _saleStartUnix (uint256): 1731416400
Arg [9] : _vestingStartUnix (uint256): 1737464400
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c499c542cef5e3811e1192ce70d8cc03d5c3359
Arg [1] : 000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f
Arg [2] : 000000000000000000000000db687143a0b963fbeb5dcee1839d9016fe24a97c
Arg [3] : 000000000000000000000000fac494bfbb8106c0c1f21af8d11db9bf5e73d7ba
Arg [4] : 000000000000000000000000f2410c2d4e02c7e842f1542da6bf2862dcfe9cd4
Arg [5] : 0000000000000000000000006126f9a052156616601b337f5eda21b31b962a97
Arg [6] : 00000000000000000000000081952e12e2a61b6ce89f9ea73da1f5f2c39a1c42
Arg [7] : 000000000000000000000000ed3695b7c1fd32210964f6585b69021d94f80446
Arg [8] : 0000000000000000000000000000000000000000000000000000000067335150
Arg [9] : 00000000000000000000000000000000000000000000000000000000678f9a50
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.