More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,643 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Redeem Greninja ... | 12510994 | 1133 days ago | IN | 0 BNB | 0.0003051 | ||||
Redeem Greninja ... | 11237068 | 1178 days ago | IN | 0 BNB | 0.0003051 | ||||
Redeem Greninja ... | 10616088 | 1199 days ago | IN | 0 BNB | 0.0003051 | ||||
Redeem Greninja ... | 10612754 | 1199 days ago | IN | 0 BNB | 0.0003051 | ||||
Harvest Greninja... | 9685777 | 1232 days ago | IN | 0 BNB | 0.00039598 | ||||
Harvest Greninja... | 9588997 | 1236 days ago | IN | 0 BNB | 0.00029171 | ||||
Harvest Greninja... | 8922037 | 1259 days ago | IN | 0 BNB | 0.00055169 | ||||
Harvest Greninja... | 8676641 | 1268 days ago | IN | 0 BNB | 0.00032165 | ||||
Harvest Greninja... | 8571446 | 1271 days ago | IN | 0 BNB | 0.00032165 | ||||
Harvest Greninja... | 8531508 | 1273 days ago | IN | 0 BNB | 0.00029238 | ||||
Harvest Greninja... | 8531478 | 1273 days ago | IN | 0 BNB | 0.00029238 | ||||
Harvest Greninja... | 8367607 | 1278 days ago | IN | 0 BNB | 0.00050596 | ||||
Harvest Greninja... | 8324718 | 1280 days ago | IN | 0 BNB | 0.00029238 | ||||
Harvest Greninja... | 8261091 | 1282 days ago | IN | 0 BNB | 0.00029238 | ||||
Harvest Greninja... | 8209649 | 1284 days ago | IN | 0 BNB | 0.00065596 | ||||
Harvest Greninja... | 8160051 | 1286 days ago | IN | 0 BNB | 0.00029238 | ||||
Harvest Greninja... | 8143446 | 1286 days ago | IN | 0 BNB | 0.00032165 | ||||
Harvest Greninja... | 8143388 | 1286 days ago | IN | 0 BNB | 0.00032165 | ||||
Harvest Greninja... | 8136117 | 1287 days ago | IN | 0 BNB | 0.00039665 | ||||
Harvest Greninja... | 8136103 | 1287 days ago | IN | 0 BNB | 0.00039665 | ||||
Harvest Greninja... | 8136097 | 1287 days ago | IN | 0 BNB | 0.00039665 | ||||
Harvest Greninja... | 8136088 | 1287 days ago | IN | 0 BNB | 0.00039665 | ||||
Harvest Greninja... | 8104732 | 1288 days ago | IN | 0 BNB | 0.00029238 | ||||
Harvest Greninja... | 8104695 | 1288 days ago | IN | 0 BNB | 0.00029238 | ||||
Harvest Greninja... | 8104672 | 1288 days ago | IN | 0 BNB | 0.0003801 |
Loading...
Loading
Contract Name:
GreninjaStore
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at BscScan.com on 2021-03-23 */ // (╯°□°)╯︵◓ greninja.finance // SPDX-License-Identifier: MIT // File contracts/libs/IBEP20.sol pragma solidity >=0.6.4; interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @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); /** * @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 `amount` 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 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ 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); } // File @openzeppelin/contracts/math/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @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, it is bubbled up by this * function (like regular Solidity function calls). * * 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. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @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`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File contracts/libs/SafeBEP20.sol pragma solidity >=0.6.0 <0.8.0; /** * @title SafeBEP20 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer(IBEP20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IBEP20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IBEP20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IBEP20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeBEP20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IBEP20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IBEP20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeBEP20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @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). */ function _callOptionalReturn(IBEP20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeBEP20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed"); } } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.0 <0.8.0; /* * @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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File @openzeppelin/contracts/access/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. 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; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File @openzeppelin/contracts/GSN/[email protected] pragma solidity >=0.6.0 <0.8.0; // File contracts/GreninjaStore.sol pragma solidity 0.6.12; interface IGreninjaVoucher { function balanceOf(address owner) external view returns (uint256); } interface IGreninjaToken { function mint(address owner, uint256 amount) external; } /** * @title IGreninjaVoucher Token * @dev IGreninjaVoucher */ contract GreninjaStore is Context, Ownable { using SafeMath for uint256; uint256 public startTime; address public greninjaVoucher; address public greninjaToken; bool public shopOpen; uint256 public vestingDuration = 60 days; uint256 public maxVest = 90000 * 10**8; uint256 public constant BASE = 10**18; uint256 public denom = 10**10; // Convert 10^18->10^8 mapping(address => uint256) public vesting; mapping(address => uint256) public claimed; constructor() public {} function setStartTime(uint256 startTime_) public onlyOwner { startTime = startTime_; } function setGreninjaVoucherAddress(address greninjaVoucher_) public onlyOwner { greninjaVoucher = greninjaVoucher_; } function setGreninjaTokenAddress(address greninjaToken_) public onlyOwner { greninjaToken = greninjaToken_; } function setDuration(uint256 duration_) public onlyOwner { vestingDuration = duration_; } function setDenom(uint256 denom_) public onlyOwner { denom = denom_; } function setMaxVest(uint256 maxVest_) public onlyOwner { maxVest = maxVest_; } function vested(address who) public view returns (uint256) { // completion percentage of vesting uint256 vestedPerc = now.sub(startTime).mul(BASE).div(vestingDuration); if (vestedPerc > BASE) { vestedPerc = BASE; } // add to total vesting uint256 totalVesting = vesting[who]; // get redeemable total vested by checking how much time has passed uint256 totalVestingRedeemable = totalVesting.mul(vestedPerc).div(BASE); // get already claimed vested rewards uint256 alreadyClaimed = claimed[who]; // get current redeemable return totalVestingRedeemable.sub(alreadyClaimed); } modifier started() { require(block.timestamp >= startTime, "!started"); _; } /** * @dev Redeem a user's entire balance * * One way function. GreninjaVoucher tokens are BURNED. 5 percent * IGreninjaToken tokens are transferred instantly, other half vests. */ function redeemGreninjaVoucher() external started { require(shopOpen, "shopkeeper is closed"); uint256 greninjaVoucherValue = IGreninjaVoucher(greninjaVoucher).balanceOf(_msgSender()); // track greninjaToken in totalVesting uint256 greninjaTokenValue = greninjaVoucherValue.div(denom); // 10^18 -> 10^8 // one airdrop per person if (greninjaTokenValue > maxVest) { greninjaTokenValue = maxVest; } uint256 totalVesting = vesting[_msgSender()].add(greninjaTokenValue); vesting[_msgSender()] = totalVesting; // burn SafeBEP20.safeTransferFrom( IBEP20(greninjaVoucher), _msgSender(), address(0x000000000000000000000000000000000000dEaD), greninjaVoucherValue ); } function harvestGreninjaToken() external started { // completion percentage of vesting uint256 vestedPerc = now.sub(startTime).mul(BASE).div(vestingDuration); if (vestedPerc > BASE) { vestedPerc = BASE; } // add to total vesting uint256 totalVesting = vesting[_msgSender()]; // get redeemable total vested by checking how much time has passed uint256 totalVestingRedeemable = totalVesting.mul(vestedPerc).div(BASE); // get already claimed vested rewards uint256 alreadyClaimed = claimed[_msgSender()]; // get current redeemable uint256 currVested = totalVestingRedeemable.sub(alreadyClaimed); // update claimed claimed[_msgSender()] = claimed[_msgSender()].add(currVested); // transfer SafeBEP20.safeTransfer(IBEP20(greninjaToken), _msgSender(), currVested); } function setShopOpen(bool _shopOpen) external onlyOwner { shopOpen = _shopOpen; } // if people are dumb and send tokens here, give governance ability to save them. function rescueTokens( address token, address to, uint256 amount ) external onlyOwner { // transfer to SafeBEP20.safeTransfer(IBEP20(token), to, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"denom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"greninjaToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"greninjaVoucher","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestGreninjaToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxVest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemGreninjaVoucher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"denom_","type":"uint256"}],"name":"setDenom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration_","type":"uint256"}],"name":"setDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"greninjaToken_","type":"address"}],"name":"setGreninjaTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"greninjaVoucher_","type":"address"}],"name":"setGreninjaVoucherAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxVest_","type":"uint256"}],"name":"setMaxVest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_shopOpen","type":"bool"}],"name":"setShopOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime_","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shopOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"vested","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vesting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052624f1a0060045565082f79cd90006005556402540be40060065534801561002a57600080fd5b506000610035610084565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610088565b3390565b611334806100976000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063c884ef83116100c3578063e4a20cb11161007c578063e4a20cb11461034b578063ec342ad014610353578063ed84142d1461035b578063ef8f959514610363578063f2fde38b1461036b578063f6be71d11461039157610158565b8063c884ef8314610285578063ce8df5b7146102ab578063cea9d26f146102c8578063d053ad83146102fe578063dc1adafb14610306578063e388c4231461032557610158565b806378e979251161011557806378e97925146102045780637b74b7301461020c57806385adfed81461023257806385d43a98146102585780638da5cb5b14610275578063c370b0421461027d57610158565b80631514617e1461015d57806335e370f2146101775780633e0a322d14610193578063429a867e146101b25780637102b728146101d6578063715018a6146101fc575b600080fd5b6101656103ae565b60408051918252519081900360200190f35b61017f6103b4565b604080519115158252519081900360200190f35b6101b0600480360360208110156101a957600080fd5b50356103c4565b005b6101ba61042b565b604080516001600160a01b039092168252519081900360200190f35b610165600480360360208110156101ec57600080fd5b50356001600160a01b031661043a565b6101b06104ed565b610165610599565b6101b06004803603602081101561022257600080fd5b50356001600160a01b031661059f565b6101b06004803603602081101561024857600080fd5b50356001600160a01b0316610623565b6101b06004803603602081101561026e57600080fd5b50356106a7565b6101ba61070e565b61016561071d565b6101656004803603602081101561029b57600080fd5b50356001600160a01b0316610723565b6101b0600480360360208110156102c157600080fd5b5035610735565b6101b0600480360360608110156102de57600080fd5b506001600160a01b0381358116916020810135909116906040013561079c565b6101ba61080e565b6101b06004803603602081101561031c57600080fd5b5035151561081d565b6101656004803603602081101561033b57600080fd5b50356001600160a01b031661089d565b6101b06108af565b610165610a69565b6101b0610a75565b610165610bd1565b6101b06004803603602081101561038157600080fd5b50356001600160a01b0316610bd7565b6101b0600480360360208110156103a757600080fd5b5035610cd9565b60045481565b600354600160a01b900460ff1681565b6103cc610d40565b6001600160a01b03166103dd61070e565b6001600160a01b031614610426576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600155565b6002546001600160a01b031681565b60008061047060045461046a670de0b6b3a764000061046460015442610d4490919063ffffffff16565b90610da6565b90610e06565b9050670de0b6b3a764000081111561048d5750670de0b6b3a76400005b6001600160a01b038316600090815260076020526040812054906104bd670de0b6b3a764000061046a8486610da6565b6001600160a01b0386166000908152600860205260409020549091506104e38282610d44565b9695505050505050565b6104f5610d40565b6001600160a01b031661050661070e565b6001600160a01b03161461054f576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60015481565b6105a7610d40565b6001600160a01b03166105b861070e565b6001600160a01b031614610601576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61062b610d40565b6001600160a01b031661063c61070e565b6001600160a01b031614610685576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6106af610d40565b6001600160a01b03166106c061070e565b6001600160a01b031614610709576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600655565b6000546001600160a01b031690565b60065481565b60086020526000908152604090205481565b61073d610d40565b6001600160a01b031661074e61070e565b6001600160a01b031614610797576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600555565b6107a4610d40565b6001600160a01b03166107b561070e565b6001600160a01b0316146107fe576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b610809838383610e6d565b505050565b6003546001600160a01b031681565b610825610d40565b6001600160a01b031661083661070e565b6001600160a01b03161461087f576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b60038054911515600160a01b0260ff60a01b19909216919091179055565b60076020526000908152604090205481565b6001544210156108f1576040805162461bcd60e51b8152602060048201526008602482015267085cdd185c9d195960c21b604482015290519081900360640190fd5b600354600160a01b900460ff16610946576040805162461bcd60e51b81526020600482015260146024820152731cda1bdc1ad9595c195c881a5cc818db1bdcd95960621b604482015290519081900360640190fd5b6002546000906001600160a01b03166370a08231610962610d40565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561099f57600080fd5b505afa1580156109b3573d6000803e3d6000fd5b505050506040513d60208110156109c957600080fd5b50516006549091506000906109df908390610e06565b90506005548111156109f057506005545b6000610a228260076000610a02610d40565b6001600160a01b0316815260208101919091526040016000205490610ebf565b90508060076000610a31610d40565b6001600160a01b0390811682526020820192909252604001600020919091556002546108099116610a60610d40565b61dead86610f19565b670de0b6b3a764000081565b600154421015610ab7576040805162461bcd60e51b8152602060048201526008602482015267085cdd185c9d195960c21b604482015290519081900360640190fd5b6000610ae060045461046a670de0b6b3a764000061046460015442610d4490919063ffffffff16565b9050670de0b6b3a7640000811115610afd5750670de0b6b3a76400005b600060076000610b0b610d40565b6001600160a01b0316815260208101919091526040016000908120549150610b3f670de0b6b3a764000061046a8486610da6565b9050600060086000610b4f610d40565b6001600160a01b0316815260208101919091526040016000908120549150610b778383610d44565b9050610b898160086000610a02610d40565b60086000610b95610d40565b6001600160a01b039081168252602082019290925260400160002091909155600354610bca9116610bc4610d40565b83610e6d565b5050505050565b60055481565b610bdf610d40565b6001600160a01b0316610bf061070e565b6001600160a01b031614610c39576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b6001600160a01b038116610c7e5760405162461bcd60e51b81526004018080602001828103825260268152602001806112726026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b610ce1610d40565b6001600160a01b0316610cf261070e565b6001600160a01b031614610d3b576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600455565b3390565b600082821115610d9b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b600082610db557506000610da0565b82820282848281610dc257fe5b0414610dff5760405162461bcd60e51b81526004018080602001828103825260218152602001806112be6021913960400191505060405180910390fd5b9392505050565b6000808211610e5c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610e6557fe5b049392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610809908490610f79565b600082820183811015610dff576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610f73908590610f79565b50505050565b6060610fce826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661102a9092919063ffffffff16565b80519091501561080957808060200190516020811015610fed57600080fd5b50516108095760405162461bcd60e51b815260040180806020018281038252602a815260200180611248602a913960400191505060405180910390fd5b60606110398484600085611041565b949350505050565b6060824710156110825760405162461bcd60e51b81526004018080602001828103825260268152602001806112986026913960400191505060405180910390fd5b61108b8561119d565b6110dc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061111b5780518252601f1990920191602091820191016110fc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461117d576040519150601f19603f3d011682016040523d82523d6000602084013e611182565b606091505b50915091506111928282866111a3565b979650505050505050565b3b151590565b606083156111b2575081610dff565b8251156111c25782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561120c5781810151838201526020016111f4565b50505050905090810190601f1680156112395780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ea6cc56ce8e0ac7a432e1e99bd0c294bb2cc748efc8c4c5781d19b6bfa0ca8e564736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063c884ef83116100c3578063e4a20cb11161007c578063e4a20cb11461034b578063ec342ad014610353578063ed84142d1461035b578063ef8f959514610363578063f2fde38b1461036b578063f6be71d11461039157610158565b8063c884ef8314610285578063ce8df5b7146102ab578063cea9d26f146102c8578063d053ad83146102fe578063dc1adafb14610306578063e388c4231461032557610158565b806378e979251161011557806378e97925146102045780637b74b7301461020c57806385adfed81461023257806385d43a98146102585780638da5cb5b14610275578063c370b0421461027d57610158565b80631514617e1461015d57806335e370f2146101775780633e0a322d14610193578063429a867e146101b25780637102b728146101d6578063715018a6146101fc575b600080fd5b6101656103ae565b60408051918252519081900360200190f35b61017f6103b4565b604080519115158252519081900360200190f35b6101b0600480360360208110156101a957600080fd5b50356103c4565b005b6101ba61042b565b604080516001600160a01b039092168252519081900360200190f35b610165600480360360208110156101ec57600080fd5b50356001600160a01b031661043a565b6101b06104ed565b610165610599565b6101b06004803603602081101561022257600080fd5b50356001600160a01b031661059f565b6101b06004803603602081101561024857600080fd5b50356001600160a01b0316610623565b6101b06004803603602081101561026e57600080fd5b50356106a7565b6101ba61070e565b61016561071d565b6101656004803603602081101561029b57600080fd5b50356001600160a01b0316610723565b6101b0600480360360208110156102c157600080fd5b5035610735565b6101b0600480360360608110156102de57600080fd5b506001600160a01b0381358116916020810135909116906040013561079c565b6101ba61080e565b6101b06004803603602081101561031c57600080fd5b5035151561081d565b6101656004803603602081101561033b57600080fd5b50356001600160a01b031661089d565b6101b06108af565b610165610a69565b6101b0610a75565b610165610bd1565b6101b06004803603602081101561038157600080fd5b50356001600160a01b0316610bd7565b6101b0600480360360208110156103a757600080fd5b5035610cd9565b60045481565b600354600160a01b900460ff1681565b6103cc610d40565b6001600160a01b03166103dd61070e565b6001600160a01b031614610426576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600155565b6002546001600160a01b031681565b60008061047060045461046a670de0b6b3a764000061046460015442610d4490919063ffffffff16565b90610da6565b90610e06565b9050670de0b6b3a764000081111561048d5750670de0b6b3a76400005b6001600160a01b038316600090815260076020526040812054906104bd670de0b6b3a764000061046a8486610da6565b6001600160a01b0386166000908152600860205260409020549091506104e38282610d44565b9695505050505050565b6104f5610d40565b6001600160a01b031661050661070e565b6001600160a01b03161461054f576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60015481565b6105a7610d40565b6001600160a01b03166105b861070e565b6001600160a01b031614610601576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61062b610d40565b6001600160a01b031661063c61070e565b6001600160a01b031614610685576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6106af610d40565b6001600160a01b03166106c061070e565b6001600160a01b031614610709576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600655565b6000546001600160a01b031690565b60065481565b60086020526000908152604090205481565b61073d610d40565b6001600160a01b031661074e61070e565b6001600160a01b031614610797576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600555565b6107a4610d40565b6001600160a01b03166107b561070e565b6001600160a01b0316146107fe576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b610809838383610e6d565b505050565b6003546001600160a01b031681565b610825610d40565b6001600160a01b031661083661070e565b6001600160a01b03161461087f576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b60038054911515600160a01b0260ff60a01b19909216919091179055565b60076020526000908152604090205481565b6001544210156108f1576040805162461bcd60e51b8152602060048201526008602482015267085cdd185c9d195960c21b604482015290519081900360640190fd5b600354600160a01b900460ff16610946576040805162461bcd60e51b81526020600482015260146024820152731cda1bdc1ad9595c195c881a5cc818db1bdcd95960621b604482015290519081900360640190fd5b6002546000906001600160a01b03166370a08231610962610d40565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561099f57600080fd5b505afa1580156109b3573d6000803e3d6000fd5b505050506040513d60208110156109c957600080fd5b50516006549091506000906109df908390610e06565b90506005548111156109f057506005545b6000610a228260076000610a02610d40565b6001600160a01b0316815260208101919091526040016000205490610ebf565b90508060076000610a31610d40565b6001600160a01b0390811682526020820192909252604001600020919091556002546108099116610a60610d40565b61dead86610f19565b670de0b6b3a764000081565b600154421015610ab7576040805162461bcd60e51b8152602060048201526008602482015267085cdd185c9d195960c21b604482015290519081900360640190fd5b6000610ae060045461046a670de0b6b3a764000061046460015442610d4490919063ffffffff16565b9050670de0b6b3a7640000811115610afd5750670de0b6b3a76400005b600060076000610b0b610d40565b6001600160a01b0316815260208101919091526040016000908120549150610b3f670de0b6b3a764000061046a8486610da6565b9050600060086000610b4f610d40565b6001600160a01b0316815260208101919091526040016000908120549150610b778383610d44565b9050610b898160086000610a02610d40565b60086000610b95610d40565b6001600160a01b039081168252602082019290925260400160002091909155600354610bca9116610bc4610d40565b83610e6d565b5050505050565b60055481565b610bdf610d40565b6001600160a01b0316610bf061070e565b6001600160a01b031614610c39576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b6001600160a01b038116610c7e5760405162461bcd60e51b81526004018080602001828103825260268152602001806112726026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b610ce1610d40565b6001600160a01b0316610cf261070e565b6001600160a01b031614610d3b576040805162461bcd60e51b815260206004820181905260248201526000805160206112df833981519152604482015290519081900360640190fd5b600455565b3390565b600082821115610d9b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b600082610db557506000610da0565b82820282848281610dc257fe5b0414610dff5760405162461bcd60e51b81526004018080602001828103825260218152602001806112be6021913960400191505060405180910390fd5b9392505050565b6000808211610e5c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610e6557fe5b049392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610809908490610f79565b600082820183811015610dff576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610f73908590610f79565b50505050565b6060610fce826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661102a9092919063ffffffff16565b80519091501561080957808060200190516020811015610fed57600080fd5b50516108095760405162461bcd60e51b815260040180806020018281038252602a815260200180611248602a913960400191505060405180910390fd5b60606110398484600085611041565b949350505050565b6060824710156110825760405162461bcd60e51b81526004018080602001828103825260268152602001806112986026913960400191505060405180910390fd5b61108b8561119d565b6110dc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061111b5780518252601f1990920191602091820191016110fc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461117d576040519150601f19603f3d011682016040523d82523d6000602084013e611182565b606091505b50915091506111928282866111a3565b979650505050505050565b3b151590565b606083156111b2575081610dff565b8251156111c25782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561120c5781810151838201526020016111f4565b50505050905090810190601f1680156112395780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ea6cc56ce8e0ac7a432e1e99bd0c294bb2cc748efc8c4c5781d19b6bfa0ca8e564736f6c634300060c0033
Deployed Bytecode Sourcemap
26229:4504:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26444:40;;;:::i;:::-;;;;;;;;;;;;;;;;26417:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;26776:100;;;;;;;;;;;;;;;;-1:-1:-1;26776:100:0;;:::i;:::-;;26345:30;;;:::i;:::-;;;;-1:-1:-1;;;;;26345:30:0;;;;;;;;;;;;;;27480:708;;;;;;;;;;;;;;;;-1:-1:-1;27480:708:0;-1:-1:-1;;;;;27480:708:0;;:::i;25234:148::-;;;:::i;26314:24::-;;;:::i;26884:154::-;;;;;;;;;;;;;;;;-1:-1:-1;26884:154:0;-1:-1:-1;;;;;26884:154:0;;:::i;27046:123::-;;;;;;;;;;;;;;;;-1:-1:-1;27046:123:0;-1:-1:-1;;;;;27046:123:0;;:::i;27288:84::-;;;;;;;;;;;;;;;;-1:-1:-1;27288:84:0;;:::i;24583:87::-;;;:::i;26582:29::-;;;:::i;26694:42::-;;;;;;;;;;;;;;;;-1:-1:-1;26694:42:0;-1:-1:-1;;;;;26694:42:0;;:::i;27380:92::-;;;;;;;;;;;;;;;;-1:-1:-1;27380:92:0;;:::i;30520:210::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30520:210:0;;;;;;;;;;;;;;;;;:::i;26382:28::-;;;:::i;30330:95::-;;;;;;;;;;;;;;;;-1:-1:-1;30330:95:0;;;;:::i;26643:42::-;;;;;;;;;;;;;;;;-1:-1:-1;26643:42:0;-1:-1:-1;;;;;26643:42:0;;:::i;28519:859::-;;;:::i;26538:37::-;;;:::i;29386:936::-;;;:::i;26491:38::-;;;:::i;25537:244::-;;;;;;;;;;;;;;;;-1:-1:-1;25537:244:0;-1:-1:-1;;;;;25537:244:0;;:::i;27177:103::-;;;;;;;;;;;;;;;;-1:-1:-1;27177:103:0;;:::i;26444:40::-;;;;:::o;26417:20::-;;;-1:-1:-1;;;26417:20:0;;;;;:::o;26776:100::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;26846:9:::1;:22:::0;26776:100::o;26345:30::-;;;-1:-1:-1;;;;;26345:30:0;;:::o;27480:708::-;27530:7;27595:18;27616:49;27649:15;;27616:28;26569:6;27616:18;27624:9;;27616:3;:7;;:18;;;;:::i;:::-;:22;;:28::i;:::-;:32;;:49::i;:::-;27595:70;;26569:6;27682:10;:17;27678:67;;;-1:-1:-1;26569:6:0;27678:67;-1:-1:-1;;;;;27813:12:0;;27790:20;27813:12;;;:7;:12;;;;;;;27948:38;26569:6;27948:28;27813:12;27965:10;27948:16;:28::i;:38::-;-1:-1:-1;;;;;28071:12:0;;28046:22;28071:12;;;:7;:12;;;;;;27915:71;;-1:-1:-1;28138:42:0;27915:71;28071:12;28138:26;:42::i;:::-;28131:49;27480:708;-1:-1:-1;;;;;;27480:708:0:o;25234:148::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;25341:1:::1;25325:6:::0;;25304:40:::1;::::0;-1:-1:-1;;;;;25325:6:0;;::::1;::::0;25304:40:::1;::::0;25341:1;;25304:40:::1;25372:1;25355:19:::0;;-1:-1:-1;;;;;;25355:19:0::1;::::0;;25234:148::o;26314:24::-;;;;:::o;26884:154::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;26996:15:::1;:34:::0;;-1:-1:-1;;;;;;26996:34:0::1;-1:-1:-1::0;;;;;26996:34:0;;;::::1;::::0;;;::::1;::::0;;26884:154::o;27046:123::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;27131:13:::1;:30:::0;;-1:-1:-1;;;;;;27131:30:0::1;-1:-1:-1::0;;;;;27131:30:0;;;::::1;::::0;;;::::1;::::0;;27046:123::o;27288:84::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;27350:5:::1;:14:::0;27288:84::o;24583:87::-;24629:7;24656:6;-1:-1:-1;;;;;24656:6:0;24583:87;:::o;26582:29::-;;;;:::o;26694:42::-;;;;;;;;;;;;;:::o;27380:92::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;27446:7:::1;:18:::0;27380:92::o;30520:210::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;30673:49:::1;30703:5;30711:2;30715:6;30673:22;:49::i;:::-;30520:210:::0;;;:::o;26382:28::-;;;-1:-1:-1;;;;;26382:28:0;;:::o;30330:95::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;30397:8:::1;:20:::0;;;::::1;;-1:-1:-1::0;;;30397:20:0::1;-1:-1:-1::0;;;;30397:20:0;;::::1;::::0;;;::::1;::::0;;30330:95::o;26643:42::-;;;;;;;;;;;;;:::o;28519:859::-;28253:9;;28234:15;:28;;28226:49;;;;;-1:-1:-1;;;28226:49:0;;;;;;;;;;;;-1:-1:-1;;;28226:49:0;;;;;;;;;;;;;;;28588:8:::1;::::0;-1:-1:-1;;;28588:8:0;::::1;;;28580:41;;;::::0;;-1:-1:-1;;;28580:41:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28580:41:0;;;;;;;;;;;;;::::1;;28695:15;::::0;28634:28:::1;::::0;-1:-1:-1;;;;;28695:15:0::1;28678:43;28722:12;:10;:12::i;:::-;28678:57;;;;;;;;;;;;;-1:-1:-1::0;;;;;28678:57:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;28678:57:0;28850:5:::1;::::0;28678:57;;-1:-1:-1;28796:26:0::1;::::0;28825:31:::1;::::0;28678:57;;28825:24:::1;:31::i;:::-;28796:60;;28946:7;;28925:18;:28;28921:89;;;-1:-1:-1::0;28991:7:0::1;::::0;28921:89:::1;29022:20;29045:45;29071:18;29045:7;:21;29053:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;29045:21:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;29045:21:0;;;:25:::1;:45::i;:::-;29022:68;;29125:12;29101:7;:21;29109:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;29101:21:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;29101:21:0;:36;;;;29215:15:::1;::::0;29167:203:::1;::::0;29215:15:::1;29246:12;:10;:12::i;:::-;29281:42;29339:20;29167:26;:203::i;26538:37::-:0;26569:6;26538:37;:::o;29386:936::-;28253:9;;28234:15;:28;;28226:49;;;;;-1:-1:-1;;;28226:49:0;;;;;;;;;;;;-1:-1:-1;;;28226:49:0;;;;;;;;;;;;;;;29491:18:::1;29512:49;29545:15;;29512:28;26569:6;29512:18;29520:9;;29512:3;:7;;:18;;;;:::i;:49::-;29491:70;;26569:6;29578:10;:17;29574:67;;;-1:-1:-1::0;26569:6:0::1;29574:67;29686:20;29709:7;:21;29717:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;29709:21:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;29709:21:0;;;;;-1:-1:-1;29853:38:0::1;26569:6;29853:28;29709:21:::0;29870:10;29853:16:::1;:28::i;:38::-;29820:71;;29951:22;29976:7;:21;29984:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;29976:21:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;29976:21:0;;;;;-1:-1:-1;30066:42:0::1;:22:::0;29976:21;30066:26:::1;:42::i;:::-;30045:63;;30172:37;30198:10;30172:7;:21;30180:12;:10;:12::i;30172:37::-;30148:7;:21;30156:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;30148:21:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;30148:21:0;:61;;;;30273:13:::1;::::0;30243:71:::1;::::0;30273:13:::1;30289:12;:10;:12::i;:::-;30303:10;30243:22;:71::i;:::-;28286:1;;;;;29386:936::o:0;26491:38::-;;;;:::o;25537:244::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25626:22:0;::::1;25618:73;;;;-1:-1:-1::0;;;25618:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25728:6;::::0;;25707:38:::1;::::0;-1:-1:-1;;;;;25707:38:0;;::::1;::::0;25728:6;::::1;::::0;25707:38:::1;::::0;::::1;25756:6;:17:::0;;-1:-1:-1;;;;;;25756:17:0::1;-1:-1:-1::0;;;;;25756:17:0;;;::::1;::::0;;;::::1;::::0;;25537:244::o;27177:103::-;24814:12;:10;:12::i;:::-;-1:-1:-1;;;;;24803:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24803:23:0;;24795:68;;;;;-1:-1:-1;;;24795:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24795:68:0;;;;;;;;;;;;;;;27245:15:::1;:27:::0;27177:103::o;23114:106::-;23202:10;23114:106;:::o;6519:158::-;6577:7;6610:1;6605;:6;;6597:49;;;;;-1:-1:-1;;;6597:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6664:5:0;;;6519:158;;;;;:::o;6936:220::-;6994:7;7018:6;7014:20;;-1:-1:-1;7033:1:0;7026:8;;7014:20;7057:5;;;7061:1;7057;:5;:1;7081:5;;;;;:10;7073:56;;;;-1:-1:-1;;;7073:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7147:1;6936:220;-1:-1:-1;;;6936:220:0:o;7634:153::-;7692:7;7724:1;7720;:5;7712:44;;;;;-1:-1:-1;;;7712:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7778:1;7774;:5;;;;;;;7634:153;-1:-1:-1;;;7634:153:0:o;19401:177::-;19511:58;;;-1:-1:-1;;;;;19511:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19511:58:0;-1:-1:-1;;;19511:58:0;;;19484:86;;19504:5;;19484:19;:86::i;6057:179::-;6115:7;6147:5;;;6171:6;;;;6163:46;;;;;-1:-1:-1;;;6163:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;19586:205;19714:68;;;-1:-1:-1;;;;;19714:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19714:68:0;-1:-1:-1;;;19714:68:0;;;19687:96;;19707:5;;19687:19;:96::i;:::-;19586:205;;;;:::o;21706:761::-;22130:23;22156:69;22184:4;22156:69;;;;;;;;;;;;;;;;;22164:5;-1:-1:-1;;;;;22156:27:0;;;:69;;;;;:::i;:::-;22240:17;;22130:95;;-1:-1:-1;22240:21:0;22236:224;;22382:10;22371:30;;;;;;;;;;;;;;;-1:-1:-1;22371:30:0;22363:85;;;;-1:-1:-1;;;22363:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14420:195;14523:12;14555:52;14577:6;14585:4;14591:1;14594:12;14555:21;:52::i;:::-;14548:59;14420:195;-1:-1:-1;;;;14420:195:0:o;15472:530::-;15599:12;15657:5;15632:21;:30;;15624:81;;;;-1:-1:-1;;;15624:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15724:18;15735:6;15724:10;:18::i;:::-;15716:60;;;;;-1:-1:-1;;;15716:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15850:12;15864:23;15891:6;-1:-1:-1;;;;;15891:11:0;15911:5;15919:4;15891:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15891:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15849:75;;;;15942:52;15960:7;15969:10;15981:12;15942:17;:52::i;:::-;15935:59;15472:530;-1:-1:-1;;;;;;;15472:530:0:o;11502:422::-;11869:20;11908:8;;;11502:422::o;18012:742::-;18127:12;18156:7;18152:595;;;-1:-1:-1;18187:10:0;18180:17;;18152:595;18301:17;;:21;18297:439;;18564:10;18558:17;18625:15;18612:10;18608:2;18604:19;18597:44;18512:148;18707:12;18700:20;;-1:-1:-1;;;18700:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://ea6cc56ce8e0ac7a432e1e99bd0c294bb2cc748efc8c4c5781d19b6bfa0ca8e5
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.