Polygon Sponsored slots available. Book your slot here!
Contract Overview
Balance:
0 MATIC
MATIC Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash |
Method
|
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0xd660f75644ee2b94cf86aa5ccd3115e499c87b534915ca0432a59d1a746faabb | 0x60a06040 | 38514678 | 2 days 6 hrs ago | 0x92abd5610b756adeb3e7409be6ffdd77a7909031 | IN | Create: XLARSCValveFactory | 0 MATIC | 0.166761296037 |
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0xd660f75644ee2b94cf86aa5ccd3115e499c87b534915ca0432a59d1a746faabb | 38514678 | 2 days 6 hrs ago | 0x2d378a4978be03006615fdcbae1f6330e99eaf52 | Contract Creation | 0 MATIC |
[ Download CSV Export ]
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
XLARSCValveFactory
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; 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. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * 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 prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/Clones.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/proxy/Clones.sol"; import "contracts/revenue-share-contracts/RSCValve.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract XLARSCValveFactory is Ownable { address payable public immutable contractImplementation; uint256 constant version = 1; uint256 public platformFee; address payable public platformWallet; struct RSCCreateData { string name; address controller; address distributor; bool immutableController; bool autoEthDistribution; uint256 minAutoDistributeAmount; address payable [] initialRecipients; uint256[] percentages; string[] names; } event RSCValveCreated( address contractAddress, address controller, address distributor, string name, uint256 version, bool immutableController, bool autoEthDistribution, uint256 minAutoDistributeAmount ); event PlatformFeeChanged( uint256 oldFee, uint256 newFee ); event PlatformWalletChanged( address payable oldPlatformWallet, address payable newPlatformWallet ); // Throw when Fee Percentage is more than 100% error InvalidFeePercentage(); constructor() { contractImplementation = payable(new XLARSCValve()); } /** * @dev Public function for creating clone proxy pointing to RSC Percentage * @param _data Initial data for creating new RSC Valve contract */ function createRSCValve(RSCCreateData memory _data) external returns(address) { address payable clone = payable(Clones.clone(contractImplementation)); XLARSCValve(clone).initialize( msg.sender, _data.controller, _data.distributor, _data.immutableController, _data.autoEthDistribution, _data.minAutoDistributeAmount, platformFee, address(this), _data.initialRecipients, _data.percentages, _data.names ); emit RSCValveCreated( clone, _data.controller, _data.distributor, _data.name, version, _data.immutableController, _data.autoEthDistribution, _data.minAutoDistributeAmount ); return clone; } /** * @dev Only Owner function for setting platform fee * @param _fee Percentage define platform fee 100% == 10000 */ function setPlatformFee(uint256 _fee) external onlyOwner { if (_fee > 10000) { revert InvalidFeePercentage(); } emit PlatformFeeChanged(platformFee, _fee); platformFee = _fee; } /** * @dev Only Owner function for setting platform fee * @param _platformWallet New ETH wallet which will receive ETH */ function setPlatformWallet(address payable _platformWallet) external onlyOwner { emit PlatformWalletChanged(platformWallet, _platformWallet); platformWallet = _platformWallet; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IFeeFactory { function platformWallet() external returns(address payable); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "../interfaces/IFeeFactory.sol"; contract XLARSCValve is OwnableUpgradeable { address public distributor; address public controller; bool public immutableController; bool public autoEthDistribution; uint256 public minAutoDistributionAmount; uint256 public platformFee; IFeeFactory public factory; address payable [] public recipients; mapping(address => uint256) public recipientsPercentage; uint256 public numberOfRecipients = 0; event SetRecipients(address payable [] recipients, uint256[] percentages, string[] names); event DistributeToken(address token, uint256 amount); event DistributorChanged(address oldDistributor, address newDistributor); event ControllerChanged(address oldController, address newController); // Throw when if sender is not distributor error OnlyDistributorError(); // Throw when sender is not controller error OnlyControllerError(); // Throw when transaction fails error TransferFailedError(); // Throw when submitted recipient with address(0) error NullAddressRecipientError(); // Throw if recipient is already in contract error RecipientAlreadyAddedError(); // Throw when arrays are submit without same length error InconsistentDataLengthError(); // Throw when sum of percentage is not 100% error InvalidPercentageError(); // Throw when RSC doesnt have any ERC20 balance for given token error Erc20ZeroBalanceError(); // Throw when distributor address is same as submit one error DistributorAlreadyConfiguredError(); // Throw when distributor address is same as submit one error ControllerAlreadyConfiguredError(); // Throw when change is triggered for immutable controller error ImmutableControllerError(); /** * @dev Checks whether sender is distributor */ modifier onlyDistributor { if (msg.sender != distributor) { revert OnlyDistributorError(); } _; } /** * @dev Checks whether sender is controller */ modifier onlyController { if (msg.sender != controller) { revert OnlyControllerError(); } _; } /** * @dev Constructor function, can be called only once * @param _owner Owner of the contract * @param _controller address which control setting / removing recipients * @param _distributor address which can distribute ERC20 tokens or ETH * @param _immutableController flag indicating whether controller could be changed * @param _autoEthDistribution flag indicating whether ETH will be automatically distributed or manually * @param _minAutoDistributionAmount Minimum ETH amount to trigger auto ETH distribution * @param _platformFee Percentage defining fee for distribution services * @param _factoryAddress Address of the factory used for creating this RSC * @param _initialRecipients Initial recipient addresses * @param _percentages initial percentages for recipients * @param _names names for recipients */ function initialize( address _owner, address _controller, address _distributor, bool _immutableController, bool _autoEthDistribution, uint256 _minAutoDistributionAmount, uint256 _platformFee, address _factoryAddress, address payable [] memory _initialRecipients, uint256[] memory _percentages, string[] memory _names ) public initializer { distributor = _distributor; controller = _controller; immutableController = _immutableController; autoEthDistribution = _autoEthDistribution; minAutoDistributionAmount = _minAutoDistributionAmount; factory = IFeeFactory(_factoryAddress); platformFee = _platformFee; _setRecipients(_initialRecipients, _percentages, _names); _transferOwnership(_owner); } fallback() external payable { if (autoEthDistribution && msg.value >= minAutoDistributionAmount) { _redistributeEth(msg.value); } } receive() external payable { if (autoEthDistribution && msg.value >= minAutoDistributionAmount) { _redistributeEth(msg.value); } } /** * @notice Internal function to redistribute ETH based on percentages assign to the recipients * @param _valueToDistribute ETH amount to be distribute */ function _redistributeEth(uint256 _valueToDistribute) internal { if (platformFee > 0) { uint256 fee = _valueToDistribute / 10000 * platformFee; _valueToDistribute -= fee; address payable platformWallet = factory.platformWallet(); (bool success,) = platformWallet.call{value: fee}(""); if (success == false) { revert TransferFailedError(); } } uint256 recipientsLength = recipients.length; for (uint256 i = 0; i < recipientsLength;) { address payable recipient = recipients[i]; uint256 percentage = recipientsPercentage[recipient]; uint256 amountToReceive = _valueToDistribute / 10000 * percentage; (bool success,) = payable(recipient).call{value: amountToReceive}(""); if (success == false) { revert TransferFailedError(); } unchecked{i++;} } } /** * @notice External function to redistribute ETH based on percentages assign to the recipients */ function redistributeEth() external onlyDistributor { _redistributeEth(address(this).balance); } /** * @notice Internal function to check whether percentages are equal to 100% * @return valid boolean indicating whether sum of percentage == 100% */ function _percentageIsValid() internal view returns (bool valid){ uint256 recipientsLength = recipients.length; uint256 percentageSum; for (uint256 i = 0; i < recipientsLength;) { address recipient = recipients[i]; percentageSum += recipientsPercentage[recipient]; unchecked {i++;} } return percentageSum == 10000; } /** * @notice Internal function for adding recipient to revenue share * @param _recipient Fixed amount of token user want to buy * @param _percentage code of the affiliation partner */ function _addRecipient(address payable _recipient, uint256 _percentage) internal { if (_recipient == address(0)) { revert NullAddressRecipientError(); } if (recipientsPercentage[_recipient] != 0) { revert RecipientAlreadyAddedError(); } recipients.push(_recipient); recipientsPercentage[_recipient] = _percentage; } /** * @notice Internal function for removing all recipients */ function _removeAll() internal { if (numberOfRecipients == 0) { return; } for (uint256 i = 0; i < numberOfRecipients;) { address recipient = recipients[i]; recipientsPercentage[recipient] = 0; unchecked{i++;} } delete recipients; numberOfRecipients = 0; } /** * @notice Internal function for setting recipients * @param _newRecipients Addresses to be added * @param _percentages new percentages for recipients * @param _names names for recipients */ function _setRecipients( address payable [] memory _newRecipients, uint256[] memory _percentages, string[] memory _names ) internal { uint256 newRecipientsLength = _newRecipients.length; if ( newRecipientsLength != _percentages.length || newRecipientsLength != _names.length ) { revert InconsistentDataLengthError(); } _removeAll(); for (uint256 i = 0; i < newRecipientsLength;) { _addRecipient(_newRecipients[i], _percentages[i]); unchecked{i++;} } numberOfRecipients = newRecipientsLength; if (_percentageIsValid() == false) { revert InvalidPercentageError(); } emit SetRecipients(_newRecipients, _percentages, _names); } /** * @notice External function for setting recipients * @param _newRecipients Addresses to be added * @param _percentages new percentages for recipients * @param _names names for recipients */ function setRecipients( address payable [] memory _newRecipients, uint256[] memory _percentages, string[] memory _names ) public onlyController { _setRecipients(_newRecipients, _percentages, _names); } /** * @notice External function to redistribute ERC20 token based on percentages assign to the recipients * @param _token Address of the ERC20 token to be distribute */ function redistributeToken(address _token) external onlyDistributor { uint256 recipientsLength = recipients.length; IERC20 erc20Token = IERC20(_token); uint256 contractBalance = erc20Token.balanceOf(address(this)); if (contractBalance == 0) { revert Erc20ZeroBalanceError(); } if (platformFee > 0) { uint256 fee = contractBalance / 10000 * platformFee; contractBalance -= fee; address payable platformWallet = factory.platformWallet(); erc20Token.transfer(platformWallet, fee); } for (uint256 i = 0; i < recipientsLength;) { address payable recipient = recipients[i]; uint256 percentage = recipientsPercentage[recipient]; uint256 amountToReceive = contractBalance / 10000 * percentage; erc20Token.transfer(recipient, amountToReceive); unchecked{i++;} } emit DistributeToken(_token, contractBalance); } /** * @notice External function to set distributor address * @param _distributor address of new distributor */ function setDistributor(address _distributor) external onlyOwner { if (_distributor == distributor) { revert DistributorAlreadyConfiguredError(); } emit DistributorChanged(distributor, _distributor); distributor = _distributor; } /** * @notice External function to set controller address, if set to address(0), unable to change it * @param _controller address of new controller */ function setController(address _controller) external onlyOwner { if (controller == address(0) || immutableController) { revert ImmutableControllerError(); } emit ControllerChanged(controller, _controller); controller = _controller; } }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidFeePercentage","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"PlatformFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable","name":"oldPlatformWallet","type":"address"},{"indexed":false,"internalType":"address payable","name":"newPlatformWallet","type":"address"}],"name":"PlatformWalletChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"address","name":"controller","type":"address"},{"indexed":false,"internalType":"address","name":"distributor","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"version","type":"uint256"},{"indexed":false,"internalType":"bool","name":"immutableController","type":"bool"},{"indexed":false,"internalType":"bool","name":"autoEthDistribution","type":"bool"},{"indexed":false,"internalType":"uint256","name":"minAutoDistributeAmount","type":"uint256"}],"name":"RSCValveCreated","type":"event"},{"inputs":[],"name":"contractImplementation","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"controller","type":"address"},{"internalType":"address","name":"distributor","type":"address"},{"internalType":"bool","name":"immutableController","type":"bool"},{"internalType":"bool","name":"autoEthDistribution","type":"bool"},{"internalType":"uint256","name":"minAutoDistributeAmount","type":"uint256"},{"internalType":"address payable[]","name":"initialRecipients","type":"address[]"},{"internalType":"uint256[]","name":"percentages","type":"uint256[]"},{"internalType":"string[]","name":"names","type":"string[]"}],"internalType":"struct XLARSCValveFactory.RSCCreateData","name":"_data","type":"tuple"}],"name":"createRSCValve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setPlatformFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_platformWallet","type":"address"}],"name":"setPlatformWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b5061001a33610054565b604051610026906100a4565b604051809103906000f080158015610042573d6000803e3d6000fd5b506001600160a01b03166080526100b1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611dcd80610e4e83390190565b608051610d7b6100d36000396000818161014f01526102310152610d7b6000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c80638831e9cf116100765780639e72370b1161005b5780639e72370b1461014a578063f2fde38b14610171578063fa2af9da1461018457600080fd5b80638831e9cf146101195780638da5cb5b1461012c57600080fd5b806312e8e2c3146100a85780631eb99614146100bd57806326232a2e146100fa578063715018a614610111575b600080fd5b6100bb6100b63660046106a8565b6101a4565b005b6100d06100cb3660046109a7565b610229565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61010360015481565b6040519081526020016100f1565b6100bb61035d565b6100bb610127366004610ad3565b610371565b60005473ffffffffffffffffffffffffffffffffffffffff166100d0565b6100d07f000000000000000000000000000000000000000000000000000000000000000081565b6100bb61017f366004610ad3565b610414565b6002546100d09073ffffffffffffffffffffffffffffffffffffffff1681565b6101ac6104d0565b6127108111156101e8576040517f721dbfea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460408051918252602082018390527fc98a8b10b63c929f7799380bb4a0c444c713ebf74d8732f944c915034121aad1910160405180910390a1600155565b6000806102557f0000000000000000000000000000000000000000000000000000000000000000610551565b90508073ffffffffffffffffffffffffffffffffffffffff16637c0c30953385602001518660400151876060015188608001518960a00151600154308c60c001518d60e001518e61010001516040518c63ffffffff1660e01b81526004016102c79b9a99989796959493929190610c38565b600060405180830381600087803b1580156102e157600080fd5b505af11580156102f5573d6000803e3d6000fd5b505050507f936bf8ce42efd2611101eb8cc618b660ae60b323a5459c4f1f26ba3b9b016c52818460200151856040015186600001516001886060015189608001518a60a0015160405161034f989796959493929190610cdb565b60405180910390a192915050565b6103656104d0565b61036f6000610633565b565b6103796104d0565b6002546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f5812a713ab7654faa23157e4c40ea2b3560cfea6fd6c09a2e0adf6cbe460e1c0910160405180910390a1600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61041c6104d0565b73ffffffffffffffffffffffffffffffffffffffff81166104c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6104cd81610633565b50565b60005473ffffffffffffffffffffffffffffffffffffffff16331461036f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bb565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff811661062e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c65640000000000000000000060448201526064016104bb565b919050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156106ba57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610120810167ffffffffffffffff81118282101715610714576107146106c1565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610761576107616106c1565b604052919050565b600082601f83011261077a57600080fd5b813567ffffffffffffffff811115610794576107946106c1565b6107c560207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161071a565b8181528460208386010111156107da57600080fd5b816020850160208301376000918101602001919091529392505050565b73ffffffffffffffffffffffffffffffffffffffff811681146104cd57600080fd5b803561062e816107f7565b8035801515811461062e57600080fd5b600067ffffffffffffffff82111561084e5761084e6106c1565b5060051b60200190565b600082601f83011261086957600080fd5b8135602061087e61087983610834565b61071a565b82815260059290921b8401810191818101908684111561089d57600080fd5b8286015b848110156108c15780356108b4816107f7565b83529183019183016108a1565b509695505050505050565b600082601f8301126108dd57600080fd5b813560206108ed61087983610834565b82815260059290921b8401810191818101908684111561090c57600080fd5b8286015b848110156108c15780358352918301918301610910565b600082601f83011261093857600080fd5b8135602061094861087983610834565b82815260059290921b8401810191818101908684111561096757600080fd5b8286015b848110156108c157803567ffffffffffffffff81111561098b5760008081fd5b6109998986838b0101610769565b84525091830191830161096b565b6000602082840312156109b957600080fd5b813567ffffffffffffffff808211156109d157600080fd5b9083019061012082860312156109e657600080fd5b6109ee6106f0565b8235828111156109fd57600080fd5b610a0987828601610769565b825250610a1860208401610819565b6020820152610a2960408401610819565b6040820152610a3a60608401610824565b6060820152610a4b60808401610824565b608082015260a083013560a082015260c083013582811115610a6c57600080fd5b610a7887828601610858565b60c08301525060e083013582811115610a9057600080fd5b610a9c878286016108cc565b60e0830152506101008084013583811115610ab657600080fd5b610ac288828701610927565b918301919091525095945050505050565b600060208284031215610ae557600080fd5b8135610af0816107f7565b9392505050565b600081518084526020808501945080840160005b83811015610b3d57815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101610b0b565b509495945050505050565b600081518084526020808501945080840160005b83811015610b3d57815187529582019590820190600101610b5c565b6000815180845260005b81811015610b9e57602081850181015186830182015201610b82565b81811115610bb0576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610c2b578284038952610c19848351610b78565b98850198935090840190600101610c01565b5091979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff8c811682528b811660208301528a811660408301528915156060830152881515608083015260a0820188905260c08201879052851660e0820152600061016080610100840152610c9f81840187610af7565b9050828103610120840152610cb48186610b48565b9050828103610140840152610cc98185610be3565b9e9d5050505050505050505050505050565b600061010073ffffffffffffffffffffffffffffffffffffffff808c168452808b166020850152808a16604085015250806060840152610d1d81840189610b78565b6080840197909752505092151560a084015290151560c083015260e09091015294935050505056fea26469706673582212200aa97ffe015b4c1a6fe7acf82c393c82265b7040b5afb4341c0d4aa8d07145fa64736f6c6343000809003360806040526000606c5534801561001557600080fd5b50611da8806100256000396000f3fe6080604052600436106101485760003560e01c80638da5cb5b116100c0578063d1bc76a111610074578063f2fde38b11610059578063f2fde38b14610429578063f4d3bdec14610449578063f77c4791146104695761018a565b8063d1bc76a1146103f3578063ee0e01c7146104135761018a565b8063b5983142116100a5578063b598314214610384578063bfe1092814610399578063c45a0155146103c65761018a565b80638da5cb5b1461031857806392eefe9b146103645761018a565b80636a51a65a11610117578063715018a6116100fc578063715018a6146102c357806375619ab5146102d85780637c0c3095146102f85761018a565b80636a51a65a146102715780636e4b769a146102915761018a565b80631558ab2f146101c257806326232a2e146102025780633a92244e14610218578063478f425a1461025b5761018a565b3661018a576066547501000000000000000000000000000000000000000000900460ff16801561017a57506067543410155b156101885761018834610496565b005b6066547501000000000000000000000000000000000000000000900460ff16801561017a575060675434106101885761018834610496565b3480156101ce57600080fd5b506101ef6101dd36600461166f565b606b6020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561020e57600080fd5b506101ef60685481565b34801561022457600080fd5b5060665461024b907501000000000000000000000000000000000000000000900460ff1681565b60405190151581526020016101f9565b34801561026757600080fd5b506101ef60675481565b34801561027d57600080fd5b5061018861028c366004611906565b61072e565b34801561029d57600080fd5b5060665461024b9074010000000000000000000000000000000000000000900460ff1681565b3480156102cf57600080fd5b5061018861078a565b3480156102e457600080fd5b506101886102f336600461166f565b61079e565b34801561030457600080fd5b506101886103133660046119a7565b610896565b34801561032457600080fd5b5060335473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101f9565b34801561037057600080fd5b5061018861037f36600461166f565b610b49565b34801561039057600080fd5b50610188610c62565b3480156103a557600080fd5b5060655461033f9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103d257600080fd5b5060695461033f9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103ff57600080fd5b5061033f61040e366004611ab1565b610cbc565b34801561041f57600080fd5b506101ef606c5481565b34801561043557600080fd5b5061018861044436600461166f565b610cf3565b34801561045557600080fd5b5061018861046436600461166f565b610daa565b34801561047557600080fd5b5060665461033f9073ffffffffffffffffffffffffffffffffffffffff1681565b6068541561060d576068546000906104b061271084611af9565b6104ba9190611b34565b90506104c68183611b71565b91506000606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fa2af9da6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561053457600080fd5b505af1158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c9190611b88565b905060008173ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d80600081146105c8576040519150601f19603f3d011682016040523d82523d6000602084013e6105cd565b606091505b509091505080610609576040517f570f1df400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505b606a5460005b81811015610729576000606a828154811061063057610630611ba5565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352606b9091526040822054909250908161067261271088611af9565b61067c9190611b34565b905060008373ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146106d8576040519150601f19603f3d011682016040523d82523d6000602084013e6106dd565b606091505b509091505080610719576040517f570f1df400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050600190920191506106139050565b505050565b60665473ffffffffffffffffffffffffffffffffffffffff16331461077f576040517f56be192700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107298383836111de565b6107926112f6565b61079c6000611377565b565b6107a66112f6565b60655473ffffffffffffffffffffffffffffffffffffffff828116911614156107fb576040517f8562fdc800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6065546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527fa9f739537fc57540bed0a44e33e27baa63290d865cc15f0f16cf17d38c998a4d910160405180910390a1606580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600054610100900460ff16158080156108b65750600054600160ff909116105b806108d05750303b1580156108d0575060005460ff166001145b610961576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905580156109bf57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b89606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508a606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555088606660146101000a81548160ff02191690831515021790555087606660156101000a81548160ff0219169083151502179055508660678190555084606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085606881905550610acf8484846111de565b610ad88c611377565b8015610b3b57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050505050565b610b516112f6565b60665473ffffffffffffffffffffffffffffffffffffffff161580610b90575060665474010000000000000000000000000000000000000000900460ff165b15610bc7576040517f1e0da16000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6066546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f6aef1fb5b23d0e109fc7f2b0601019e1edbacd177e31a441ec8548e8dd14f0f7910160405180910390a1606680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60655473ffffffffffffffffffffffffffffffffffffffff163314610cb3576040517f26448fa300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61079c47610496565b606a8181548110610ccc57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b610cfb6112f6565b73ffffffffffffffffffffffffffffffffffffffff8116610d9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610958565b610da781611377565b50565b60655473ffffffffffffffffffffffffffffffffffffffff163314610dfb576040517f26448fa300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606a546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152829060009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015610e6857600080fd5b505afa158015610e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea09190611bd4565b905080610ed9576040517f2c158ce900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6068541561105f57606854600090610ef361271084611af9565b610efd9190611b34565b9050610f098183611b71565b91506000606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fa2af9da6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610f7757600080fd5b505af1158015610f8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610faf9190611b88565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8083166004830152602482018590529192509085169063a9059cbb90604401602060405180830381600087803b15801561102357600080fd5b505af1158015611037573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105b9190611bed565b5050505b60005b83811015611187576000606a828154811061107f5761107f611ba5565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352606b909152604082205490925090816110c161271087611af9565b6110cb9190611b34565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018390529192509087169063a9059cbb90604401602060405180830381600087803b15801561113f57600080fd5b505af1158015611153573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111779190611bed565b5050600190920191506110629050565b506040805173ffffffffffffffffffffffffffffffffffffffff86168152602081018390527f8e303f84fe3357e09112a03b39540286c13cbd04593711fe74fbce4d3233f38391015b60405180910390a150505050565b82518251811415806111f1575081518114155b15611228576040517f483927d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112306113ee565b60005b8181101561127f5761127785828151811061125057611250611ba5565b602002602001015185838151811061126a5761126a611ba5565b6020026020010151611465565b600101611233565b50606c81905561128d611590565b6112c3576040517f42732e3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fa1974fb82c0261a74e27f0695053debfaf7b73243182ee55a86959fcad246eed8484846040516111d093929190611cb6565b60335473ffffffffffffffffffffffffffffffffffffffff16331461079c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b6033805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606c546113f757565b60005b606c54811015611451576000606a828154811061141957611419611ba5565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168252606b90526040812055506001016113fa565b5061145e606a600061160b565b6000606c55565b73ffffffffffffffffffffffffffffffffffffffff82166114b2576040517feff9f60700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152606b60205260409020541561150f576040517fbcae37c200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606a8054600181019091557f116fea137db6e131133e7f2bab296045d8f41cc5607279db17b218cab0929a5101805473ffffffffffffffffffffffffffffffffffffffff9093167fffffffffffffffffffffffff0000000000000000000000000000000000000000909316831790556000918252606b602052604090912055565b606a5460009081805b82811015611600576000606a82815481106115b6576115b6611ba5565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352606b9091526040909120549091506115f59084611d5a565b925050600101611599565b506127101492915050565b5080546000825590600052602060002090810190610da791905b808211156116395760008155600101611625565b5090565b73ffffffffffffffffffffffffffffffffffffffff81168114610da757600080fd5b803561166a8161163d565b919050565b60006020828403121561168157600080fd5b813561168c8161163d565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561170957611709611693565b604052919050565b600067ffffffffffffffff82111561172b5761172b611693565b5060051b60200190565b600082601f83011261174657600080fd5b8135602061175b61175683611711565b6116c2565b82815260059290921b8401810191818101908684111561177a57600080fd5b8286015b8481101561179e5780356117918161163d565b835291830191830161177e565b509695505050505050565b600082601f8301126117ba57600080fd5b813560206117ca61175683611711565b82815260059290921b840181019181810190868411156117e957600080fd5b8286015b8481101561179e57803583529183019183016117ed565b6000601f838184011261181657600080fd5b8235602061182661175683611711565b82815260059290921b8501810191818101908784111561184557600080fd5b8287015b848110156118fa57803567ffffffffffffffff8082111561186a5760008081fd5b818a0191508a603f83011261187f5760008081fd5b8582013560408282111561189557611895611693565b6118c4887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08c850116016116c2565b92508183528c818386010111156118db5760008081fd5b8181850189850137506000908201870152845250918301918301611849565b50979650505050505050565b60008060006060848603121561191b57600080fd5b833567ffffffffffffffff8082111561193357600080fd5b61193f87838801611735565b9450602086013591508082111561195557600080fd5b611961878388016117a9565b9350604086013591508082111561197757600080fd5b5061198486828701611804565b9150509250925092565b8015158114610da757600080fd5b803561166a8161198e565b60008060008060008060008060008060006101608c8e0312156119c957600080fd5b6119d28c61165f565b9a506119e060208d0161165f565b99506119ee60408d0161165f565b98506119fc60608d0161199c565b9750611a0a60808d0161199c565b965060a08c0135955060c08c01359450611a2660e08d0161165f565b935067ffffffffffffffff806101008e01351115611a4357600080fd5b611a548e6101008f01358f01611735565b9350806101208e01351115611a6857600080fd5b611a798e6101208f01358f016117a9565b9250806101408e01351115611a8d57600080fd5b50611a9f8d6101408e01358e01611804565b90509295989b509295989b9093969950565b600060208284031215611ac357600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082611b2f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611b6c57611b6c611aca565b500290565b600082821015611b8357611b83611aca565b500390565b600060208284031215611b9a57600080fd5b815161168c8161163d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611be657600080fd5b5051919050565b600060208284031215611bff57600080fd5b815161168c8161198e565b600081518084526020808501808196508360051b810191508286016000805b86811015611ca8578385038a5282518051808752835b81811015611c5a578281018901518882018a01528801611c3f565b81811115611c6a578489838a0101525b509a87019a601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016959095018601945091850191600101611c29565b509298975050505050505050565b606080825284519082018190526000906020906080840190828801845b82811015611d0557815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101611cd3565b5050508381038285015285518082528683019183019060005b81811015611d3a57835183529284019291840191600101611d1e565b50508481036040860152611d4e8187611c0a565b98975050505050505050565b60008219821115611d6d57611d6d611aca565b50019056fea2646970667358221220af5805fe9efdbb2b7dbd93cdd96ee3fa040d38100426bdb44ba55e9a55af09f864736f6c63430008090033
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.