Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ClawgFeeSplitter
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable2Step.sol";
interface IWETH {
function deposit() external payable;
function balanceOf(address) external view returns (uint256);
}
contract ClawgFeeSplitter is ReentrancyGuard, Ownable2Step {
using SafeERC20 for IERC20;
uint256 public constant STAKERS_BPS = 7000;
uint256 public constant TREASURY_BPS = 3000;
uint256 public constant BPS_DENOMINATOR = 10000;
uint256 public constant MIN_DISTRIBUTE = 1e15;
address public constant WETH = 0x4200000000000000000000000000000000000006;
address public constant CLAWG = 0x06A127f0b53F83dD5d94E83D96B55a279705bB07;
address public immutable stakingContract;
address public treasury;
address[] public feeTokens;
mapping(address => bool) public isFeeToken;
event Distributed(address indexed token, uint256 toStakers, uint256 toTreasury, address indexed caller);
event TreasuryUpdated(address indexed oldTreasury, address indexed newTreasury);
event TokenAdded(address indexed token);
event ETHReceived(uint256 amount);
constructor(
address _stakingContract,
address _treasury,
address _clawgToken,
address _owner
) Ownable(_owner) {
require(_stakingContract != address(0), "Invalid staking");
require(_treasury != address(0), "Invalid treasury");
stakingContract = _stakingContract;
treasury = _treasury;
isFeeToken[WETH] = true;
feeTokens.push(WETH);
if (_clawgToken != address(0)) {
isFeeToken[_clawgToken] = true;
feeTokens.push(_clawgToken);
}
}
receive() external payable {
if (msg.value > 0) {
IWETH(WETH).deposit{value: msg.value}();
emit ETHReceived(msg.value);
}
}
function distributeAll() external nonReentrant {
for (uint256 i = 0; i < feeTokens.length; i++) {
_distribute(feeTokens[i]);
}
}
function distribute(address token) external nonReentrant {
require(isFeeToken[token], "Not a fee token");
_distribute(token);
}
function pendingFees(address token) external view returns (uint256) {
return IERC20(token).balanceOf(address(this));
}
function getFeeTokens() external view returns (address[] memory) {
return feeTokens;
}
function addFeeToken(address token) external onlyOwner {
require(token != address(0), "Invalid token");
require(!isFeeToken[token], "Already added");
isFeeToken[token] = true;
feeTokens.push(token);
emit TokenAdded(token);
}
function setTreasury(address _treasury) external onlyOwner {
require(_treasury != address(0), "Invalid treasury");
address old = treasury;
treasury = _treasury;
emit TreasuryUpdated(old, _treasury);
}
function emergencyWithdraw(address token, address to, uint256 amount) external onlyOwner {
IERC20(token).safeTransfer(to, amount);
}
function _distribute(address token) internal {
uint256 balance = IERC20(token).balanceOf(address(this));
if (balance < MIN_DISTRIBUTE) return;
uint256 toStakers = (balance * STAKERS_BPS) / BPS_DENOMINATOR;
uint256 toTreasury = balance - toStakers;
if (toStakers > 0) {
IERC20(token).safeTransfer(stakingContract, toStakers);
}
if (toTreasury > 0) {
IERC20(token).safeTransfer(treasury, toTreasury);
}
emit Distributed(token, toStakers, toTreasury, msg.sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.20;
import {Ownable} from "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This extension of the {Ownable} contract includes a two-step mechanism to transfer
* ownership, where the new owner must call {acceptOwnership} in order to replace the
* old one. This can help prevent common mistakes, such as transfers of ownership to
* incorrect accounts, or to contracts that are unable to interact with the
* permission system.
*
* The initial owner is specified at deployment time in the constructor for `Ownable`. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*
* Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
if (pendingOwner() != sender) {
revert OwnableUnauthorizedAccount(sender);
}
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)
pragma solidity >=0.6.2;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)
pragma solidity >=0.4.16;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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 v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_stakingContract","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_clawgToken","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"toStakers","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTreasury","type":"uint256"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"Distributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"TokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldTreasury","type":"address"},{"indexed":true,"internalType":"address","name":"newTreasury","type":"address"}],"name":"TreasuryUpdated","type":"event"},{"inputs":[],"name":"BPS_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLAWG","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_DISTRIBUTE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKERS_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addFeeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeAll","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":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeeTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFeeToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"pendingFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001125380380620011258339810160408190526200003491620002b4565b6001600055806001600160a01b0381166200006a57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000758162000227565b506001600160a01b038416620000c05760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964207374616b696e6760881b604482015260640162000061565b6001600160a01b0383166200010b5760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420747265617375727960801b604482015260640162000061565b6001600160a01b03808516608052600380548583166001600160a01b03199182161790915560056020527f113e300cbfcb107d961958639e10e4c56d214f1359f5d6fe43316ac71df69dbe805460ff191660019081179091556004805491820181556000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180549091167342000000000000000000000000000000000000061790558216156200021d576001600160a01b0382166000818152600560205260408120805460ff191660019081179091556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b03191690911790555b5050505062000311565b600280546001600160a01b0319169055620002428162000245565b50565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b0381168114620002af57600080fd5b919050565b60008060008060808587031215620002cb57600080fd5b620002d68562000297565b9350620002e66020860162000297565b9250620002f66040860162000297565b9150620003066060860162000297565b905092959194509250565b608051610df1620003346000396000818161045a0152610a3f0152610df16000f3fe6080604052600436106101395760003560e01c8063a04941a2116100ab578063e30c39781161006f578063e30c3978146103ef578063e60bff711461040d578063e63ea40814610428578063ee99205c14610448578063f0f442601461047c578063f2fde38b1461049c57600080fd5b8063a04941a214610366578063aa2eded21461037c578063ad5c46481461039c578063cdc73d51146103b7578063e1a45218146103d957600080fd5b806363453ae1116100fd57806363453ae1146102b6578063715018a6146102d657806379ba5097146102eb5780637acabd1a146103005780638da5cb5b146103285780638ef4403c1461034657600080fd5b806316ad82d7146101e057806325d2a3f314610225578063436596c4146102535780634c25d1971461026857806361d027b31461027e57600080fd5b366101db5734156101d9576006602160991b016001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561018657600080fd5b505af115801561019a573d6000803e3d6000fd5b50505050507f27f12abfe35860a9a927b465bb3d4a9c23c8428174b83f278fe45ed7b4da2662346040516101d091815260200190565b60405180910390a15b005b600080fd5b3480156101ec57600080fd5b506102106101fb366004610c4d565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561023157600080fd5b50610245610240366004610c4d565b6104bc565b60405190815260200161021c565b34801561025f57600080fd5b506101d961052d565b34801561027457600080fd5b50610245610bb881565b34801561028a57600080fd5b5060035461029e906001600160a01b031681565b6040516001600160a01b03909116815260200161021c565b3480156102c257600080fd5b506101d96102d1366004610c4d565b610591565b3480156102e257600080fd5b506101d961060e565b3480156102f757600080fd5b506101d9610620565b34801561030c57600080fd5b5061029e7306a127f0b53f83dd5d94e83d96b55a279705bb0781565b34801561033457600080fd5b506001546001600160a01b031661029e565b34801561035257600080fd5b5061029e610361366004610c6f565b610661565b34801561037257600080fd5b50610245611b5881565b34801561038857600080fd5b506101d9610397366004610c4d565b61068b565b3480156103a857600080fd5b5061029e6006602160991b0181565b3480156103c357600080fd5b506103cc6107be565b60405161021c9190610c88565b3480156103e557600080fd5b5061024561271081565b3480156103fb57600080fd5b506002546001600160a01b031661029e565b34801561041957600080fd5b5061024566038d7ea4c6800081565b34801561043457600080fd5b506101d9610443366004610cd5565b610820565b34801561045457600080fd5b5061029e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561048857600080fd5b506101d9610497366004610c4d565b610841565b3480156104a857600080fd5b506101d96104b7366004610c4d565b6108e4565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105279190610d11565b92915050565b610535610955565b60005b600454811015610584576105726004828154811061055857610558610d2a565b6000918252602090912001546001600160a01b031661097f565b8061057c81610d56565b915050610538565b5061058f6001600055565b565b610599610955565b6001600160a01b03811660009081526005602052604090205460ff166105f85760405162461bcd60e51b815260206004820152600f60248201526e2737ba1030903332b2903a37b5b2b760891b60448201526064015b60405180910390fd5b6106018161097f565b61060b6001600055565b50565b610616610ad0565b61058f6000610afd565b60025433906001600160a01b031681146106585760405163118cdaa760e01b81526001600160a01b03821660048201526024016105ef565b61060b81610afd565b6004818154811061067157600080fd5b6000918252602090912001546001600160a01b0316905081565b610693610ad0565b6001600160a01b0381166106d95760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b60448201526064016105ef565b6001600160a01b03811660009081526005602052604090205460ff16156107325760405162461bcd60e51b815260206004820152600d60248201526c105b1c9958591e481859191959609a1b60448201526064016105ef565b6001600160a01b038116600081815260056020526040808220805460ff1916600190811790915560048054918201815583527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b03191684179055517f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a49190a250565b6060600480548060200260200160405190810160405280929190818152602001828054801561081657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107f8575b5050505050905090565b610828610ad0565b61083c6001600160a01b0384168383610b16565b505050565b610849610ad0565b6001600160a01b0381166108925760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420747265617375727960801b60448201526064016105ef565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a90600090a35050565b6108ec610ad0565b600280546001600160a01b0383166001600160a01b0319909116811790915561091d6001546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60026000540361097857604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ea9190610d11565b905066038d7ea4c680008110156109ff575050565b6000612710610a10611b5884610d6f565b610a1a9190610d86565b90506000610a288284610da8565b90508115610a6457610a646001600160a01b0385167f000000000000000000000000000000000000000000000000000000000000000084610b16565b8015610a8457600354610a84906001600160a01b03868116911683610b16565b604080518381526020810183905233916001600160a01b038716917f7e8fa2108664fda977be43fe236889421aae905ebc6da63e6b7c147b82ab0332910160405180910390a350505050565b6001546001600160a01b0316331461058f5760405163118cdaa760e01b81523360048201526024016105ef565b600280546001600160a01b031916905561060b81610b68565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261083c908490610bba565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080602060008451602086016000885af180610bdd576040513d6000823e3d81fd5b50506000513d91508115610bf5578060011415610c02565b6001600160a01b0384163b155b15610c2b57604051635274afe760e01b81526001600160a01b03851660048201526024016105ef565b50505050565b80356001600160a01b0381168114610c4857600080fd5b919050565b600060208284031215610c5f57600080fd5b610c6882610c31565b9392505050565b600060208284031215610c8157600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015610cc95783516001600160a01b031683529284019291840191600101610ca4565b50909695505050505050565b600080600060608486031215610cea57600080fd5b610cf384610c31565b9250610d0160208501610c31565b9150604084013590509250925092565b600060208284031215610d2357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610d6857610d68610d40565b5060010190565b808202811582820484141761052757610527610d40565b600082610da357634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561052757610527610d4056fea2646970667358221220e46a6789a094793b0b0745e62ced29dd91e4e227baafe63fff0441e79edf62b864736f6c63430008140033000000000000000000000000d8ede592ed90a9d56aebe321b1d2a4e3201b4c11000000000000000000000000be2cc1861341f3b058a3307385beba84167b3fa400000000000000000000000006a127f0b53f83dd5d94e83d96b55a279705bb07000000000000000000000000be2cc1861341f3b058a3307385beba84167b3fa4
Deployed Bytecode
0x6080604052600436106101395760003560e01c8063a04941a2116100ab578063e30c39781161006f578063e30c3978146103ef578063e60bff711461040d578063e63ea40814610428578063ee99205c14610448578063f0f442601461047c578063f2fde38b1461049c57600080fd5b8063a04941a214610366578063aa2eded21461037c578063ad5c46481461039c578063cdc73d51146103b7578063e1a45218146103d957600080fd5b806363453ae1116100fd57806363453ae1146102b6578063715018a6146102d657806379ba5097146102eb5780637acabd1a146103005780638da5cb5b146103285780638ef4403c1461034657600080fd5b806316ad82d7146101e057806325d2a3f314610225578063436596c4146102535780634c25d1971461026857806361d027b31461027e57600080fd5b366101db5734156101d9576006602160991b016001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561018657600080fd5b505af115801561019a573d6000803e3d6000fd5b50505050507f27f12abfe35860a9a927b465bb3d4a9c23c8428174b83f278fe45ed7b4da2662346040516101d091815260200190565b60405180910390a15b005b600080fd5b3480156101ec57600080fd5b506102106101fb366004610c4d565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561023157600080fd5b50610245610240366004610c4d565b6104bc565b60405190815260200161021c565b34801561025f57600080fd5b506101d961052d565b34801561027457600080fd5b50610245610bb881565b34801561028a57600080fd5b5060035461029e906001600160a01b031681565b6040516001600160a01b03909116815260200161021c565b3480156102c257600080fd5b506101d96102d1366004610c4d565b610591565b3480156102e257600080fd5b506101d961060e565b3480156102f757600080fd5b506101d9610620565b34801561030c57600080fd5b5061029e7306a127f0b53f83dd5d94e83d96b55a279705bb0781565b34801561033457600080fd5b506001546001600160a01b031661029e565b34801561035257600080fd5b5061029e610361366004610c6f565b610661565b34801561037257600080fd5b50610245611b5881565b34801561038857600080fd5b506101d9610397366004610c4d565b61068b565b3480156103a857600080fd5b5061029e6006602160991b0181565b3480156103c357600080fd5b506103cc6107be565b60405161021c9190610c88565b3480156103e557600080fd5b5061024561271081565b3480156103fb57600080fd5b506002546001600160a01b031661029e565b34801561041957600080fd5b5061024566038d7ea4c6800081565b34801561043457600080fd5b506101d9610443366004610cd5565b610820565b34801561045457600080fd5b5061029e7f000000000000000000000000d8ede592ed90a9d56aebe321b1d2a4e3201b4c1181565b34801561048857600080fd5b506101d9610497366004610c4d565b610841565b3480156104a857600080fd5b506101d96104b7366004610c4d565b6108e4565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105279190610d11565b92915050565b610535610955565b60005b600454811015610584576105726004828154811061055857610558610d2a565b6000918252602090912001546001600160a01b031661097f565b8061057c81610d56565b915050610538565b5061058f6001600055565b565b610599610955565b6001600160a01b03811660009081526005602052604090205460ff166105f85760405162461bcd60e51b815260206004820152600f60248201526e2737ba1030903332b2903a37b5b2b760891b60448201526064015b60405180910390fd5b6106018161097f565b61060b6001600055565b50565b610616610ad0565b61058f6000610afd565b60025433906001600160a01b031681146106585760405163118cdaa760e01b81526001600160a01b03821660048201526024016105ef565b61060b81610afd565b6004818154811061067157600080fd5b6000918252602090912001546001600160a01b0316905081565b610693610ad0565b6001600160a01b0381166106d95760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b60448201526064016105ef565b6001600160a01b03811660009081526005602052604090205460ff16156107325760405162461bcd60e51b815260206004820152600d60248201526c105b1c9958591e481859191959609a1b60448201526064016105ef565b6001600160a01b038116600081815260056020526040808220805460ff1916600190811790915560048054918201815583527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b03191684179055517f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a49190a250565b6060600480548060200260200160405190810160405280929190818152602001828054801561081657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107f8575b5050505050905090565b610828610ad0565b61083c6001600160a01b0384168383610b16565b505050565b610849610ad0565b6001600160a01b0381166108925760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420747265617375727960801b60448201526064016105ef565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a90600090a35050565b6108ec610ad0565b600280546001600160a01b0383166001600160a01b0319909116811790915561091d6001546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60026000540361097857604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ea9190610d11565b905066038d7ea4c680008110156109ff575050565b6000612710610a10611b5884610d6f565b610a1a9190610d86565b90506000610a288284610da8565b90508115610a6457610a646001600160a01b0385167f000000000000000000000000d8ede592ed90a9d56aebe321b1d2a4e3201b4c1184610b16565b8015610a8457600354610a84906001600160a01b03868116911683610b16565b604080518381526020810183905233916001600160a01b038716917f7e8fa2108664fda977be43fe236889421aae905ebc6da63e6b7c147b82ab0332910160405180910390a350505050565b6001546001600160a01b0316331461058f5760405163118cdaa760e01b81523360048201526024016105ef565b600280546001600160a01b031916905561060b81610b68565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261083c908490610bba565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080602060008451602086016000885af180610bdd576040513d6000823e3d81fd5b50506000513d91508115610bf5578060011415610c02565b6001600160a01b0384163b155b15610c2b57604051635274afe760e01b81526001600160a01b03851660048201526024016105ef565b50505050565b80356001600160a01b0381168114610c4857600080fd5b919050565b600060208284031215610c5f57600080fd5b610c6882610c31565b9392505050565b600060208284031215610c8157600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015610cc95783516001600160a01b031683529284019291840191600101610ca4565b50909695505050505050565b600080600060608486031215610cea57600080fd5b610cf384610c31565b9250610d0160208501610c31565b9150604084013590509250925092565b600060208284031215610d2357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610d6857610d68610d40565b5060010190565b808202811582820484141761052757610527610d40565b600082610da357634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561052757610527610d4056fea2646970667358221220e46a6789a094793b0b0745e62ced29dd91e4e227baafe63fff0441e79edf62b864736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d8ede592ed90a9d56aebe321b1d2a4e3201b4c11000000000000000000000000be2cc1861341f3b058a3307385beba84167b3fa400000000000000000000000006a127f0b53f83dd5d94e83d96b55a279705bb07000000000000000000000000be2cc1861341f3b058a3307385beba84167b3fa4
-----Decoded View---------------
Arg [0] : _stakingContract (address): 0xD8eDe592Ed90A9D56aebE321B1d2a4E3201b4c11
Arg [1] : _treasury (address): 0xBe2Cc1861341F3b058A3307385BEBa84167b3fa4
Arg [2] : _clawgToken (address): 0x06A127f0b53F83dD5d94E83D96B55a279705bB07
Arg [3] : _owner (address): 0xBe2Cc1861341F3b058A3307385BEBa84167b3fa4
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000d8ede592ed90a9d56aebe321b1d2a4e3201b4c11
Arg [1] : 000000000000000000000000be2cc1861341f3b058a3307385beba84167b3fa4
Arg [2] : 00000000000000000000000006a127f0b53f83dd5d94e83d96b55a279705bb07
Arg [3] : 000000000000000000000000be2cc1861341f3b058a3307385beba84167b3fa4
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 32 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.