ETH Price: $3,337.12 (-0.07%)
 

Overview

ETH Balance

12.388893044443440176 ETH

Eth Value

$41,343.16 (@ $3,337.12/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw My All ...216060682025-01-12 4:38:2314 days ago1736656703IN
0x0EBB2B76...b5C196249
0 ETH0.000153992.22028744
Withdraw My All ...212407742024-11-22 4:06:1165 days ago1732248371IN
0x0EBB2B76...b5C196249
0 ETH0.0007797411.2419335
Withdraw My All ...210311252024-10-23 21:57:1194 days ago1729720631IN
0x0EBB2B76...b5C196249
0 ETH0.00307946.80541218
Withdraw My All ...209111932024-10-07 4:08:59111 days ago1728274139IN
0x0EBB2B76...b5C196249
0 ETH0.000728917.73289404
Withdraw My All ...207766842024-09-18 9:48:23130 days ago1726652903IN
0x0EBB2B76...b5C196249
0 ETH0.0024522111.3914629
Withdraw My All ...207766812024-09-18 9:47:47130 days ago1726652867IN
0x0EBB2B76...b5C196249
0 ETH0.0029030111.86984405
Withdraw My All ...206632882024-09-02 13:49:59146 days ago1725284999IN
0x0EBB2B76...b5C196249
0 ETH0.000845645.8699422
Withdraw My All ...206032782024-08-25 4:39:23154 days ago1724560763IN
0x0EBB2B76...b5C196249
0 ETH0.000181760.96750978
Withdraw My All ...205523542024-08-18 1:54:11161 days ago1723946051IN
0x0EBB2B76...b5C196249
0 ETH0.000079060.91445279
Withdraw My All ...205281382024-08-14 16:43:23165 days ago1723653803IN
0x0EBB2B76...b5C196249
0 ETH0.003764148.01575116
Withdraw My Rewa...204154712024-07-29 23:20:11180 days ago1722295211IN
0x0EBB2B76...b5C196249
0 ETH0.000080641.24904146
Withdraw My All ...202823632024-07-11 9:27:35199 days ago1720690055IN
0x0EBB2B76...b5C196249
0 ETH0.0009957814.35669128
Withdraw My All ...202206112024-07-02 18:26:59208 days ago1719944819IN
0x0EBB2B76...b5C196249
0 ETH0.001589075.27447242
Withdraw My All ...200966412024-06-15 10:37:23225 days ago1718447843IN
0x0EBB2B76...b5C196249
0 ETH0.00083513.93055445
Withdraw My All ...200964552024-06-15 9:59:59225 days ago1718445599IN
0x0EBB2B76...b5C196249
0 ETH0.000970463.67079237
Withdraw My All ...199927232024-05-31 22:14:11239 days ago1717193651IN
0x0EBB2B76...b5C196249
0 ETH0.000701018.10797171
Withdraw My All ...199897732024-05-31 12:20:11240 days ago1717158011IN
0x0EBB2B76...b5C196249
0 ETH0.0030930612.15515397
Withdraw My All ...199755092024-05-29 12:25:35242 days ago1716985535IN
0x0EBB2B76...b5C196249
0 ETH0.0007090419.52601623
Withdraw My All ...199608662024-05-27 11:19:11244 days ago1716808751IN
0x0EBB2B76...b5C196249
0 ETH0.000868510.04518084
Withdraw My All ...199248122024-05-22 10:25:23249 days ago1716373523IN
0x0EBB2B76...b5C196249
0 ETH0.000566186.54854607
Withdraw My All ...199021592024-05-19 6:20:47252 days ago1716099647IN
0x0EBB2B76...b5C196249
0 ETH0.000599333.19024539
Withdraw My All ...198549502024-05-12 15:52:23259 days ago1715529143IN
0x0EBB2B76...b5C196249
0 ETH0.0019927618.29230117
Withdraw My All ...198549422024-05-12 15:50:47259 days ago1715529047IN
0x0EBB2B76...b5C196249
0 ETH0.000158584.36705541
Withdraw My All ...198526062024-05-12 7:59:23259 days ago1715500763IN
0x0EBB2B76...b5C196249
0 ETH0.000345844
Withdraw My All ...197015752024-04-21 5:04:35280 days ago1713675875IN
0x0EBB2B76...b5C196249
0 ETH0.000420456.06196961
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
216060682025-01-12 4:38:2314 days ago1736656703
0x0EBB2B76...b5C196249
0.00181047 ETH
215713352025-01-07 8:15:1119 days ago1736237711
0x0EBB2B76...b5C196249
0.0075 ETH
213647352024-12-09 11:45:5948 days ago1733744759
0x0EBB2B76...b5C196249
0.0075 ETH
213360322024-12-05 11:35:2352 days ago1733398523
0x0EBB2B76...b5C196249
0.015 ETH
213205602024-12-03 7:43:2354 days ago1733211803
0x0EBB2B76...b5C196249
0.0075 ETH
212582642024-11-24 14:41:1163 days ago1732459271
0x0EBB2B76...b5C196249
0.0015 ETH
212407742024-11-22 4:06:1165 days ago1732248371
0x0EBB2B76...b5C196249
0.00702197 ETH
211932732024-11-15 13:04:2372 days ago1731675863
0x0EBB2B76...b5C196249
0.075 ETH
211810392024-11-13 20:04:1173 days ago1731528251
0x0EBB2B76...b5C196249
0.0015 ETH
211788012024-11-13 12:34:3574 days ago1731501275
0x0EBB2B76...b5C196249
0.0015 ETH
211714792024-11-12 12:03:4775 days ago1731413027
0x0EBB2B76...b5C196249
0.003 ETH
210311252024-10-23 21:57:1194 days ago1729720631
0x0EBB2B76...b5C196249
0.08199181 ETH
209111932024-10-07 4:08:59111 days ago1728274139
0x0EBB2B76...b5C196249
0.0033825 ETH
208838312024-10-03 8:35:47115 days ago1727944547
0x0EBB2B76...b5C196249
0.003 ETH
207766812024-09-18 9:47:47130 days ago1726652867
0x0EBB2B76...b5C196249
0.03195245 ETH
207413122024-09-13 11:11:11135 days ago1726225871
0x0EBB2B76...b5C196249
0.0015 ETH
206681872024-09-03 6:14:11145 days ago1725344051
0x0EBB2B76...b5C196249
0.003 ETH
206632882024-09-02 13:49:59146 days ago1725284999
0x0EBB2B76...b5C196249
0.01276812 ETH
206524752024-09-01 1:36:59147 days ago1725154619
0x0EBB2B76...b5C196249
0.0015 ETH
206524242024-09-01 1:26:47147 days ago1725154007
0x0EBB2B76...b5C196249
0.0015 ETH
206032782024-08-25 4:39:23154 days ago1724560763
0x0EBB2B76...b5C196249
0.02275741 ETH
205748142024-08-21 5:10:11158 days ago1724217011
0x0EBB2B76...b5C196249
0.0015 ETH
205733012024-08-21 0:05:59158 days ago1724198759
0x0EBB2B76...b5C196249
0.015 ETH
205523542024-08-18 1:54:11161 days ago1723946051
0x0EBB2B76...b5C196249
0.01789697 ETH
205281382024-08-14 16:43:23165 days ago1723653803
0x0EBB2B76...b5C196249
0.05685156 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CSPLGuildPoolV2

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : CSPLGuildPoolV2.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

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

interface IGuildAsset is IERC721 {
    function getTotalVolume(uint16 _guildType) external view returns (uint256);
    function isValidGuildStock(uint256 _guildTokenId) external view;
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
    function getGuildType(uint256 _guildTokenId) external view returns (uint16);
    function getShareRateWithDecimal(uint256 _guildTokenId) external view returns (uint256, uint256);
}

contract CSPLGuildPoolV2 is Ownable, Pausable, ReentrancyGuard {

  IGuildAsset public guildAsset;

  // mapping(guildType => totalAmount)
  mapping(uint16 => uint256) private guildTypeToTotalAmount;
  // mapping(guildTokenId => withdrawnAmount)
  mapping(uint256 => uint256) private guildStockToWithdrawnAmount;
  // mapping(allowedAddresses => bool)
  mapping(address => bool) private allowedAddresses;

  event EthAddedToPool(
    uint16 indexed guildType,
    address txSender,
    address indexed purchaseBy,
    uint256 value,
    uint256 at
  );

  event WithdrawEther(
    uint256 indexed guildTokenId,
    address indexed owner,
    uint256 value,
    uint256 at
  );

  event AllowedAddressSet(
    address allowedAddress,
    bool allowedStatus
  );

  constructor(address _guildAssetAddress) {
    setGuildAssetAddress(_guildAssetAddress);
  }

  function setGuildAssetAddress(address _guildAssetAddress) public onlyOwner() {
    guildAsset = IGuildAsset(_guildAssetAddress);
  }

  // getter setter
  function getAllowedAddress(address _address) public view returns (bool) {
    return allowedAddresses[_address];
  }

  function setAllowedAddress(address _address, bool desired) external onlyOwner() {
    allowedAddresses[_address] = desired;
  }

  function getGuildStockWithdrawnAmount(uint256 _guildTokenId) public view returns (uint256) {
    return guildStockToWithdrawnAmount[_guildTokenId];
  }

  function getGuildTypeToTotalAmount(uint16 _guildType) public view returns (uint256) {
    return guildTypeToTotalAmount[_guildType];
  }

  // poolに追加 execute from buySPL
  function addEthToGuildPool(uint16 _guildType, address _purchaseBy) external payable whenNotPaused() nonReentrant() {
    require(guildAsset.getTotalVolume(_guildType) > 0);
    require(allowedAddresses[msg.sender]);
    guildTypeToTotalAmount[_guildType] += msg.value;

    emit EthAddedToPool(
      _guildType,
      msg.sender,
      _purchaseBy,
      msg.value,
      block.timestamp
    );
  }

  function withdrawMyAllRewards() external whenNotPaused() nonReentrant() {
    uint256 withdrawValue;
    uint256 balance = guildAsset.balanceOf(msg.sender);

    for (uint256 i=balance; i > 0; i--) {
      uint256 guildStock = guildAsset.tokenOfOwnerByIndex(msg.sender, i-1);
      uint256 tmpAmount = getGuildStockWithdrawableBalance(guildStock);
      withdrawValue += tmpAmount;
      guildStockToWithdrawnAmount[guildStock] += tmpAmount;

      emit WithdrawEther(
        guildStock,
        msg.sender,
        tmpAmount,
        block.timestamp
      );
    }

    require(withdrawValue > 0, "no withdrawable balances left");

    payable(msg.sender).transfer(withdrawValue);
  }

  function withdrawMyReward(uint256 _guildTokenId) external whenNotPaused() nonReentrant() {
    require(guildAsset.ownerOf(_guildTokenId) == msg.sender);
    uint256 withdrawableAmount = getGuildStockWithdrawableBalance(_guildTokenId);
    require(withdrawableAmount > 0);

    guildStockToWithdrawnAmount[_guildTokenId] += withdrawableAmount;
    payable(msg.sender).transfer(withdrawableAmount);

    emit WithdrawEther(
      _guildTokenId,
      msg.sender,
      withdrawableAmount,
      block.timestamp
    );
  }

  function withdrawMyRewards(uint[] calldata _guildTokenId) external whenNotPaused() nonReentrant() {
    uint256 withdrawValue;

    for (uint8 i = 0; i < _guildTokenId.length; i++) {
        require(guildAsset.ownerOf(_guildTokenId[i]) == msg.sender);
        uint256 tmpAmount = getGuildStockWithdrawableBalance(_guildTokenId[i]);

        guildStockToWithdrawnAmount[_guildTokenId[i]] += tmpAmount;

        emit WithdrawEther(
            _guildTokenId[i],
            msg.sender,
            tmpAmount,
            block.timestamp
        );
        withdrawValue += tmpAmount;
    }

    require(withdrawValue > 0, "no withdrawable balances left");

    payable(msg.sender).transfer(withdrawValue);
  }

  // ギルドトークンごとの引き出し可能な量
  // 全体の総和×割合-これまで引き出した量
  function getGuildStockWithdrawableBalance(uint256 _guildTokenId) public view returns (uint256) {
    guildAsset.isValidGuildStock(_guildTokenId);

    uint16 _guildType = guildAsset.getGuildType(_guildTokenId);
    (uint256 shareRate, uint256 decimal) = guildAsset.getShareRateWithDecimal(_guildTokenId);
    uint256 maxAmount = guildTypeToTotalAmount[_guildType] * shareRate / decimal;
    return maxAmount - guildStockToWithdrawnAmount[_guildTokenId];
  }

  function getWithdrawableBalance(address _ownerAddress) public view returns (uint256) {
    uint256 balance = guildAsset.balanceOf(_ownerAddress);
    uint256 withdrawableAmount;

    for (uint256 i=balance; i > 0; i--) {
      uint256 guildTokenId = guildAsset.tokenOfOwnerByIndex(_ownerAddress, i-1);
      withdrawableAmount += getGuildStockWithdrawableBalance(guildTokenId);
    }

    return withdrawableAmount;
  }

  function getGuildStockWithdrawableBalances(uint[] calldata _guildTokenId) public view returns (uint256) {
    uint256 withdrawableAmount;

    for (uint8 i = 0; i < _guildTokenId.length; i++) {
      withdrawableAmount += getGuildStockWithdrawableBalance(_guildTokenId[i]);
    }

    return withdrawableAmount;
  }

}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 7 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 7 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 7 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_guildAssetAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"allowedAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"allowedStatus","type":"bool"}],"name":"AllowedAddressSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"guildType","type":"uint16"},{"indexed":false,"internalType":"address","name":"txSender","type":"address"},{"indexed":true,"internalType":"address","name":"purchaseBy","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"EthAddedToPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"guildTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"WithdrawEther","type":"event"},{"inputs":[{"internalType":"uint16","name":"_guildType","type":"uint16"},{"internalType":"address","name":"_purchaseBy","type":"address"}],"name":"addEthToGuildPool","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAllowedAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_guildTokenId","type":"uint256"}],"name":"getGuildStockWithdrawableBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_guildTokenId","type":"uint256[]"}],"name":"getGuildStockWithdrawableBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_guildTokenId","type":"uint256"}],"name":"getGuildStockWithdrawnAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_guildType","type":"uint16"}],"name":"getGuildTypeToTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_ownerAddress","type":"address"}],"name":"getWithdrawableBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"guildAsset","outputs":[{"internalType":"contract IGuildAsset","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"desired","type":"bool"}],"name":"setAllowedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_guildAssetAddress","type":"address"}],"name":"setGuildAssetAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMyAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_guildTokenId","type":"uint256"}],"name":"withdrawMyReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_guildTokenId","type":"uint256[]"}],"name":"withdrawMyRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405162001588380380620015888339810160408190526100319161012a565b61003a3361005a565b6000805460ff60a01b1916905560018055610054816100aa565b5061015a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146101085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60006020828403121561013c57600080fd5b81516001600160a01b038116811461015357600080fd5b9392505050565b61141e806200016a6000396000f3fe6080604052600436106100fe5760003560e01c8063843592d311610095578063ced7ed2c11610064578063ced7ed2c146102c1578063e073af72146102fa578063ef7daeb81461030d578063f2fde38b1461032d578063fae369861461034d57600080fd5b8063843592d3146102365780638da5cb5b14610256578063a3a7e3e414610274578063a881cdf6146102a157600080fd5b80636f1fa432116100d15780636f1fa432146101bb578063715018a6146101ec578063760b8cc2146102015780637d37ac411461021657600080fd5b8063078405c11461010357806356990e65146101365780635c975abb146101585780636e9f652914610183575b600080fd5b34801561010f57600080fd5b5061012361011e366004611204565b61036d565b6040519081526020015b60405180910390f35b34801561014257600080fd5b50610156610151366004611204565b610522565b005b34801561016457600080fd5b50600054600160a01b900460ff165b604051901515815260200161012d565b34801561018f57600080fd5b506002546101a3906001600160a01b031681565b6040516001600160a01b03909116815260200161012d565b3480156101c757600080fd5b506101236101d636600461119c565b61ffff1660009081526003602052604090205490565b3480156101f857600080fd5b506101566106bc565b34801561020d57600080fd5b506101566106f2565b34801561022257600080fd5b50610123610231366004611127565b610985565b34801561024257600080fd5b506101236102513660046110a8565b6109e0565b34801561026257600080fd5b506000546001600160a01b03166101a3565b34801561028057600080fd5b5061012361028f366004611204565b60009081526004602052604090205490565b3480156102ad57600080fd5b506101566102bc3660046110a8565b610b34565b3480156102cd57600080fd5b506101736102dc3660046110a8565b6001600160a01b031660009081526005602052604090205460ff1690565b6101566103083660046111d6565b610b80565b34801561031957600080fd5b50610156610328366004611127565b610cf0565b34801561033957600080fd5b506101566103483660046110a8565b610f68565b34801561035957600080fd5b506101566103683660046110e9565b611003565b600254604051633f6fcc5960e01b8152600481018390526000916001600160a01b031690633f6fcc599060240160006040518083038186803b1580156103b257600080fd5b505afa1580156103c6573d6000803e3d6000fd5b5050600254604051637e02275960e11b815260048101869052600093506001600160a01b03909116915063fc044eb29060240160206040518083038186803b15801561041157600080fd5b505afa158015610425573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044991906111b9565b600254604051631ee2ec9360e01b81526004810186905291925060009182916001600160a01b031690631ee2ec9390602401604080518083038186803b15801561049257600080fd5b505afa1580156104a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ca9190611236565b61ffff85166000908152600360205260408120549294509092509082906104f290859061132a565b6104fc9190611308565b6000878152600460205260409020549091506105189082611349565b9695505050505050565b600054600160a01b900460ff16156105555760405162461bcd60e51b815260040161054c9061125a565b60405180910390fd5b600260015414156105785760405162461bcd60e51b815260040161054c906112b9565b60026001819055546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156105c157600080fd5b505afa1580156105d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f991906110cc565b6001600160a01b03161461060c57600080fd5b60006106178261036d565b90506000811161062657600080fd5b600082815260046020526040812080548392906106449084906112f0565b9091555050604051339082156108fc029083906000818181858888f19350505050158015610676573d6000803e3d6000fd5b5060408051828152426020820152339184917fa2af676ed4f1045c96ac2b367997d51c256e9d758a41490190108d260e9634f791015b60405180910390a3505060018055565b6000546001600160a01b031633146106e65760405162461bcd60e51b815260040161054c90611284565b6106f06000611058565b565b600054600160a01b900460ff161561071c5760405162461bcd60e51b815260040161054c9061125a565b6002600154141561073f5760405162461bcd60e51b815260040161054c906112b9565b60026001819055546040516370a0823160e01b815233600482015260009182916001600160a01b03909116906370a082319060240160206040518083038186803b15801561078c57600080fd5b505afa1580156107a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c4919061121d565b9050805b80156108fe576002546000906001600160a01b0316632f745c59336107ee600186611349565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b15801561083257600080fd5b505afa158015610846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a919061121d565b905060006108778261036d565b905061088381866112f0565b9450806004600084815260200190815260200160002060008282546108a891906112f0565b909155505060408051828152426020820152339184917fa2af676ed4f1045c96ac2b367997d51c256e9d758a41490190108d260e9634f7910160405180910390a3505080806108f690611360565b9150506107c8565b506000821161094f5760405162461bcd60e51b815260206004820152601d60248201527f6e6f20776974686472617761626c652062616c616e636573206c656674000000604482015260640161054c565b604051339083156108fc029084906000818181858888f1935050505015801561097c573d6000803e3d6000fd5b50506001805550565b60008060005b60ff81168411156109d8576109ba85858360ff168181106109ae576109ae6113ad565b9050602002013561036d565b6109c490836112f0565b9150806109d081611377565b91505061098b565b509392505050565b6002546040516370a0823160e01b81526001600160a01b03838116600483015260009283929116906370a082319060240160206040518083038186803b158015610a2957600080fd5b505afa158015610a3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a61919061121d565b90506000815b80156109d8576002546000906001600160a01b0316632f745c5987610a8d600186611349565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b158015610ad157600080fd5b505afa158015610ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b09919061121d565b9050610b148161036d565b610b1e90846112f0565b9250508080610b2c90611360565b915050610a67565b6000546001600160a01b03163314610b5e5760405162461bcd60e51b815260040161054c90611284565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600054600160a01b900460ff1615610baa5760405162461bcd60e51b815260040161054c9061125a565b60026001541415610bcd5760405162461bcd60e51b815260040161054c906112b9565b6002600181905554604051637ddd3db160e11b815261ffff841660048201526000916001600160a01b03169063fbba7b629060240160206040518083038186803b158015610c1a57600080fd5b505afa158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c52919061121d565b11610c5c57600080fd5b3360009081526005602052604090205460ff16610c7857600080fd5b61ffff821660009081526003602052604081208054349290610c9b9084906112f0565b90915550506040805133815234602082015242918101919091526001600160a01b0382169061ffff8416907f47fc953414cd61a5494c179efb796283502f867ea6d50a54853a0281f1b7c3fc906060016106ac565b600054600160a01b900460ff1615610d1a5760405162461bcd60e51b815260040161054c9061125a565b60026001541415610d3d5760405162461bcd60e51b815260040161054c906112b9565b60026001556000805b60ff8116831115610ee05760025433906001600160a01b0316636352211e868660ff8616818110610d7957610d796113ad565b905060200201356040518263ffffffff1660e01b8152600401610d9e91815260200190565b60206040518083038186803b158015610db657600080fd5b505afa158015610dca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dee91906110cc565b6001600160a01b031614610e0157600080fd5b6000610e1b85858460ff168181106109ae576109ae6113ad565b9050806004600087878660ff16818110610e3757610e376113ad565b9050602002013581526020019081526020016000206000828254610e5b91906112f0565b90915550339050858560ff8516818110610e7757610e776113ad565b905060200201357fa2af676ed4f1045c96ac2b367997d51c256e9d758a41490190108d260e9634f78342604051610eb8929190918252602082015260400190565b60405180910390a3610eca81846112f0565b9250508080610ed890611377565b915050610d46565b5060008111610f315760405162461bcd60e51b815260206004820152601d60248201527f6e6f20776974686472617761626c652062616c616e636573206c656674000000604482015260640161054c565b604051339082156108fc029083906000818181858888f19350505050158015610f5e573d6000803e3d6000fd5b5050600180555050565b6000546001600160a01b03163314610f925760405162461bcd60e51b815260040161054c90611284565b6001600160a01b038116610ff75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161054c565b61100081611058565b50565b6000546001600160a01b0316331461102d5760405162461bcd60e51b815260040161054c90611284565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156110ba57600080fd5b81356110c5816113c3565b9392505050565b6000602082840312156110de57600080fd5b81516110c5816113c3565b600080604083850312156110fc57600080fd5b8235611107816113c3565b91506020830135801515811461111c57600080fd5b809150509250929050565b6000806020838503121561113a57600080fd5b823567ffffffffffffffff8082111561115257600080fd5b818501915085601f83011261116657600080fd5b81358181111561117557600080fd5b8660208260051b850101111561118a57600080fd5b60209290920196919550909350505050565b6000602082840312156111ae57600080fd5b81356110c5816113d8565b6000602082840312156111cb57600080fd5b81516110c5816113d8565b600080604083850312156111e957600080fd5b82356111f4816113d8565b9150602083013561111c816113c3565b60006020828403121561121657600080fd5b5035919050565b60006020828403121561122f57600080fd5b5051919050565b6000806040838503121561124957600080fd5b505080516020909101519092909150565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561130357611303611397565b500190565b60008261132557634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561134457611344611397565b500290565b60008282101561135b5761135b611397565b500390565b60008161136f5761136f611397565b506000190190565b600060ff821660ff81141561138e5761138e611397565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461100057600080fd5b61ffff8116811461100057600080fdfea26469706673582212207da0ab73b75d0da3c714b5648408011b0bd84d04094ee62eecf7ce971541c1e364736f6c63430008060033000000000000000000000000a8abf045fe1a9ef0583e436393a6e4e0b483f717

Deployed Bytecode

0x6080604052600436106100fe5760003560e01c8063843592d311610095578063ced7ed2c11610064578063ced7ed2c146102c1578063e073af72146102fa578063ef7daeb81461030d578063f2fde38b1461032d578063fae369861461034d57600080fd5b8063843592d3146102365780638da5cb5b14610256578063a3a7e3e414610274578063a881cdf6146102a157600080fd5b80636f1fa432116100d15780636f1fa432146101bb578063715018a6146101ec578063760b8cc2146102015780637d37ac411461021657600080fd5b8063078405c11461010357806356990e65146101365780635c975abb146101585780636e9f652914610183575b600080fd5b34801561010f57600080fd5b5061012361011e366004611204565b61036d565b6040519081526020015b60405180910390f35b34801561014257600080fd5b50610156610151366004611204565b610522565b005b34801561016457600080fd5b50600054600160a01b900460ff165b604051901515815260200161012d565b34801561018f57600080fd5b506002546101a3906001600160a01b031681565b6040516001600160a01b03909116815260200161012d565b3480156101c757600080fd5b506101236101d636600461119c565b61ffff1660009081526003602052604090205490565b3480156101f857600080fd5b506101566106bc565b34801561020d57600080fd5b506101566106f2565b34801561022257600080fd5b50610123610231366004611127565b610985565b34801561024257600080fd5b506101236102513660046110a8565b6109e0565b34801561026257600080fd5b506000546001600160a01b03166101a3565b34801561028057600080fd5b5061012361028f366004611204565b60009081526004602052604090205490565b3480156102ad57600080fd5b506101566102bc3660046110a8565b610b34565b3480156102cd57600080fd5b506101736102dc3660046110a8565b6001600160a01b031660009081526005602052604090205460ff1690565b6101566103083660046111d6565b610b80565b34801561031957600080fd5b50610156610328366004611127565b610cf0565b34801561033957600080fd5b506101566103483660046110a8565b610f68565b34801561035957600080fd5b506101566103683660046110e9565b611003565b600254604051633f6fcc5960e01b8152600481018390526000916001600160a01b031690633f6fcc599060240160006040518083038186803b1580156103b257600080fd5b505afa1580156103c6573d6000803e3d6000fd5b5050600254604051637e02275960e11b815260048101869052600093506001600160a01b03909116915063fc044eb29060240160206040518083038186803b15801561041157600080fd5b505afa158015610425573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044991906111b9565b600254604051631ee2ec9360e01b81526004810186905291925060009182916001600160a01b031690631ee2ec9390602401604080518083038186803b15801561049257600080fd5b505afa1580156104a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ca9190611236565b61ffff85166000908152600360205260408120549294509092509082906104f290859061132a565b6104fc9190611308565b6000878152600460205260409020549091506105189082611349565b9695505050505050565b600054600160a01b900460ff16156105555760405162461bcd60e51b815260040161054c9061125a565b60405180910390fd5b600260015414156105785760405162461bcd60e51b815260040161054c906112b9565b60026001819055546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156105c157600080fd5b505afa1580156105d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f991906110cc565b6001600160a01b03161461060c57600080fd5b60006106178261036d565b90506000811161062657600080fd5b600082815260046020526040812080548392906106449084906112f0565b9091555050604051339082156108fc029083906000818181858888f19350505050158015610676573d6000803e3d6000fd5b5060408051828152426020820152339184917fa2af676ed4f1045c96ac2b367997d51c256e9d758a41490190108d260e9634f791015b60405180910390a3505060018055565b6000546001600160a01b031633146106e65760405162461bcd60e51b815260040161054c90611284565b6106f06000611058565b565b600054600160a01b900460ff161561071c5760405162461bcd60e51b815260040161054c9061125a565b6002600154141561073f5760405162461bcd60e51b815260040161054c906112b9565b60026001819055546040516370a0823160e01b815233600482015260009182916001600160a01b03909116906370a082319060240160206040518083038186803b15801561078c57600080fd5b505afa1580156107a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c4919061121d565b9050805b80156108fe576002546000906001600160a01b0316632f745c59336107ee600186611349565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b15801561083257600080fd5b505afa158015610846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a919061121d565b905060006108778261036d565b905061088381866112f0565b9450806004600084815260200190815260200160002060008282546108a891906112f0565b909155505060408051828152426020820152339184917fa2af676ed4f1045c96ac2b367997d51c256e9d758a41490190108d260e9634f7910160405180910390a3505080806108f690611360565b9150506107c8565b506000821161094f5760405162461bcd60e51b815260206004820152601d60248201527f6e6f20776974686472617761626c652062616c616e636573206c656674000000604482015260640161054c565b604051339083156108fc029084906000818181858888f1935050505015801561097c573d6000803e3d6000fd5b50506001805550565b60008060005b60ff81168411156109d8576109ba85858360ff168181106109ae576109ae6113ad565b9050602002013561036d565b6109c490836112f0565b9150806109d081611377565b91505061098b565b509392505050565b6002546040516370a0823160e01b81526001600160a01b03838116600483015260009283929116906370a082319060240160206040518083038186803b158015610a2957600080fd5b505afa158015610a3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a61919061121d565b90506000815b80156109d8576002546000906001600160a01b0316632f745c5987610a8d600186611349565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b158015610ad157600080fd5b505afa158015610ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b09919061121d565b9050610b148161036d565b610b1e90846112f0565b9250508080610b2c90611360565b915050610a67565b6000546001600160a01b03163314610b5e5760405162461bcd60e51b815260040161054c90611284565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600054600160a01b900460ff1615610baa5760405162461bcd60e51b815260040161054c9061125a565b60026001541415610bcd5760405162461bcd60e51b815260040161054c906112b9565b6002600181905554604051637ddd3db160e11b815261ffff841660048201526000916001600160a01b03169063fbba7b629060240160206040518083038186803b158015610c1a57600080fd5b505afa158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c52919061121d565b11610c5c57600080fd5b3360009081526005602052604090205460ff16610c7857600080fd5b61ffff821660009081526003602052604081208054349290610c9b9084906112f0565b90915550506040805133815234602082015242918101919091526001600160a01b0382169061ffff8416907f47fc953414cd61a5494c179efb796283502f867ea6d50a54853a0281f1b7c3fc906060016106ac565b600054600160a01b900460ff1615610d1a5760405162461bcd60e51b815260040161054c9061125a565b60026001541415610d3d5760405162461bcd60e51b815260040161054c906112b9565b60026001556000805b60ff8116831115610ee05760025433906001600160a01b0316636352211e868660ff8616818110610d7957610d796113ad565b905060200201356040518263ffffffff1660e01b8152600401610d9e91815260200190565b60206040518083038186803b158015610db657600080fd5b505afa158015610dca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dee91906110cc565b6001600160a01b031614610e0157600080fd5b6000610e1b85858460ff168181106109ae576109ae6113ad565b9050806004600087878660ff16818110610e3757610e376113ad565b9050602002013581526020019081526020016000206000828254610e5b91906112f0565b90915550339050858560ff8516818110610e7757610e776113ad565b905060200201357fa2af676ed4f1045c96ac2b367997d51c256e9d758a41490190108d260e9634f78342604051610eb8929190918252602082015260400190565b60405180910390a3610eca81846112f0565b9250508080610ed890611377565b915050610d46565b5060008111610f315760405162461bcd60e51b815260206004820152601d60248201527f6e6f20776974686472617761626c652062616c616e636573206c656674000000604482015260640161054c565b604051339082156108fc029083906000818181858888f19350505050158015610f5e573d6000803e3d6000fd5b5050600180555050565b6000546001600160a01b03163314610f925760405162461bcd60e51b815260040161054c90611284565b6001600160a01b038116610ff75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161054c565b61100081611058565b50565b6000546001600160a01b0316331461102d5760405162461bcd60e51b815260040161054c90611284565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156110ba57600080fd5b81356110c5816113c3565b9392505050565b6000602082840312156110de57600080fd5b81516110c5816113c3565b600080604083850312156110fc57600080fd5b8235611107816113c3565b91506020830135801515811461111c57600080fd5b809150509250929050565b6000806020838503121561113a57600080fd5b823567ffffffffffffffff8082111561115257600080fd5b818501915085601f83011261116657600080fd5b81358181111561117557600080fd5b8660208260051b850101111561118a57600080fd5b60209290920196919550909350505050565b6000602082840312156111ae57600080fd5b81356110c5816113d8565b6000602082840312156111cb57600080fd5b81516110c5816113d8565b600080604083850312156111e957600080fd5b82356111f4816113d8565b9150602083013561111c816113c3565b60006020828403121561121657600080fd5b5035919050565b60006020828403121561122f57600080fd5b5051919050565b6000806040838503121561124957600080fd5b505080516020909101519092909150565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561130357611303611397565b500190565b60008261132557634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561134457611344611397565b500290565b60008282101561135b5761135b611397565b500390565b60008161136f5761136f611397565b506000190190565b600060ff821660ff81141561138e5761138e611397565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461100057600080fd5b61ffff8116811461100057600080fdfea26469706673582212207da0ab73b75d0da3c714b5648408011b0bd84d04094ee62eecf7ce971541c1e364736f6c63430008060033

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

000000000000000000000000a8abf045fe1a9ef0583e436393a6e4e0b483f717

-----Decoded View---------------
Arg [0] : _guildAssetAddress (address): 0xa8ABF045fe1A9Ef0583e436393a6E4E0B483F717

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a8abf045fe1a9ef0583e436393a6e4e0b483f717


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.