Source Code
Latest 25 from a total of 54 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Finish Raid | 17018259 | 1051 days ago | IN | 0 ETH | 0.01526244 | ||||
| Create Raid | 17014373 | 1052 days ago | IN | 0.05 ETH | 0.0032998 | ||||
| Finish Raid | 17011806 | 1052 days ago | IN | 0 ETH | 0.01341324 | ||||
| Create Raid | 17009961 | 1052 days ago | IN | 0.05 ETH | 0.00391865 | ||||
| Finish Raid | 17009950 | 1052 days ago | IN | 0 ETH | 0.01455127 | ||||
| Create Raid | 17005768 | 1053 days ago | IN | 0.05 ETH | 0.00341576 | ||||
| Finish Raid | 17005755 | 1053 days ago | IN | 0 ETH | 0.01526689 | ||||
| Finish Raid | 17002248 | 1054 days ago | IN | 0 ETH | 0.02471831 | ||||
| Create Raid | 17002238 | 1054 days ago | IN | 0.05 ETH | 0.00377025 | ||||
| Finish Raid | 17002149 | 1054 days ago | IN | 0 ETH | 0.01701941 | ||||
| Create Raid | 16995912 | 1054 days ago | IN | 0.05 ETH | 0.00376766 | ||||
| Finish Raid | 16995895 | 1054 days ago | IN | 0 ETH | 0.01469423 | ||||
| Create Raid | 16990223 | 1055 days ago | IN | 0.05 ETH | 0.00507066 | ||||
| Create Raid | 16988481 | 1055 days ago | IN | 0.05 ETH | 0.00495852 | ||||
| Finish Raid | 16985956 | 1056 days ago | IN | 0 ETH | 0.01787105 | ||||
| Finish Raid | 16983662 | 1056 days ago | IN | 0 ETH | 0.04981355 | ||||
| Create Raid | 16977280 | 1057 days ago | IN | 0.05 ETH | 0.00560087 | ||||
| Create Raid | 16976918 | 1057 days ago | IN | 0.29 ETH | 0.00638099 | ||||
| Finish Raid | 16976871 | 1057 days ago | IN | 0 ETH | 0.03214048 | ||||
| Create Raid | 16972354 | 1058 days ago | IN | 0.3 ETH | 0.00482539 | ||||
| Finish Raid | 16968968 | 1058 days ago | IN | 0 ETH | 0.02238588 | ||||
| Finish Raid | 16966121 | 1059 days ago | IN | 0 ETH | 0.01743951 | ||||
| Create Raid | 16962701 | 1059 days ago | IN | 0.05 ETH | 0.00398133 | ||||
| Finish Raid | 16961935 | 1059 days ago | IN | 0 ETH | 0.01287832 | ||||
| Finish Raid | 16961239 | 1059 days ago | IN | 0 ETH | 0.01683854 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Swap Exact ETH F... | 17018259 | 1051 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 17018259 | 1051 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 17011806 | 1052 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 17011806 | 1052 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 17009950 | 1052 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 17009950 | 1052 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 17005755 | 1053 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 17005755 | 1053 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 17002248 | 1054 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 17002248 | 1054 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 17002149 | 1054 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 17002149 | 1054 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 16995895 | 1054 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 16995895 | 1054 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 16985956 | 1056 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 16985956 | 1056 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 16983662 | 1056 days ago | 0.2755 ETH | ||||
| Swap Exact ETH F... | 16983662 | 1056 days ago | 0.0145 ETH | ||||
| Swap Exact ETH F... | 16976871 | 1057 days ago | 0.285 ETH | ||||
| Swap Exact ETH F... | 16976871 | 1057 days ago | 0.015 ETH | ||||
| Swap Exact ETH F... | 16968968 | 1058 days ago | 0.0475 ETH | ||||
| Swap Exact ETH F... | 16968968 | 1058 days ago | 0.0025 ETH | ||||
| Swap Exact ETH F... | 16966121 | 1059 days ago | 0.285 ETH | ||||
| Swap Exact ETH F... | 16966121 | 1059 days ago | 0.015 ETH | ||||
| Swap Exact ETH F... | 16961935 | 1059 days ago | 0.0475 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
GiniRaidRouter
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10 >=0.8.0 <0.9.0;
// GINIAI RAIDBOT ROUTER CONTRACT (V1.6)
// created by @giniai
// https://t.me/giniai
// https://twitter.com/AiScheduler
//
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
abstract contract Ownable is Context {
address private _owner;
address private creator;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_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 {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_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);
}
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
)
external
payable
returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable returns (uint[] memory amounts);
function swapTokensForExactETH(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactTokensForETH(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapETHForExactTokens(
uint amountOut,
address[] calldata path,
address to,
uint deadline
) external payable returns (uint[] memory amounts);
function quote(
uint amountA,
uint reserveA,
uint reserveB
) external pure returns (uint amountB);
function getAmountOut(
uint amountIn,
uint reserveIn,
uint reserveOut
) external pure returns (uint amountOut);
function getAmountIn(
uint amountOut,
uint reserveIn,
uint reserveOut
) external pure returns (uint amountIn);
function getAmountsOut(
uint amountIn,
address[] calldata path
) external view returns (uint[] memory amounts);
function getAmountsIn(
uint amountOut,
address[] calldata path
) external view returns (uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactETHForTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable returns (uint[] memory amounts);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(
address recipient,
uint256 amount
) external returns (bool);
function allowance(
address owner,
address spender
) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @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
);
}
contract GiniRaidRouter is Ownable {
receive() external payable {}
// modifiers
modifier onlyCreatorOrOwner(string memory verificationKey) {
require(
msg.sender == owner() ||
msg.sender == raids[verificationKey].Creator,
"You are not the creator or owner"
);
_;
}
//enums
enum RaidStatus {
STARTED,
FINISHED,
CANCELLED,
CANCELLED_BY_ADMIN
}
// events
event RaidCreated(
string VerificationKey,
address buybackAddress,
uint256 RaidID,
address Creator,
uint256 RaidTime,
uint BurnPercentage
);
event RaidCancelled(uint256 RaidID, uint256 DepositAmount);
event RaidFinished(
uint256 RaidID,
uint256 BurnedGini,
uint256 SentToMarketingWallet,
uint256 TotalEthSwapped,
uint256 ethSwappedToBuybackToken,
uint256 ethSwappedToGini,
uint256 BuybackTokenBurned,
uint256 BuybackTokenToRaiders,
uint256 BuybackTokenPerRaider,
address[] Raiders,
string finalizationKey
);
event RaidCancelledByAdmin(uint256 RaidID);
event RaidFinishEnabledByAdmin(uint256 RaidID);
// variables
address dead = address(0x000000000000000000000000000000000000dEaD);
address public giniTokenAddress; // gini token address
address public giniMW; //marketing wallet
uint public giniFeePercentage; // 10000 = 100%, 1000 = 10%, 100 = 1%, 10 = 0.1%, 1 = 0.01% (The amount % of fee that will be taken from the buyback amount of projects)
uint public giniBurnPercentage; // 10000 = 100%, 1000 = 10%, 100 = 1%, 10 = 0.1%, 1 = 0.01% (The amount % of the buyback amount for gini that will get burned, the rest will be sent to the marketing wallet)
IUniswapV2Router02 public immutable uniswapV2Router;
// structs
struct RaidMapping {
uint256 RaidID;
uint256 DepositAmount;
address BuybackAddress;
address Creator;
uint BurnPercentage;
string VerificationKey;
RaidStatus Status;
bool finishEnabledByAdmin;
address[] raidersByAdmin;
uint payoutType;
}
// mappings
mapping(string => RaidMapping) public raids;
mapping(address => mapping(address => uint256)) public balances;
mapping(address => address[]) public tokenList;
constructor(
address uniswapRouter,
address _giniTokenAddress,
uint _giniFeePercentage, // 10000 = 100%, 1000 = 10%, 100 = 1%, 10 = 0.1%, 1 = 0.01%
uint _giniBurnPercentage, // 10000 = 100%, 1000 = 10%, 100 = 1%, 10 = 0.1%, 1 = 0.01%
address _giniMarketingWallet
) {
transferOwnership(msg.sender);
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(uniswapRouter);
uniswapV2Router = _uniswapV2Router;
giniTokenAddress = _giniTokenAddress;
giniFeePercentage = _giniFeePercentage;
giniBurnPercentage = _giniBurnPercentage;
giniMW = _giniMarketingWallet;
}
// DONT INVOKE THIS FUNCTION DIRECTLY, USE THE GINI WEB APP
// (INVALID VERIFICATION KEY WILL BE REJECTED AND YOU WILL LOSE YOUR DEPOSIT) (WARNING FOR ABUSERS)
function createRaid(
string calldata verificationKey,
uint burnPercentage, // 10000 = 100%, 1000 = 10%, 100 = 1%, 10 = 0.1%, 1 = 0.01%
address buybackAddress, // the token that we should buy back with the provided ETH amount
uint256 raidID,
uint payoutType
) public payable {
require(msg.value > 0, "You need to send some Ether");
require(payoutType == 1 || payoutType == 2, "Invalid payout type");
require(
raids[verificationKey].DepositAmount == 0,
"This raidID is already in use"
);
address[] memory emptyAddressList;
raids[verificationKey] = RaidMapping(
raidID,
msg.value,
buybackAddress,
msg.sender,
burnPercentage, // 10000 = 100%, 1000 = 10%, 100 = 1%, 10 = 0.1%, 1 = 0.01%
verificationKey,
RaidStatus.STARTED,
false,
emptyAddressList,
payoutType
);
emit RaidCreated(
verificationKey,
buybackAddress,
raidID,
msg.sender,
block.timestamp,
burnPercentage
);
}
// GETS THE BALANCES OF THE USER
function getAvailableTokens()
public
view
returns (address[] memory, uint256[] memory)
{
address[] memory tokens_ = new address[](tokenList[msg.sender].length);
uint256[] memory balances_ = new uint256[](
tokenList[msg.sender].length
);
for (uint i = 0; i < tokenList[msg.sender].length; i++) {
address token = tokenList[msg.sender][i];
tokens_[i] = token;
balances_[i] = balances[msg.sender][token];
}
return (tokens_, balances_);
}
// DONT INVOKE THIS FUNCTION DIRECTLY, USE THE GINI WEB APP
function claimBalances(address[] calldata tokens) public {
address[] storage tokensAvailable = tokenList[msg.sender];
address[] memory doneTokens = new address[](tokens.length);
for (uint i = 0; i < tokens.length; i++) {
address token = tokens[i];
uint256 balance = balances[msg.sender][token];
balances[msg.sender][token] = 0;
tokenList[msg.sender][i] = tokenList[msg.sender][
tokensAvailable.length - 1
];
tokenList[msg.sender].pop();
require(
balance > 0,
string(abi.encodePacked("No balance for token: ", token))
);
if (token == address(0)) {
payable(msg.sender).transfer(balance);
} else {
IERC20(token).approve(msg.sender, balance);
IERC20(token).transfer(msg.sender, balance);
}
doneTokens[i] = token;
}
}
//most important functions
//this function will buy Buyback Tokens + Gini with the provided ETH amount
//it will burn some of the Gini and send the rest to the marketing wallet
//it will burn some of the Buyback Tokens
//it will send the rest of the Buyback Tokens to the raiders
function finishRaid(
string calldata verificationKey,
address[] memory raiderWallets,
string calldata finalizationKey
) public {
RaidMapping storage raid = raids[verificationKey];
require(raid.RaidID != 0, "Raid does not exist");
require(
raid.Status == RaidStatus.STARTED,
"Raid is already finished or cancelled"
);
if (msg.sender != raid.Creator) {
require(
raid.finishEnabledByAdmin == true,
"Raid Finish is not enabled by for others than the creator currently"
);
}
raid.Status = RaidStatus.FINISHED;
// gini fee (we buy gini with this amount)
uint256 giniFeeAmount = (raid.DepositAmount * giniFeePercentage) /
10000;
// buyback amount (we buy back the token with this amount)
uint256 buybackAmount = raid.DepositAmount - giniFeeAmount;
// buy gini
uint256 giniAmount = giniFeeAmount;
if (giniTokenAddress != uniswapV2Router.WETH()) {
giniAmount = swapEthForTokens(giniTokenAddress, giniFeeAmount);
}
// buy back token
uint256 buybackTokenAmount = buybackAmount;
if (raid.BuybackAddress != uniswapV2Router.WETH()) {
buybackTokenAmount = swapEthForTokens(
raid.BuybackAddress,
buybackAmount
);
}
// burn buybackTokens
uint256 burnAmount = 0;
if (raid.BurnPercentage > 0) {
if (raid.BuybackAddress != uniswapV2Router.WETH()) {
burnAmount = (buybackTokenAmount * raid.BurnPercentage) / 10000;
IERC20(raid.BuybackAddress).approve(dead, burnAmount);
IERC20(raid.BuybackAddress).transfer(dead, burnAmount);
} else {
burnAmount = (buybackAmount * raid.BurnPercentage) / 10000;
payable(dead).transfer(burnAmount);
}
}
// amounts for the raiders
uint256 raidersAmount = buybackTokenAmount - burnAmount;
// calculate the amount for each raider
uint256 raiderAmount = 0;
if (raid.finishEnabledByAdmin) {
raiderWallets = raid.raidersByAdmin;
}
// pay out the raiders or let them claim the tokens later
if (raiderWallets.length > 0) {
raiderAmount = raidersAmount / raiderWallets.length;
// send the buybackToken to the raiders (should be max 100 raiders because of gas limit)
// owner has decided to pay out the people and pay the gas
if (raid.payoutType == 1) {
for (uint256 i = 0; i < raiderWallets.length; i++) {
require(
raiderWallets[i] != address(0),
"Invalid raider address"
);
// approve the transfer for the raider
address raider = raiderWallets[i];
if (raid.BuybackAddress != uniswapV2Router.WETH()) {
IERC20(raid.BuybackAddress).approve(
raider,
raiderAmount
);
IERC20(raid.BuybackAddress).transfer(
raider,
raiderAmount
);
} else {
payable(raider).transfer(raiderAmount);
}
}
} else {
for (uint256 i = 0; i < raiderWallets.length; i++) {
require(
raiderWallets[i] != address(0),
"Invalid raider address"
);
// let the raider claim the tokens later
address raider = raiderWallets[i];
// check if this token already exists in the list
bool tokenExists = false;
for (uint256 j = 0; j < tokenList[raider].length; j++) {
if (tokenList[raider][j] == raid.BuybackAddress) {
tokenExists = true;
break;
}
}
if (!tokenExists) {
tokenList[raider].push(raid.BuybackAddress);
}
balances[raider][raid.BuybackAddress] += raiderAmount;
}
}
} else {
// if there are no raiders, burn the tokens instead
burnAmount += raidersAmount;
raidersAmount = 0;
}
// calculate burn amount for gini
uint256 giniBurnAmount = giniTokenAddress != uniswapV2Router.WETH()
? (giniAmount * giniBurnPercentage) / 10000
: 0;
// burn gini
if (giniBurnPercentage > 0) {
IERC20(giniTokenAddress).approve(dead, giniBurnAmount);
IERC20(giniTokenAddress).transfer(dead, giniBurnAmount);
}
// calculate the amount for MW (marketing wallet) for gini
uint256 giniMarketingAmount = giniBurnAmount > 0
? giniAmount - giniBurnAmount
: giniAmount;
// send the gini to the marketing wallet
if (giniMarketingAmount > 0) {
if (giniTokenAddress != uniswapV2Router.WETH()) {
IERC20(giniTokenAddress).approve(giniMW, giniMarketingAmount);
IERC20(giniTokenAddress).transfer(giniMW, giniMarketingAmount);
} else {
payable(giniMW).transfer(giniMarketingAmount);
}
}
emit RaidFinished(
raid.RaidID,
giniBurnAmount,
giniMarketingAmount,
raid.DepositAmount,
giniFeeAmount,
buybackAmount,
burnAmount,
raidersAmount,
raiderAmount,
raiderWallets,
finalizationKey
);
}
//swaps ETH for tokens
function swapEthForTokens(
address tokenToBuy,
uint256 ethAmount
) private returns (uint256 amountBought) {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = uniswapV2Router.WETH();
path[1] = tokenToBuy;
// make the swap
uint256 balanceBefore = IERC20(tokenToBuy).balanceOf(address(this));
// swapEthForT
uniswapV2Router.swapExactETHForTokens{value: ethAmount}(
0, // accept any amount of tokens as possible (we will check the balance after the swap)
path,
address(this),
block.timestamp + 360
);
uint256 balanceAfter = IERC20(tokenToBuy).balanceOf(address(this));
uint256 amountsBought_ = balanceAfter - balanceBefore;
return amountsBought_;
}
// this lets anyone finish the raid if the creator is not responding
function enableFinishByAdmin(
string calldata verificatonKey,
address[] calldata raiders
) public onlyOwner {
RaidMapping storage raid = raids[verificatonKey];
require(raid.RaidID != 0, "Raid does not exist");
require(raid.Status == RaidStatus.STARTED, "Raid is already finished");
raid.finishEnabledByAdmin = true;
raid.raidersByAdmin = raiders;
emit RaidFinishEnabledByAdmin(raid.RaidID);
}
// this lets Gini owner cancel the raid and refund the deposit to the creator
// Can only be invoked by Gini owner to prevent scams from admins of groups. (Quick rug pulls where they cancel the raid and take the deposit after the raid is finished)
function cancelRaid(string calldata verificationKey) public onlyOwner {
RaidMapping storage raid = raids[verificationKey];
require(raid.RaidID != 0, "Raid does not exist");
require(raid.Status == RaidStatus.STARTED, "Raid is already finished");
raid.Status = RaidStatus.CANCELLED;
// refund the deposit
payable(raid.Creator).transfer(raid.DepositAmount);
emit RaidCancelled(raid.RaidID, raid.DepositAmount);
}
function updateContractDetails(
address _giniMarketingWallet,
address _giniTokenAddress,
uint _giniFeePercentage, // 10000 = 100%, 1000 = 10%, 100 = 1%, 10 = 0.1%, 1 = 0.01%
uint _giniBurnPercentage // 10000 = 100%, 1000 = 10%, 100 = 1%, 10 = 0.1%, 1 = 0.01%
) public onlyOwner {
giniTokenAddress = _giniTokenAddress;
giniFeePercentage = _giniFeePercentage;
giniBurnPercentage = _giniBurnPercentage;
giniMW = _giniMarketingWallet;
}
function updateRaidSettins(
string calldata verificationKey,
uint _burnPercentage,
address buybackAddress,
uint payoutType
) public payable onlyOwner {
RaidMapping storage raid = raids[verificationKey];
require(raid.RaidID != 0, "Raid does not exist");
require(raid.Status == RaidStatus.STARTED, "Raid is already finished");
if (msg.value != 0) {
raid.DepositAmount += msg.value;
}
if (_burnPercentage != 0) {
raid.BurnPercentage = _burnPercentage;
}
if (payoutType != 0) {
raid.payoutType = payoutType;
}
if (buybackAddress != address(0)) {
raid.BuybackAddress = buybackAddress;
}
}
function WithdrawTokens(
address tokenAddress,
uint256 amount
) public onlyOwner {
IERC20(tokenAddress).transfer(owner(), amount);
}
function WithdrawEth(uint256 amount) public onlyOwner {
payable(owner()).transfer(amount);
}
}{
"optimizer": {
"enabled": true,
"runs": 100
},
"viaIR": true,
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"uniswapRouter","type":"address"},{"internalType":"address","name":"_giniTokenAddress","type":"address"},{"internalType":"uint256","name":"_giniFeePercentage","type":"uint256"},{"internalType":"uint256","name":"_giniBurnPercentage","type":"uint256"},{"internalType":"address","name":"_giniMarketingWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"RaidID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DepositAmount","type":"uint256"}],"name":"RaidCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"RaidID","type":"uint256"}],"name":"RaidCancelledByAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"VerificationKey","type":"string"},{"indexed":false,"internalType":"address","name":"buybackAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"RaidID","type":"uint256"},{"indexed":false,"internalType":"address","name":"Creator","type":"address"},{"indexed":false,"internalType":"uint256","name":"RaidTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"BurnPercentage","type":"uint256"}],"name":"RaidCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"RaidID","type":"uint256"}],"name":"RaidFinishEnabledByAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"RaidID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"BurnedGini","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"SentToMarketingWallet","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TotalEthSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethSwappedToBuybackToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethSwappedToGini","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"BuybackTokenBurned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"BuybackTokenToRaiders","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"BuybackTokenPerRaider","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"Raiders","type":"address[]"},{"indexed":false,"internalType":"string","name":"finalizationKey","type":"string"}],"name":"RaidFinished","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"verificationKey","type":"string"}],"name":"cancelRaid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"claimBalances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"verificationKey","type":"string"},{"internalType":"uint256","name":"burnPercentage","type":"uint256"},{"internalType":"address","name":"buybackAddress","type":"address"},{"internalType":"uint256","name":"raidID","type":"uint256"},{"internalType":"uint256","name":"payoutType","type":"uint256"}],"name":"createRaid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"verificatonKey","type":"string"},{"internalType":"address[]","name":"raiders","type":"address[]"}],"name":"enableFinishByAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"verificationKey","type":"string"},{"internalType":"address[]","name":"raiderWallets","type":"address[]"},{"internalType":"string","name":"finalizationKey","type":"string"}],"name":"finishRaid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAvailableTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giniBurnPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giniFeePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giniMW","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giniTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"raids","outputs":[{"internalType":"uint256","name":"RaidID","type":"uint256"},{"internalType":"uint256","name":"DepositAmount","type":"uint256"},{"internalType":"address","name":"BuybackAddress","type":"address"},{"internalType":"address","name":"Creator","type":"address"},{"internalType":"uint256","name":"BurnPercentage","type":"uint256"},{"internalType":"string","name":"VerificationKey","type":"string"},{"internalType":"enum GiniRaidRouter.RaidStatus","name":"Status","type":"uint8"},{"internalType":"bool","name":"finishEnabledByAdmin","type":"bool"},{"internalType":"uint256","name":"payoutType","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_giniMarketingWallet","type":"address"},{"internalType":"address","name":"_giniTokenAddress","type":"address"},{"internalType":"uint256","name":"_giniFeePercentage","type":"uint256"},{"internalType":"uint256","name":"_giniBurnPercentage","type":"uint256"}],"name":"updateContractDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"verificationKey","type":"string"},{"internalType":"uint256","name":"_burnPercentage","type":"uint256"},{"internalType":"address","name":"buybackAddress","type":"address"},{"internalType":"uint256","name":"payoutType","type":"uint256"}],"name":"updateRaidSettins","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60a034620001c857601f6200298f38819003918201601f19168301916001600160401b03831184841017620001cd5780849260a094604052833981010312620001c8576200004d81620001e3565b906200005c60208201620001e3565b9060408101519062000076608060608301519201620001e3565b916200008233620001f8565b600280546001600160a01b031990811661dead1790915560005490956001600160a01b039590913390871603620001845733156200013057858092620000c833620001f8565b16608052168560035416176003556005556006551690600454161760045560405161274f9081620002408239608051818181610816015281816108870152818161098301528181610b4601528181610c6c0152818161117e01528181611cb7015261241e0152f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001c857565b600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a356fe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80631462de0114611ce65780631694505e14611ca15780631b00711914611c835780634240f01214611c655780634ec8baad1461182b5780635f060da41461173857806366b4c4301461170f578063680f2e4f1461168b578063715018a61461162e578063837b6e61146115115780638da5cb5b146114e8578063a2052ec7146114bf578063b2a3fd0514611478578063bd137ed5146106c8578063bebfd6901461066f578063c23f001f1461061e578063c2601d351461052e578063e35568cb146103fc578063e740298e1461023e578063eb3aa20e146101d35763f2fde38b0361000e57346101ce5760203660031901126101ce57610120612010565b600054906001600160a01b038083169161013b3384146121c2565b1691821561017a576001600160a01b031916821760009081557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600080fd5b346101ce5760803660031901126101ce576101ec612010565b6101f4612026565b60005490916001600160a01b039161020f90831633146121c2565b8160018060a01b0319931683600354161760035560443560055560643560065516906004541617600455600080f35b346101ce576020806003193601126101ce576004356001600160401b0381116101ce57366023820112156101ce57816102846102979236906024816004013591016120fa565b8160405193828580945193849201612140565b8101600781520301902090815491600191828201549260018060a01b0380600285015416906003850154166004850154916005860193604051946000918154916102e083612163565b928389528983821691826000146103d5575050600114610389575b505050906103118561034a969594930385612057565b600687015497600860ff8a16980154966040519a8b528a01526040890152606088015260808701526101208060a088015286019061219d565b91600481101561037357849360ff9160c086015260081c16151560e08401526101008301520390f35b634e487b7160e01b600052602160045260246000fd5b889297969594935060005281600020966000915b8183106103be57505061034a965061031191869182010192939495966102fb565b88548884018501529788019789939092019161039d565b60ff19168a82015293151560051b89019093019350610311925087915061034a90506102fb565b346101ce5760003660031901126101ce5733600052600960209080825261042760406000205461228e565b91336000528181526040600020549061045861044283612078565b926104506040519485612057565b808452612078565b82820190601f190136823760005b336000528483526040600020548110156104d8578061048c6104d392604060002061208f565b905460039190911b1c6001600160a01b0316806104a9838a6122cf565b52336000526008855260406000209060005284526040600020546104cd82876122cf565b526122c0565b610466565b50916104f5949350816040519586956040875260408701906120bd565b9185830382870152519182815201929160005b82811061051757505050500390f35b835185528695509381019392810192600101610508565b60803660031901126101ce576004356001600160401b0381116101ce57610559903690600401611fcd565b9060243591610566611ffa565b9060643590602060018060a01b0394610584866000541633146121c2565b82604051938492833781016007815203019020936105a485541515612337565b60ff6006860154166004811015610373576105bf90156126b2565b34610608575b806105fd575b50806105f2575b501690816105dc57005b60020180546001600160a01b0319169091179055005b6008840155836105d2565b6004850155846105cb565b60018501610617348254612398565b90556105c5565b346101ce5760403660031901126101ce57610637612010565b61063f612026565b9060018060a01b038091166000526008602052604060002091166000526020526020604060002054604051908152f35b346101ce5760403660031901126101ce57610688612010565b6024359060018060a01b038091166000526009602052604060002080548310156101ce576020926106b89161208f565b9190546040519260031b1c168152f35b346101ce5760603660031901126101ce576001600160401b036004358181116101ce576106f9903690600401611fcd565b9190602435928284116101ce57366023850112156101ce57836004013561071f81612078565b9461072d6040519687612057565b8186526024602087019260051b820101903682116101ce57602401915b818310611458575050506044359283116101ce5761076e6020933690600401611fcd565b93909492826040519384928337810160078152030190209061079282541515612337565b600682015460ff81166004811015610373576114055760038301546001600160a01b0316330361137d575b60019060ff19161760068301556001820154936107ea6127106107e260055488612224565b0480966122f7565b6003546040516315ab88c960e31b8152879692916001600160a01b0390811690602090839060049082907f0000000000000000000000000000000000000000000000000000000000000000165afa8015610a9157899260009161135e575b506001600160a01b0316810361134b575b505060028501546040516315ab88c960e31b815282916001600160a01b0390811690602090839060049082907f0000000000000000000000000000000000000000000000000000000000000000165afa8015610a9157849260009161132c575b506001600160a01b0316810361131b575b505060009060048701548061114f575b50816108e5916122f7565b91600060ff600689015460081c166110f0575b8651156110d65750855180156110c0578304986001600889015414600014610f245760005b8751811015610b12576109446001600160a01b0361093b838b6122cf565b511615156123a5565b6001600160a01b03610956828a6122cf565b51169060018060a01b0360028b015416604051906315ab88c960e31b825260208260048160018060a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa8015610a91578e92600091610ae3575b506001600160a01b031614610aba5760028b015460405163095ea7b360e01b81529160209183916001600160a01b0390911690829060009082906109fd908a6004840161231c565b03925af18015610a9157610a43936020928f92610a9d575b508c600260018060a01b039101541690600060405180978195829463a9059cbb60e01b84526004840161231c565b03925af1918215610a9157610a5d92610a62575b506122c0565b61091d565b610a839060203d602011610a8a575b610a7b8183612057565b810190612304565b508c610a57565b503d610a71565b6040513d6000823e3d90fd5b610ab390843d8611610a8a57610a7b8183612057565b508f610a15565b600080809394928193828215610ada575bf115610a9157610a5d906122c0565b506108fc610acb565b610b05915060203d602011610b0b575b610afd8183612057565b810190612379565b8f6109b5565b503d610af3565b509091929396979894985b6003546040516315ab88c960e31b81526001600160a01b039182169291602090829060049082907f0000000000000000000000000000000000000000000000000000000000000000165afa908115610a9157600091610f05575b506001600160a01b03168214610efc57612710610b9660065483612224565b0480925b600654610e26575b508290508015610e2057610bb5916122f7565b80610c3b575b93610c3697936000805160206126fa8339815191529b97938b9a9793610c2797600160209e549d0154916040519e8f9e8f908152015260408d015260608c015260808b015260a08a015260c089015260e0880152610100870152610160806101208801528601906120bd565b9184830361014086015261226d565b0390a1005b9794909896929995919360018060a01b03600354166040516315ab88c960e31b815260208160048160018060a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa908115610a9157600091610e01575b506001600160a01b031614610db45788999a6020610cea999a60018060a01b036003541660018060a01b03600454166000604051809e8195829463095ea7b360e01b84526004840161231c565b03925af1988915610a9157610d3699610d95575b5060208b60018060a01b036003541660018060a01b03600454166000604051809e8195829463a9059cbb60e01b84526004840161231c565b03925af1958615610a91576000805160206126fa8339815191529c60209c610c369b610c2799610d77575b505b93975093979a9b5093979b50939750610bbb565b610d8e908f3d602011610a8a57610a7b8183612057565b508f610d61565b610dad9060203d602011610a8a57610a7b8183612057565b508c610cfe565b60008080808c6001999e9c9d998060a01b0360045416828215610df8575bf115610a91576000805160206126fa8339815191529a60209a610c3699610c2797610d63565b506108fc610dd2565b610e1a915060203d602011610b0b57610afd8183612057565b8d610c9d565b50610bb5565b60025460405163095ea7b360e01b8152926020928492909183916000918391610e5c91906001600160a01b03166004840161231c565b03925af18015610a9157610edd575b5060035460025460405163a9059cbb60e01b81529160209183916001600160a01b039081169183916000918391610ea8918b91166004840161231c565b03925af18015610a9157610ebe575b8290610ba2565b610ed69060203d602011610a8a57610a7b8183612057565b508b610eb7565b610ef59060203d602011610a8a57610a7b8183612057565b508b610e6b565b60008092610b9a565b610f1e915060203d602011610b0b57610afd8183612057565b8c610b77565b989590929396946000989298975b82518910156110b257939993610f536001600160a01b0361093b8b866122cf565b6001600160a01b03610f658a856122cf565b51169560009a60009c60018060a01b0360028b0154169d5b89600052600960205260406000205481101561109e578e610fa282604060002061208f565b905460039190911b1c6001600160a01b031614610fc757610fc2906122c0565b610f7d565b5094999b509499909592979b919660015b1561102b575b61101b9250600052600860205260406000208c600260018060a01b039101541660005260205260406000206110148c8254612398565b90556122c0565b9792989691939499959099610f32565b600081815260096020526040902080549093600160401b8210156110885761105f8261101b9660016110839501815561208f565b90919082549060031b9160018060a01b039283811b93849216901b16911916179055565b610fde565b634e487b7160e01b600052604160045260246000fd5b5094999b9c929790959a919693989c610fd8565b975098909594979291610b1d565b634e487b7160e01b600052601260045260246000fd5b9498926110e7919298949798612398565b91600093610b1d565b9550600787016040518082602082945493848152019060005260206000209260005b81811061112d57505061112792500382612057565b956108f8565b84546001600160a01b0316835260019485019486945060209093019201611112565b60028801546040516315ab88c960e31b815292935090916001600160a01b0391821691602090829060049082907f0000000000000000000000000000000000000000000000000000000000000000165afa908115610a91576000916112fc575b506001600160a01b0316146112bb575061120e6127106111d3600489015484612224565b049160208360018060a01b0360028b01541660018060a01b0360025416600060405180978195829463095ea7b360e01b84526004840161231c565b03925af1918215610a915761125e9261129c575b50600288810154905460405163a9059cbb60e01b81529360209285926001600160a01b039182169284926000928492918b91166004840161231c565b03925af1908115610a91576108e592849261127d575b505b91506108da565b6112959060203d602011610a8a57610a7b8183612057565b508b611274565b6112b49060203d602011610a8a57610a7b8183612057565b508a611222565b6112c86127109184612224565b049060008080808560018060a01b03600254168282156112f3575bf115610a9157816108e591611276565b506108fc6112e3565b611315915060203d602011610b0b57610afd8183612057565b8b6111af565b61132592506123ea565b81896108ca565b611345915060203d602011610b0b57610afd8183612057565b8b6108b9565b6113569297506123ea565b948688610859565b611377915060203d602011610b0b57610afd8183612057565b8a610848565b600160ff8260081c16151503156107bd5760405162461bcd60e51b815260206004820152604360248201527f526169642046696e697368206973206e6f7420656e61626c656420627920666f60448201527f72206f7468657273207468616e207468652063726561746f722063757272656e606482015262746c7960e81b608482015260a490fd5b60405162461bcd60e51b815260206004820152602560248201527f5261696420697320616c72656164792066696e6973686564206f722063616e63604482015264195b1b195960da1b6064820152608490fd5b82356001600160a01b03811681036101ce5781526020928301920161074a565b346101ce5760203660031901126101ce57600080808060043560018060a01b038254166114a63382146121c2565b8282156114b6575bf115610a9157005b506108fc6114ae565b346101ce5760003660031901126101ce576003546040516001600160a01b039091168152602090f35b346101ce5760003660031901126101ce576000546040516001600160a01b039091168152602090f35b346101ce5760403660031901126101ce576001600160401b036004358181116101ce57611542903690600401611fcd565b906024358381116101ce5761155b903690600401611f9d565b909161157260018060a01b036000541633146121c2565b8360405194859283378101600781526020948591030190209161159783541515612337565b60068301805460ff8116906004821015610373576115b861010092156126b2565b61ff00191617905560078301948211611088576115d58286612237565b936000528260002060005b828110611614577f99f90fd23b9744826113615369dace344c936eccdd7c117c7158edbab10a4e58858554604051908152a1005b60019085611621886122e3565b97019681840155016115e0565b346101ce5760003660031901126101ce57600080546001600160a01b038116906116593383146121c2565b6001600160a01b03191682557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346101ce5760403660031901126101ce576116a4612010565b6000546001600160a01b03916020916116e7919084166116c53382146121c2565b600060405195868095819463a9059cbb60e01b8352602435906004840161231c565b0393165af18015610a91576116f857005b6100199060203d8111610a8a57610a7b8183612057565b346101ce5760003660031901126101ce576004546040516001600160a01b039091168152602090f35b346101ce5760203660031901126101ce576004356001600160401b0381116101ce57611768903690600401611fcd565b6000546001600160a01b039260209161178490851633146121c2565b82604051938492833781016007815203019020906117a482541515612337565b60068201805460ff8116906004821015610373576117c4600292156126b2565b60ff19161790556003820154169060008080806001850195865490828215611822575bf115610a91577ff1bd8d0aa7b181d0367ab515307ebdaa28115de7084f9930824ad8800c96afe59160409154905482519182526020820152a1005b506108fc6117e7565b60a03660031901126101ce576004356001600160401b0381116101ce57611856903690600401611fcd565b9061185f611ffa565b913415611c20576001608435148015611c14575b15611bd95760016040518284823760208184810160078152030190200154611b94576040519261014084018481106001600160401b0382111761108857604090815260643585523460208601526001600160a01b0382169085015233606085015260243560808501526118e73683856120fa565b60a0850152600060c0850152600060e0850152606061010085015260843561012085015260405182848237600781840190815260209082900381019091208551815590850151600182015560408501516002820180546001600160a01b039283166001600160a01b03199182161790915560608701516003840180549190931691161790556080850151600482015560a08501518051906001600160401b03821161108857819061199b6005850154612163565b601f8111611b54575b50602090601f8311600114611ae257600092611ad7575b50508160011b916000199060031b1c19161760058201555b6006810160c0860151600481101561037357815460ff61ff0060e08a0151151560081b1692169061ffff19161717905560078101946101008101518051906001600160401b03821161108857602090611a2c838a612237565b019660005260206000209660005b828110611aba575050507f701d56dc7f83b8ced9e7342bc6c248ef7c5a1c79ec8c57b98c0be40e5e0aa76795506101206008910151910155611a8960405193849360c0855260c085019161226d565b6001600160a01b039091166020830152606435604083015233606083015242608083015260243560a08301520390a1005b81516001600160a01b0316818a0155602090910190600101611a3a565b0151905087806119bb565b9250600584016000526020600020906000935b601f1984168510611b39576001945083601f19811610611b20575b505050811b0160058201556119d3565b015160001960f88460031b161c19169055878080611b10565b81810151835560209485019460019093019290910190611af5565b611b8490600586016000526020600020601f850160051c81019160208610611b8a575b601f0160051c019061220d565b886119a4565b9091508190611b77565b60405162461bcd60e51b815260206004820152601d60248201527f546869732072616964494420697320616c726561647920696e207573650000006044820152606490fd5b60405162461bcd60e51b8152602060048201526013602482015272496e76616c6964207061796f7574207479706560681b6044820152606490fd5b50600260843514611873565b60405162461bcd60e51b815260206004820152601b60248201527f596f75206e65656420746f2073656e6420736f6d6520457468657200000000006044820152606490fd5b346101ce5760003660031901126101ce576020600654604051908152f35b346101ce5760003660031901126101ce576020600554604051908152f35b346101ce5760003660031901126101ce576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b346101ce576020806003193601126101ce576004356001600160401b0381116101ce57611d17903690600401611f9d565b90913360005260098152604060002090611d308361228e565b9360005b848110611d3d57005b611d4b8160051b83016122e3565b9033600052600880855260406000209260018060a01b0380821694856000528752604060002054923360005287526040600020856000528752600060408120553360005260098752604060002088549160001991828401938411611f8757611dfc93611db69161208f565b9390543360005260098b5282611dd089604060002061208f565b919092600397881b1c169082549060031b9160018060a01b039283811b93849216901b16911916179055565b336000526009895260406000209182548015611f71570192611e1e848461208f565b81939154921b1b1916905555604051907502737903130b630b731b2903337b9103a37b5b2b71d160551b878301526bffffffffffffffffffffffff199060601b166036820152602a8152611e718161203c565b8115611f4b575082611e9f576000808080933382f115610a9157611e9a915b6104cd82896122cf565b611d34565b60405163095ea7b360e01b81529290858480611ebf84336004840161231c565b03816000865af1908115610a9157611ef4948792611f2e575b506040518095819263a9059cbb60e01b8352336004840161231c565b03816000855af1928315610a9157611e9a93611f11575b50611e90565b611f2790863d8811610a8a57610a7b8183612057565b5088611f0b565b611f4490833d8511610a8a57610a7b8183612057565b508a611ed8565b85611f6d60405192839262461bcd60e51b84526004840152602483019061219d565b0390fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b9181601f840112156101ce578235916001600160401b0383116101ce576020808501948460051b0101116101ce57565b9181601f840112156101ce578235916001600160401b0383116101ce57602083818601950101116101ce57565b604435906001600160a01b03821682036101ce57565b600435906001600160a01b03821682036101ce57565b602435906001600160a01b03821682036101ce57565b606081019081106001600160401b0382111761108857604052565b90601f801991011681019081106001600160401b0382111761108857604052565b6001600160401b0381116110885760051b60200190565b80548210156120a75760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b90815180825260208080930193019160005b8281106120dd575050505090565b83516001600160a01b0316855293810193928101926001016120cf565b9291926001600160401b0382116110885760405191612123601f8201601f191660200184612057565b8294818452818301116101ce578281602093846000960137010152565b60005b8381106121535750506000910152565b8181015183820152602001612143565b90600182811c92168015612193575b602083101461217d57565b634e487b7160e01b600052602260045260246000fd5b91607f1691612172565b906020916121b681518092818552858086019101612140565b601f01601f1916010190565b156121c957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b818110612218575050565b6000815560010161220d565b81810292918115918404141715611f8757565b90600160401b81116110885781549080835581811061225557505050565b61226b926000526020600020918201910161220d565b565b908060209392818452848401376000828201840152601f01601f1916010190565b9061229882612078565b6122a56040519182612057565b82815280926122b6601f1991612078565b0190602036910137565b6000198114611f875760010190565b80518210156120a75760209160051b010190565b356001600160a01b03811681036101ce5790565b91908203918211611f8757565b908160209103126101ce575180151581036101ce5790565b6001600160a01b039091168152602081019190915260400190565b1561233e57565b60405162461bcd60e51b815260206004820152601360248201527214985a5908191bd95cc81b9bdd08195e1a5cdd606a1b6044820152606490fd5b908160209103126101ce57516001600160a01b03811681036101ce5790565b91908201809211611f8757565b156123ac57565b60405162461bcd60e51b8152602060048201526016602482015275496e76616c696420726169646572206164647265737360501b6044820152606490fd5b604080519093926123fa8261203c565b600282526020908183018636823786516315ab88c960e31b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116966004939192909190868186818c5afa9081156126a75760009161268a575b50875115612675578316905285516001101561266057169384888201528751956370a0823160e01b91828852308489015285886024818a5afa97881561265557600098612623575b5061016842019485421161260e57916124e4916000938c51809881958294637ff36ab560e01b8452888b8501526080602485015260848401906120bd565b90306044840152606483015203925af1928315612603578493612572575b5060249088519586938492835230908301525afa9485156125685750600094612535575b505061253291926122f7565b90565b81813d8311612561575b6125498183612057565b8101031261255d5751925061253238612526565b8380fd5b503d61253f565b513d6000823e3d90fd5b909192503d806000833e6125868183612057565b81019084818303126101ce578051906001600160401b0382116101ce570181601f820112156101ce5780519085806125bd84612078565b6125c98d519182612057565b848152019260051b8201019283116101ce579085809594939201905b8282106125f3575050612502565b81518152869591820191016125e5565b88513d6000823e3d90fd5b601185634e487b7160e01b6000525260246000fd5b90978682813d831161264e575b61263a8183612057565b8101031261264b57505196386124a6565b80fd5b503d612630565b8a513d6000823e3d90fd5b603283634e487b7160e01b6000525260246000fd5b603285634e487b7160e01b6000525260246000fd5b6126a19150873d8911610b0b57610afd8183612057565b3861245e565b8b513d6000823e3d90fd5b156126b957565b60405162461bcd60e51b815260206004820152601860248201527714985a59081a5cc8185b1c9958591e48199a5b9a5cda195960421b6044820152606490fdfe203362737b3fb6568b7b70fe2825fd4bff98aac97cd9716a3bcb28535a84f7c9a26469706673582212207719e9204d0b3d7003d6489719deed396a37bd5f12ecd4536ae74c848680889264736f6c634300081100330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000000a96ab4ef283e98db7072df26c7d62854e46bbcf00000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000794c082aeddd6e1d6ef42cc3e82a7c07d057941
Deployed Bytecode
0x6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80631462de0114611ce65780631694505e14611ca15780631b00711914611c835780634240f01214611c655780634ec8baad1461182b5780635f060da41461173857806366b4c4301461170f578063680f2e4f1461168b578063715018a61461162e578063837b6e61146115115780638da5cb5b146114e8578063a2052ec7146114bf578063b2a3fd0514611478578063bd137ed5146106c8578063bebfd6901461066f578063c23f001f1461061e578063c2601d351461052e578063e35568cb146103fc578063e740298e1461023e578063eb3aa20e146101d35763f2fde38b0361000e57346101ce5760203660031901126101ce57610120612010565b600054906001600160a01b038083169161013b3384146121c2565b1691821561017a576001600160a01b031916821760009081557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600080fd5b346101ce5760803660031901126101ce576101ec612010565b6101f4612026565b60005490916001600160a01b039161020f90831633146121c2565b8160018060a01b0319931683600354161760035560443560055560643560065516906004541617600455600080f35b346101ce576020806003193601126101ce576004356001600160401b0381116101ce57366023820112156101ce57816102846102979236906024816004013591016120fa565b8160405193828580945193849201612140565b8101600781520301902090815491600191828201549260018060a01b0380600285015416906003850154166004850154916005860193604051946000918154916102e083612163565b928389528983821691826000146103d5575050600114610389575b505050906103118561034a969594930385612057565b600687015497600860ff8a16980154966040519a8b528a01526040890152606088015260808701526101208060a088015286019061219d565b91600481101561037357849360ff9160c086015260081c16151560e08401526101008301520390f35b634e487b7160e01b600052602160045260246000fd5b889297969594935060005281600020966000915b8183106103be57505061034a965061031191869182010192939495966102fb565b88548884018501529788019789939092019161039d565b60ff19168a82015293151560051b89019093019350610311925087915061034a90506102fb565b346101ce5760003660031901126101ce5733600052600960209080825261042760406000205461228e565b91336000528181526040600020549061045861044283612078565b926104506040519485612057565b808452612078565b82820190601f190136823760005b336000528483526040600020548110156104d8578061048c6104d392604060002061208f565b905460039190911b1c6001600160a01b0316806104a9838a6122cf565b52336000526008855260406000209060005284526040600020546104cd82876122cf565b526122c0565b610466565b50916104f5949350816040519586956040875260408701906120bd565b9185830382870152519182815201929160005b82811061051757505050500390f35b835185528695509381019392810192600101610508565b60803660031901126101ce576004356001600160401b0381116101ce57610559903690600401611fcd565b9060243591610566611ffa565b9060643590602060018060a01b0394610584866000541633146121c2565b82604051938492833781016007815203019020936105a485541515612337565b60ff6006860154166004811015610373576105bf90156126b2565b34610608575b806105fd575b50806105f2575b501690816105dc57005b60020180546001600160a01b0319169091179055005b6008840155836105d2565b6004850155846105cb565b60018501610617348254612398565b90556105c5565b346101ce5760403660031901126101ce57610637612010565b61063f612026565b9060018060a01b038091166000526008602052604060002091166000526020526020604060002054604051908152f35b346101ce5760403660031901126101ce57610688612010565b6024359060018060a01b038091166000526009602052604060002080548310156101ce576020926106b89161208f565b9190546040519260031b1c168152f35b346101ce5760603660031901126101ce576001600160401b036004358181116101ce576106f9903690600401611fcd565b9190602435928284116101ce57366023850112156101ce57836004013561071f81612078565b9461072d6040519687612057565b8186526024602087019260051b820101903682116101ce57602401915b818310611458575050506044359283116101ce5761076e6020933690600401611fcd565b93909492826040519384928337810160078152030190209061079282541515612337565b600682015460ff81166004811015610373576114055760038301546001600160a01b0316330361137d575b60019060ff19161760068301556001820154936107ea6127106107e260055488612224565b0480966122f7565b6003546040516315ab88c960e31b8152879692916001600160a01b0390811690602090839060049082907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d165afa8015610a9157899260009161135e575b506001600160a01b0316810361134b575b505060028501546040516315ab88c960e31b815282916001600160a01b0390811690602090839060049082907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d165afa8015610a9157849260009161132c575b506001600160a01b0316810361131b575b505060009060048701548061114f575b50816108e5916122f7565b91600060ff600689015460081c166110f0575b8651156110d65750855180156110c0578304986001600889015414600014610f245760005b8751811015610b12576109446001600160a01b0361093b838b6122cf565b511615156123a5565b6001600160a01b03610956828a6122cf565b51169060018060a01b0360028b015416604051906315ab88c960e31b825260208260048160018060a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d165afa8015610a91578e92600091610ae3575b506001600160a01b031614610aba5760028b015460405163095ea7b360e01b81529160209183916001600160a01b0390911690829060009082906109fd908a6004840161231c565b03925af18015610a9157610a43936020928f92610a9d575b508c600260018060a01b039101541690600060405180978195829463a9059cbb60e01b84526004840161231c565b03925af1918215610a9157610a5d92610a62575b506122c0565b61091d565b610a839060203d602011610a8a575b610a7b8183612057565b810190612304565b508c610a57565b503d610a71565b6040513d6000823e3d90fd5b610ab390843d8611610a8a57610a7b8183612057565b508f610a15565b600080809394928193828215610ada575bf115610a9157610a5d906122c0565b506108fc610acb565b610b05915060203d602011610b0b575b610afd8183612057565b810190612379565b8f6109b5565b503d610af3565b509091929396979894985b6003546040516315ab88c960e31b81526001600160a01b039182169291602090829060049082907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d165afa908115610a9157600091610f05575b506001600160a01b03168214610efc57612710610b9660065483612224565b0480925b600654610e26575b508290508015610e2057610bb5916122f7565b80610c3b575b93610c3697936000805160206126fa8339815191529b97938b9a9793610c2797600160209e549d0154916040519e8f9e8f908152015260408d015260608c015260808b015260a08a015260c089015260e0880152610100870152610160806101208801528601906120bd565b9184830361014086015261226d565b0390a1005b9794909896929995919360018060a01b03600354166040516315ab88c960e31b815260208160048160018060a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d165afa908115610a9157600091610e01575b506001600160a01b031614610db45788999a6020610cea999a60018060a01b036003541660018060a01b03600454166000604051809e8195829463095ea7b360e01b84526004840161231c565b03925af1988915610a9157610d3699610d95575b5060208b60018060a01b036003541660018060a01b03600454166000604051809e8195829463a9059cbb60e01b84526004840161231c565b03925af1958615610a91576000805160206126fa8339815191529c60209c610c369b610c2799610d77575b505b93975093979a9b5093979b50939750610bbb565b610d8e908f3d602011610a8a57610a7b8183612057565b508f610d61565b610dad9060203d602011610a8a57610a7b8183612057565b508c610cfe565b60008080808c6001999e9c9d998060a01b0360045416828215610df8575bf115610a91576000805160206126fa8339815191529a60209a610c3699610c2797610d63565b506108fc610dd2565b610e1a915060203d602011610b0b57610afd8183612057565b8d610c9d565b50610bb5565b60025460405163095ea7b360e01b8152926020928492909183916000918391610e5c91906001600160a01b03166004840161231c565b03925af18015610a9157610edd575b5060035460025460405163a9059cbb60e01b81529160209183916001600160a01b039081169183916000918391610ea8918b91166004840161231c565b03925af18015610a9157610ebe575b8290610ba2565b610ed69060203d602011610a8a57610a7b8183612057565b508b610eb7565b610ef59060203d602011610a8a57610a7b8183612057565b508b610e6b565b60008092610b9a565b610f1e915060203d602011610b0b57610afd8183612057565b8c610b77565b989590929396946000989298975b82518910156110b257939993610f536001600160a01b0361093b8b866122cf565b6001600160a01b03610f658a856122cf565b51169560009a60009c60018060a01b0360028b0154169d5b89600052600960205260406000205481101561109e578e610fa282604060002061208f565b905460039190911b1c6001600160a01b031614610fc757610fc2906122c0565b610f7d565b5094999b509499909592979b919660015b1561102b575b61101b9250600052600860205260406000208c600260018060a01b039101541660005260205260406000206110148c8254612398565b90556122c0565b9792989691939499959099610f32565b600081815260096020526040902080549093600160401b8210156110885761105f8261101b9660016110839501815561208f565b90919082549060031b9160018060a01b039283811b93849216901b16911916179055565b610fde565b634e487b7160e01b600052604160045260246000fd5b5094999b9c929790959a919693989c610fd8565b975098909594979291610b1d565b634e487b7160e01b600052601260045260246000fd5b9498926110e7919298949798612398565b91600093610b1d565b9550600787016040518082602082945493848152019060005260206000209260005b81811061112d57505061112792500382612057565b956108f8565b84546001600160a01b0316835260019485019486945060209093019201611112565b60028801546040516315ab88c960e31b815292935090916001600160a01b0391821691602090829060049082907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d165afa908115610a91576000916112fc575b506001600160a01b0316146112bb575061120e6127106111d3600489015484612224565b049160208360018060a01b0360028b01541660018060a01b0360025416600060405180978195829463095ea7b360e01b84526004840161231c565b03925af1918215610a915761125e9261129c575b50600288810154905460405163a9059cbb60e01b81529360209285926001600160a01b039182169284926000928492918b91166004840161231c565b03925af1908115610a91576108e592849261127d575b505b91506108da565b6112959060203d602011610a8a57610a7b8183612057565b508b611274565b6112b49060203d602011610a8a57610a7b8183612057565b508a611222565b6112c86127109184612224565b049060008080808560018060a01b03600254168282156112f3575bf115610a9157816108e591611276565b506108fc6112e3565b611315915060203d602011610b0b57610afd8183612057565b8b6111af565b61132592506123ea565b81896108ca565b611345915060203d602011610b0b57610afd8183612057565b8b6108b9565b6113569297506123ea565b948688610859565b611377915060203d602011610b0b57610afd8183612057565b8a610848565b600160ff8260081c16151503156107bd5760405162461bcd60e51b815260206004820152604360248201527f526169642046696e697368206973206e6f7420656e61626c656420627920666f60448201527f72206f7468657273207468616e207468652063726561746f722063757272656e606482015262746c7960e81b608482015260a490fd5b60405162461bcd60e51b815260206004820152602560248201527f5261696420697320616c72656164792066696e6973686564206f722063616e63604482015264195b1b195960da1b6064820152608490fd5b82356001600160a01b03811681036101ce5781526020928301920161074a565b346101ce5760203660031901126101ce57600080808060043560018060a01b038254166114a63382146121c2565b8282156114b6575bf115610a9157005b506108fc6114ae565b346101ce5760003660031901126101ce576003546040516001600160a01b039091168152602090f35b346101ce5760003660031901126101ce576000546040516001600160a01b039091168152602090f35b346101ce5760403660031901126101ce576001600160401b036004358181116101ce57611542903690600401611fcd565b906024358381116101ce5761155b903690600401611f9d565b909161157260018060a01b036000541633146121c2565b8360405194859283378101600781526020948591030190209161159783541515612337565b60068301805460ff8116906004821015610373576115b861010092156126b2565b61ff00191617905560078301948211611088576115d58286612237565b936000528260002060005b828110611614577f99f90fd23b9744826113615369dace344c936eccdd7c117c7158edbab10a4e58858554604051908152a1005b60019085611621886122e3565b97019681840155016115e0565b346101ce5760003660031901126101ce57600080546001600160a01b038116906116593383146121c2565b6001600160a01b03191682557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346101ce5760403660031901126101ce576116a4612010565b6000546001600160a01b03916020916116e7919084166116c53382146121c2565b600060405195868095819463a9059cbb60e01b8352602435906004840161231c565b0393165af18015610a91576116f857005b6100199060203d8111610a8a57610a7b8183612057565b346101ce5760003660031901126101ce576004546040516001600160a01b039091168152602090f35b346101ce5760203660031901126101ce576004356001600160401b0381116101ce57611768903690600401611fcd565b6000546001600160a01b039260209161178490851633146121c2565b82604051938492833781016007815203019020906117a482541515612337565b60068201805460ff8116906004821015610373576117c4600292156126b2565b60ff19161790556003820154169060008080806001850195865490828215611822575bf115610a91577ff1bd8d0aa7b181d0367ab515307ebdaa28115de7084f9930824ad8800c96afe59160409154905482519182526020820152a1005b506108fc6117e7565b60a03660031901126101ce576004356001600160401b0381116101ce57611856903690600401611fcd565b9061185f611ffa565b913415611c20576001608435148015611c14575b15611bd95760016040518284823760208184810160078152030190200154611b94576040519261014084018481106001600160401b0382111761108857604090815260643585523460208601526001600160a01b0382169085015233606085015260243560808501526118e73683856120fa565b60a0850152600060c0850152600060e0850152606061010085015260843561012085015260405182848237600781840190815260209082900381019091208551815590850151600182015560408501516002820180546001600160a01b039283166001600160a01b03199182161790915560608701516003840180549190931691161790556080850151600482015560a08501518051906001600160401b03821161108857819061199b6005850154612163565b601f8111611b54575b50602090601f8311600114611ae257600092611ad7575b50508160011b916000199060031b1c19161760058201555b6006810160c0860151600481101561037357815460ff61ff0060e08a0151151560081b1692169061ffff19161717905560078101946101008101518051906001600160401b03821161108857602090611a2c838a612237565b019660005260206000209660005b828110611aba575050507f701d56dc7f83b8ced9e7342bc6c248ef7c5a1c79ec8c57b98c0be40e5e0aa76795506101206008910151910155611a8960405193849360c0855260c085019161226d565b6001600160a01b039091166020830152606435604083015233606083015242608083015260243560a08301520390a1005b81516001600160a01b0316818a0155602090910190600101611a3a565b0151905087806119bb565b9250600584016000526020600020906000935b601f1984168510611b39576001945083601f19811610611b20575b505050811b0160058201556119d3565b015160001960f88460031b161c19169055878080611b10565b81810151835560209485019460019093019290910190611af5565b611b8490600586016000526020600020601f850160051c81019160208610611b8a575b601f0160051c019061220d565b886119a4565b9091508190611b77565b60405162461bcd60e51b815260206004820152601d60248201527f546869732072616964494420697320616c726561647920696e207573650000006044820152606490fd5b60405162461bcd60e51b8152602060048201526013602482015272496e76616c6964207061796f7574207479706560681b6044820152606490fd5b50600260843514611873565b60405162461bcd60e51b815260206004820152601b60248201527f596f75206e65656420746f2073656e6420736f6d6520457468657200000000006044820152606490fd5b346101ce5760003660031901126101ce576020600654604051908152f35b346101ce5760003660031901126101ce576020600554604051908152f35b346101ce5760003660031901126101ce576040517f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03168152602090f35b346101ce576020806003193601126101ce576004356001600160401b0381116101ce57611d17903690600401611f9d565b90913360005260098152604060002090611d308361228e565b9360005b848110611d3d57005b611d4b8160051b83016122e3565b9033600052600880855260406000209260018060a01b0380821694856000528752604060002054923360005287526040600020856000528752600060408120553360005260098752604060002088549160001991828401938411611f8757611dfc93611db69161208f565b9390543360005260098b5282611dd089604060002061208f565b919092600397881b1c169082549060031b9160018060a01b039283811b93849216901b16911916179055565b336000526009895260406000209182548015611f71570192611e1e848461208f565b81939154921b1b1916905555604051907502737903130b630b731b2903337b9103a37b5b2b71d160551b878301526bffffffffffffffffffffffff199060601b166036820152602a8152611e718161203c565b8115611f4b575082611e9f576000808080933382f115610a9157611e9a915b6104cd82896122cf565b611d34565b60405163095ea7b360e01b81529290858480611ebf84336004840161231c565b03816000865af1908115610a9157611ef4948792611f2e575b506040518095819263a9059cbb60e01b8352336004840161231c565b03816000855af1928315610a9157611e9a93611f11575b50611e90565b611f2790863d8811610a8a57610a7b8183612057565b5088611f0b565b611f4490833d8511610a8a57610a7b8183612057565b508a611ed8565b85611f6d60405192839262461bcd60e51b84526004840152602483019061219d565b0390fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b9181601f840112156101ce578235916001600160401b0383116101ce576020808501948460051b0101116101ce57565b9181601f840112156101ce578235916001600160401b0383116101ce57602083818601950101116101ce57565b604435906001600160a01b03821682036101ce57565b600435906001600160a01b03821682036101ce57565b602435906001600160a01b03821682036101ce57565b606081019081106001600160401b0382111761108857604052565b90601f801991011681019081106001600160401b0382111761108857604052565b6001600160401b0381116110885760051b60200190565b80548210156120a75760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b90815180825260208080930193019160005b8281106120dd575050505090565b83516001600160a01b0316855293810193928101926001016120cf565b9291926001600160401b0382116110885760405191612123601f8201601f191660200184612057565b8294818452818301116101ce578281602093846000960137010152565b60005b8381106121535750506000910152565b8181015183820152602001612143565b90600182811c92168015612193575b602083101461217d57565b634e487b7160e01b600052602260045260246000fd5b91607f1691612172565b906020916121b681518092818552858086019101612140565b601f01601f1916010190565b156121c957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b818110612218575050565b6000815560010161220d565b81810292918115918404141715611f8757565b90600160401b81116110885781549080835581811061225557505050565b61226b926000526020600020918201910161220d565b565b908060209392818452848401376000828201840152601f01601f1916010190565b9061229882612078565b6122a56040519182612057565b82815280926122b6601f1991612078565b0190602036910137565b6000198114611f875760010190565b80518210156120a75760209160051b010190565b356001600160a01b03811681036101ce5790565b91908203918211611f8757565b908160209103126101ce575180151581036101ce5790565b6001600160a01b039091168152602081019190915260400190565b1561233e57565b60405162461bcd60e51b815260206004820152601360248201527214985a5908191bd95cc81b9bdd08195e1a5cdd606a1b6044820152606490fd5b908160209103126101ce57516001600160a01b03811681036101ce5790565b91908201809211611f8757565b156123ac57565b60405162461bcd60e51b8152602060048201526016602482015275496e76616c696420726169646572206164647265737360501b6044820152606490fd5b604080519093926123fa8261203c565b600282526020908183018636823786516315ab88c960e31b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8116966004939192909190868186818c5afa9081156126a75760009161268a575b50875115612675578316905285516001101561266057169384888201528751956370a0823160e01b91828852308489015285886024818a5afa97881561265557600098612623575b5061016842019485421161260e57916124e4916000938c51809881958294637ff36ab560e01b8452888b8501526080602485015260848401906120bd565b90306044840152606483015203925af1928315612603578493612572575b5060249088519586938492835230908301525afa9485156125685750600094612535575b505061253291926122f7565b90565b81813d8311612561575b6125498183612057565b8101031261255d5751925061253238612526565b8380fd5b503d61253f565b513d6000823e3d90fd5b909192503d806000833e6125868183612057565b81019084818303126101ce578051906001600160401b0382116101ce570181601f820112156101ce5780519085806125bd84612078565b6125c98d519182612057565b848152019260051b8201019283116101ce579085809594939201905b8282106125f3575050612502565b81518152869591820191016125e5565b88513d6000823e3d90fd5b601185634e487b7160e01b6000525260246000fd5b90978682813d831161264e575b61263a8183612057565b8101031261264b57505196386124a6565b80fd5b503d612630565b8a513d6000823e3d90fd5b603283634e487b7160e01b6000525260246000fd5b603285634e487b7160e01b6000525260246000fd5b6126a19150873d8911610b0b57610afd8183612057565b3861245e565b8b513d6000823e3d90fd5b156126b957565b60405162461bcd60e51b815260206004820152601860248201527714985a59081a5cc8185b1c9958591e48199a5b9a5cda195960421b6044820152606490fdfe203362737b3fb6568b7b70fe2825fd4bff98aac97cd9716a3bcb28535a84f7c9a26469706673582212207719e9204d0b3d7003d6489719deed396a37bd5f12ecd4536ae74c848680889264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000000a96ab4ef283e98db7072df26c7d62854e46bbcf00000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000794c082aeddd6e1d6ef42cc3e82a7c07d057941
-----Decoded View---------------
Arg [0] : uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _giniTokenAddress (address): 0x0a96aB4eF283e98DB7072Df26C7d62854e46bBCF
Arg [2] : _giniFeePercentage (uint256): 500
Arg [3] : _giniBurnPercentage (uint256): 2000
Arg [4] : _giniMarketingWallet (address): 0x0794C082AEddd6E1d6ef42cC3e82a7c07d057941
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 0000000000000000000000000a96ab4ef283e98db7072df26c7d62854e46bbcf
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [3] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [4] : 0000000000000000000000000794c082aeddd6e1d6ef42cc3e82a7c07d057941
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.