Contract
0xD2248bfeA32Cba6745553Aa2ff30C0D8286f6376
8
Contract Overview
Balance:
0 GLMR
GLMR Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0xef22758e002e923ac65faf1b03aad12c63e9251680728d32be06b0319e908ce9 | 0x60806040 | 858785 | 346 days 23 hrs ago | 0x5befa2d163e40e148df83921e1cc59e044df5471 | IN | Create: PayrollModule | 0 GLMR | 0.1032645775 |
[ Download CSV Export ]
Contract Name:
PayrollModule
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity ^0.8.6; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol"; import "../interfaces/IFactory.sol"; contract PayrollModule is Initializable { using SafeERC20Upgradeable for IERC20Upgradeable; IFactory public factory; struct Payroll { bool isActive; address recipient; uint256 payrollStartTimestamp; uint256 activeUntilTimestamp; address currency; uint256 amountPerSecond; uint256 lastClaimTimestamp; } mapping(address => uint256) public numberOfPayrolls; mapping(address => mapping(uint256 => Payroll)) public payrolls; /// @custom:oz-upgrades-unsafe-allow constructor constructor() initializer {} function initialize(IFactory _factory) public initializer { factory = _factory; } event InitPayroll( uint256 indexed payrollId, address indexed daoAddress, address indexed recipient, uint256 payrollStartTimestamp, uint256 activeUntilTimestamp, address currency, uint256 amountPerSecond ); event ClaimPayroll( uint256 indexed payrollId, address indexed daoAddress, address indexed recipient, address currency, uint256 amount, uint256 lastClaimTimestamp ); event ChangePayrollAmountPerSecond( uint256 indexed payrollId, uint256 amount ); event DisablePayroll(uint256 indexed payrollId); modifier onlyDao() { require( factory.containsDao(msg.sender), "PayrollModule: only for DAOs" ); _; } function initPayroll( address _recipient, uint256 _payrollStartTimestamp, uint256 _activeUntilTimestamp, address _currency, uint256 _amountPerSecond ) external onlyDao { payrolls[msg.sender][numberOfPayrolls[msg.sender]] = Payroll({ isActive: true, recipient: _recipient, payrollStartTimestamp: _payrollStartTimestamp, activeUntilTimestamp: _activeUntilTimestamp, currency: _currency, amountPerSecond: _amountPerSecond, lastClaimTimestamp: _payrollStartTimestamp }); emit InitPayroll( numberOfPayrolls[msg.sender], msg.sender, _recipient, _payrollStartTimestamp, _activeUntilTimestamp, _currency, _amountPerSecond ); numberOfPayrolls[msg.sender]++; } function claimPayroll(address _dao, uint256 _payrollId) external { require(factory.containsDao(_dao), "PayrollModule: only for DAOs"); Payroll storage payroll = payrolls[_dao][_payrollId]; require( payroll.recipient != address(0), "PayrollModule: Unknown recipient" ); uint256 nextLastClaimTimestamp = MathUpgradeable.min( block.timestamp, payroll.activeUntilTimestamp ); uint256 amount = payroll.amountPerSecond * (nextLastClaimTimestamp - payroll.lastClaimTimestamp); payroll.lastClaimTimestamp = nextLastClaimTimestamp; IERC20Upgradeable(payroll.currency).safeTransferFrom( _dao, payroll.recipient, amount ); emit ClaimPayroll( _payrollId, _dao, payroll.recipient, payroll.currency, amount, nextLastClaimTimestamp ); } function changePayrollAmountPerSecond( uint256 _payrollId, uint256 _amountPerSecond ) external onlyDao { Payroll storage payroll = payrolls[msg.sender][_payrollId]; require(payroll.isActive, "PayrollModule: Payroll is not active"); payroll.amountPerSecond = _amountPerSecond; emit ChangePayrollAmountPerSecond(_payrollId, _amountPerSecond); } function disablePayroll(uint256 _payrollId) external onlyDao { Payroll storage payroll = payrolls[msg.sender][_payrollId]; require(payroll.isActive, "PayrollModule: Payroll is not active"); payroll.activeUntilTimestamp = MathUpgradeable.min( block.timestamp, payroll.activeUntilTimestamp ); payroll.isActive = false; emit DisablePayroll(_payrollId); } function getDaoPayrolls(address _dao) external view returns (Payroll[] memory) { Payroll[] memory daoPayrolls = new Payroll[](numberOfPayrolls[_dao]); for (uint256 i = 0; i < numberOfPayrolls[_dao]; i++) { daoPayrolls[i] = payrolls[_dao][i]; } return daoPayrolls; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; import "../../../utils/AddressUpgradeable.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20Upgradeable token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.6; interface IFactory { function getDaos() external view returns (address[] memory); function shop() external view returns (address); function monthlyCost() external view returns (uint256); function subscriptions(address _dao) external view returns (uint256); function containsDao(address _dao) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"payrollId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ChangePayrollAmountPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"payrollId","type":"uint256"},{"indexed":true,"internalType":"address","name":"daoAddress","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastClaimTimestamp","type":"uint256"}],"name":"ClaimPayroll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"payrollId","type":"uint256"}],"name":"DisablePayroll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"payrollId","type":"uint256"},{"indexed":true,"internalType":"address","name":"daoAddress","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"payrollStartTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"activeUntilTimestamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPerSecond","type":"uint256"}],"name":"InitPayroll","type":"event"},{"inputs":[{"internalType":"uint256","name":"_payrollId","type":"uint256"},{"internalType":"uint256","name":"_amountPerSecond","type":"uint256"}],"name":"changePayrollAmountPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dao","type":"address"},{"internalType":"uint256","name":"_payrollId","type":"uint256"}],"name":"claimPayroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_payrollId","type":"uint256"}],"name":"disablePayroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_dao","type":"address"}],"name":"getDaoPayrolls","outputs":[{"components":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"payrollStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"activeUntilTimestamp","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"amountPerSecond","type":"uint256"},{"internalType":"uint256","name":"lastClaimTimestamp","type":"uint256"}],"internalType":"struct PayrollModule.Payroll[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_payrollStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"_activeUntilTimestamp","type":"uint256"},{"internalType":"address","name":"_currency","type":"address"},{"internalType":"uint256","name":"_amountPerSecond","type":"uint256"}],"name":"initPayroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IFactory","name":"_factory","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberOfPayrolls","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"payrolls","outputs":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"payrollStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"activeUntilTimestamp","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"amountPerSecond","type":"uint256"},{"internalType":"uint256","name":"lastClaimTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600054610100900460ff1661002c5760005460ff1615610034565b6100346100d5565b61009b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff161580156100bd576000805461ffff19166101011790555b80156100cf576000805461ff00191690555b506100ff565b60006100ea306100f060201b610ab81760201c565b15905090565b6001600160a01b03163b151590565b6110f88061010e6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638cb743ce116100665780638cb743ce1461017c5780639d7390eb1461018f578063c0c201dd146101bd578063c45a0155146101dd578063c4d66de81461020e57600080fd5b80631bb4c4c51461009857806328003f1e146100ad57806332349ff7146100c05780634ae7f09d146100d3575b600080fd5b6100ab6100a6366004610de0565b610221565b005b6100ab6100bb366004610db4565b61042a565b6100ab6100ce366004610e6d565b610610565b6101336100e1366004610db4565b6002602081815260009384526040808520909152918352912080546001820154928201546003830154600484015460059094015460ff8416956101009094046001600160a01b03908116959216919087565b6040805197151588526001600160a01b0396871660208901528701949094526060860192909252909216608084015260a083019190915260c082015260e0015b60405180910390f35b6100ab61018a366004610e54565b610728565b6101af61019d366004610d97565b60016020526000908152604090205481565b604051908152602001610173565b6101d06101cb366004610d97565b610849565b6040516101739190610eab565b6000546101f6906201000090046001600160a01b031681565b6040516001600160a01b039091168152602001610173565b6100ab61021c366004610d97565b6109dc565b6000546040516396d054e560e01b8152336004820152620100009091046001600160a01b0316906396d054e59060240160206040518083038186803b15801561026957600080fd5b505afa15801561027d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a19190610e32565b6102c65760405162461bcd60e51b81526004016102bd90610f70565b60405180910390fd5b6040805160e08101825260018082526001600160a01b0380891660208085018281528587018b8152606087018b81528a86166080890190815260a089018b815260c08a018f81523360008181526002808a528e82208d8b528f832080548452908b528f83209e518f549a518e1661010002610100600160a81b0319911515919091166001600160a81b0319909b169a909a17999099178e5596518d8d01559451958c0195909555915160038b018054919099166001600160a01b03199091161790975595516004890155945160059097019690965592859052929092525492519092907f911b364c3fe6b2a12a283c69b4649298155d415703604c51c14a899a9530cdf0906103fb90899089908990899093845260208401929092526001600160a01b03166040830152606082015260800190565b60405180910390a433600090815260016020526040812080549161041e8361104d565b91905055505050505050565b6000546040516396d054e560e01b81526001600160a01b03848116600483015262010000909204909116906396d054e59060240160206040518083038186803b15801561047657600080fd5b505afa15801561048a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ae9190610e32565b6104ca5760405162461bcd60e51b81526004016102bd90610f70565b6001600160a01b038083166000908152600260209081526040808320858452909152902080549091610100909104166105455760405162461bcd60e51b815260206004820181905260248201527f506179726f6c6c4d6f64756c653a20556e6b6e6f776e20726563697069656e7460448201526064016102bd565b6000610555428360020154610ac7565b90506000826005015482610569919061100a565b83600401546105789190610feb565b60058401839055835460038501549192506105a8916001600160a01b039081169188916101009091041684610adf565b82546003840154604080516001600160a01b039283168152602081018590529081018590526101009092048116919087169086907f745869c8ae42cb325475ebbab6091e726721c320f7d1ba67a59c8bd9f30f5b9b9060600160405180910390a45050505050565b6000546040516396d054e560e01b8152336004820152620100009091046001600160a01b0316906396d054e59060240160206040518083038186803b15801561065857600080fd5b505afa15801561066c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106909190610e32565b6106ac5760405162461bcd60e51b81526004016102bd90610f70565b3360009081526002602090815260408083208584529091529020805460ff166106e75760405162461bcd60e51b81526004016102bd90610fa7565b6004810182905560405182815283907fbeb6fda1a227d9142078aff4c79bebba8579d84e94eb85b6265401253af00f129060200160405180910390a2505050565b6000546040516396d054e560e01b8152336004820152620100009091046001600160a01b0316906396d054e59060240160206040518083038186803b15801561077057600080fd5b505afa158015610784573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a89190610e32565b6107c45760405162461bcd60e51b81526004016102bd90610f70565b3360009081526002602090815260408083208484529091529020805460ff166107ff5760405162461bcd60e51b81526004016102bd90610fa7565b61080d428260020154610ac7565b6002820155805460ff1916815560405182907f26e88c30d95b1cb53cdc82fa12f2cf520fdc89dc0cdf8274c6de9e89bcf6602290600090a25050565b6001600160a01b0381166000908152600160205260408120546060919067ffffffffffffffff81111561087e5761087e611094565b60405190808252806020026020018201604052801561090357816020015b6108f06040518060e0016040528060001515815260200160006001600160a01b03168152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001600081525090565b81526020019060019003908161089c5790505b50905060005b6001600160a01b0384166000908152600160205260409020548110156109d5576001600160a01b038085166000908152600260208181526040808420868552825292839020835160e081018552815460ff811615158252610100900486169281019290925260018101549382019390935290820154606082015260038201549092166080830152600481015460a08301526005015460c082015282518390839081106109b7576109b761107e565b602002602001018190525080806109cd9061104d565b915050610909565b5092915050565b600054610100900460ff166109f75760005460ff16156109fb565b303b155b610a5e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102bd565b600054610100900460ff16158015610a80576000805461ffff19166101011790555b6000805462010000600160b01b031916620100006001600160a01b038516021790558015610ab4576000805461ff00191690555b5050565b6001600160a01b03163b151590565b6000818310610ad65781610ad8565b825b9392505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b39908590610b3f565b50505050565b6000610b94826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c169092919063ffffffff16565b805190915015610c115780806020019051810190610bb29190610e32565b610c115760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102bd565b505050565b6060610c258484600085610c2d565b949350505050565b606082471015610c8e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102bd565b6001600160a01b0385163b610ce55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102bd565b600080866001600160a01b03168587604051610d019190610e8f565b60006040518083038185875af1925050503d8060008114610d3e576040519150601f19603f3d011682016040523d82523d6000602084013e610d43565b606091505b5091509150610d53828286610d5e565b979650505050505050565b60608315610d6d575081610ad8565b825115610d7d5782518084602001fd5b8160405162461bcd60e51b81526004016102bd9190610f3d565b600060208284031215610da957600080fd5b8135610ad8816110aa565b60008060408385031215610dc757600080fd5b8235610dd2816110aa565b946020939093013593505050565b600080600080600060a08688031215610df857600080fd5b8535610e03816110aa565b945060208601359350604086013592506060860135610e21816110aa565b949793965091946080013592915050565b600060208284031215610e4457600080fd5b81518015158114610ad857600080fd5b600060208284031215610e6657600080fd5b5035919050565b60008060408385031215610e8057600080fd5b50508035926020909101359150565b60008251610ea1818460208701611021565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b82811015610f30578151805115158552868101516001600160a01b03908116888701528682015187870152606080830151908701526080808301519091169086015260a0808201519086015260c0908101519085015260e09093019290850190600101610ec8565b5091979650505050505050565b6020815260008251806020840152610f5c816040850160208701611021565b601f01601f19169190910160400192915050565b6020808252601c908201527f506179726f6c6c4d6f64756c653a206f6e6c7920666f722044414f7300000000604082015260600190565b60208082526024908201527f506179726f6c6c4d6f64756c653a20506179726f6c6c206973206e6f742061636040820152637469766560e01b606082015260800190565b600081600019048311821515161561100557611005611068565b500290565b60008282101561101c5761101c611068565b500390565b60005b8381101561103c578181015183820152602001611024565b83811115610b395750506000910152565b600060001982141561106157611061611068565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146110bf57600080fd5b5056fea264697066735822122034f6114f601e72fa5480f42f6cdb79b97fe747bf9f0c8163a096c2dbf5077a3064736f6c63430008060033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.