Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
19628921 | 294 days ago | 0 ETH | |||||
19628921 | 294 days ago | 0 ETH | |||||
19578937 | 301 days ago | 0 ETH | |||||
19578937 | 301 days ago | 0 ETH | |||||
19529456 | 308 days ago | 0 ETH | |||||
19529456 | 308 days ago | 0 ETH | |||||
19479889 | 315 days ago | 0 ETH | |||||
19479889 | 315 days ago | 0 ETH | |||||
19430104 | 322 days ago | 0 ETH | |||||
19430104 | 322 days ago | 0 ETH | |||||
19380127 | 329 days ago | 0 ETH | |||||
19380127 | 329 days ago | 0 ETH | |||||
19332664 | 336 days ago | 0 ETH | |||||
19332664 | 336 days ago | 0 ETH | |||||
19280001 | 343 days ago | 0 ETH | |||||
19280001 | 343 days ago | 0 ETH | |||||
19230170 | 350 days ago | 0 ETH | |||||
19230170 | 350 days ago | 0 ETH | |||||
19180288 | 357 days ago | 0 ETH | |||||
19180288 | 357 days ago | 0 ETH | |||||
19130437 | 364 days ago | 0 ETH | |||||
19130437 | 364 days ago | 0 ETH | |||||
19084130 | 371 days ago | 0 ETH | |||||
19084130 | 371 days ago | 0 ETH | |||||
19084130 | 371 days ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
AngleMiddleman
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../interfaces/IAngleDistributor.sol"; import "../interfaces/IAngleMiddlemanGauge.sol"; interface ICurveGauge { function deposit_reward_token(address _reward_token, uint256 _amount) external; // solhint-disable-line } interface IPolygonBridge { function depositFor( address user, address rootToken, bytes memory depositData ) external; function tokenToType(address) external view returns (bytes32); function typeToPredicate(bytes32) external view returns (address); } contract AngleMiddleman is AccessControl, IAngleMiddlemanGauge { using SafeERC20 for IERC20; /// @notice Types of contracts the middleman will forward the tokens to enum RecipientType { Curve, Anyswap, PolygonPoS } /// @notice `recipient`: Address receiving the tokens. bridge: address of the bridge (if applicable) where the tokens will go through struct Recipient { address recipient; address bridge; RecipientType recipientType; } /// @notice Most likely ANGLE token (currently: 0x31429d1856aD1377A8A0079410B297e1a9e214c2) IERC20 public immutable rewardToken; bytes32 public constant DISTRIBUTOR_ROLE = keccak256("DISTRIBUTOR_ROLE"); bytes32 public constant GUARDIAN_ROLE = keccak256("GUARDIAN_ROLE"); /// @notice Maps a gauge address (as defined in `AngleDistributor`) to its parameters mapping(address => Recipient) public gaugeToRecipient; event AddGauge( address indexed gauge, address indexed recipient, address indexed bridge, RecipientType recipientType ); event RemoveGauge(address indexed gauge); event NotifyReward(address indexed gauge, address indexed recipient, uint256 amount); event Recovered(address indexed tokenAddress, address indexed to, uint256 amount); /// @notice Deploys `AngleMiddleman` used to route reward tokens (ANGLE) from `AngleDistributor` to gauges /// @param guardians array of address of admins for this contract. Guardians are allowed to add new gauges or remove them, and recover tokens from the contract /// @param distributor address of `AngleDistributor`. Notifies the contract that new rewards should be distributed constructor(address[] memory guardians, IAngleDistributor distributor) { require(address(distributor) != address(0), "0"); require(guardians.length > 0, "5"); rewardToken = distributor.rewardToken(); for (uint256 i = 0; i < guardians.length; i++) { require(guardians[i] != address(0), "0"); _setupRole(GUARDIAN_ROLE, guardians[i]); } _setupRole(DISTRIBUTOR_ROLE, address(distributor)); _setRoleAdmin(DISTRIBUTOR_ROLE, GUARDIAN_ROLE); _setRoleAdmin(GUARDIAN_ROLE, GUARDIAN_ROLE); } receive() external payable {} /// @notice Allows the Governor to add new gauges of type "Curve" /// @param gauges Array of gauges, as defined in `AngleDistributor` /// @param recipients Array of addresses ultimately meant to receive the tokens /// @param bridges Array of addresses of the bridging contracts /// @param recipientType Curve, Polygon or Anyswap /// @dev Addresses of gauges within the Angle Protocol corresponding to Curve pools or multichain staking contracts are identifiers to be used only for voting purposes. /// @dev This is the reason we map them to the "real" `recipient` contract function addGauges( address[] memory gauges, address[] memory recipients, address[] memory bridges, RecipientType[] memory recipientType ) external onlyRole(GUARDIAN_ROLE) { require(gauges.length > 0, "5"); require( gauges.length == recipients.length && gauges.length == bridges.length && gauges.length == recipientType.length, "104" ); for (uint256 i = 0; i < gauges.length; i++) { require(gauges[i] != address(0) && recipients[i] != address(0), "0"); if (recipientType[i] == RecipientType.Curve) { require(bridges[i] == address(0), "113"); } if (recipientType[i] == RecipientType.PolygonPoS || recipientType[i] == RecipientType.Anyswap) { require(bridges[i] != address(0), "0"); } Recipient storage _recipient = gaugeToRecipient[gauges[i]]; require(_recipient.recipient == address(0), "112"); _recipient.recipient = recipients[i]; _recipient.recipientType = recipientType[i]; _recipient.bridge = bridges[i]; // auto approve if (recipientType[i] == RecipientType.Curve) { rewardToken.safeApprove(recipients[i], type(uint256).max); } else if (recipientType[i] == RecipientType.PolygonPoS) { address spender = _getSpenderPolygon(bridges[i]); uint256 currentAllowance = rewardToken.allowance(address(this), spender); // the spender is the "predicate", so we check if it wasnt already approved if (currentAllowance == 0) { rewardToken.safeApprove(spender, type(uint256).max); } } emit AddGauge(gauges[i], recipients[i], bridges[i], recipientType[i]); } } /// @notice Gets the address of the "predicate": the contract ultimately holding the tokens on mainnet. The predicate contract needs to be approved by `AngleMiddleman` /// @param bridge Address of the bridge contract, from there we can retrieve the address of the predicate function _getSpenderPolygon(address bridge) internal view returns (address spender) { bytes32 tokenType = IPolygonBridge(bridge).tokenToType(address(rewardToken)); spender = IPolygonBridge(bridge).typeToPredicate(tokenType); } /// @notice Sends the tokens to the recipient contract using the appropriate method (direct transfer or bridging) /// @param gauge Address of the gauge, as defined in `AngleDistributor` /// @param amount Amount of tokens to be sent function notifyReward(address gauge, uint256 amount) external override onlyRole(DISTRIBUTOR_ROLE) { Recipient memory _recipient = gaugeToRecipient[gauge]; require(_recipient.recipient != address(0), "110"); if (_recipient.recipientType == RecipientType.Curve) { // Curve gauges implement a `deposit_reward_token` method // The contract needs to be approved for the rewardToken // Approval should have been done in `addGauges` method ICurveGauge(_recipient.recipient).deposit_reward_token(address(rewardToken), amount); } else if (_recipient.recipientType == RecipientType.PolygonPoS) { // Polygon PoS bridge uses a `depositFor` method // `depositFor` transfers the tokens to the "predicate" contract and then emits an event for bridging the tokens // The "predicate" needs to be approved, which is done in the `addGauges` method IPolygonBridge(_recipient.bridge).depositFor( _recipient.recipient, address(rewardToken), abi.encodePacked(amount) ); } else if (_recipient.recipientType == RecipientType.Anyswap) { // For Anyswap, tokens just need to be transfered to the right contract and are bridged to the same address on the other network rewardToken.safeTransfer(_recipient.bridge, amount); } emit NotifyReward(gauge, _recipient.recipient, amount); } /// @notice Ability to revoke approval for a contract. Approvals are given in the `addGauges` methods /// @param spender Address of the contract that was approved function revokeApproval(address spender) public onlyRole(GUARDIAN_ROLE) { rewardToken.safeApprove(spender, 0); } /// @notice Ability to change allowance for a contract. Approvals are given in the `addGauges` methods /// @param spender Address of the contract that was approved /// @param approvedAmount Amount that we want to approve function changeAllowance(address spender, uint256 approvedAmount) public onlyRole(GUARDIAN_ROLE) { uint256 currentAllowance = rewardToken.allowance(address(this), spender); if (currentAllowance < approvedAmount) { rewardToken.safeIncreaseAllowance(spender, approvedAmount - currentAllowance); } else if (currentAllowance > approvedAmount) { rewardToken.safeDecreaseAllowance(spender, currentAllowance - approvedAmount); } } /// @notice Deletes a gauge. Removes the parameters from `gaugeToRecipient` and revokes approvals /// @param gauge Address of the gauge (found in `AngleDistributor`) function removeGauge(address gauge) external onlyRole(GUARDIAN_ROLE) { Recipient memory _recipient = gaugeToRecipient[gauge]; require(_recipient.recipient != address(0), "110"); if (_recipient.recipientType == RecipientType.Curve) { revokeApproval(_recipient.recipient); } else if (_recipient.recipientType == RecipientType.PolygonPoS) { revokeApproval(_getSpenderPolygon(_recipient.bridge)); } // else: There is no approval for Anyswap, so no need to do anything delete gaugeToRecipient[gauge]; emit RemoveGauge(gauge); } /// @notice Recovers ERC20 tokens from the contract /// @param token Address of the token /// @param amount Amount to be recovered function recoverERC20( address token, address to, uint256 amount ) external onlyRole(GUARDIAN_ROLE) { IERC20(token).safeTransfer(to, amount); emit Recovered(token, to, amount); } /// @notice Recovers ETH from the contract /// @param amount Amount to be recovered function recoverETH(address to, uint256 amount) external onlyRole(GUARDIAN_ROLE) { require(payable(to).send(amount), "98"); emit Recovered(address(0), to, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.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 SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 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( IERC20 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( IERC20 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( IERC20 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(IERC20 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(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); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title IAngleDistributor /// @author Angle Core Team /// @notice Interface for the `AngleDistributor` contract interface IAngleDistributor { function rewardToken() external view returns (IERC20); function delegateGauge() external view returns (address); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; /// @title IAngleMiddlemanGauge /// @author Angle Core Team /// @notice Interface for the `AngleMiddleman` contract interface IAngleMiddlemanGauge { function notifyReward(address gauge, uint256 amount) external; }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1000000 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"guardians","type":"address[]"},{"internalType":"contract IAngleDistributor","name":"distributor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"gauge","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"bridge","type":"address"},{"indexed":false,"internalType":"enum AngleMiddleman.RecipientType","name":"recipientType","type":"uint8"}],"name":"AddGauge","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"gauge","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NotifyReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"gauge","type":"address"}],"name":"RemoveGauge","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISTRIBUTOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GUARDIAN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"gauges","type":"address[]"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"address[]","name":"bridges","type":"address[]"},{"internalType":"enum AngleMiddleman.RecipientType[]","name":"recipientType","type":"uint8[]"}],"name":"addGauges","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"approvedAmount","type":"uint256"}],"name":"changeAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gaugeToRecipient","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"bridge","type":"address"},{"internalType":"enum AngleMiddleman.RecipientType","name":"recipientType","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"gauge","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"notifyReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"gauge","type":"address"}],"name":"removeGauge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"revokeApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200341e3803806200341e83398101604081905262000034916200036a565b6001600160a01b038116620000745760405162461bcd60e51b81526020600482015260016024820152600360fc1b60448201526064015b60405180910390fd5b6000825111620000ab5760405162461bcd60e51b81526020600482015260016024820152603560f81b60448201526064016200006b565b806001600160a01b031663f7c618c16040518163ffffffff1660e01b815260040160206040518083038186803b158015620000e557600080fd5b505afa158015620000fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000120919062000457565b60601b6001600160601b03191660805260005b8251811015620001f45760006001600160a01b03168382815181106200015d576200015d620004a8565b60200260200101516001600160a01b03161415620001a25760405162461bcd60e51b81526020600482015260016024820152600360fc1b60448201526064016200006b565b620001df600080516020620033fe833981519152848381518110620001cb57620001cb620004a8565b60200260200101516200025d60201b60201c565b80620001eb816200047e565b91505062000133565b5062000210600080516020620033de833981519152826200025d565b6200023a600080516020620033de833981519152600080516020620033fe8339815191526200026d565b62000255600080516020620033fe833981519152806200026d565b5050620004ed565b620002698282620002b8565b5050565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000269576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620003143390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b80516200036581620004d4565b919050565b600080604083850312156200037e57600080fd5b82516001600160401b03808211156200039657600080fd5b818501915085601f830112620003ab57600080fd5b8151602082821115620003c257620003c2620004be565b8160051b604051601f19603f83011681018181108682111715620003ea57620003ea620004be565b604052838152828101945085830182870184018b10156200040a57600080fd5b600096505b848710156200043857620004238162000358565b8652600196909601959483019483016200040f565b5096506200044a905087820162000358565b9450505050509250929050565b6000602082840312156200046a57600080fd5b81516200047781620004d4565b9392505050565b6000600019821415620004a157634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620004ea57600080fd5b50565b60805160601c612e856200055960003960008181610448015281816105a10152818161064c015281816106a501528181610c01015281816112aa0152818161139b0152818161143601528181611739015281816117f00152818161188d0152611f480152612e856000f3fe60806040526004361061012d5760003560e01c8063484685b0116100a5578063b31dd34011610074578063e324718011610059578063e3247180146103e2578063f0bd87cc14610402578063f7c618c11461043657600080fd5b8063b31dd340146103a2578063d547741f146103c257600080fd5b8063484685b0146102a25780637bd40db6146102c257806391d148541461033c578063a217fddf1461038d57600080fd5b806324ea54f4116100fc57806336568abe116100e157806336568abe146102425780633a045145146102625780633e0c06291461028257600080fd5b806324ea54f4146101ee5780632f2ff15d1461022257600080fd5b806301ffc9a714610139578063079a193b1461016e5780631171bda914610190578063248a9ca3146101b057600080fd5b3661013457005b600080fd5b34801561014557600080fd5b506101596101543660046129fc565b61048f565b60405190151581526020015b60405180910390f35b34801561017a57600080fd5b5061018e610189366004612837565b610528565b005b34801561019c57600080fd5b5061018e6101ab3660046127f6565b6106d2565b3480156101bc57600080fd5b506101e06101cb36600461299a565b60009081526020819052604090206001015490565b604051908152602001610165565b3480156101fa57600080fd5b506101e07f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a504181565b34801561022e57600080fd5b5061018e61023d3660046129cc565b61078b565b34801561024e57600080fd5b5061018e61025d3660046129cc565b6107b6565b34801561026e57600080fd5b5061018e61027d3660046127bc565b61086e565b34801561028e57600080fd5b5061018e61029d366004612837565b610aa6565b3480156102ae57600080fd5b5061018e6102bd3660046127bc565b610bbc565b3480156102ce57600080fd5b5061032d6102dd3660046127bc565b6001602081905260009182526040909120805491015473ffffffffffffffffffffffffffffffffffffffff9182169181169074010000000000000000000000000000000000000000900460ff1683565b60405161016593929190612ba2565b34801561034857600080fd5b506101596103573660046129cc565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561039957600080fd5b506101e0600081565b3480156103ae57600080fd5b5061018e6103bd366004612863565b610c29565b3480156103ce57600080fd5b5061018e6103dd3660046129cc565b61157b565b3480156103ee57600080fd5b5061018e6103fd366004612837565b6115a1565b34801561040e57600080fd5b506101e07ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c81565b34801561044257600080fd5b5061046a7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610165565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061052257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a50416105538133611917565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063dd62ed3e9060440160206040518083038186803b1580156105e557600080fd5b505afa1580156105f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061d91906129b3565b90508281101561067857610673846106358386612cbd565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691906119e7565b6106cc565b828111156106cc576106cc8461068e8584612cbd565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169190611b72565b50505050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a50416106fd8133611917565b61071e73ffffffffffffffffffffffffffffffffffffffff85168484611d0e565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167ffff3b3844276f57024e0b42afec1a37f75db36511e43819a4f2a63ab7862b6488460405161077d91815260200190565b60405180910390a350505050565b6000828152602081905260409020600101546107a78133611917565b6107b18383611d64565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61086a8282611e54565b5050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a50416108998133611917565b73ffffffffffffffffffffffffffffffffffffffff8281166000908152600160208181526040808420815160608101835281548716815293810154958616928401929092529293919290919083019074010000000000000000000000000000000000000000900460ff16600281111561091457610914612d9d565b600281111561092557610925612d9d565b905250805190915073ffffffffffffffffffffffffffffffffffffffff166109a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31313000000000000000000000000000000000000000000000000000000000006044820152606401610857565b6000816040015160028111156109c1576109c1612d9d565b14156109d75780516109d290610bbc565b610a05565b6002816040015160028111156109ef576109ef612d9d565b1415610a0557610a056102bd8260200151611f0b565b73ffffffffffffffffffffffffffffffffffffffff8316600081815260016020819052604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000016815590910180547fffffffffffffffffffffff000000000000000000000000000000000000000000169055517fd8447e2a6ccc1f3caeea39fdaea6ca5c1c22a9ab79022d1e39a8c24f0736e5499190a2505050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041610ad18133611917565b60405173ffffffffffffffffffffffffffffffffffffffff84169083156108fc029084906000818181858888f19350505050610b69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f39380000000000000000000000000000000000000000000000000000000000006044820152606401610857565b60405182815273ffffffffffffffffffffffffffffffffffffffff8416906000907ffff3b3844276f57024e0b42afec1a37f75db36511e43819a4f2a63ab7862b6489060200160405180910390a3505050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041610be78133611917565b61086a73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016836000612077565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041610c548133611917565b6000855111610cbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f35000000000000000000000000000000000000000000000000000000000000006044820152606401610857565b83518551148015610cd1575082518551145b8015610cde575081518551145b610d44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31303400000000000000000000000000000000000000000000000000000000006044820152606401610857565b60005b855181101561157357600073ffffffffffffffffffffffffffffffffffffffff16868281518110610d7a57610d7a612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614158015610dec5750600073ffffffffffffffffffffffffffffffffffffffff16858281518110610dcb57610dcb612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614155b610e52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f30000000000000000000000000000000000000000000000000000000000000006044820152606401610857565b6000838281518110610e6657610e66612dcc565b60200260200101516002811115610e7f57610e7f612d9d565b1415610f3457600073ffffffffffffffffffffffffffffffffffffffff16848281518110610eaf57610eaf612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614610f34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31313300000000000000000000000000000000000000000000000000000000006044820152606401610857565b6002838281518110610f4857610f48612dcc565b60200260200101516002811115610f6157610f61612d9d565b1480610f9757506001838281518110610f7c57610f7c612dcc565b60200260200101516002811115610f9557610f95612d9d565b145b1561104c57600073ffffffffffffffffffffffffffffffffffffffff16848281518110610fc657610fc6612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff16141561104c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f30000000000000000000000000000000000000000000000000000000000000006044820152606401610857565b60006001600088848151811061106457611064612dcc565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff90811683529082019290925260400160002080549092501615611104576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31313200000000000000000000000000000000000000000000000000000000006044820152606401610857565b85828151811061111657611116612dcc565b602090810291909101015181547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909116178155835184908390811061117457611174612dcc565b60209081029190910101516001820180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000008360028111156111cf576111cf612d9d565b02179055508482815181106111e6576111e6612dcc565b60209081029190910101516001820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055600084838151811061124b5761124b612dcc565b6020026020010151600281111561126457611264612d9d565b14156112f3576112ee86838151811061127f5761127f612dcc565b60200260200101517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166120779092919063ffffffff16565b611480565b600284838151811061130757611307612dcc565b6020026020010151600281111561132057611320612d9d565b141561148057600061134a86848151811061133d5761133d612dcc565b6020026020010151611f0b565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff80831660248301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063dd62ed3e9060440160206040518083038186803b1580156113dd57600080fd5b505afa1580156113f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141591906129b3565b90508061147d5761147d73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612077565b50505b84828151811061149257611492612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff168683815181106114c2576114c2612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff168884815181106114f2576114f2612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f76cc700fdcf22aabf7a1727d361771f174d4b9a9e93b3c91bddf783ab81493d887868151811061154357611543612dcc565b60200260200101516040516115589190612bd4565b60405180910390a4508061156b81612d35565b915050610d47565b505050505050565b6000828152602081905260409020600101546115978133611917565b6107b18383611e54565b7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c6115cc8133611917565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160208181526040808420815160608101835281548716815293810154958616928401929092529293919290919083019074010000000000000000000000000000000000000000900460ff16600281111561164757611647612d9d565b600281111561165857611658612d9d565b905250805190915073ffffffffffffffffffffffffffffffffffffffff166116dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31313000000000000000000000000000000000000000000000000000000000006044820152606401610857565b6000816040015160028111156116f4576116f4612d9d565b14156117ab5780516040517f93f7aa6700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116600483015260248201869052909116906393f7aa67906044015b600060405180830381600087803b15801561178e57600080fd5b505af11580156117a2573d6000803e3d6000fd5b505050506118b4565b6002816040015160028111156117c3576117c3612d9d565b141561184f57806020015173ffffffffffffffffffffffffffffffffffffffff1663e3dec8fb82600001517f00000000000000000000000000000000000000000000000000000000000000008660405160200161182291815260200190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161177493929190612b60565b60018160400151600281111561186757611867612d9d565b14156118b45760208101516118b49073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169085611d0e565b806000015173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167ff70d5c697de7ea828df48e5c4573cb2194c659f1901f70110c52b066dcf508268560405161077d91815260200190565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661086a5761196d8173ffffffffffffffffffffffffffffffffffffffff166014612208565b611978836020612208565b604051602001611989929190612adf565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261085791600401612be2565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015611a5957600080fd5b505afa158015611a6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9191906129b3565b611a9b9190612c68565b60405173ffffffffffffffffffffffffffffffffffffffff85166024820152604481018290529091506106cc9085907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261244b565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff83811660248301526000919085169063dd62ed3e9060440160206040518083038186803b158015611be357600080fd5b505afa158015611bf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1b91906129b3565b905081811015611cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e6365206260448201527f656c6f77207a65726f00000000000000000000000000000000000000000000006064820152608401610857565b60405173ffffffffffffffffffffffffffffffffffffffff841660248201528282036044820181905290611d079086907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611af0565b5050505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526107b19084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611af0565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661086a5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611df63390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561086a5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040517fe43009a600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152600091829184169063e43009a69060240160206040518083038186803b158015611f9757600080fd5b505afa158015611fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fcf91906129b3565b6040517fe66f96030000000000000000000000000000000000000000000000000000000081526004810182905290915073ffffffffffffffffffffffffffffffffffffffff84169063e66f96039060240160206040518083038186803b15801561203857600080fd5b505afa15801561204c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061207091906127d9565b9392505050565b80158061212657506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156120ec57600080fd5b505afa158015612100573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212491906129b3565b155b6121b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610857565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526107b19084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611af0565b60606000612217836002612c80565b612222906002612c68565b67ffffffffffffffff81111561223a5761223a612dfb565b6040519080825280601f01601f191660200182016040528015612264576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061229b5761229b612dcc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106122fe576122fe612dcc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061233a846002612c80565b612345906001612c68565b90505b60018111156123e2577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061238657612386612dcc565b1a60f81b82828151811061239c5761239c612dcc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936123db81612d00565b9050612348565b508315612070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610857565b60006124ad826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166125579092919063ffffffff16565b8051909150156107b157808060200190518101906124cb9190612978565b6107b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610857565b6060612566848460008561256e565b949350505050565b606082471015612600576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610857565b843b612668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610857565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516126919190612ac3565b60006040518083038185875af1925050503d80600081146126ce576040519150601f19603f3d011682016040523d82523d6000602084013e6126d3565b606091505b50915091506126e38282866126ee565b979650505050505050565b606083156126fd575081612070565b82511561270d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108579190612be2565b600082601f83011261275257600080fd5b8135602061276761276283612c44565b612bf5565b80838252828201915082860187848660051b890101111561278757600080fd5b60005b858110156127af57813561279d81612e2a565b8452928401929084019060010161278a565b5090979650505050505050565b6000602082840312156127ce57600080fd5b813561207081612e2a565b6000602082840312156127eb57600080fd5b815161207081612e2a565b60008060006060848603121561280b57600080fd5b833561281681612e2a565b9250602084013561282681612e2a565b929592945050506040919091013590565b6000806040838503121561284a57600080fd5b823561285581612e2a565b946020939093013593505050565b6000806000806080858703121561287957600080fd5b843567ffffffffffffffff8082111561289157600080fd5b61289d88838901612741565b95506020915081870135818111156128b457600080fd5b6128c089828a01612741565b9550506040870135818111156128d557600080fd5b6128e189828a01612741565b9450506060870135818111156128f657600080fd5b87019050601f8101881361290957600080fd5b803561291761276282612c44565b8082825284820191508484018b868560051b870101111561293757600080fd5b60009450845b8481101561296557813560038110612953578687fd5b8452928601929086019060010161293d565b5050809550505050505092959194509250565b60006020828403121561298a57600080fd5b8151801515811461207057600080fd5b6000602082840312156129ac57600080fd5b5035919050565b6000602082840312156129c557600080fd5b5051919050565b600080604083850312156129df57600080fd5b8235915060208301356129f181612e2a565b809150509250929050565b600060208284031215612a0e57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461207057600080fd5b60008151808452612a56816020860160208601612cd4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60038110612abf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b60008251612ad5818460208701612cd4565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612b17816017850160208801612cd4565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612b54816028840160208801612cd4565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808616835280851660208401525060606040830152612b996060830184612a3e565b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff848116825283166020820152606081016125666040830184612a88565b602081016105228284612a88565b6020815260006120706020830184612a3e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715612c3c57612c3c612dfb565b604052919050565b600067ffffffffffffffff821115612c5e57612c5e612dfb565b5060051b60200190565b60008219821115612c7b57612c7b612d6e565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612cb857612cb8612d6e565b500290565b600082821015612ccf57612ccf612d6e565b500390565b60005b83811015612cef578181015183820152602001612cd7565b838111156106cc5750506000910152565b600081612d0f57612d0f612d6e565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612d6757612d67612d6e565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114612e4c57600080fd5b5056fea264697066735822122011206b2d3136001962c49df6b78a09f0c2e32efe01b34e75bd0e24f97f59f17e64736f6c63430008070033fbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a504100000000000000000000000000000000000000000000000000000000000000400000000000000000000000004f91f01ce8ec07c9b1f6a82c18811848254917ab0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dc4e6dfe07efca50a197df15d9200883ef4eb1c80000000000000000000000000c2553e4b9dfa9f83b1a6d3eab96c4baab42d430
Deployed Bytecode
0x60806040526004361061012d5760003560e01c8063484685b0116100a5578063b31dd34011610074578063e324718011610059578063e3247180146103e2578063f0bd87cc14610402578063f7c618c11461043657600080fd5b8063b31dd340146103a2578063d547741f146103c257600080fd5b8063484685b0146102a25780637bd40db6146102c257806391d148541461033c578063a217fddf1461038d57600080fd5b806324ea54f4116100fc57806336568abe116100e157806336568abe146102425780633a045145146102625780633e0c06291461028257600080fd5b806324ea54f4146101ee5780632f2ff15d1461022257600080fd5b806301ffc9a714610139578063079a193b1461016e5780631171bda914610190578063248a9ca3146101b057600080fd5b3661013457005b600080fd5b34801561014557600080fd5b506101596101543660046129fc565b61048f565b60405190151581526020015b60405180910390f35b34801561017a57600080fd5b5061018e610189366004612837565b610528565b005b34801561019c57600080fd5b5061018e6101ab3660046127f6565b6106d2565b3480156101bc57600080fd5b506101e06101cb36600461299a565b60009081526020819052604090206001015490565b604051908152602001610165565b3480156101fa57600080fd5b506101e07f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a504181565b34801561022e57600080fd5b5061018e61023d3660046129cc565b61078b565b34801561024e57600080fd5b5061018e61025d3660046129cc565b6107b6565b34801561026e57600080fd5b5061018e61027d3660046127bc565b61086e565b34801561028e57600080fd5b5061018e61029d366004612837565b610aa6565b3480156102ae57600080fd5b5061018e6102bd3660046127bc565b610bbc565b3480156102ce57600080fd5b5061032d6102dd3660046127bc565b6001602081905260009182526040909120805491015473ffffffffffffffffffffffffffffffffffffffff9182169181169074010000000000000000000000000000000000000000900460ff1683565b60405161016593929190612ba2565b34801561034857600080fd5b506101596103573660046129cc565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561039957600080fd5b506101e0600081565b3480156103ae57600080fd5b5061018e6103bd366004612863565b610c29565b3480156103ce57600080fd5b5061018e6103dd3660046129cc565b61157b565b3480156103ee57600080fd5b5061018e6103fd366004612837565b6115a1565b34801561040e57600080fd5b506101e07ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c81565b34801561044257600080fd5b5061046a7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c281565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610165565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061052257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a50416105538133611917565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526000917f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c29091169063dd62ed3e9060440160206040518083038186803b1580156105e557600080fd5b505afa1580156105f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061d91906129b3565b90508281101561067857610673846106358386612cbd565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c21691906119e7565b6106cc565b828111156106cc576106cc8461068e8584612cbd565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c2169190611b72565b50505050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a50416106fd8133611917565b61071e73ffffffffffffffffffffffffffffffffffffffff85168484611d0e565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167ffff3b3844276f57024e0b42afec1a37f75db36511e43819a4f2a63ab7862b6488460405161077d91815260200190565b60405180910390a350505050565b6000828152602081905260409020600101546107a78133611917565b6107b18383611d64565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61086a8282611e54565b5050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a50416108998133611917565b73ffffffffffffffffffffffffffffffffffffffff8281166000908152600160208181526040808420815160608101835281548716815293810154958616928401929092529293919290919083019074010000000000000000000000000000000000000000900460ff16600281111561091457610914612d9d565b600281111561092557610925612d9d565b905250805190915073ffffffffffffffffffffffffffffffffffffffff166109a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31313000000000000000000000000000000000000000000000000000000000006044820152606401610857565b6000816040015160028111156109c1576109c1612d9d565b14156109d75780516109d290610bbc565b610a05565b6002816040015160028111156109ef576109ef612d9d565b1415610a0557610a056102bd8260200151611f0b565b73ffffffffffffffffffffffffffffffffffffffff8316600081815260016020819052604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000016815590910180547fffffffffffffffffffffff000000000000000000000000000000000000000000169055517fd8447e2a6ccc1f3caeea39fdaea6ca5c1c22a9ab79022d1e39a8c24f0736e5499190a2505050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041610ad18133611917565b60405173ffffffffffffffffffffffffffffffffffffffff84169083156108fc029084906000818181858888f19350505050610b69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f39380000000000000000000000000000000000000000000000000000000000006044820152606401610857565b60405182815273ffffffffffffffffffffffffffffffffffffffff8416906000907ffff3b3844276f57024e0b42afec1a37f75db36511e43819a4f2a63ab7862b6489060200160405180910390a3505050565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041610be78133611917565b61086a73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c216836000612077565b7f55435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041610c548133611917565b6000855111610cbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f35000000000000000000000000000000000000000000000000000000000000006044820152606401610857565b83518551148015610cd1575082518551145b8015610cde575081518551145b610d44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31303400000000000000000000000000000000000000000000000000000000006044820152606401610857565b60005b855181101561157357600073ffffffffffffffffffffffffffffffffffffffff16868281518110610d7a57610d7a612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614158015610dec5750600073ffffffffffffffffffffffffffffffffffffffff16858281518110610dcb57610dcb612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614155b610e52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f30000000000000000000000000000000000000000000000000000000000000006044820152606401610857565b6000838281518110610e6657610e66612dcc565b60200260200101516002811115610e7f57610e7f612d9d565b1415610f3457600073ffffffffffffffffffffffffffffffffffffffff16848281518110610eaf57610eaf612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614610f34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31313300000000000000000000000000000000000000000000000000000000006044820152606401610857565b6002838281518110610f4857610f48612dcc565b60200260200101516002811115610f6157610f61612d9d565b1480610f9757506001838281518110610f7c57610f7c612dcc565b60200260200101516002811115610f9557610f95612d9d565b145b1561104c57600073ffffffffffffffffffffffffffffffffffffffff16848281518110610fc657610fc6612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff16141561104c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f30000000000000000000000000000000000000000000000000000000000000006044820152606401610857565b60006001600088848151811061106457611064612dcc565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff90811683529082019290925260400160002080549092501615611104576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31313200000000000000000000000000000000000000000000000000000000006044820152606401610857565b85828151811061111657611116612dcc565b602090810291909101015181547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909116178155835184908390811061117457611174612dcc565b60209081029190910101516001820180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000008360028111156111cf576111cf612d9d565b02179055508482815181106111e6576111e6612dcc565b60209081029190910101516001820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055600084838151811061124b5761124b612dcc565b6020026020010151600281111561126457611264612d9d565b14156112f3576112ee86838151811061127f5761127f612dcc565b60200260200101517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c273ffffffffffffffffffffffffffffffffffffffff166120779092919063ffffffff16565b611480565b600284838151811061130757611307612dcc565b6020026020010151600281111561132057611320612d9d565b141561148057600061134a86848151811061133d5761133d612dcc565b6020026020010151611f0b565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff80831660248301529192506000917f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c2169063dd62ed3e9060440160206040518083038186803b1580156113dd57600080fd5b505afa1580156113f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141591906129b3565b90508061147d5761147d73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c216837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612077565b50505b84828151811061149257611492612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff168683815181106114c2576114c2612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff168884815181106114f2576114f2612dcc565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f76cc700fdcf22aabf7a1727d361771f174d4b9a9e93b3c91bddf783ab81493d887868151811061154357611543612dcc565b60200260200101516040516115589190612bd4565b60405180910390a4508061156b81612d35565b915050610d47565b505050505050565b6000828152602081905260409020600101546115978133611917565b6107b18383611e54565b7ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c6115cc8133611917565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160208181526040808420815160608101835281548716815293810154958616928401929092529293919290919083019074010000000000000000000000000000000000000000900460ff16600281111561164757611647612d9d565b600281111561165857611658612d9d565b905250805190915073ffffffffffffffffffffffffffffffffffffffff166116dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f31313000000000000000000000000000000000000000000000000000000000006044820152606401610857565b6000816040015160028111156116f4576116f4612d9d565b14156117ab5780516040517f93f7aa6700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c28116600483015260248201869052909116906393f7aa67906044015b600060405180830381600087803b15801561178e57600080fd5b505af11580156117a2573d6000803e3d6000fd5b505050506118b4565b6002816040015160028111156117c3576117c3612d9d565b141561184f57806020015173ffffffffffffffffffffffffffffffffffffffff1663e3dec8fb82600001517f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c28660405160200161182291815260200190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161177493929190612b60565b60018160400151600281111561186757611867612d9d565b14156118b45760208101516118b49073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c2169085611d0e565b806000015173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167ff70d5c697de7ea828df48e5c4573cb2194c659f1901f70110c52b066dcf508268560405161077d91815260200190565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661086a5761196d8173ffffffffffffffffffffffffffffffffffffffff166014612208565b611978836020612208565b604051602001611989929190612adf565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261085791600401612be2565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015611a5957600080fd5b505afa158015611a6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9191906129b3565b611a9b9190612c68565b60405173ffffffffffffffffffffffffffffffffffffffff85166024820152604481018290529091506106cc9085907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261244b565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff83811660248301526000919085169063dd62ed3e9060440160206040518083038186803b158015611be357600080fd5b505afa158015611bf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1b91906129b3565b905081811015611cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e6365206260448201527f656c6f77207a65726f00000000000000000000000000000000000000000000006064820152608401610857565b60405173ffffffffffffffffffffffffffffffffffffffff841660248201528282036044820181905290611d079086907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611af0565b5050505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526107b19084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611af0565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661086a5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611df63390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561086a5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040517fe43009a600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000031429d1856ad1377a8a0079410b297e1a9e214c281166004830152600091829184169063e43009a69060240160206040518083038186803b158015611f9757600080fd5b505afa158015611fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fcf91906129b3565b6040517fe66f96030000000000000000000000000000000000000000000000000000000081526004810182905290915073ffffffffffffffffffffffffffffffffffffffff84169063e66f96039060240160206040518083038186803b15801561203857600080fd5b505afa15801561204c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061207091906127d9565b9392505050565b80158061212657506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156120ec57600080fd5b505afa158015612100573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212491906129b3565b155b6121b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610857565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526107b19084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611af0565b60606000612217836002612c80565b612222906002612c68565b67ffffffffffffffff81111561223a5761223a612dfb565b6040519080825280601f01601f191660200182016040528015612264576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061229b5761229b612dcc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106122fe576122fe612dcc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061233a846002612c80565b612345906001612c68565b90505b60018111156123e2577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061238657612386612dcc565b1a60f81b82828151811061239c5761239c612dcc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936123db81612d00565b9050612348565b508315612070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610857565b60006124ad826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166125579092919063ffffffff16565b8051909150156107b157808060200190518101906124cb9190612978565b6107b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610857565b6060612566848460008561256e565b949350505050565b606082471015612600576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610857565b843b612668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610857565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516126919190612ac3565b60006040518083038185875af1925050503d80600081146126ce576040519150601f19603f3d011682016040523d82523d6000602084013e6126d3565b606091505b50915091506126e38282866126ee565b979650505050505050565b606083156126fd575081612070565b82511561270d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108579190612be2565b600082601f83011261275257600080fd5b8135602061276761276283612c44565b612bf5565b80838252828201915082860187848660051b890101111561278757600080fd5b60005b858110156127af57813561279d81612e2a565b8452928401929084019060010161278a565b5090979650505050505050565b6000602082840312156127ce57600080fd5b813561207081612e2a565b6000602082840312156127eb57600080fd5b815161207081612e2a565b60008060006060848603121561280b57600080fd5b833561281681612e2a565b9250602084013561282681612e2a565b929592945050506040919091013590565b6000806040838503121561284a57600080fd5b823561285581612e2a565b946020939093013593505050565b6000806000806080858703121561287957600080fd5b843567ffffffffffffffff8082111561289157600080fd5b61289d88838901612741565b95506020915081870135818111156128b457600080fd5b6128c089828a01612741565b9550506040870135818111156128d557600080fd5b6128e189828a01612741565b9450506060870135818111156128f657600080fd5b87019050601f8101881361290957600080fd5b803561291761276282612c44565b8082825284820191508484018b868560051b870101111561293757600080fd5b60009450845b8481101561296557813560038110612953578687fd5b8452928601929086019060010161293d565b5050809550505050505092959194509250565b60006020828403121561298a57600080fd5b8151801515811461207057600080fd5b6000602082840312156129ac57600080fd5b5035919050565b6000602082840312156129c557600080fd5b5051919050565b600080604083850312156129df57600080fd5b8235915060208301356129f181612e2a565b809150509250929050565b600060208284031215612a0e57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461207057600080fd5b60008151808452612a56816020860160208601612cd4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60038110612abf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b60008251612ad5818460208701612cd4565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612b17816017850160208801612cd4565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612b54816028840160208801612cd4565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808616835280851660208401525060606040830152612b996060830184612a3e565b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff848116825283166020820152606081016125666040830184612a88565b602081016105228284612a88565b6020815260006120706020830184612a3e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715612c3c57612c3c612dfb565b604052919050565b600067ffffffffffffffff821115612c5e57612c5e612dfb565b5060051b60200190565b60008219821115612c7b57612c7b612d6e565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612cb857612cb8612d6e565b500290565b600082821015612ccf57612ccf612d6e565b500390565b60005b83811015612cef578181015183820152602001612cd7565b838111156106cc5750506000910152565b600081612d0f57612d0f612d6e565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612d6757612d67612d6e565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114612e4c57600080fd5b5056fea264697066735822122011206b2d3136001962c49df6b78a09f0c2e32efe01b34e75bd0e24f97f59f17e64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000004f91f01ce8ec07c9b1f6a82c18811848254917ab0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dc4e6dfe07efca50a197df15d9200883ef4eb1c80000000000000000000000000c2553e4b9dfa9f83b1a6d3eab96c4baab42d430
-----Decoded View---------------
Arg [0] : guardians (address[]): 0xdC4e6DFe07EFCa50a197DF15D9200883eF4Eb1c8,0x0C2553e4B9dFA9f83b1A6D3EAB96c4bAaB42d430
Arg [1] : distributor (address): 0x4f91F01cE8ec07c9B1f6a82c18811848254917Ab
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000004f91f01ce8ec07c9b1f6a82c18811848254917ab
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 000000000000000000000000dc4e6dfe07efca50a197df15d9200883ef4eb1c8
Arg [4] : 0000000000000000000000000c2553e4b9dfa9f83b1a6d3eab96c4baab42d430
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
POL | 100.00% | $0.414931 | 0.1 | $0.041493 |
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.