Source Code
Overview
FRAX Balance | FXTL Balance
0 FRAX | 0 FXTL
FRAX Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AbsClaimer
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/**
*Submitted for verification at fraxscan.com on 2024-03-05
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
//import delegation interface
interface IDelegationRegistry {
function setDelegationForSelf(address initialDelegate) external;
function disableSelfManagingDelegations() external;
}
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
/**
* @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 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);
}
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract 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;
}
}
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
interface iRWA {
function feelTheBurn(uint256 amount) external;
}
contract AbsClaimer {
IERC20 public token;
bytes32 public merkleRoot;
mapping(address => bool) public hasClaimed;
uint256 public constant MAX_CLAIM = 12000000*10**18; // 1%
uint256 public deadline;
uint256 public totalClaimed = 0;
address delegateRegistryAddress = 0x4392dC16867D53DBFE227076606455634d4c2795;
event Claimed(address claimant, uint256 amount);
constructor(IERC20 _token, bytes32 _merkleRoot) {
token = _token;
merkleRoot = _merkleRoot;
deadline = block.timestamp + 60 days;
IDelegationRegistry(delegateRegistryAddress).setDelegationForSelf(msg.sender);
IDelegationRegistry(delegateRegistryAddress).disableSelfManagingDelegations();
}
function claim(uint256 amount, bytes32[] calldata proof) external {
require(!hasClaimed[msg.sender], "Abs Claim: Address already claimed their abs.");
// In the light of the moon a little egg lay on a leaf..
bytes32 leaf = keccak256(abi.encodePacked(msg.sender, amount));
// the egg hatched into a caterpiller who then verified the proof matched the leaf..
require(_verify(proof, merkleRoot, leaf), "Abs Claim: Invalid abs proof.");
// the caterpillar then turned into a butterfly and flew away with the claim..
if(amount > MAX_CLAIM) amount = MAX_CLAIM;
hasClaimed[msg.sender] = true;
require(token.transfer(msg.sender, amount), "Abs Claim: Abs Transfer failed.");
emit Claimed(msg.sender, amount);
totalClaimed+=amount;
}
function _verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofSegment = proof[i];
if (computedHash < proofSegment) {
computedHash = keccak256(abi.encodePacked(computedHash, proofSegment));
} else {
computedHash = keccak256(abi.encodePacked(proofSegment, computedHash));
}
}
return computedHash == root;
}
function timesUpSoHitTheGym() external {
require(block.timestamp > deadline, "Abs Claim: Deadline not reached.");
iRWA(address(token)).feelTheBurn(token.balanceOf(address(this)));
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"inputs":[],"name":"MAX_CLAIM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timesUpSoHitTheGym","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040526000600455600580546001600160a01b031916734392dc16867d53dbfe227076606455634d4c279517905534801561003b57600080fd5b506040516108ed3803806108ed83398101604081905261005a91610156565b600080546001600160a01b0319166001600160a01b038416179055600181905561008742624f1a00610190565b6003556005546040516302b8a21d60e01b81523360048201526001600160a01b03909116906302b8a21d90602401600060405180830381600087803b1580156100cf57600080fd5b505af11580156100e3573d6000803e3d6000fd5b50505050600560009054906101000a90046001600160a01b03166001600160a01b03166325ce9a376040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561013757600080fd5b505af115801561014b573d6000803e3d6000fd5b5050505050506101b7565b6000806040838503121561016957600080fd5b82516001600160a01b038116811461018057600080fd5b6020939093015192949293505050565b808201808211156101b157634e487b7160e01b600052601160045260246000fd5b92915050565b610727806101c66000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806335bb5e141161005b57806335bb5e14146100d957806373b2e80e146100e1578063d54ad2a114610114578063fc0c546a1461011d57600080fd5b806301b65b711461008d57806329dcb0cf146100b25780632eb4a7ab146100bb5780632f52ebb7146100c4575b600080fd5b61009f6a09ed194db19b238c00000081565b6040519081526020015b60405180910390f35b61009f60035481565b61009f60015481565b6100d76100d23660046105a9565b610148565b005b6100d76103e2565b6101046100ef366004610628565b60026020526000908152604090205460ff1681565b60405190151581526020016100a9565b61009f60045481565b600054610130906001600160a01b031681565b6040516001600160a01b0390911681526020016100a9565b3360009081526002602052604090205460ff16156101c35760405162461bcd60e51b815260206004820152602d60248201527f41627320436c61696d3a204164647265737320616c726561647920636c61696d60448201526c32b2103a3432b4b91030b1399760991b60648201526084015b60405180910390fd5b6040516bffffffffffffffffffffffff193360601b166020820152603481018490526000906054016040516020818303038152906040528051906020012090506102448383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060015491508490506104f9565b6102905760405162461bcd60e51b815260206004820152601d60248201527f41627320436c61696d3a20496e76616c6964206162732070726f6f662e00000060448201526064016101ba565b6a09ed194db19b238c0000008411156102b2576a09ed194db19b238c00000093505b33600081815260026020526040808220805460ff191660011790559054905163a9059cbb60e01b81526004810192909252602482018690526001600160a01b03169063a9059cbb906044016020604051808303816000875af115801561031c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103409190610658565b61038c5760405162461bcd60e51b815260206004820152601f60248201527f41627320436c61696d3a20416273205472616e73666572206661696c65642e0060448201526064016101ba565b60408051338152602081018690527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a183600460008282546103d79190610690565b909155505050505050565b60035442116104335760405162461bcd60e51b815260206004820181905260248201527f41627320436c61696d3a20446561646c696e65206e6f7420726561636865642e60448201526064016101ba565b6000546040516370a0823160e01b81523060048201526001600160a01b0390911690637586248f9082906370a0823190602401602060405180830381865afa158015610483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a791906106a9565b6040518263ffffffff1660e01b81526004016104c591815260200190565b600060405180830381600087803b1580156104df57600080fd5b505af11580156104f3573d6000803e3d6000fd5b50505050565b600081815b855181101561059e57600086828151811061051b5761051b6106c2565b602002602001015190508083101561055e57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061058b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610596816106d8565b9150506104fe565b509092149392505050565b6000806000604084860312156105be57600080fd5b83359250602084013567ffffffffffffffff808211156105dd57600080fd5b818601915086601f8301126105f157600080fd5b81358181111561060057600080fd5b8760208260051b850101111561061557600080fd5b6020830194508093505050509250925092565b60006020828403121561063a57600080fd5b81356001600160a01b038116811461065157600080fd5b9392505050565b60006020828403121561066a57600080fd5b8151801515811461065157600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106a3576106a361067a565b92915050565b6000602082840312156106bb57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000600182016106ea576106ea61067a565b506001019056fea2646970667358221220f00cb00ba29883ac11ef434c00179ee269b083dbf9b62b0cf47bb8396d8ebc4e64736f6c63430008140033000000000000000000000000c84c0f36e42d0100c6ff5e1d04e2978f0a5b63cfa58bd055b528057f3b02a7cbbe6cd340f7dfd3d11ca6b83411f8695f2309f478
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c806335bb5e141161005b57806335bb5e14146100d957806373b2e80e146100e1578063d54ad2a114610114578063fc0c546a1461011d57600080fd5b806301b65b711461008d57806329dcb0cf146100b25780632eb4a7ab146100bb5780632f52ebb7146100c4575b600080fd5b61009f6a09ed194db19b238c00000081565b6040519081526020015b60405180910390f35b61009f60035481565b61009f60015481565b6100d76100d23660046105a9565b610148565b005b6100d76103e2565b6101046100ef366004610628565b60026020526000908152604090205460ff1681565b60405190151581526020016100a9565b61009f60045481565b600054610130906001600160a01b031681565b6040516001600160a01b0390911681526020016100a9565b3360009081526002602052604090205460ff16156101c35760405162461bcd60e51b815260206004820152602d60248201527f41627320436c61696d3a204164647265737320616c726561647920636c61696d60448201526c32b2103a3432b4b91030b1399760991b60648201526084015b60405180910390fd5b6040516bffffffffffffffffffffffff193360601b166020820152603481018490526000906054016040516020818303038152906040528051906020012090506102448383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060015491508490506104f9565b6102905760405162461bcd60e51b815260206004820152601d60248201527f41627320436c61696d3a20496e76616c6964206162732070726f6f662e00000060448201526064016101ba565b6a09ed194db19b238c0000008411156102b2576a09ed194db19b238c00000093505b33600081815260026020526040808220805460ff191660011790559054905163a9059cbb60e01b81526004810192909252602482018690526001600160a01b03169063a9059cbb906044016020604051808303816000875af115801561031c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103409190610658565b61038c5760405162461bcd60e51b815260206004820152601f60248201527f41627320436c61696d3a20416273205472616e73666572206661696c65642e0060448201526064016101ba565b60408051338152602081018690527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a183600460008282546103d79190610690565b909155505050505050565b60035442116104335760405162461bcd60e51b815260206004820181905260248201527f41627320436c61696d3a20446561646c696e65206e6f7420726561636865642e60448201526064016101ba565b6000546040516370a0823160e01b81523060048201526001600160a01b0390911690637586248f9082906370a0823190602401602060405180830381865afa158015610483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a791906106a9565b6040518263ffffffff1660e01b81526004016104c591815260200190565b600060405180830381600087803b1580156104df57600080fd5b505af11580156104f3573d6000803e3d6000fd5b50505050565b600081815b855181101561059e57600086828151811061051b5761051b6106c2565b602002602001015190508083101561055e57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061058b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610596816106d8565b9150506104fe565b509092149392505050565b6000806000604084860312156105be57600080fd5b83359250602084013567ffffffffffffffff808211156105dd57600080fd5b818601915086601f8301126105f157600080fd5b81358181111561060057600080fd5b8760208260051b850101111561061557600080fd5b6020830194508093505050509250925092565b60006020828403121561063a57600080fd5b81356001600160a01b038116811461065157600080fd5b9392505050565b60006020828403121561066a57600080fd5b8151801515811461065157600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106a3576106a361067a565b92915050565b6000602082840312156106bb57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000600182016106ea576106ea61067a565b506001019056fea2646970667358221220f00cb00ba29883ac11ef434c00179ee269b083dbf9b62b0cf47bb8396d8ebc4e64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c84c0f36e42d0100c6ff5e1d04e2978f0a5b63cfa58bd055b528057f3b02a7cbbe6cd340f7dfd3d11ca6b83411f8695f2309f478
-----Decoded View---------------
Arg [0] : _token (address): 0xc84c0f36e42D0100c6FF5e1D04e2978f0A5B63Cf
Arg [1] : _merkleRoot (bytes32): 0xa58bd055b528057f3b02a7cbbe6cd340f7dfd3d11ca6b83411f8695f2309f478
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c84c0f36e42d0100c6ff5e1d04e2978f0a5b63cf
Arg [1] : a58bd055b528057f3b02a7cbbe6cd340f7dfd3d11ca6b83411f8695f2309f478
Deployed Bytecode Sourcemap
22489:2388:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22623:51;;22659:15;22623:51;;;;;160:25:1;;;148:2;133:18;22623:51:0;;;;;;;;22687:23;;;;;;22542:25;;;;;;23242:852;;;;;;:::i;:::-;;:::i;:::-;;24670:204;;;:::i;22574:42::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1522:14:1;;1515:22;1497:41;;1485:2;1470:18;22574:42:0;1357:187:1;22718:31:0;;;;;;22516:19;;;;;-1:-1:-1;;;;;22516:19:0;;;;;;-1:-1:-1;;;;;1726:32:1;;;1708:51;;1696:2;1681:18;22516:19:0;1549:216:1;23242:852:0;23339:10;23328:22;;;;:10;:22;;;;;;;;23327:23;23319:81;;;;-1:-1:-1;;;23319:81:0;;1972:2:1;23319:81:0;;;1954:21:1;2011:2;1991:18;;;1984:30;2050:34;2030:18;;;2023:62;-1:-1:-1;;;2101:18:1;;;2094:43;2154:19;;23319:81:0;;;;;;;;;23512:36;;-1:-1:-1;;23529:10:0;2361:2:1;2357:15;2353:53;23512:36:0;;;2341:66:1;2423:12;;;2416:28;;;23487:12:0;;2460::1;;23512:36:0;;;;;;;;;;;;23502:47;;;;;;23487:62;;23672:32;23680:5;;23672:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23687:10:0;;;-1:-1:-1;23699:4:0;;-1:-1:-1;23672:7:0;:32::i;:::-;23664:74;;;;-1:-1:-1;;;23664:74:0;;2685:2:1;23664:74:0;;;2667:21:1;2724:2;2704:18;;;2697:30;2763:31;2743:18;;;2736:59;2812:18;;23664:74:0;2483:353:1;23664:74:0;22659:15;23842:6;:18;23839:41;;;22659:15;23862:18;;23839:41;23903:10;23892:22;;;;:10;:22;;;;;;:29;;-1:-1:-1;;23892:29:0;23917:4;23892:29;;;23940:5;;:34;;-1:-1:-1;;;23940:34:0;;;;;3015:51:1;;;;3082:18;;;3075:34;;;-1:-1:-1;;;;;23940:5:0;;:14;;2988:18:1;;23940:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23932:78;;;;-1:-1:-1;;;23932:78:0;;3604:2:1;23932:78:0;;;3586:21:1;3643:2;3623:18;;;3616:30;3682:33;3662:18;;;3655:61;3733:18;;23932:78:0;3402:355:1;23932:78:0;24028:27;;;24036:10;3015:51:1;;3097:2;3082:18;;3075:34;;;24028:27:0;;2988:18:1;24028:27:0;;;;;;;24080:6;24066:12;;:20;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;23242:852:0:o;24670:204::-;24746:8;;24728:15;:26;24720:71;;;;-1:-1:-1;;;24720:71:0;;4226:2:1;24720:71:0;;;4208:21:1;;;4245:18;;;4238:30;4304:34;4284:18;;;4277:62;4356:18;;24720:71:0;4024:356:1;24720:71:0;24815:5;;24835:30;;-1:-1:-1;;;24835:30:0;;24859:4;24835:30;;;1708:51:1;-1:-1:-1;;;;;24815:5:0;;;;24802:32;;24815:5;;24835:15;;1681:18:1;;24835:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24802:64;;;;;;;;;;;;;160:25:1;;148:2;133:18;;14:177;24802:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24670:204::o;24102:560::-;24194:4;24234;24194;24251:364;24275:5;:12;24271:1;:16;24251:364;;;24309:20;24332:5;24338:1;24332:8;;;;;;;;:::i;:::-;;;;;;;24309:31;;24374:12;24359;:27;24355:249;;;24432:44;;;;;;5071:19:1;;;5106:12;;;5099:28;;;5143:12;;24432:44:0;;;;;;;;;;;;24422:55;;;;;;24407:70;;24355:249;;;24543:44;;;;;;5071:19:1;;;5106:12;;;5099:28;;;5143:12;;24543:44:0;;;;;;;;;;;;24533:55;;;;;;24518:70;;24355:249;-1:-1:-1;24289:3:0;;;;:::i;:::-;;;;24251:364;;;-1:-1:-1;24634:20:0;;;;24102:560;-1:-1:-1;;;24102:560:0:o;378:683:1:-;473:6;481;489;542:2;530:9;521:7;517:23;513:32;510:52;;;558:1;555;548:12;510:52;594:9;581:23;571:33;;655:2;644:9;640:18;627:32;678:18;719:2;711:6;708:14;705:34;;;735:1;732;725:12;705:34;773:6;762:9;758:22;748:32;;818:7;811:4;807:2;803:13;799:27;789:55;;840:1;837;830:12;789:55;880:2;867:16;906:2;898:6;895:14;892:34;;;922:1;919;912:12;892:34;975:7;970:2;960:6;957:1;953:14;949:2;945:23;941:32;938:45;935:65;;;996:1;993;986:12;935:65;1027:2;1023;1019:11;1009:21;;1049:6;1039:16;;;;;378:683;;;;;:::o;1066:286::-;1125:6;1178:2;1166:9;1157:7;1153:23;1149:32;1146:52;;;1194:1;1191;1184:12;1146:52;1220:23;;-1:-1:-1;;;;;1272:31:1;;1262:42;;1252:70;;1318:1;1315;1308:12;1252:70;1341:5;1066:286;-1:-1:-1;;;1066:286:1:o;3120:277::-;3187:6;3240:2;3228:9;3219:7;3215:23;3211:32;3208:52;;;3256:1;3253;3246:12;3208:52;3288:9;3282:16;3341:5;3334:13;3327:21;3320:5;3317:32;3307:60;;3363:1;3360;3353:12;3762:127;3823:10;3818:3;3814:20;3811:1;3804:31;3854:4;3851:1;3844:15;3878:4;3875:1;3868:15;3894:125;3959:9;;;3980:10;;;3977:36;;;3993:18;;:::i;:::-;3894:125;;;;:::o;4593:184::-;4663:6;4716:2;4704:9;4695:7;4691:23;4687:32;4684:52;;;4732:1;4729;4722:12;4684:52;-1:-1:-1;4755:16:1;;4593:184;-1:-1:-1;4593:184:1:o;4782:127::-;4843:10;4838:3;4834:20;4831:1;4824:31;4874:4;4871:1;4864:15;4898:4;4895:1;4888:15;5166:135;5205:3;5226:17;;;5223:43;;5246:18;;:::i;:::-;-1:-1:-1;5293:1:1;5282:13;;5166:135::o
Swarm Source
ipfs://f00cb00ba29883ac11ef434c00179ee269b083dbf9b62b0cf47bb8396d8ebc4e
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 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.