Source Code
Latest 6 from a total of 6 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Distribute Token | 4923333 | 587 days ago | IN | 0 ETH | 0.00002866 | ||||
| Distribute Token | 4921964 | 587 days ago | IN | 0 ETH | 0.00001734 | ||||
| Distribute Token | 4743853 | 591 days ago | IN | 0 ETH | 0.00002886 | ||||
| Revoke Role | 4605160 | 595 days ago | IN | 0 ETH | 0.00000055 | ||||
| Grant Role | 4605158 | 595 days ago | IN | 0 ETH | 0.00000102 | ||||
| Set Distribution... | 4605155 | 595 days ago | IN | 0 ETH | 0.0000047 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 4946398 | 587 days ago | 0.00415 ETH | ||||
| 4946398 | 587 days ago | 0.001245 ETH | ||||
| 4946398 | 587 days ago | 0.00166 ETH | ||||
| 4946398 | 587 days ago | 0.001245 ETH | ||||
| 4946398 | 587 days ago | 0.0083 ETH | ||||
| 4946345 | 587 days ago | 0.000455 ETH | ||||
| 4946345 | 587 days ago | 0.0001365 ETH | ||||
| 4946345 | 587 days ago | 0.000182 ETH | ||||
| 4946345 | 587 days ago | 0.0001365 ETH | ||||
| 4946345 | 587 days ago | 0.00091 ETH | ||||
| 4946262 | 587 days ago | 0.00118 ETH | ||||
| 4946262 | 587 days ago | 0.000354 ETH | ||||
| 4946262 | 587 days ago | 0.000472 ETH | ||||
| 4946262 | 587 days ago | 0.000354 ETH | ||||
| 4946262 | 587 days ago | 0.00236 ETH | ||||
| 4946220 | 587 days ago | 0.0016 ETH | ||||
| 4946220 | 587 days ago | 0.00048 ETH | ||||
| 4946220 | 587 days ago | 0.00064 ETH | ||||
| 4946220 | 587 days ago | 0.00048 ETH | ||||
| 4946220 | 587 days ago | 0.0032 ETH | ||||
| 4946172 | 587 days ago | 0.00135 ETH | ||||
| 4946172 | 587 days ago | 0.000405 ETH | ||||
| 4946172 | 587 days ago | 0.00054 ETH | ||||
| 4946172 | 587 days ago | 0.000405 ETH | ||||
| 4946172 | 587 days ago | 0.0027 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FeeSplitterV2
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 888888 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import {LowLevelWETH} from "@looksrare/contracts-libs/contracts/lowLevelCallers/LowLevelWETH.sol";
import {LowLevelERC20Transfer} from "@looksrare/contracts-libs/contracts/lowLevelCallers/LowLevelERC20Transfer.sol";
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IBlast, YieldMode as IBlast__YieldMode, GasMode as IBlast__GasMode} from "./interfaces/IBlast.sol";
import {IERC20Rebasing, YieldMode as IERC20Rebasing__YieldMode} from "./interfaces/IERC20Rebasing.sol";
contract FeeSplitterV2 is LowLevelWETH, LowLevelERC20Transfer, AccessControl {
/**
* @notice Fee receiver struct
* @param recipient Receiver address
* @param composition Fee composition
*/
struct FeeReceiver {
address recipient;
uint256 composition;
}
/**
* @notice Transfer struct
* @param recipient Receiver address
* @param amount Transfer amount
*/
struct Transfer {
address recipient;
uint256 amount;
}
/**
* @notice Operators are allowed to distribute tokens
*/
bytes32 private constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
address public immutable WETH;
address public immutable USDB;
mapping(address token => FeeReceiver[]) public distributions;
event DistributionsSet(address token, FeeReceiver[] receivers);
event ETHWithdrawn(address receiver, uint256 amount);
event TokenWithdrawn(address receiver, address token, uint256 amount);
event ETHDistributed(Transfer[] transfers);
event TokenDistributed(address token, Transfer[] transfers);
error EmptyArray();
error NoReceivers();
error NotOneHundredPercent();
error ZeroBalance();
error ZeroComposition();
error ZeroTransferAmount();
/**
* @param blast Blast precompile
* @param owner Contract owner
* @param operator Contract operator
* @param weth WETH address
* @param usdb USDB address
*/
constructor(address blast, address owner, address operator, address weth, address usdb) {
_grantRole(DEFAULT_ADMIN_ROLE, owner);
_grantRole(OPERATOR_ROLE, owner);
_grantRole(OPERATOR_ROLE, operator);
IBlast(blast).configure(IBlast__YieldMode.CLAIMABLE, IBlast__GasMode.CLAIMABLE, owner);
IERC20Rebasing(weth).configure(IERC20Rebasing__YieldMode.CLAIMABLE);
IERC20Rebasing(usdb).configure(IERC20Rebasing__YieldMode.CLAIMABLE);
WETH = weth;
USDB = usdb;
}
/**
* @notice Set fee distribution compositions.
* Total composition must be 100%.
* Only callable by the owner.
*
* @param receivers Array of fee receivers
*/
function setDistributions(address token, FeeReceiver[] calldata receivers) external onlyRole(DEFAULT_ADMIN_ROLE) {
uint256 length = receivers.length;
if (length == 0) {
revert EmptyArray();
}
delete distributions[token];
uint256 totalComposition;
for (uint256 i; i < length; ++i) {
uint256 composition = receivers[i].composition;
if (composition == 0) {
revert ZeroComposition();
}
totalComposition += composition;
distributions[token].push(receivers[i]);
}
if (totalComposition != 10_000) {
revert NotOneHundredPercent();
}
emit DistributionsSet(token, receivers);
}
/**
* @notice Withdraw ETH. Only callable by the owner.
* @param receiver The receiver
*/
function withdrawETH(address receiver) external onlyRole(DEFAULT_ADMIN_ROLE) {
uint256 balance = address(this).balance;
if (balance == 0) {
revert ZeroBalance();
}
_transferETHAndWrapIfFailWithGasLimit(WETH, receiver, balance, gasleft());
emit ETHWithdrawn(receiver, balance);
}
/**
* @notice Withdraw ERC-20 token. Only callable by the owner.
* @param token Token address
* @param receiver The receiver
*/
function withdrawToken(address token, address receiver) external onlyRole(DEFAULT_ADMIN_ROLE) {
uint256 balance = IERC20(token).balanceOf(address(this));
if (balance == 0) {
revert ZeroBalance();
}
_executeERC20DirectTransfer(token, receiver, balance);
emit TokenWithdrawn(receiver, token, balance);
}
/**
* @notice Distribute ERC-20 token to multiple recipients.
* @param token Token address
*/
function distributeToken(address token) external onlyRole(OPERATOR_ROLE) {
uint256 balance = IERC20(token).balanceOf(address(this));
if (balance == 0) {
revert ZeroBalance();
}
uint256 distributionsCount = distributions[token].length;
Transfer[] memory transfers = new Transfer[](distributionsCount);
for (uint256 i; i < distributionsCount; ++i) {
FeeReceiver memory receiver = distributions[token][i];
uint256 amount = (balance * receiver.composition) / 10_000;
if (amount == 0) {
revert ZeroTransferAmount();
}
_executeERC20DirectTransfer(token, receiver.recipient, amount);
transfers[i] = Transfer(receiver.recipient, amount);
}
emit TokenDistributed(token, transfers);
}
/**
* @notice Claim Blast yield. Only callable by the owner.
* @param receiver The receiver
*/
function claim(address receiver) external onlyRole(DEFAULT_ADMIN_ROLE) {
uint256 claimableWETH = IERC20Rebasing(WETH).getClaimableAmount(address(this));
if (claimableWETH != 0) {
IERC20Rebasing(WETH).claim(receiver, claimableWETH);
}
uint256 claimableUSDB = IERC20Rebasing(USDB).getClaimableAmount(address(this));
if (claimableUSDB != 0) {
IERC20Rebasing(USDB).claim(receiver, claimableUSDB);
}
}
/**
* @notice Distribute received ETH to multiple recipients.
* If distributions are not set, the ETH will stay in the contract.
*/
receive() external payable {
uint256 distributionsLength = distributions[WETH].length;
if (distributionsLength > 0) {
Transfer[] memory transfers = new Transfer[](distributionsLength);
for (uint256 i; i < distributionsLength; ++i) {
FeeReceiver memory receiver = distributions[WETH][i];
uint256 amount = (msg.value * receiver.composition) / 10_000;
if (amount == 0) {
revert ZeroTransferAmount();
}
_transferETHAndWrapIfFailWithGasLimit(WETH, receiver.recipient, amount, gasleft());
transfers[i] = Transfer(receiver.recipient, amount);
}
emit ETHDistributed(transfers);
}
}
}// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; /** * @notice It is emitted if the call recipient is not a contract. */ error NotAContract();
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; /** * @notice It is emitted if the ETH transfer fails. */ error ETHTransferFail(); /** * @notice It is emitted if the ERC20 approval fails. */ error ERC20ApprovalFail(); /** * @notice It is emitted if the ERC20 transfer fails. */ error ERC20TransferFail(); /** * @notice It is emitted if the ERC20 transferFrom fails. */ error ERC20TransferFromFail(); /** * @notice It is emitted if the ERC721 transferFrom fails. */ error ERC721TransferFromFail(); /** * @notice It is emitted if the ERC1155 safeTransferFrom fails. */ error ERC1155SafeTransferFromFail(); /** * @notice It is emitted if the ERC1155 safeBatchTransferFrom fails. */ error ERC1155SafeBatchTransferFromFail();
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;
interface IWETH {
function deposit() external payable;
function transfer(address dst, uint256 wad) external returns (bool);
function withdraw(uint256 wad) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
// Interfaces
import {IERC20} from "../interfaces/generic/IERC20.sol";
// Errors
import {ERC20TransferFail, ERC20TransferFromFail} from "../errors/LowLevelErrors.sol";
import {NotAContract} from "../errors/GenericErrors.sol";
/**
* @title LowLevelERC20Transfer
* @notice This contract contains low-level calls to transfer ERC20 tokens.
* @author LooksRare protocol team (👀,💎)
*/
contract LowLevelERC20Transfer {
/**
* @notice Execute ERC20 transferFrom
* @param currency Currency address
* @param from Sender address
* @param to Recipient address
* @param amount Amount to transfer
*/
function _executeERC20TransferFrom(address currency, address from, address to, uint256 amount) internal {
if (currency.code.length == 0) {
revert NotAContract();
}
(bool status, bytes memory data) = currency.call(abi.encodeCall(IERC20.transferFrom, (from, to, amount)));
if (!status) {
revert ERC20TransferFromFail();
}
if (data.length > 0) {
if (!abi.decode(data, (bool))) {
revert ERC20TransferFromFail();
}
}
}
/**
* @notice Execute ERC20 (direct) transfer
* @param currency Currency address
* @param to Recipient address
* @param amount Amount to transfer
*/
function _executeERC20DirectTransfer(address currency, address to, uint256 amount) internal {
if (currency.code.length == 0) {
revert NotAContract();
}
(bool status, bytes memory data) = currency.call(abi.encodeCall(IERC20.transfer, (to, amount)));
if (!status) {
revert ERC20TransferFail();
}
if (data.length > 0) {
if (!abi.decode(data, (bool))) {
revert ERC20TransferFail();
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
// Interfaces
import {IWETH} from "../interfaces/generic/IWETH.sol";
/**
* @title LowLevelWETH
* @notice This contract contains a function to transfer ETH with an option to wrap to WETH.
* If the ETH transfer fails within a gas limit, the amount in ETH is wrapped to WETH and then transferred.
* @author LooksRare protocol team (👀,💎)
*/
contract LowLevelWETH {
/**
* @notice It transfers ETH to a recipient with a specified gas limit.
* If the original transfers fails, it wraps to WETH and transfers the WETH to recipient.
* @param _WETH WETH address
* @param _to Recipient address
* @param _amount Amount to transfer
* @param _gasLimit Gas limit to perform the ETH transfer
*/
function _transferETHAndWrapIfFailWithGasLimit(
address _WETH,
address _to,
uint256 _amount,
uint256 _gasLimit
) internal {
bool status;
assembly {
status := call(_gasLimit, _to, _amount, 0, 0, 0, 0)
}
if (!status) {
IWETH(_WETH).deposit{value: _amount}();
IWETH(_WETH).transfer(_to, _amount);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)
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:
*
* ```solidity
* 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}:
*
* ```solidity
* 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. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
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);
_;
}
/**
* @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 virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `_msgSender()` is missing `role`.
* Overriding this function changes the behavior of the {onlyRole} modifier.
*
* Format of the revert message is described in {_checkRole}.
*
* _Available since v4.6._
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @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 virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(account),
" 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 virtual 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.
*
* May emit a {RoleGranted} event.
*/
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.
*
* May emit a {RoleRevoked} event.
*/
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 revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*
* May emit a {RoleRevoked} event.
*/
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.
*
* May emit a {RoleGranted} event.
*
* [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}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
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);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
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
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
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
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
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: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1, "Math: mulDiv overflow");
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
import "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toString(int256 value) internal pure returns (string memory) {
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @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] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return keccak256(bytes(a)) == keccak256(bytes(b));
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
enum YieldMode {
AUTOMATIC,
VOID,
CLAIMABLE
}
enum GasMode {
VOID,
CLAIMABLE
}
interface IBlast {
// configure
function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
function configure(YieldMode _yield, GasMode gasMode, address governor) external;
// base configuration options
function configureClaimableYield() external;
function configureClaimableYieldOnBehalf(address contractAddress) external;
function configureAutomaticYield() external;
function configureAutomaticYieldOnBehalf(address contractAddress) external;
function configureVoidYield() external;
function configureVoidYieldOnBehalf(address contractAddress) external;
function configureClaimableGas() external;
function configureClaimableGasOnBehalf(address contractAddress) external;
function configureVoidGas() external;
function configureVoidGasOnBehalf(address contractAddress) external;
function configureGovernor(address _governor) external;
function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;
// claim yield
function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);
// claim gas
function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
function claimGasAtMinClaimRate(
address contractAddress,
address recipientOfGas,
uint256 minClaimRateBips
) external returns (uint256);
function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
function claimGas(
address contractAddress,
address recipientOfGas,
uint256 gasToClaim,
uint256 gasSecondsToConsume
) external returns (uint256);
// read functions
function readClaimableYield(address contractAddress) external view returns (uint256);
function readYieldConfiguration(address contractAddress) external view returns (uint8);
function readGasParams(
address contractAddress
) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
enum YieldMode {
AUTOMATIC,
VOID,
CLAIMABLE
}
interface IERC20Rebasing {
// changes the yield mode of the caller and update the balance
// to reflect the configuration
function configure(YieldMode) external returns (uint256);
// "claimable" yield mode accounts can call this this claim their yield
// to another address
function claim(address recipient, uint256 amount) external returns (uint256);
// read the claimable amount for an account
function getClaimableAmount(address account) external view returns (uint256);
}{
"viaIR": true,
"optimizer": {
"enabled": true,
"runs": 888888
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"blast","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"weth","type":"address"},{"internalType":"address","name":"usdb","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC20TransferFail","type":"error"},{"inputs":[],"name":"EmptyArray","type":"error"},{"inputs":[],"name":"NoReceivers","type":"error"},{"inputs":[],"name":"NotAContract","type":"error"},{"inputs":[],"name":"NotOneHundredPercent","type":"error"},{"inputs":[],"name":"ZeroBalance","type":"error"},{"inputs":[],"name":"ZeroComposition","type":"error"},{"inputs":[],"name":"ZeroTransferAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"composition","type":"uint256"}],"indexed":false,"internalType":"struct FeeSplitterV2.FeeReceiver[]","name":"receivers","type":"tuple[]"}],"name":"DistributionsSet","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct FeeSplitterV2.Transfer[]","name":"transfers","type":"tuple[]"}],"name":"ETHDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHWithdrawn","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct FeeSplitterV2.Transfer[]","name":"transfers","type":"tuple[]"}],"name":"TokenDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenWithdrawn","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"distributeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"distributions","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"composition","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","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":[{"internalType":"address","name":"token","type":"address"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"composition","type":"uint256"}],"internalType":"struct FeeSplitterV2.FeeReceiver[]","name":"receivers","type":"tuple[]"}],"name":"setDistributions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"receiver","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60c060409080825234620001c0575f9060a0816200224080380380916200002782856200028a565b833981010312620001c0576200003d81620002ae565b91602090620000b162000052838501620002ae565b6200005f878601620002ae565b906200007c60806200007460608901620002ae565b9701620002ae565b965f80525f8652620000b7895f209360018060a01b0395848780961696875f528a5260ff8d5f205416156200025357620002c3565b620002c3565b1690813b15620001c0575f91606483928a51948593849263c8992e6160e01b8452600260048501526001602485015260448401525af18015620002495762000218575b508551631a33757d60e01b80825260026004830152908481602481878a88165af180156200020e57918493918693620001d7575b50602490895195869384928352600260048401528a165af1908115620001cc575062000199575b505060805260a05251611ec0908162000360823960805181818161027d01528181610a7e01528181610e190152611430015260a0518181816102ce01526107130152f35b813d8311620001c4575b620001af81836200028a565b81010312620001c0575f8062000155565b5f80fd5b503d620001a3565b8651903d90823e3d90fd5b9092809294503d831162000206575b620001f281836200028a565b81010312620001c057829184915f6200012e565b503d620001e6565b88513d86823e3d90fd5b9091506001600160401b038111620002355785525f905f620000fa565b634e487b7160e01b5f52604160045260245ffd5b87513d5f823e3d90fd5b5f80525f8a528c5f20875f528a528c5f20600160ff1982541617905533875f5f80516020620022208339815191528180a4620002c3565b601f909101601f19168101906001600160401b038211908210176200023557604052565b51906001600160a01b0382168203620001c057565b6001600160a01b03165f8181527fee57cd81e84075558e8fcc182a1f4393f91fc97f963a136e66b7f949a62f319f60205260409020547f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929919060ff161562000329575050565b815f525f60205260405f20815f5260205260405f20600160ff1982541617905533915f80516020620022208339815191525f80a456fe60806040526004361015610022575b3615610018575f80fd5b61002061142e565b005b5f3560e01c806301ffc9a7146101115780631e83409a1461010c578063248a9ca3146101075780632d9b4b25146101025780632f2ff15d146100fd57806331a0edec146100f857806336568abe146100f35780633aeac4e1146100ee57806358e76d21146100e9578063690d8320146100e457806386d74037146100df57806391d14854146100da578063a217fddf146100d5578063ad5c4648146100d05763d547741f0361000e57610e3d565b610dcf565b610d97565b610d1a565b610ad2565b610a0a565b610987565b61081f565b610737565b6106c9565b610593565b6104ef565b61045a565b6101f2565b346101d05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d0576004357fffffffff0000000000000000000000000000000000000000000000000000000081168091036101d057807f7965db0b00000000000000000000000000000000000000000000000000000000602092149081156101a6575b506040519015158152f35b7f01ffc9a7000000000000000000000000000000000000000000000000000000009150145f61019b565b5f80fd5b73ffffffffffffffffffffffffffffffffffffffff8116036101d057565b346101d0576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d05760043561022e816101d4565b6102366115b1565b6040517fe12f3a6100000000000000000000000000000000000000000000000000000000808252306004830152919073ffffffffffffffffffffffffffffffffffffffff907f00000000000000000000000000000000000000000000000000000000000000008216908581602481855afa80156103965786915f9161043d575b50806103b8575b5050604051938452503060048401527f000000000000000000000000000000000000000000000000000000000000000016918381602481865afa908115610396575f9161039b575b508061030d57005b6040517faad3ec9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9290921660048301526024820152908290829060449082905f905af180156103965761037057005b8161002092903d1061038f575b6103878183610efc565b810190610f3d565b503d61037d565b610f4c565b6103b29150843d861161038f576103878183610efc565b5f610305565b6040517faad3ec9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602481019190915291829060449082905f905af1801561039657610420575b84816102bd565b61043690853d871161038f576103878183610efc565b505f610419565b6104549150823d841161038f576103878183610efc565b5f6102b6565b346101d05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d0576004355f525f6020526020600160405f200154604051908152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b80548210156104ea575f5260205f209060011b01905f90565b6104a4565b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d05760043561052a816101d4565b60243573ffffffffffffffffffffffffffffffffffffffff8092165f52600160205260405f2080548210156101d057600191610565916104d1565b508054910154604080519390921673ffffffffffffffffffffffffffffffffffffffff168352602083015290f35b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d0576024356004356105d1826101d4565b805f525f6020526105e8600160405f200154611841565b805f525f60205260ff61061c8360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54161561062557005b805f525f6020526106578260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b5f9103126101d057565b346101d0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057602435610772816101d4565b3373ffffffffffffffffffffffffffffffffffffffff82160361079b576100209060043561190f565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d05760043561085a816101d4565b60243590610867826101d4565b61086f6115b1565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529160208360248173ffffffffffffffffffffffffffffffffffffffff86165afa928315610396575f93610966575b50821561093c57610937836109007f8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e5620958486611a59565b6040519384938460409194939294606082019573ffffffffffffffffffffffffffffffffffffffff80921683521660208201520152565b0390a1005b60046040517f669567ea000000000000000000000000000000000000000000000000000000008152fd5b61098091935060203d60201161038f576103878183610efc565b915f6108c9565b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d0576004356109c2816101d4565b6024359067ffffffffffffffff908183116101d057366023840112156101d05782600401359182116101d0573660248360061b850101116101d0576024610020930190610f57565b346101d05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057600435610a45816101d4565b610a4d6115b1565b47801561093c577f94b2de810873337ed265c5f8cf98c9cffefa06b8607f9a2f1fbaebdfbcfbef1c91610aa25a83837f0000000000000000000000000000000000000000000000000000000000000000611b56565b6040805173ffffffffffffffffffffffffffffffffffffffff909216825260208201929092529081908101610937565b346101d0576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057600490600435610b11816101d4565b610b19611756565b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015292808460248173ffffffffffffffffffffffffffffffffffffffff87165afa938415610396575f94610cfb575b50831561093c57610ba28373ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b5491610bad836112d6565b945f5b848110610be8576040517fc353cf4d8bce79c17406ed71806eb713bef0f3e2b158e170fb64d2f236cc92ea90806109378a8a836113ed565b610c22610c1c82610c178973ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b6104d1565b50611351565b610c3a610c3286830151856110f0565b612710900490565b908115610cd35790610c8b82610c7183610c6b600197965173ffffffffffffffffffffffffffffffffffffffff1690565b8c611a59565b5173ffffffffffffffffffffffffffffffffffffffff1690565b90610cb3610c976112af565b73ffffffffffffffffffffffffffffffffffffffff9093168352565b86820152610cc1828a611385565b52610ccc8189611385565b5001610bb0565b8985517f29c54429000000000000000000000000000000000000000000000000000000008152fd5b81610d139295503d861161038f576103878183610efc565b925f610b73565b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057602060ff610d8b602435610d5c816101d4565b6004355f525f845260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54166040519015158152f35b346101d0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d05760206040515f8152f35b346101d0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057610020602435600435610e7e826101d4565b805f525f602052610e95600160405f200154611841565b61190f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040810190811067ffffffffffffffff821117610ee357604052565b610e9a565b67ffffffffffffffff8111610ee357604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610ee357604052565b908160209103126101d0575190565b6040513d5f823e3d90fd5b610f5f6115b1565b821561109957610f95610f908273ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b611108565b5f805b84821061100957612710915003610fdf57610fda7f98b53af9f2c91284f1d03e5ccd746b4efa195925c47e96435fb1bcd081a2d1609360405193849384611233565b0390a1565b60046040517f396d8287000000000000000000000000000000000000000000000000000000008152fd5b602061101683878761116d565b013590811561106f5760019161102b9161117d565b916110686110578573ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b61106283898961116d565b9061118a565b0190610f98565b60046040517fff3f95ef000000000000000000000000000000000000000000000000000000008152fd5b60046040517f521299a9000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8181029291811591840414171561110357565b6110c3565b8054905f815581611117575050565b6001907f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168303611103575f5260205f209160011b8201915b82811061115d57505050565b5f80825582820155600201611151565b91908110156104ea5760061b0190565b9190820180921161110357565b805468010000000000000000811015610ee3576111ac916001820181556104d1565b9190916112075760208173ffffffffffffffffffffffffffffffffffffffff600193356111d8816101d4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008554161784550135910155565b7f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b90919260406060604084019373ffffffffffffffffffffffffffffffffffffffff80961681528360209560406020840152520194925f905b83821061127b5750505050505090565b9091929394969583806001928a8935611293816101d4565b168152888501358582015298999801979601949392019061126b565b604051906112bc82610ec7565b565b67ffffffffffffffff8111610ee35760051b60200190565b906112e0826112be565b6040906112f06040519182610efc565b8381527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe061131e82956112be565b01915f5b83811061132f5750505050565b602090825161133d81610ec7565b5f8152825f81830152828601015201611322565b9060405161135e81610ec7565b60206001829473ffffffffffffffffffffffffffffffffffffffff81541684520154910152565b80518210156104ea5760209160051b010190565b9081518082526020808093019301915f5b8281106113b8575050505090565b8351805173ffffffffffffffffffffffffffffffffffffffff16865282015185830152604090940193928101926001016113aa565b60409073ffffffffffffffffffffffffffffffffffffffff61141a94931681528160208201520190611399565b90565b90602061141a928181520190611399565b7f00000000000000000000000000000000000000000000000000000000000000006114778173ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b5480611481575050565b61148a816112d6565b915f5b8281106114c857505050610fda7f74e25dc4ff8b586f5de80652d544515aad542a49061c99fb77b2acff3583b7a1916040519182918261141d565b6114f7610c1c82610c178573ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b90602061150a610c3282850151346110f0565b80156115875761154084610c716115376001975173ffffffffffffffffffffffffffffffffffffffff1690565b845a918a611b56565b9161156861154c6112af565b73ffffffffffffffffffffffffffffffffffffffff9094168452565b8201526115758287611385565b526115808186611385565b500161148d565b60046040517f29c54429000000000000000000000000000000000000000000000000000000008152fd5b335f9081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16156115e957565b6115f233611ded565b5f906115fc611d03565b91603061160884611d2f565b53607861161484611d3c565b5360415b600181116117085761170460486116d2856116a6886116378815611d88565b6040519485937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152611677815180926020603789019101611c81565b84017f206973206d697373696e6720726f6c652000000000000000000000000000000060378201520190611ca2565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610efc565b6040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260048301611cb9565b0390fd5b90600f81169060108210156104ea577f3031323334353637383961626364656600000000000000000000000000000000611751921a6117478487611d4c565b5360041c91611d5d565b611618565b335f9081527fee57cd81e84075558e8fcc182a1f4393f91fc97f963a136e66b7f949a62f319f60205260409020547f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9299060ff16156117b15750565b6117ba33611ded565b6117c2611d03565b9160306117ce84611d2f565b5360786117da84611d3c565b5360415b600181116117fd5761170460486116d2856116a6886116378815611d88565b90600f81169060108210156104ea577f303132333435363738396162636465660000000000000000000000000000000061183c921a6117478487611d4c565b6117de565b805f525f60205260ff6118753360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54161561187f5750565b61188833611ded565b611890611d03565b91603061189c84611d2f565b5360786118a884611d3c565b5360415b600181116118cb5761170460486116d2856116a6886116378815611d88565b90600f81169060108210156104ea577f303132333435363738396162636465660000000000000000000000000000000061190a921a6117478487611d4c565b6118ac565b805f525f60205260ff6119438360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b541661194d575050565b805f525f60205261197f8260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b3d15611a3c573d9067ffffffffffffffff8211610ee35760405191611a3160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610efc565b82523d5f602084013e565b606090565b908160209103126101d0575180151581036101d05790565b919091803b15611b2c576040517fa9059cbb000000000000000000000000000000000000000000000000000000006020820190815273ffffffffffffffffffffffffffffffffffffffff909416602482015260448101929092525f9283928390611ac681606481016116a6565b51925af1611ad26119e4565b9015611b0257805180611ae3575050565b81602080611af893611afc9501019101611a41565b1590565b611b0257565b60046040517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b60046040517f09ee12d5000000000000000000000000000000000000000000000000000000008152fd5b9091925f8080808787611b6896f11590565b611b7157505050565b73ffffffffffffffffffffffffffffffffffffffff1691823b156101d057604051927fd0e30db00000000000000000000000000000000000000000000000000000000084525f8460048185855af192831561039657611c2c94602094611c68575b505f6040518096819582947fa9059cbb000000000000000000000000000000000000000000000000000000008452600484016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b03925af1801561039657611c3d5750565b611c5e9060203d602011611c61575b611c568183610efc565b810190611a41565b50565b503d611c4c565b80611c75611c7b92610ee8565b806106bf565b5f611bd2565b5f5b838110611c925750505f910152565b8181015183820152602001611c83565b90611cb560209282815194859201611c81565b0190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60409360208452611cfc8151809281602088015260208888019101611c81565b0116010190565b604051906080820182811067ffffffffffffffff821117610ee357604052604282526060366020840137565b8051156104ea5760200190565b8051600110156104ea5760210190565b9081518110156104ea570160200190565b8015611103577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b15611d8f57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff821117610ee357604052602a825260403660208401376030611e2283611d2f565b536078611e2e83611d3c565b536029905b60018211611e465761141a915015611d88565b600f81169060108210156104ea577f3031323334353637383961626364656600000000000000000000000000000000611e84921a6117478486611d4c565b90611e3356fea26469706673582212206c204e1f5badb2fe4a9b2d50f49ba3a05c1938ea4f5b0a453b62f7644262780b64736f6c634300081700332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d00000000000000000000000043000000000000000000000000000000000000020000000000000000000000002c64e6ee1dd9fc2a0db6a6b1aa2c3f163c7a2c780000000000000000000000002c64e6ee1dd9fc2a0db6a6b1aa2c3f163c7a2c7800000000000000000000000043000000000000000000000000000000000000040000000000000000000000004300000000000000000000000000000000000003
Deployed Bytecode
0x60806040526004361015610022575b3615610018575f80fd5b61002061142e565b005b5f3560e01c806301ffc9a7146101115780631e83409a1461010c578063248a9ca3146101075780632d9b4b25146101025780632f2ff15d146100fd57806331a0edec146100f857806336568abe146100f35780633aeac4e1146100ee57806358e76d21146100e9578063690d8320146100e457806386d74037146100df57806391d14854146100da578063a217fddf146100d5578063ad5c4648146100d05763d547741f0361000e57610e3d565b610dcf565b610d97565b610d1a565b610ad2565b610a0a565b610987565b61081f565b610737565b6106c9565b610593565b6104ef565b61045a565b6101f2565b346101d05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d0576004357fffffffff0000000000000000000000000000000000000000000000000000000081168091036101d057807f7965db0b00000000000000000000000000000000000000000000000000000000602092149081156101a6575b506040519015158152f35b7f01ffc9a7000000000000000000000000000000000000000000000000000000009150145f61019b565b5f80fd5b73ffffffffffffffffffffffffffffffffffffffff8116036101d057565b346101d0576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d05760043561022e816101d4565b6102366115b1565b6040517fe12f3a6100000000000000000000000000000000000000000000000000000000808252306004830152919073ffffffffffffffffffffffffffffffffffffffff907f00000000000000000000000043000000000000000000000000000000000000048216908581602481855afa80156103965786915f9161043d575b50806103b8575b5050604051938452503060048401527f000000000000000000000000430000000000000000000000000000000000000316918381602481865afa908115610396575f9161039b575b508061030d57005b6040517faad3ec9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9290921660048301526024820152908290829060449082905f905af180156103965761037057005b8161002092903d1061038f575b6103878183610efc565b810190610f3d565b503d61037d565b610f4c565b6103b29150843d861161038f576103878183610efc565b5f610305565b6040517faad3ec9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602481019190915291829060449082905f905af1801561039657610420575b84816102bd565b61043690853d871161038f576103878183610efc565b505f610419565b6104549150823d841161038f576103878183610efc565b5f6102b6565b346101d05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d0576004355f525f6020526020600160405f200154604051908152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b80548210156104ea575f5260205f209060011b01905f90565b6104a4565b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d05760043561052a816101d4565b60243573ffffffffffffffffffffffffffffffffffffffff8092165f52600160205260405f2080548210156101d057600191610565916104d1565b508054910154604080519390921673ffffffffffffffffffffffffffffffffffffffff168352602083015290f35b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d0576024356004356105d1826101d4565b805f525f6020526105e8600160405f200154611841565b805f525f60205260ff61061c8360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54161561062557005b805f525f6020526106578260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b5f9103126101d057565b346101d0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004300000000000000000000000000000000000003168152f35b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057602435610772816101d4565b3373ffffffffffffffffffffffffffffffffffffffff82160361079b576100209060043561190f565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d05760043561085a816101d4565b60243590610867826101d4565b61086f6115b1565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529160208360248173ffffffffffffffffffffffffffffffffffffffff86165afa928315610396575f93610966575b50821561093c57610937836109007f8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e5620958486611a59565b6040519384938460409194939294606082019573ffffffffffffffffffffffffffffffffffffffff80921683521660208201520152565b0390a1005b60046040517f669567ea000000000000000000000000000000000000000000000000000000008152fd5b61098091935060203d60201161038f576103878183610efc565b915f6108c9565b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d0576004356109c2816101d4565b6024359067ffffffffffffffff908183116101d057366023840112156101d05782600401359182116101d0573660248360061b850101116101d0576024610020930190610f57565b346101d05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057600435610a45816101d4565b610a4d6115b1565b47801561093c577f94b2de810873337ed265c5f8cf98c9cffefa06b8607f9a2f1fbaebdfbcfbef1c91610aa25a83837f0000000000000000000000004300000000000000000000000000000000000004611b56565b6040805173ffffffffffffffffffffffffffffffffffffffff909216825260208201929092529081908101610937565b346101d0576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057600490600435610b11816101d4565b610b19611756565b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015292808460248173ffffffffffffffffffffffffffffffffffffffff87165afa938415610396575f94610cfb575b50831561093c57610ba28373ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b5491610bad836112d6565b945f5b848110610be8576040517fc353cf4d8bce79c17406ed71806eb713bef0f3e2b158e170fb64d2f236cc92ea90806109378a8a836113ed565b610c22610c1c82610c178973ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b6104d1565b50611351565b610c3a610c3286830151856110f0565b612710900490565b908115610cd35790610c8b82610c7183610c6b600197965173ffffffffffffffffffffffffffffffffffffffff1690565b8c611a59565b5173ffffffffffffffffffffffffffffffffffffffff1690565b90610cb3610c976112af565b73ffffffffffffffffffffffffffffffffffffffff9093168352565b86820152610cc1828a611385565b52610ccc8189611385565b5001610bb0565b8985517f29c54429000000000000000000000000000000000000000000000000000000008152fd5b81610d139295503d861161038f576103878183610efc565b925f610b73565b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057602060ff610d8b602435610d5c816101d4565b6004355f525f845260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54166040519015158152f35b346101d0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d05760206040515f8152f35b346101d0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004300000000000000000000000000000000000004168152f35b346101d05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d057610020602435600435610e7e826101d4565b805f525f602052610e95600160405f200154611841565b61190f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040810190811067ffffffffffffffff821117610ee357604052565b610e9a565b67ffffffffffffffff8111610ee357604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610ee357604052565b908160209103126101d0575190565b6040513d5f823e3d90fd5b610f5f6115b1565b821561109957610f95610f908273ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b611108565b5f805b84821061100957612710915003610fdf57610fda7f98b53af9f2c91284f1d03e5ccd746b4efa195925c47e96435fb1bcd081a2d1609360405193849384611233565b0390a1565b60046040517f396d8287000000000000000000000000000000000000000000000000000000008152fd5b602061101683878761116d565b013590811561106f5760019161102b9161117d565b916110686110578573ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b61106283898961116d565b9061118a565b0190610f98565b60046040517fff3f95ef000000000000000000000000000000000000000000000000000000008152fd5b60046040517f521299a9000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8181029291811591840414171561110357565b6110c3565b8054905f815581611117575050565b6001907f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168303611103575f5260205f209160011b8201915b82811061115d57505050565b5f80825582820155600201611151565b91908110156104ea5760061b0190565b9190820180921161110357565b805468010000000000000000811015610ee3576111ac916001820181556104d1565b9190916112075760208173ffffffffffffffffffffffffffffffffffffffff600193356111d8816101d4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008554161784550135910155565b7f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b90919260406060604084019373ffffffffffffffffffffffffffffffffffffffff80961681528360209560406020840152520194925f905b83821061127b5750505050505090565b9091929394969583806001928a8935611293816101d4565b168152888501358582015298999801979601949392019061126b565b604051906112bc82610ec7565b565b67ffffffffffffffff8111610ee35760051b60200190565b906112e0826112be565b6040906112f06040519182610efc565b8381527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe061131e82956112be565b01915f5b83811061132f5750505050565b602090825161133d81610ec7565b5f8152825f81830152828601015201611322565b9060405161135e81610ec7565b60206001829473ffffffffffffffffffffffffffffffffffffffff81541684520154910152565b80518210156104ea5760209160051b010190565b9081518082526020808093019301915f5b8281106113b8575050505090565b8351805173ffffffffffffffffffffffffffffffffffffffff16865282015185830152604090940193928101926001016113aa565b60409073ffffffffffffffffffffffffffffffffffffffff61141a94931681528160208201520190611399565b90565b90602061141a928181520190611399565b7f00000000000000000000000043000000000000000000000000000000000000046114778173ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b5480611481575050565b61148a816112d6565b915f5b8281106114c857505050610fda7f74e25dc4ff8b586f5de80652d544515aad542a49061c99fb77b2acff3583b7a1916040519182918261141d565b6114f7610c1c82610c178573ffffffffffffffffffffffffffffffffffffffff165f52600160205260405f2090565b90602061150a610c3282850151346110f0565b80156115875761154084610c716115376001975173ffffffffffffffffffffffffffffffffffffffff1690565b845a918a611b56565b9161156861154c6112af565b73ffffffffffffffffffffffffffffffffffffffff9094168452565b8201526115758287611385565b526115808186611385565b500161148d565b60046040517f29c54429000000000000000000000000000000000000000000000000000000008152fd5b335f9081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16156115e957565b6115f233611ded565b5f906115fc611d03565b91603061160884611d2f565b53607861161484611d3c565b5360415b600181116117085761170460486116d2856116a6886116378815611d88565b6040519485937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152611677815180926020603789019101611c81565b84017f206973206d697373696e6720726f6c652000000000000000000000000000000060378201520190611ca2565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610efc565b6040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260048301611cb9565b0390fd5b90600f81169060108210156104ea577f3031323334353637383961626364656600000000000000000000000000000000611751921a6117478487611d4c565b5360041c91611d5d565b611618565b335f9081527fee57cd81e84075558e8fcc182a1f4393f91fc97f963a136e66b7f949a62f319f60205260409020547f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9299060ff16156117b15750565b6117ba33611ded565b6117c2611d03565b9160306117ce84611d2f565b5360786117da84611d3c565b5360415b600181116117fd5761170460486116d2856116a6886116378815611d88565b90600f81169060108210156104ea577f303132333435363738396162636465660000000000000000000000000000000061183c921a6117478487611d4c565b6117de565b805f525f60205260ff6118753360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54161561187f5750565b61188833611ded565b611890611d03565b91603061189c84611d2f565b5360786118a884611d3c565b5360415b600181116118cb5761170460486116d2856116a6886116378815611d88565b90600f81169060108210156104ea577f303132333435363738396162636465660000000000000000000000000000000061190a921a6117478487611d4c565b6118ac565b805f525f60205260ff6119438360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b541661194d575050565b805f525f60205261197f8260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b3d15611a3c573d9067ffffffffffffffff8211610ee35760405191611a3160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610efc565b82523d5f602084013e565b606090565b908160209103126101d0575180151581036101d05790565b919091803b15611b2c576040517fa9059cbb000000000000000000000000000000000000000000000000000000006020820190815273ffffffffffffffffffffffffffffffffffffffff909416602482015260448101929092525f9283928390611ac681606481016116a6565b51925af1611ad26119e4565b9015611b0257805180611ae3575050565b81602080611af893611afc9501019101611a41565b1590565b611b0257565b60046040517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b60046040517f09ee12d5000000000000000000000000000000000000000000000000000000008152fd5b9091925f8080808787611b6896f11590565b611b7157505050565b73ffffffffffffffffffffffffffffffffffffffff1691823b156101d057604051927fd0e30db00000000000000000000000000000000000000000000000000000000084525f8460048185855af192831561039657611c2c94602094611c68575b505f6040518096819582947fa9059cbb000000000000000000000000000000000000000000000000000000008452600484016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b03925af1801561039657611c3d5750565b611c5e9060203d602011611c61575b611c568183610efc565b810190611a41565b50565b503d611c4c565b80611c75611c7b92610ee8565b806106bf565b5f611bd2565b5f5b838110611c925750505f910152565b8181015183820152602001611c83565b90611cb560209282815194859201611c81565b0190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60409360208452611cfc8151809281602088015260208888019101611c81565b0116010190565b604051906080820182811067ffffffffffffffff821117610ee357604052604282526060366020840137565b8051156104ea5760200190565b8051600110156104ea5760210190565b9081518110156104ea570160200190565b8015611103577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b15611d8f57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff821117610ee357604052602a825260403660208401376030611e2283611d2f565b536078611e2e83611d3c565b536029905b60018211611e465761141a915015611d88565b600f81169060108210156104ea577f3031323334353637383961626364656600000000000000000000000000000000611e84921a6117478486611d4c565b90611e3356fea26469706673582212206c204e1f5badb2fe4a9b2d50f49ba3a05c1938ea4f5b0a453b62f7644262780b64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000043000000000000000000000000000000000000020000000000000000000000002c64e6ee1dd9fc2a0db6a6b1aa2c3f163c7a2c780000000000000000000000002c64e6ee1dd9fc2a0db6a6b1aa2c3f163c7a2c7800000000000000000000000043000000000000000000000000000000000000040000000000000000000000004300000000000000000000000000000000000003
-----Decoded View---------------
Arg [0] : blast (address): 0x4300000000000000000000000000000000000002
Arg [1] : owner (address): 0x2C64e6Ee1Dd9Fc2a0Db6a6B1aa2c3f163C7A2C78
Arg [2] : operator (address): 0x2C64e6Ee1Dd9Fc2a0Db6a6B1aa2c3f163C7A2C78
Arg [3] : weth (address): 0x4300000000000000000000000000000000000004
Arg [4] : usdb (address): 0x4300000000000000000000000000000000000003
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000004300000000000000000000000000000000000002
Arg [1] : 0000000000000000000000002c64e6ee1dd9fc2a0db6a6b1aa2c3f163c7a2c78
Arg [2] : 0000000000000000000000002c64e6ee1dd9fc2a0db6a6b1aa2c3f163c7a2c78
Arg [3] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [4] : 0000000000000000000000004300000000000000000000000000000000000003
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Token Allocations
ETH
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| BLAST | 100.00% | $2,897.46 | 0.00000000000000034 | <$0.000001 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
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.