Overview ERC20
PRICE
n/a

ON-CHAIN MARKET CAP n/a

Total Supply:
2,933,587.35 xTORCH

Holders:
5,335
Profile Summary
Blockchain:
Metis (1088)


Decimals:
18
Contract Source Code Verified (Partial Match)
Contract Name:
XGrailToken

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 50000 runs

Created At:
Thu, 21 Mar 2024 18:50:58 GMT
Ownable.sol
@openzeppelin
contracts
access
Ownable.sol


Contract ABI
[
  {
    "inputs": [
      {
        "internalType": "contract IGrailTokenV2",
        "name": "grailToken_",
        "type": "address"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "Allocate",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "owner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "Approval",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "ApproveUsage",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "xGrailAmount",
        "type": "uint256"
      }
    ],
    "name": "CancelRedeem",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "Convert",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "fee",
        "type": "uint256"
      }
    ],
    "name": "Deallocate",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "xGrailAmount",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "grailAmount",
        "type": "uint256"
      }
    ],
    "name": "FinalizeRedeem",
    "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": true,
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "xGrailAmount",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "grailAmount",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "duration",
        "type": "uint256"
      }
    ],
    "name": "Redeem",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": false,
        "internalType": "address",
        "name": "account",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "bool",
        "name": "add",
        "type": "bool"
      }
    ],
    "name": "SetTransferWhitelist",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "value",
        "type": "uint256"
      }
    ],
    "name": "Transfer",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "fee",
        "type": "uint256"
      }
    ],
    "name": "UpdateDeallocationFee",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": false,
        "internalType": "address",
        "name": "previousDividendsAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "newDividendsAddress",
        "type": "address"
      }
    ],
    "name": "UpdateDividendsAddress",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "redeemIndex",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "previousDividendsAddress",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "newDividendsAddress",
        "type": "address"
      }
    ],
    "name": "UpdateRedeemDividendsAddress",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "minRedeemRatio",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "maxRedeemRatio",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "minRedeemDuration",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "maxRedeemDuration",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "redeemDividendsAdjustment",
        "type": "uint256"
      }
    ],
    "name": "UpdateRedeemSettings",
    "type": "event"
  },
  {
    "inputs": [],
    "name": "MAX_DEALLOCATION_FEE",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "MAX_FIXED_RATIO",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      },
      {
        "internalType": "bytes",
        "name": "usageData",
        "type": "bytes"
      }
    ],
    "name": "allocate",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "allocateFromUsage",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "owner",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      }
    ],
    "name": "allowance",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "approve",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "contract IXGrailTokenUsage",
        "name": "usage",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "approveUsage",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "balanceOf",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "redeemIndex",
        "type": "uint256"
      }
    ],
    "name": "cancelRedeem",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "convert",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      }
    ],
    "name": "convertTo",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      },
      {
        "internalType": "bytes",
        "name": "usageData",
        "type": "bytes"
      }
    ],
    "name": "deallocate",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "deallocateFromUsage",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "decimals",
    "outputs": [
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "subtractedValue",
        "type": "uint256"
      }
    ],
    "name": "decreaseAllowance",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "dividendsAddress",
    "outputs": [
      {
        "internalType": "contract IXGrailTokenUsage",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "redeemIndex",
        "type": "uint256"
      }
    ],
    "name": "finalizeRedeem",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "duration",
        "type": "uint256"
      }
    ],
    "name": "getGrailByVestingDuration",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      }
    ],
    "name": "getUsageAllocation",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      }
    ],
    "name": "getUsageApproval",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "redeemIndex",
        "type": "uint256"
      }
    ],
    "name": "getUserRedeem",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "grailAmount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "xGrailAmount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "endTime",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "dividendsContract",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "dividendsAllocation",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      }
    ],
    "name": "getUserRedeemsLength",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "userAddress",
        "type": "address"
      }
    ],
    "name": "getXGrailBalance",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "allocatedAmount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "redeemingAmount",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "grailToken",
    "outputs": [
      {
        "internalType": "contract IGrailTokenV2",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "spender",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "addedValue",
        "type": "uint256"
      }
    ],
    "name": "increaseAllowance",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      }
    ],
    "name": "isTransferWhitelisted",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "maxRedeemDuration",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "maxRedeemRatio",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "minRedeemDuration",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "minRedeemRatio",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "name",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "xGrailAmount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "duration",
        "type": "uint256"
      }
    ],
    "name": "redeem",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "redeemDividendsAdjustment",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "symbol",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "totalSupply",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "recipient",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "transfer",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "sender",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "recipient",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "transferFrom",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "index",
        "type": "uint256"
      }
    ],
    "name": "transferWhitelist",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "transferWhitelistLength",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "usageAddress",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "fee",
        "type": "uint256"
      }
    ],
    "name": "updateDeallocationFee",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "contract IXGrailTokenUsage",
        "name": "dividendsAddress_",
        "type": "address"
      }
    ],
    "name": "updateDividendsAddress",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "redeemIndex",
        "type": "uint256"
      }
    ],
    "name": "updateRedeemDividendsAddress",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "minRedeemRatio_",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "maxRedeemRatio_",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "minRedeemDuration_",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "maxRedeemDuration_",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "redeemDividendsAdjustment_",
        "type": "uint256"
      }
    ],
    "name": "updateRedeemSettings",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      },
      {
        "internalType": "bool",
        "name": "add",
        "type": "bool"
      }
    ],
    "name": "updateTransferWhitelist",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "usageAllocations",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "usageApprovals",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "usagesDeallocationFee",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "name": "userRedeems",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "grailAmount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "xGrailAmount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "endTime",
        "type": "uint256"
      },
      {
        "internalType": "contract IXGrailTokenUsage",
        "name": "dividendsAddress",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "dividendsAllocation",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "xGrailBalances",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "allocatedAmount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "redeemingAmount",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  }
]


Contract Creation Code
60a06040526032600d556064600e556213c680600f5562ed4e0060105560326011553480156200002e57600080fd5b5060405162004fd438038062004fd4833981810160405260208110156200005457600080fd5b5051604080518082018252601781527f48657263756c657320657363726f77656420746f6b656e000000000000000000602082810191909152825180840190935260068352650f0a89ea486960d31b90830152906000620000b462000172565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055815162000117906005906020850190620001fd565b5080516200012d906006906020840190620001fd565b505060078054601260ff1990911617905550606081901b6001600160601b0319166080526200016a60083062000176602090811b620031b417901c565b5050620002a9565b3390565b60006200018d836001600160a01b03841662000196565b90505b92915050565b6000620001a48383620001e5565b620001dc5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000190565b50600062000190565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000235576000855562000280565b82601f106200025057805160ff191683800117855562000280565b8280016001018555821562000280579182015b828111156200028057825182559160200191906001019062000263565b506200028e92915062000292565b5090565b5b808211156200028e576000815560010162000293565b60805160601c614cf9620002db60003980612e6a5280613c2b5280613e195280613f655280613f8e5250614cf96000f3fe608060405234801561001057600080fd5b506004361061034c5760003560e01c8063549230c9116101bd578063a9059cbb116100f9578063c4b10766116100a2578063dd62ed3e1161007c578063dd62ed3e14610c69578063e3a2950b14610ca4578063e9ed87f814610cac578063f2fde38b14610cb45761034c565b8063c4b1076614610bf5578063c5702dfa14610bfd578063cc6c542314610c305761034c565b8063b90c2b52116100d3578063b90c2b5214610b81578063c360ed1c14610bb4578063c414c58414610bed5761034c565b8063a9059cbb14610b08578063aaef3e1714610b41578063aff6cbf114610b645761034c565b8063890836541161016657806395d89b411161014057806395d89b4114610a71578063a0bdc7cb14610a79578063a3908e1b14610ab2578063a457c2d714610acf5761034c565b806389083654146109fb5780638975f91814610a365780638da5cb5b14610a695761034c565b806370a082311161019757806370a082311461099d578063715018a6146109d05780637cbc2373146109d85761034c565b8063549230c9146108ca5780635a1d34dc1461095c578063619ac95b146109955761034c565b80632c509ca91161028c5780633b90f9a0116102355780634a5b406e1161020f5780634a5b406e1461080e5780634b359d38146108165780634f62b7ec14610833578063539ffb77146108ad5761034c565b80633b90f9a014610769578063488c8303146107a2578063497965ee146107dd5761034c565b806331124ce31161026657806331124ce3146106f5578063313ce5671461071257806339509351146107305761034c565b80632c509ca9146106335780632cc2f5ce1461067f5780632e9a76e4146106ba5761034c565b8063161aab43116102f95780631c75e369116102d35780631c75e369146104f05780631eee7e601461058257806323b872dd146105b55780632b489679146105f85761034c565b8063161aab43146104d857806318160ddd146104e05780631c352679146104e85761034c565b8063093220b71161032a578063093220b71461041d578063095ea7b3146104525780630f7d3a691461049f5761034c565b806302f91e551461035157806306045a211461036b57806306fdde03146103a0575b600080fd5b610359610ce7565b60408051918252519081900360200190f35b61039e6004803603602081101561038157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610cec565b005b6103a8610e5b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103e25781810151838201526020016103ca565b50505050905090810190601f16801561040f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61039e600480360360a081101561043357600080fd5b5080359060208101359060408101359060608101359060800135610f0f565b61048b6004803603604081101561046857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561113d565b604080519115158252519081900360200190f35b61039e600480360360408110156104b557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561115b565b6103596112d4565b6103596112e5565b6103596112eb565b61039e6004803603606081101561050657600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359181019060608101604082013564010000000081111561054357600080fd5b82018360208201111561055557600080fd5b8035906020019184600183028401116401000000008311171561057757600080fd5b5090925090506112f1565b61048b6004803603602081101561059857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661143a565b61048b600480360360608110156105cb57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611447565b6103596004803603604081101561060e57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160200135166114e9565b6106666004803603602081101561064957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611521565b6040805192835260208301919091528051918290030190f35b6103596004803603604081101561069557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661153a565b610359600480360360408110156106d057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611557565b61039e6004803603602081101561070b57600080fd5b503561158f565b61071a6119e6565b6040805160ff9092168252519081900360200190f35b61048b6004803603604081101561074657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356119ef565b61039e6004803603604081101561077f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611a4a565b610359600480360360408110156107b857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611ad4565b6107e5611af1565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610359611b12565b6107e56004803603602081101561082c57600080fd5b5035611b18565b61086c6004803603604081101561084957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611b25565b6040805195865260208601949094528484019290925273ffffffffffffffffffffffffffffffffffffffff1660608401526080830152519081900360a00190f35b61039e600480360360208110156108c357600080fd5b5035611b89565b61039e600480360360608110156108e057600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359181019060608101604082013564010000000081111561091d57600080fd5b82018360208201111561092f57600080fd5b8035906020019184600183028401116401000000008311171561095157600080fd5b509092509050611e3f565b61039e6004803603604081101561097257600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611f66565b61035961205b565b610359600480360360208110156109b357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612060565b61039e612088565b61039e600480360360408110156109ee57600080fd5b508035906020013561219f565b61039e60048036036040811015610a1157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135151561259a565b61035960048036036020811015610a4c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661272b565b6107e561273d565b6103a8612759565b61039e60048036036040811015610a8f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356127d8565b61039e60048036036020811015610ac857600080fd5b503561285a565b61048b60048036036040811015610ae557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356128e2565b61048b60048036036040811015610b1e57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135612957565b61035960048036036040811015610b5757600080fd5b508035906020013561296b565b61039e60048036036020811015610b7a57600080fd5b5035612a19565b61035960048036036020811015610b9757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612cea565b61039e60048036036040811015610bca57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135612d12565b6107e5612e68565b610359612e8c565b61066660048036036020811015610c1357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612e92565b61086c60048036036040811015610c4657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135612ec2565b61035960048036036040811015610c7f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516612fcf565b610359613007565b61035961300d565b61039e60048036036020811015610cca57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613013565b60c881565b610cf46131d6565b73ffffffffffffffffffffffffffffffffffffffff16610d1261273d565b73ffffffffffffffffffffffffffffffffffffffff1614610d9457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610db55760006011555b6007546040805173ffffffffffffffffffffffffffffffffffffffff61010090930483168152918316602083015280517f044c75b8fa43ce72364b4c23fdb8451beafbda46505bf44c76f0853a01ed4ade9281900390910190a16007805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60058054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f055780601f10610eda57610100808354040283529160200191610f05565b820191906000526020600020905b815481529060010190602001808311610ee857829003601f168201915b5050505050905090565b610f176131d6565b73ffffffffffffffffffffffffffffffffffffffff16610f3561273d565b73ffffffffffffffffffffffffffffffffffffffff1614610fb757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b83851115611010576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180614a226028913960400191505060405180910390fd5b818310611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180614a86602b913960400191505060405180910390fd5b6064841115801561107a575060648111155b6110cf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180614a226028913960400191505060405180910390fd5b600d859055600e849055600f839055601082905560118190556040805186815260208101869052808201859052606081018490526080810183905290517f5b37d10782e41a6539b50d59366d4112a880236e4187e85b6d1514d20e07d9b89181900360a00190a15050505050565b600061115161114a6131d6565b84846131da565b5060015b92915050565b6111636131d6565b73ffffffffffffffffffffffffffffffffffffffff1661118161273d565b73ffffffffffffffffffffffffffffffffffffffff161461120357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60c881111561127357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f7570646174654465616c6c6f636174696f6e4665653a20746f6f206869676800604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000818152600c6020908152604091829020849055815184815291517f6ff024152fc2cd8071bc701f966036513eb03e243863f21d8218646faac0eaef9281900390910190a25050565b60006112e06008613321565b905090565b60045490565b600d5481565b6002600154141561136357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015561137333858561332c565b8373ffffffffffffffffffffffffffffffffffffffff16631c75e369338585856040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b15801561141857600080fd5b505af115801561142c573d6000803e3d6000fd5b505060018055505050505050565b600061115560088361355d565b600061145484848461357f565b6114de846114606131d6565b6114d985604051806060016040528060288152602001614b636028913973ffffffffffffffffffffffffffffffffffffffff8a166000908152600360205260408120906114ab6131d6565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190613751565b6131da565b5060015b9392505050565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152600a6020908152604080832093909416825291909152205490565b6012602052600090815260409020805460019091015482565b600b60209081526000928352604080842090915290825290205481565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152600b6020908152604080832093909416825291909152205490565b6002600154141561160157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155336000818152601360205260409020548290811061166f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180614c18602b913960400191505060405180910390fd5b33600090815260136020526040812080548590811061168a57fe5b60009182526020909120600590910201600381015460075491925073ffffffffffffffffffffffffffffffffffffffff90811661010090920416148015906116ee5750600754610100900473ffffffffffffffffffffffffffffffffffffffff1615155b156119dc57600481015415611924576003810154600482015460408051600080825260208201928390527f549230c900000000000000000000000000000000000000000000000000000000835233602483018181526044840186905260606064850190815284516084860181905273ffffffffffffffffffffffffffffffffffffffff9098169763549230c99793969395949293919260a486019291908190849084905b838110156117aa578181015183820152602001611792565b50505050905090810190601f1680156117d75780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b1580156117f857600080fd5b505af115801561180c573d6000803e3d6000fd5b5050600754600484015460408051600080825260208201928390527f1c75e36900000000000000000000000000000000000000000000000000000000835233602483018181526044840186905260606064850190815284516084860181905261010090980473ffffffffffffffffffffffffffffffffffffffff169950631c75e3699850919693949093919260a4860192908190849084905b838110156118bd5781810151838201526020016118a5565b50505050905090810190601f1680156118ea5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561190b57600080fd5b505af115801561191f573d6000803e3d6000fd5b505050505b60038101546007546040805187815273ffffffffffffffffffffffffffffffffffffffff938416602082015261010090920490921681830152905133917fa60c8f9118be22c9277a8129333d64ffda3de44ca7a5831d077a3127f1237a18919081900360600190a260075460038201805461010090920473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff00000000000000000000000000000000000000009092169190911790555b5050600180555050565b60075460ff1690565b60006111516119fc6131d6565b846114d98560036000611a0d6131d6565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c168152925290205490613802565b60026001541415611abc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155611acc82338361332c565b505060018055565b600a60209081526000928352604080842090915290825290205481565b600754610100900473ffffffffffffffffffffffffffffffffffffffff1681565b60115481565b6000611155600883613876565b60136020528160005260406000208181548110611b4157600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401549295509093509173ffffffffffffffffffffffffffffffffffffffff169085565b60026001541415611bfb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001553360008181526013602052604090205482908110611c69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180614c18602b913960400191505060405180910390fd5b33600090815260126020908152604080832060139092528220805491929186908110611c9157fe5b90600052602060002090600502019050611cbc8160010154836001015461388290919063ffffffff16565b8260010181905550611cd33033836001015461357f565b600481015415611df1576003810154600482015460408051600080825260208201928390527f549230c900000000000000000000000000000000000000000000000000000000835233602483018181526044840186905260606064850190815284516084860181905273ffffffffffffffffffffffffffffffffffffffff9098169763549230c99793969395949293919260a486019291908190849084905b83811015611d8a578181015183820152602001611d72565b50505050905090810190601f168015611db75780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b158015611dd857600080fd5b505af1158015611dec573d6000803e3d6000fd5b505050505b6001810154604080519182525133917f56d7520e387607a8daa892e3fed116badc2a636307bdc794b1c1aed97ae203f4919081900360200190a2611e34856138f9565b505060018055505050565b60026001541415611eb157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155611ec1338585613a9c565b8373ffffffffffffffffffffffffffffffffffffffff1663549230c9338585856040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b15801561141857600080fd5b60026001541415611fd857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155611fe633613d33565b61205157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f636f6e76657274546f3a206e6f7420616c6c6f77656400000000000000000000604482015290519081900360640190fd5b611acc8282613d39565b606481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b6120906131d6565b73ffffffffffffffffffffffffffffffffffffffff166120ae61273d565b73ffffffffffffffffffffffffffffffffffffffff161461213057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6002600154141561221157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001558161226c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180614bac6023913960400191505060405180910390fd5b600f548110156122dd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f72656465656d3a206475726174696f6e20746f6f206c6f770000000000000000604482015290519081900360640190fd5b6122e833308461357f565b33600090815260126020526040812090612302848461296b565b6040805186815260208101839052808201869052905191925033917fbd5034ffbd47e4e72a94baa2cdb74c6fad73cb3bcdc13036b72ec8306f5a76469181900360600190a2821561258f57600182015461235c9085613802565b600183015560115460009061237f90606490612379908890613e45565b90613eb8565b905080156124ae57600754610100900473ffffffffffffffffffffffffffffffffffffffff16631c75e369338360006040519080825280601f01601f1916602001820160405280156123d8576020820181803683370190505b506040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561244757818101518382015260200161242f565b50505050905090810190601f1680156124745780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561249557600080fd5b505af11580156124a9573d6000803e3d6000fd5b505050505b33600090815260136020908152604091829020825160a0810184528581529182018890529181016124e7876124e1613f39565b90613802565b8152600754610100900473ffffffffffffffffffffffffffffffffffffffff90811660208084019190915260409283019590955283546001808201865560009586529486902084516005909202019081559483015193850193909355810151600284015560608101516003840180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169190931617909155608001516004909101556119dc565b6119dc338583613f3d565b6125a26131d6565b73ffffffffffffffffffffffffffffffffffffffff166125c061273d565b73ffffffffffffffffffffffffffffffffffffffff161461264257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82163014156126b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180614a4a603c913960400191505060405180910390fd5b80156126c8576126c26008836131b4565b506126d5565b6126d3600883614077565b505b6040805173ffffffffffffffffffffffffffffffffffffffff84168152821515602082015281517f3a34209cb941a5d23a56dea730a13738454bc7daefd4bb32e8d7df58c1bd920d929181900390910190a15050565b600c6020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60068054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f055780601f10610eda57610100808354040283529160200191610f05565b6002600154141561284a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155611acc823383613a9c565b600260015414156128cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556128db8133613d39565b5060018055565b60006111516128ef6131d6565b846114d985604051806060016040528060258152602001614c9f60259139600360006129196131d6565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d16815292529020549190613751565b60006111516129646131d6565b848461357f565b6000600f5482101561297f57506000611155565b6010548211156129aa576129a36064612379600e5486613e4590919063ffffffff16565b9050611155565b6000612a006129f76129c9600f5460105461388290919063ffffffff16565b6123796129e3600d54600e5461388290919063ffffffff16565b600f546129f1908990613882565b90613e45565b600d5490613802565b9050612a1160646123798684613e45565b949350505050565b60026001541415612a8b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001553360008181526013602052604090205482908110612af9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180614c18602b913960400191505060405180910390fd5b33600090815260126020908152604080832060139092528220805491929186908110612b2157fe5b906000526020600020906005020190508060020154612b3e613f39565b1015612b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180614c436032913960400191505060405180910390fd5b60018082015490830154612ba891613882565b8260010181905550612bc33382600101548360000154613f3d565b600481015415612ce1576003810154600482015460408051600080825260208201928390527f549230c900000000000000000000000000000000000000000000000000000000835233602483018181526044840186905260606064850190815284516084860181905273ffffffffffffffffffffffffffffffffffffffff9098169763549230c99793969395949293919260a486019291908190849084905b83811015612c7a578181015183820152602001612c62565b50505050905090810190601f168015612ca75780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b158015612cc857600080fd5b505af1158015612cdc573d6000803e3d6000fd5b505050505b611e34856138f9565b73ffffffffffffffffffffffffffffffffffffffff1660009081526013602052604090205490565b60026001541415612d8457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015573ffffffffffffffffffffffffffffffffffffffff8216612df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180614af86029913960400191505060405180910390fd5b336000818152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff871680855290835292819020859055805185815290519293927fe75ec259c38e4601f24580968665ec00b21cca4f996689b260ec598aec5c08db929181900390910190a3505060018055565b7f000000000000000000000000000000000000000000000000000000000000000081565b600f5481565b73ffffffffffffffffffffffffffffffffffffffff16600090815260126020526040902080546001909101549091565b73ffffffffffffffffffffffffffffffffffffffff82166000908152601360205260408120548190819081908190879087908110612f4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180614c18602b913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8916600090815260136020526040812080548a908110612f7c57fe5b600091825260209091206005909102018054600182015460028301546003840154600490940154929e919d509b5073ffffffffffffffffffffffffffffffffffffffff9092169950975095505050505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093909416825291909152205490565b600e5481565b60105481565b61301b6131d6565b73ffffffffffffffffffffffffffffffffffffffff1661303961273d565b73ffffffffffffffffffffffffffffffffffffffff16146130bb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116613127576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806149da6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60006114e28373ffffffffffffffffffffffffffffffffffffffff8416614099565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316613246576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180614bf46024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166132b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180614a006022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000611155826140e3565b6000811161339b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f616c6c6f636174653a20616d6f756e742063616e6e6f74206265206e756c6c00604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8084166000908152601260209081526040808320600a83528184209487168452939091529020548281101561344657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f616c6c6f636174653a206e6f6e20617574686f72697a656420616d6f756e7400604482015290519081900360640190fd5b6134508184613882565b73ffffffffffffffffffffffffffffffffffffffff8087166000818152600a60209081526040808320948a1680845294825280832095909555918152600b825283812092815291905220546134a59084613802565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152600b602090815260408083209389168352929052205581546134e49084613802565b82556134f185308561357f565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f5168bfb88d6125d4580e2b91ecb103a730312c3e8b0be9c4031a0fc794e2cd5f856040518082815260200191505060405180910390a35050505050565b60006114e28373ffffffffffffffffffffffffffffffffffffffff84166140e7565b73ffffffffffffffffffffffffffffffffffffffff83166135eb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180614bcf6025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216613657576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806149956023913960400191505060405180910390fd5b6136628383836140ff565b6136ac81604051806060016040528060268152602001614ab16026913973ffffffffffffffffffffffffffffffffffffffff86166000908152600260205260409020549190613751565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526002602052604080822093909355908416815220546136e89082613802565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526002602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156137fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156137bf5781810151838201526020016137a7565b50505050905090810190601f1680156137ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156114e257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006114e283836141a9565b6000828211156138f357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b33600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061393657fe5b9060005260206000209060050201601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061398e57fe5b600091825260208083208454600590930201918255600180850154908301556002808501549083015560038085015490830180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790556004938401549390910192909255338152601390915260409020805480613a2557fe5b60008281526020812060057fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9093019283020181815560018101829055600281018290556003810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905560040155905550565b60008111613af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614b216021913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600b602090815260408083209386168352929052205481811015613b81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614ad76021913960400191505060405180910390fd5b613b8b8183613882565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152600b60209081526040808320938816835292815282822093909355600c909252812054613bde9061271090612379908690613e45565b73ffffffffffffffffffffffffffffffffffffffff86166000908152601260205260409020805491925090613c139085613882565b8155613c293087613c248786613882565b61357f565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342966c68836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015613c9c57600080fd5b505af1158015613cb0573d6000803e3d6000fd5b50505050613cbe3083614227565b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f7d613f7bd1a777aeeefdd38ae61201003086575188df50618d02482220f5c1478685604051808381526020018281526020019250505060405180910390a3505050505050565b3b151590565b81613da557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f636f6e766572743a20616d6f756e742063616e6e6f74206265206e756c6c0000604482015290519081900360640190fd5b613daf8183614371565b6040805173ffffffffffffffffffffffffffffffffffffffff8316815260208101849052815133927fccfaeb3043a96a967dc036ab72e078a9632af809671bc2a1ac30a8043645f89e928290030190a2613e4173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163330856144a4565b5050565b600082613e5457506000611155565b82820282848281613e6157fe5b04146114e2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614b426021913960400191505060405180910390fd5b6000808211613f2857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381613f3157fe5b049392505050565b4290565b6000613f498383613882565b9050613f8c73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016858461453f565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015613fff57600080fd5b505af1158015614013573d6000803e3d6000fd5b505050506140213084614227565b6040805184815260208101849052815173ffffffffffffffffffffffffffffffffffffffff8716927f0da072ebd7a5649099f43a3776eb0cda17aca79426ee9f28aae203f5dfa04eda928290030190a250505050565b60006114e28373ffffffffffffffffffffffffffffffffffffffff84166145cc565b60006140a583836140e7565b6140db57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611155565b506000611155565b5490565b60009081526001919091016020526040902054151590565b73ffffffffffffffffffffffffffffffffffffffff83161580614128575061412860088461355d565b80614139575061413960088361355d565b6141a457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f7472616e736665723a206e6f7420616c6c6f7765640000000000000000000000604482015290519081900360640190fd5b505050565b81546000908210614205576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806149736022913960400191505060405180910390fd5b82600001828154811061421457fe5b9060005260206000200154905092915050565b73ffffffffffffffffffffffffffffffffffffffff8216614293576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614b8b6021913960400191505060405180910390fd5b61429f826000836140ff565b6142e9816040518060600160405280602281526020016149b86022913973ffffffffffffffffffffffffffffffffffffffff85166000908152600260205260409020549190613751565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602052604090205560045461431c9082613882565b60045560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b73ffffffffffffffffffffffffffffffffffffffff82166143f357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6143ff600083836140ff565b60045461440c9082613802565b60045573ffffffffffffffffffffffffffffffffffffffff821660009081526002602052604090205461443f9082613802565b73ffffffffffffffffffffffffffffffffffffffff831660008181526002602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526145399085906146b0565b50505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526141a49084906146b0565b600081815260018301602052604081205480156146a65783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808301919081019060009087908390811061461d57fe5b906000526020600020015490508087600001848154811061463a57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061466a57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611155565b6000915050611155565b6000614712826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166147889092919063ffffffff16565b8051909150156141a45780806020019051602081101561473157600080fd5b50516141a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180614c75602a913960400191505060405180910390fd5b6060612a1184846000858561479c85613d33565b61480757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061487057805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101614833565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146148d2576040519150601f19603f3d011682016040523d82523d6000602084013e6148d7565b606091505b50915091506148e78282866148f2565b979650505050505050565b606083156149015750816114e2565b8251156149115782518084602001fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528451602484015284518593919283926044019190850190808383600083156137bf5781810151838201526020016137a756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737375706461746552656465656d53657474696e67733a2077726f6e6720726174696f2076616c7565737570646174655472616e7366657257686974656c6973743a2043616e6e6f742072656d6f76652078477261696c2066726f6d2077686974656c69737475706461746552656465656d53657474696e67733a2077726f6e67206475726174696f6e2076616c75657345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63656465616c6c6f636174653a206e6f6e20617574686f72697a656420616d6f756e74617070726f766555736167653a20617070726f766520746f20746865207a65726f20616464726573736465616c6c6f636174653a20616d6f756e742063616e6e6f74206265206e756c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737372656465656d3a2078477261696c416d6f756e742063616e6e6f74206265206e756c6c45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737376616c696461746552656465656d3a2072656465656d20656e74727920646f6573206e6f7420657869737466696e616c697a6552656465656d3a2076657374696e67206475726174696f6e20686173206e6f7420656e646564207965745361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122034ae1752cd5de01f3ecc0493351010cfc7f69896b0cf3289d9b2f4bed230b6fe64736f6c63430007060033000000000000000000000000bb1676046c36bcd2f6fd08d8f60672c7087d9adf