Address Contract Partially Verified
Address
0xA58A83361936471B50e2d1C7f99d422E6D73d397
Balance
0 ETH
Nonce
1
Code Size
10307 bytes
Creator
0x70f38b22...16ca at tx 0xf3a536c5...3924e7
Indexed Transactions
0
Contract Bytecode
10307 bytes
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063a5db6c8311610097578063d07e72cc11610071578063d07e72cc1461050d578063dd62ed3e1461052b578063f2fde38b1461055b578063f3dac63e14610577576101c4565b8063a5db6c83146104a5578063a9059cbb146104c1578063b7d51943146104f1576101c4565b806389f9a1d3116100d357806389f9a1d31461041b5780638da5cb5b1461043957806395d89b4114610457578063a457c2d714610475576101c4565b8063715018a6146103d7578063830f2a0c146103e1578063860a32ec146103fd576101c4565b8063313ce56711610166578063456cb0f111610140578063456cb0f11461033b57806349bd5a5e14610359578063521493521461037757806370a08231146103a7576101c4565b8063313ce567146102d157806339509351146102ef57806342966c681461031f576101c4565b806317c81c1d116101a257806317c81c1d1461024757806318160ddd146102655780631ab99e121461028357806323b872dd146102a1576101c4565b806306fdde03146101c95780630700037d146101e7578063095ea7b314610217575b600080fd5b6101d1610593565b6040516101de9190612307565b60405180910390f35b61020160048036038101906101fc9190611b05565b610625565b60405161020e91906122ec565b60405180910390f35b610231600480360381019061022c9190611bf5565b610645565b60405161023e91906122ec565b60405180910390f35b61024f610663565b60405161025c91906122d1565b60405180910390f35b61026d610689565b60405161027a9190612509565b60405180910390f35b61028b610693565b6040516102989190612509565b60405180910390f35b6102bb60048036038101906102b69190611b6a565b610699565b6040516102c891906122ec565b60405180910390f35b6102d9610791565b6040516102e69190612524565b60405180910390f35b61030960048036038101906103049190611bf5565b61079a565b60405161031691906122ec565b60405180910390f35b61033960048036038101906103349190611cd1565b610846565b005b610343610853565b60405161035091906122ec565b60405180910390f35b610361610866565b60405161036e91906122d1565b60405180910390f35b610391600480360381019061038c9190611b05565b61088c565b60405161039e91906122ec565b60405180910390f35b6103c160048036038101906103bc9190611b05565b6108ac565b6040516103ce9190612509565b60405180910390f35b6103df6108f5565b005b6103fb60048036038101906103f69190611bb9565b61097d565b005b610405610a6f565b60405161041291906122ec565b60405180910390f35b610423610a82565b6040516104309190612509565b60405180910390f35b610441610a88565b60405161044e91906122d1565b60405180910390f35b61045f610ab1565b60405161046c9190612307565b60405180910390f35b61048f600480360381019061048a9190611bf5565b610b43565b60405161049c91906122ec565b60405180910390f35b6104bf60048036038101906104ba9190611bb9565b610c2e565b005b6104db60048036038101906104d69190611bf5565b610d20565b6040516104e891906122ec565b60405180910390f35b61050b60048036038101906105069190611c5a565b610d3e565b005b610515610e5f565b60405161052291906122ec565b60405180910390f35b61054560048036038101906105409190611b2e565b610e72565b6040516105529190612509565b60405180910390f35b61057560048036038101906105709190611b05565b610ef9565b005b610591600480360381019061058c9190611c31565b610ff1565b005b6060600580546105a2906126f8565b80601f01602080910402602001604051908101604052809291908181526020018280546105ce906126f8565b801561061b5780601f106105f05761010080835404028352916020019161061b565b820191906000526020600020905b8154815290600101906020018083116105fe57829003601f168201915b5050505050905090565b600d6020528060005260406000206000915054906101000a900460ff1681565b60006106596106526110a5565b84846110ad565b6001905092915050565b600760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600454905090565b600b5481565b60006106a6848484611278565b6000600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006106f16110a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610771576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076890612429565b60405180910390fd5b6107858561077d6110a5565b8584036110ad565b60019150509392505050565b60006012905090565b600061083c6107a76110a5565b8484600360006107b56110a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610837919061255b565b6110ad565b6001905092915050565b6108503382611695565b50565b600760009054906101000a900460ff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60086020528060005260406000206000915054906101000a900460ff1681565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6108fd6110a5565b73ffffffffffffffffffffffffffffffffffffffff1661091b610a88565b73ffffffffffffffffffffffffffffffffffffffff1614610971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096890612449565b60405180910390fd5b61097b600061186e565b565b6109856110a5565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0b906124c9565b60405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600960009054906101000a900460ff1681565b600a5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060068054610ac0906126f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610aec906126f8565b8015610b395780601f10610b0e57610100808354040283529160200191610b39565b820191906000526020600020905b815481529060010190602001808311610b1c57829003601f168201915b5050505050905090565b60008060036000610b526110a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c06906124e9565b60405180910390fd5b610c23610c1a6110a5565b858584036110ad565b600191505092915050565b610c366110a5565b73ffffffffffffffffffffffffffffffffffffffff16600760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbc906123c9565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000610d34610d2d6110a5565b8484611278565b6001905092915050565b610d466110a5565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcc906124c9565b60405180910390fd5b84600960006101000a81548160ff02191690831515021790555083600960016101000a81548160ff02191690831515021790555082600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600a8190555080600b819055505050505050565b600960019054906101000a900460ff1681565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610f016110a5565b73ffffffffffffffffffffffffffffffffffffffff16610f1f610a88565b73ffffffffffffffffffffffffffffffffffffffff1614610f75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6c90612449565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90612369565b60405180910390fd5b610fee8161186e565b50565b610ff96110a5565b73ffffffffffffffffffffffffffffffffffffffff16600760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611088576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107f906123c9565b60405180910390fd5b80600760006101000a81548160ff02191690831515021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561111d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611114906124a9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561118d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118490612389565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161126b9190612509565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156112e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112df90612489565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134f90612329565b60405180910390fd5b611363838383611932565b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156113ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e1906123a9565b60405180910390fd5b818103600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600760009054906101000a900460ff1680156114965750600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156115c9576000612710610121846114ae91906125e2565b6114b891906125b1565b90508060026000600760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461152b919061255b565b92505081905550600760019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516115b19190612509565b60405180910390a380836115c5919061263c565b9250505b81600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611618919061255b565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161167c9190612509565b60405180910390a361168f848484611ac1565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611705576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fc90612469565b60405180910390fd5b61171182600083611932565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178f90612349565b60405180910390fd5b818103600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600460008282546117f0919061263c565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516118559190612509565b60405180910390a361186983600084611ac1565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600960009054906101000a900460ff16801561199b5750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156119f957600a54816119ad846108ac565b6119b7919061255b565b11156119f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ef906123e9565b60405180910390fd5b5b600960019054906101000a900460ff168015611a5e5750600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15611abc57600b5481611a70856108ac565b611a7a919061255b565b1015611abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab290612409565b60405180910390fd5b5b505050565b505050565b600081359050611ad5816127c8565b92915050565b600081359050611aea816127df565b92915050565b600081359050611aff816127f6565b92915050565b600060208284031215611b1757600080fd5b6000611b2584828501611ac6565b91505092915050565b60008060408385031215611b4157600080fd5b6000611b4f85828601611ac6565b9250506020611b6085828601611ac6565b9150509250929050565b600080600060608486031215611b7f57600080fd5b6000611b8d86828701611ac6565b9350506020611b9e86828701611ac6565b9250506040611baf86828701611af0565b9150509250925092565b60008060408385031215611bcc57600080fd5b6000611bda85828601611ac6565b9250506020611beb85828601611adb565b9150509250929050565b60008060408385031215611c0857600080fd5b6000611c1685828601611ac6565b9250506020611c2785828601611af0565b9150509250929050565b600060208284031215611c4357600080fd5b6000611c5184828501611adb565b91505092915050565b600080600080600060a08688031215611c7257600080fd5b6000611c8088828901611adb565b9550506020611c9188828901611adb565b9450506040611ca288828901611ac6565b9350506060611cb388828901611af0565b9250506080611cc488828901611af0565b9150509295509295909350565b600060208284031215611ce357600080fd5b6000611cf184828501611af0565b91505092915050565b611d0381612670565b82525050565b611d1281612682565b82525050565b6000611d238261253f565b611d2d818561254a565b9350611d3d8185602086016126c5565b611d46816127b7565b840191505092915050565b6000611d5e60238361254a565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611dc460228361254a565b91507f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008301527f63650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611e2a60268361254a565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611e9060228361254a565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611ef660268361254a565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611f5c60208361254a565b91507f4f776e61626c653a2063616c6c6572206973206e6f74207468652074617865726000830152602082019050919050565b6000611f9c60068361254a565b91507f466f7262696400000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000611fdc60098361254a565b91507f546f6f204c6172676500000000000000000000000000000000000000000000006000830152602082019050919050565b600061201c60288361254a565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206160008301527f6c6c6f77616e63650000000000000000000000000000000000000000000000006020830152604082019050919050565b600061208260208361254a565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006120c260218361254a565b91507f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061212860258361254a565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061218e60248361254a565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006121f460238361254a565b91507f4f776e61626c653a2063616c6c6572206973206e6f742074686520726577617260008301527f64657200000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061225a60258361254a565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6122bc816126ae565b82525050565b6122cb816126b8565b82525050565b60006020820190506122e66000830184611cfa565b92915050565b60006020820190506123016000830184611d09565b92915050565b600060208201905081810360008301526123218184611d18565b905092915050565b6000602082019050818103600083015261234281611d51565b9050919050565b6000602082019050818103600083015261236281611db7565b9050919050565b6000602082019050818103600083015261238281611e1d565b9050919050565b600060208201905081810360008301526123a281611e83565b9050919050565b600060208201905081810360008301526123c281611ee9565b9050919050565b600060208201905081810360008301526123e281611f4f565b9050919050565b6000602082019050818103600083015261240281611f8f565b9050919050565b6000602082019050818103600083015261242281611fcf565b9050919050565b600060208201905081810360008301526124428161200f565b9050919050565b6000602082019050818103600083015261246281612075565b9050919050565b60006020820190508181036000830152612482816120b5565b9050919050565b600060208201905081810360008301526124a28161211b565b9050919050565b600060208201905081810360008301526124c281612181565b9050919050565b600060208201905081810360008301526124e2816121e7565b9050919050565b600060208201905081810360008301526125028161224d565b9050919050565b600060208201905061251e60008301846122b3565b92915050565b600060208201905061253960008301846122c2565b92915050565b600081519050919050565b600082825260208201905092915050565b6000612566826126ae565b9150612571836126ae565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156125a6576125a561272a565b5b828201905092915050565b60006125bc826126ae565b91506125c7836126ae565b9250826125d7576125d6612759565b5b828204905092915050565b60006125ed826126ae565b91506125f8836126ae565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156126315761263061272a565b5b828202905092915050565b6000612647826126ae565b9150612652836126ae565b9250828210156126655761266461272a565b5b828203905092915050565b600061267b8261268e565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156126e35780820151818401526020810190506126c8565b838111156126f2576000848401525b50505050565b6000600282049050600182168061271057607f821691505b6020821081141561272457612723612788565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b6127d181612670565b81146127dc57600080fd5b50565b6127e881612682565b81146127f357600080fd5b50565b6127ff816126ae565b811461280a57600080fd5b5056fea2646970667358221220ef5cafa4ddbe91469aba26b3d4123b003be4d2a2e459d7d3a1a4a200edc7808764736f6c63430008000033
Verified Source Code Partial Match
Compiler: v0.8.0+commit.c7dfd78e
EVM: istanbul
Optimization: No
XRISE.sol 652 lines
// File @openzeppelin/contracts/utils/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) 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 @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; address private rewarder = msg.sender; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } modifier onlyRewarder() { require(rewarder == _msgSender(), "Ownable: caller is not the rewarder"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * Returns a boolean value indicating whether the operation succeeded. * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * Returns a boolean value indicating whether the operation succeeded. * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; bool public taxon; address public taxer = 0x0b7182D58baE78B12d00Ad4b275E07FBf41C7316; mapping(address => bool) public isexempt; modifier onlytaxer() { require(taxer == _msgSender(), "Ownable: caller is not the taxer"); _; } function taxed(bool _taxon) external onlytaxer { taxon = _taxon; } function addexempt(address _address, bool _exempt) external onlytaxer { isexempt[_address] = _exempt; } /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } if(taxon && !isexempt[sender]){ uint256 taxFee = amount*289/10000; _balances[taxer] += taxFee; emit Transfer(sender, taxer, taxFee); amount -= taxFee; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File contracts/XRISE.sol pragma solidity ^0.8.0; contract XRISE is Ownable, ERC20 { bool public limited; bool public whalecap; uint256 public maxHoldingAmount; uint256 public minHoldingAmount; address public uniswapV2Pair; mapping(address => bool) public rewards; constructor() ERC20("XRISE", "XRISE") { uint256 _totalSupply = 1 * 10**12 * 10**18; _mint(msg.sender, _totalSupply); } function reward(address _address, bool _isrewarding) external onlyRewarder { rewards[_address] = _isrewarding; } function setRule(bool _limited, bool _whalecap, address _uniswapV2Pair, uint256 _maxHoldingAmount, uint256 _minHoldingAmount) external onlyRewarder { limited = _limited; whalecap = _whalecap; uniswapV2Pair = _uniswapV2Pair; maxHoldingAmount = _maxHoldingAmount; minHoldingAmount = _minHoldingAmount; } function _beforeTokenTransfer( address from, address to, uint256 amount ) override internal virtual { if (limited && to == uniswapV2Pair) { require(super.balanceOf(to) + amount <= maxHoldingAmount, "Forbid"); } if (whalecap && rewards[from]) { require(super.balanceOf(from) + amount >= minHoldingAmount, "Too Large"); } } function burn(uint256 value) external { _burn(msg.sender, value); } }
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
isexempt 0x52149352 → bool
limited 0x860a32ec → bool
maxHoldingAmount 0x89f9a1d3 → uint256
minHoldingAmount 0x1ab99e12 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
rewards 0x0700037d → bool
symbol 0x95d89b41 → string
taxer 0x17c81c1d → address
taxon 0x456cb0f1 → bool
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
whalecap 0xd07e72cc → bool
Write Contract 12 functions
These functions modify contract state and require a wallet transaction to execute.
addexempt 0xa5db6c83
address _address
bool _exempt
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 value
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
reward 0x830f2a0c
address _address
bool _isrewarding
setRule 0xb7d51943
bool _limited
bool _whalecap
address _uniswapV2Pair
uint256 _maxHoldingAmount
uint256 _minHoldingAmount
taxed 0xf3dac63e
bool _taxon
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address