Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 306 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Token | 35399611 | 37 days ago | IN | 0 ETH | 0 | ||||
| Transfer Token | 35399420 | 37 days ago | IN | 0 ETH | 0 | ||||
| Transfer | 27987179 | 123 days ago | IN | 0.0085 ETH | 0 | ||||
| Transfer | 26925391 | 135 days ago | IN | 0.025455 ETH | 0 | ||||
| Transfer | 26648455 | 138 days ago | IN | 0.0166 ETH | 0 | ||||
| Transfer | 26642302 | 139 days ago | IN | 0.0166 ETH | 0 | ||||
| Transfer | 26430998 | 141 days ago | IN | 0.0155 ETH | 0 | ||||
| Transfer | 24603904 | 162 days ago | IN | 0.289202 ETH | 0.00000006 | ||||
| Transfer | 24587835 | 162 days ago | IN | 0.0304 ETH | 0 | ||||
| Transfer | 24284768 | 166 days ago | IN | 0.04529 ETH | 0.00000002 | ||||
| Transfer | 24083493 | 168 days ago | IN | 0.10525 ETH | 0 | ||||
| Transfer | 24041888 | 169 days ago | IN | 0.00275 ETH | 0.00000006 | ||||
| Transfer | 23922969 | 170 days ago | IN | 0.00831 ETH | 0.00000001 | ||||
| Transfer | 23797517 | 171 days ago | IN | 0.028856 ETH | 0.00000004 | ||||
| Transfer | 23624582 | 173 days ago | IN | 0.0054 ETH | 0.00000004 | ||||
| Transfer | 23569497 | 174 days ago | IN | 0.008 ETH | 0.00000001 | ||||
| Transfer | 23541880 | 174 days ago | IN | 0.009229 ETH | 0 | ||||
| Transfer | 23193924 | 178 days ago | IN | 0.00859 ETH | 0.00000005 | ||||
| Transfer | 22624533 | 185 days ago | IN | 0.0015 ETH | 0.00000001 | ||||
| Transfer | 22164197 | 190 days ago | IN | 0.0064 ETH | 0 | ||||
| Transfer | 22093260 | 191 days ago | IN | 0.001089 ETH | 0.00000002 | ||||
| Transfer | 21938786 | 193 days ago | IN | 0.00055 ETH | 0.00000007 | ||||
| Transfer | 21933169 | 193 days ago | IN | 1.00025 ETH | 0.00000009 | ||||
| Transfer | 21926396 | 193 days ago | IN | 0.00035 ETH | 0.00000007 | ||||
| Transfer | 21913831 | 193 days ago | IN | 1.00025 ETH | 0.00000006 |
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 27987179 | 123 days ago | 0.0085 ETH | ||||
| 26925391 | 135 days ago | 0.025455 ETH | ||||
| 26648455 | 138 days ago | 0.0166 ETH | ||||
| 26642302 | 139 days ago | 0.0166 ETH | ||||
| 26430998 | 141 days ago | 0.0155 ETH | ||||
| 24603904 | 162 days ago | 0.289202 ETH | ||||
| 24587835 | 162 days ago | 0.0304 ETH | ||||
| 24284768 | 166 days ago | 0.04529 ETH | ||||
| 24083493 | 168 days ago | 0.10525 ETH | ||||
| 24041888 | 169 days ago | 0.00275 ETH | ||||
| 23922969 | 170 days ago | 0.00831 ETH | ||||
| 23797517 | 171 days ago | 0.028856 ETH | ||||
| 23624582 | 173 days ago | 0.0054 ETH | ||||
| 23569497 | 174 days ago | 0.008 ETH | ||||
| 23541880 | 174 days ago | 0.009229 ETH | ||||
| 23193924 | 178 days ago | 0.00859 ETH | ||||
| 22624533 | 185 days ago | 0.0015 ETH | ||||
| 22164197 | 190 days ago | 0.0064 ETH | ||||
| 22093260 | 191 days ago | 0.001089 ETH | ||||
| 21938786 | 193 days ago | 0.00055 ETH | ||||
| 21933169 | 193 days ago | 1.00025 ETH | ||||
| 21926396 | 193 days ago | 0.00035 ETH | ||||
| 21913831 | 193 days ago | 1.00025 ETH | ||||
| 21900992 | 193 days ago | 0.21025 ETH | ||||
| 21748700 | 195 days ago | 0.00035 ETH |
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/**
* @title OrbiterXRouterV3
* @dev A contract for batch transfers of Ether and tokens to multiple addresses.
*/
contract OrbiterXRouterV3 {
using SafeERC20 for IERC20;
bool private locked;
event Transfer(address indexed to, uint256 amount);
/**
* @dev Modifier to prevent reentrancy attacks.
*/
modifier nonReentrant() {
require(!locked, "Reentrant call");
locked = true;
_;
locked = false;
}
/**
* @dev Batch transfers Ether to multiple addresses.
* @param tos The array of destination addresses.
* @param values The array of corresponding amounts to be transferred.
*/
function transfers(
address[] calldata tos,
uint[] memory values
) external payable nonReentrant {
require(tos.length == values.length, "Destination and amount arrays length mismatch");
uint total = msg.value;
uint value;
for (uint i = 0; i < tos.length; i++) {
value = values[i];
require(total >= value, "Insufficient Balance");
total -= value;
payable(tos[i]).transfer(value);
emit Transfer(tos[i], value);
}
require(total == 0, "There are many extra costs");
}
/**
* @dev Batch transfers tokens to multiple addresses.
* @param token The token contract address.
* @param tos The array of destination addresses.
* @param values The array of corresponding amounts to be transferred.
*/
function transferTokens(
IERC20 token,
address[] calldata tos,
uint[] memory values
) external payable nonReentrant {
require(msg.value == 0, "Ether not accepted");
require(tos.length == values.length, "Destination and amount arrays length mismatch");
for (uint i = 0; i < tos.length; i++) {
token.safeTransferFrom(msg.sender, tos[i], values[i]);
}
}
/**
* @dev Transfer Ether to a specified address.
* @param to The destination address.
* @param data Optional data included in the transaction.
*/
function transfer(
address to,
bytes calldata data
) external payable nonReentrant {
payable(to).transfer(msg.value);
emit Transfer(to, msg.value);
}
/**
* @dev Transfer tokens to a specified address.
* @param token The token contract address.
* @param to The destination address.
* @param value The amount of tokens to be transferred.
* @param data Optional data included in the transaction.
*/
function transferToken(
IERC20 token,
address to,
uint value,
bytes calldata data
) external payable nonReentrant {
require(msg.value == 0, "Ether not accepted");
token.safeTransferFrom(msg.sender, to, value);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @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}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* 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].
*
* 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.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* 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 override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override 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 value {ERC20} uses, unless this function is
* 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 override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override 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 `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` 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 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
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 `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `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.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` 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.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @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 (last updated v4.5.0) (utils/Multicall.sol)
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/utils/Address.sol";
/**
* @dev Provides a function to batch together multiple calls in a single external call.
*
* _Available since v4.1._
*/
abstract contract Multicall {
/**
* @dev Receives and executes a batch of function calls on this contract.
*/
function multicall(bytes[] calldata data) external payable virtual returns (bytes[] memory results) {
results = new bytes[](data.length);
for (uint256 i = 0; i < data.length; i++) {
results[i] = Address.functionDelegateCall(address(this), data[i]);
}
return results;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "./Multicall.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface IERC20 {
function transfer(
address recipient,
uint256 amount
) external returns (bool);
function balanceOf(address account) external view returns (uint256);
function allowance(
address owner,
address spender
) external view returns (uint256);
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
contract OrbiterXRouterV1 is Ownable, Multicall {
mapping(address => bool) public getMaker;
event ChangeMaker(address indexed maker, bool indexed enable);
constructor(address maker) {
changeMaker(maker, true);
}
receive() external payable {}
function changeMaker(address maker, bool enable) public onlyOwner {
getMaker[maker] = enable;
emit ChangeMaker(maker, enable);
}
function withdraw(address token) external onlyOwner {
if (token != address(0)) {
bool success = IERC20(token).transfer(
msg.sender,
IERC20(token).balanceOf(address(this))
);
require(success, "Withdraw Fail");
} else {
payable(msg.sender).transfer(address(this).balance);
}
}
function forward(
address token,
address payable recipient,
uint256 value
) private {
if (token == address(0)) {
require(address(this).balance >= value, "Insufficient Balance");
recipient.transfer(value);
} else {
require(
IERC20(token).allowance(msg.sender, address(this)) >= value,
"Insufficient Balance"
);
bool success = IERC20(token).transferFrom(
msg.sender,
recipient,
value
);
require(success, "Tranfer Wrong");
}
}
/// @notice This method allows you to initiate a Swap transaction
/// @dev You can call our contract Swap anywhere
/// @param recipient maker wallet address
/// @param token source chain token, chain mainToken address is 0x000....000
/// @param value source chain send token value
/// @param data Other parameters are encoded by RLP compression
function swap(
address payable recipient,
address token,
uint256 value,
bytes calldata data
)
external
payable
{
require(getMaker[recipient], "Maker does not exist");
value = token == address(0) ? msg.value : value;
forward(token, recipient, value);
}
/// @notice Swap response
/// @param recipient User receiving address
/// @param token Token sent to user
/// @param value Amount sent to user
/// @param data parameters are encoded by RLP compression = RLP(fromHash + type)
function swapAnswer(
address payable recipient,
address token,
uint256 value,
bytes calldata data
) external payable {
require(getMaker[msg.sender], "caller is not the maker");
forward(token, recipient, value);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "./Multicall.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract OrbiterXRouter is Ownable, Multicall {
using SafeERC20 for IERC20;
mapping(address => bool) public getMaker;
event ChangeMaker(address indexed maker, bool indexed enable);
constructor(address maker) {
changeMaker(maker, true);
}
receive() external payable {}
function changeMaker(address maker, bool enable) public onlyOwner {
getMaker[maker] = enable;
emit ChangeMaker(maker, enable);
}
function withdraw(address token) external onlyOwner {
if (token != address(0)) {
IERC20 coin = IERC20(token);
coin.safeTransfer(msg.sender, coin.balanceOf(address(this)));
} else {
payable(msg.sender).transfer(address(this).balance);
}
}
function forward(
address token,
address payable recipient,
uint256 value
) private {
if (token == address(0)) {
require(address(this).balance >= value, "Insufficient Balance");
recipient.transfer(value);
} else {
IERC20 coin = IERC20(token);
require(
coin.allowance(msg.sender, address(this)) >= value,
"Approve Insufficient Balance"
);
coin.safeTransferFrom(msg.sender, recipient, value);
}
}
/// @notice This method allows you to initiate a Swap transaction
/// @dev You can call our contract Swap anywhere
/// @param recipient maker wallet address
/// @param token source chain token, chain mainToken address is 0x000....000
/// @param value source chain send token value
/// @param data Other parameters are encoded by RLP compression
function swap(
address payable recipient,
address token,
uint256 value,
bytes calldata data
) external payable {
require(getMaker[recipient], "Maker does not exist");
value = token == address(0) ? msg.value : value;
forward(token, recipient, value);
}
/// @notice Swap response
/// @param recipient User receiving address
/// @param token Token sent to user
/// @param value Amount sent to user
/// @param data parameters are encoded by RLP compression
function swapAnswer(
address payable recipient,
address token,
uint256 value,
bytes calldata data
) external payable {
require(getMaker[msg.sender], "caller is not the maker");
forward(token, recipient, value);
}
}// SPDX-License-Identifier: Apache-2.0 /* * @author Hamdi Allam [email protected] * Please reach out with any questions or concerns */ pragma solidity >=0.5.10 <0.9.0; library RLPReader { uint8 constant STRING_SHORT_START = 0x80; uint8 constant STRING_LONG_START = 0xb8; uint8 constant LIST_SHORT_START = 0xc0; uint8 constant LIST_LONG_START = 0xf8; uint8 constant WORD_SIZE = 32; struct RLPItem { uint256 len; uint256 memPtr; } struct Iterator { RLPItem item; // Item that's being iterated over. uint256 nextPtr; // Position of the next item in the list. } /* * @dev Returns the next element in the iteration. Reverts if it has not next element. * @param self The iterator. * @return The next element in the iteration. */ function next(Iterator memory self) internal pure returns (RLPItem memory) { require(hasNext(self)); uint256 ptr = self.nextPtr; uint256 itemLength = _itemLength(ptr); self.nextPtr = ptr + itemLength; return RLPItem(itemLength, ptr); } /* * @dev Returns true if the iteration has more elements. * @param self The iterator. * @return true if the iteration has more elements. */ function hasNext(Iterator memory self) internal pure returns (bool) { RLPItem memory item = self.item; return self.nextPtr < item.memPtr + item.len; } /* * @param item RLP encoded bytes */ function toRlpItem( bytes memory item ) internal pure returns (RLPItem memory) { uint256 memPtr; assembly { memPtr := add(item, 0x20) } return RLPItem(item.length, memPtr); } /* * @dev Create an iterator. Reverts if item is not a list. * @param self The RLP item. * @return An 'Iterator' over the item. */ function iterator( RLPItem memory self ) internal pure returns (Iterator memory) { require(isList(self)); uint256 ptr = self.memPtr + _payloadOffset(self.memPtr); return Iterator(self, ptr); } /* * @param the RLP item. */ function rlpLen(RLPItem memory item) internal pure returns (uint256) { return item.len; } /* * @param the RLP item. * @return (memPtr, len) pair: location of the item's payload in memory. */ function payloadLocation( RLPItem memory item ) internal pure returns (uint256, uint256) { uint256 offset = _payloadOffset(item.memPtr); uint256 memPtr = item.memPtr + offset; uint256 len = item.len - offset; // data length return (memPtr, len); } /* * @param the RLP item. */ function payloadLen(RLPItem memory item) internal pure returns (uint256) { (, uint256 len) = payloadLocation(item); return len; } /* * @param the RLP item containing the encoded list. */ function toList( RLPItem memory item ) internal pure returns (RLPItem[] memory) { require(isList(item)); uint256 items = numItems(item); RLPItem[] memory result = new RLPItem[](items); uint256 memPtr = item.memPtr + _payloadOffset(item.memPtr); uint256 dataLen; for (uint256 i = 0; i < items; ) { dataLen = _itemLength(memPtr); result[i] = RLPItem(dataLen, memPtr); memPtr = memPtr + dataLen; unchecked { i++; } } return result; } // @return indicator whether encoded payload is a list. negate this function call for isData. function isList(RLPItem memory item) internal pure returns (bool) { if (item.len == 0) return false; uint8 byte0; uint256 memPtr = item.memPtr; assembly { byte0 := byte(0, mload(memPtr)) } if (byte0 < LIST_SHORT_START) return false; return true; } /* * @dev A cheaper version of keccak256(toRlpBytes(item)) that avoids copying memory. * @return keccak256 hash of RLP encoded bytes. */ function rlpBytesKeccak256( RLPItem memory item ) internal pure returns (bytes32) { uint256 ptr = item.memPtr; uint256 len = item.len; bytes32 result; assembly { result := keccak256(ptr, len) } return result; } /* * @dev A cheaper version of keccak256(toBytes(item)) that avoids copying memory. * @return keccak256 hash of the item payload. */ function payloadKeccak256( RLPItem memory item ) internal pure returns (bytes32) { (uint256 memPtr, uint256 len) = payloadLocation(item); bytes32 result; assembly { result := keccak256(memPtr, len) } return result; } /** RLPItem conversions into data types **/ // @returns raw rlp encoding in bytes function toRlpBytes( RLPItem memory item ) internal pure returns (bytes memory) { bytes memory result = new bytes(item.len); if (result.length == 0) return result; uint256 ptr; assembly { ptr := add(0x20, result) } copy(item.memPtr, ptr, item.len); return result; } // any non-zero byte except "0x80" is considered true function toBoolean(RLPItem memory item) internal pure returns (bool) { require(item.len == 1); uint256 result; uint256 memPtr = item.memPtr; assembly { result := byte(0, mload(memPtr)) } // SEE Github Issue #5. // Summary: Most commonly used RLP libraries (i.e Geth) will encode // "0" as "0x80" instead of as "0". We handle this edge case explicitly // here. if (result == 0 || result == STRING_SHORT_START) { return false; } else { return true; } } function toAddress(RLPItem memory item) internal pure returns (address) { // 1 byte for the length prefix require(item.len == 21); return address(uint160(toUint(item))); } function toUint(RLPItem memory item) internal pure returns (uint256) { require(item.len > 0 && item.len <= 33); (uint256 memPtr, uint256 len) = payloadLocation(item); uint256 result; assembly { result := mload(memPtr) // shift to the correct location if neccesary if lt(len, 32) { result := div(result, exp(256, sub(32, len))) } } return result; } // enforces 32 byte length function toUintStrict(RLPItem memory item) internal pure returns (uint256) { // one byte prefix require(item.len == 33); uint256 result; uint256 memPtr = item.memPtr + 1; assembly { result := mload(memPtr) } return result; } function toBytes(RLPItem memory item) internal pure returns (bytes memory) { require(item.len > 0); (uint256 memPtr, uint256 len) = payloadLocation(item); bytes memory result = new bytes(len); uint256 destPtr; assembly { destPtr := add(0x20, result) } copy(memPtr, destPtr, len); return result; } /* * Private Helpers */ // @return number of payload items inside an encoded list. function numItems(RLPItem memory item) private pure returns (uint256) { if (item.len == 0) return 0; uint256 count = 0; uint256 currPtr = item.memPtr + _payloadOffset(item.memPtr); uint256 endPtr = item.memPtr + item.len; while (currPtr < endPtr) { currPtr = currPtr + _itemLength(currPtr); // skip over an item count++; } return count; } // @return entire rlp item byte length function _itemLength(uint256 memPtr) private pure returns (uint256) { uint256 itemLen; uint256 byte0; assembly { byte0 := byte(0, mload(memPtr)) } if (byte0 < STRING_SHORT_START) { itemLen = 1; } else if (byte0 < STRING_LONG_START) { itemLen = byte0 - STRING_SHORT_START + 1; } else if (byte0 < LIST_SHORT_START) { assembly { let byteLen := sub(byte0, 0xb7) // # of bytes the actual length is memPtr := add(memPtr, 1) // skip over the first byte /* 32 byte word size */ let dataLen := div(mload(memPtr), exp(256, sub(32, byteLen))) // right shifting to get the len itemLen := add(dataLen, add(byteLen, 1)) } } else if (byte0 < LIST_LONG_START) { itemLen = byte0 - LIST_SHORT_START + 1; } else { assembly { let byteLen := sub(byte0, 0xf7) memPtr := add(memPtr, 1) let dataLen := div(mload(memPtr), exp(256, sub(32, byteLen))) // right shifting to the correct length itemLen := add(dataLen, add(byteLen, 1)) } } return itemLen; } // @return number of bytes until the data function _payloadOffset(uint256 memPtr) private pure returns (uint256) { uint256 byte0; assembly { byte0 := byte(0, mload(memPtr)) } if (byte0 < STRING_SHORT_START) { return 0; } else if ( byte0 < STRING_LONG_START || (byte0 >= LIST_SHORT_START && byte0 < LIST_LONG_START) ) { return 1; } else if (byte0 < LIST_SHORT_START) { // being explicit return byte0 - (STRING_LONG_START - 1) + 1; } else { return byte0 - (LIST_LONG_START - 1) + 1; } } /* * @param src Pointer to source * @param dest Pointer to destination * @param len Amount of memory to copy from the source */ function copy(uint256 src, uint256 dest, uint256 len) private pure { if (len == 0) return; // copy as many word sizes as possible for (; len >= WORD_SIZE; len -= WORD_SIZE) { assembly { mstore(dest, mload(src)) } src += WORD_SIZE; dest += WORD_SIZE; } if (len > 0) { // left over bytes. Mask is used to remove unwanted bytes from the word uint256 mask = 256 ** (WORD_SIZE - len) - 1; assembly { let srcpart := and(mload(src), not(mask)) // zero out src let destpart := and(mload(dest), mask) // retrieve the bytes mstore(dest, or(destpart, srcpart)) } } } }
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract TestToken is ERC20 {
uint8 private precision;
constructor(
uint256 initialSupply,
uint8 _precision,
string memory _symbol
) ERC20("TestToken", _symbol) {
precision = _precision;
_mint(msg.sender, initialSupply);
}
function decimals() public view virtual override returns (uint8) {
return precision;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transfer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"transferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"transfers","outputs":[],"stateMutability":"payable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50610c6f806100206000396000f3fe60806040526004361061003f5760003560e01c806329723511146100445780635234641214610059578063d54cefc11461006c578063f9c028ec1461007f575b600080fd5b610057610052366004610815565b610092565b005b610057610067366004610955565b610153565b61005761007a3660046109be565b61035a565b61005761008d366004610a3a565b610469565b60005460ff16156100be5760405162461bcd60e51b81526004016100b590610aad565b60405180910390fd5b6000805460ff191660011781556040516001600160a01b038516913480156108fc02929091818181858888f19350505050158015610100573d6000803e3d6000fd5b50826001600160a01b03167f69ca02dd4edd7bf0a4abb9ed3b7af3f14778db5d61921c7dc7cd545266326de23460405161013c91815260200190565b60405180910390a250506000805460ff1916905550565b60005460ff16156101765760405162461bcd60e51b81526004016100b590610aad565b6000805460ff19166001179055805182146101a35760405162461bcd60e51b81526004016100b590610ad5565b346000805b848110156102fa578381815181106101c2576101c2610b22565b60200260200101519150818310156102135760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742042616c616e636560601b60448201526064016100b5565b61021d8284610b4e565b925085858281811061023157610231610b22565b90506020020160208101906102469190610b67565b6001600160a01b03166108fc839081150290604051600060405180830381858888f1935050505015801561027e573d6000803e3d6000fd5b5085858281811061029157610291610b22565b90506020020160208101906102a69190610b67565b6001600160a01b03167f69ca02dd4edd7bf0a4abb9ed3b7af3f14778db5d61921c7dc7cd545266326de2836040516102e091815260200190565b60405180910390a2806102f281610b8b565b9150506101a8565b5081156103495760405162461bcd60e51b815260206004820152601a60248201527f546865726520617265206d616e7920657874726120636f73747300000000000060448201526064016100b5565b50506000805460ff19169055505050565b60005460ff161561037d5760405162461bcd60e51b81526004016100b590610aad565b6000805460ff1916600117905534156103cd5760405162461bcd60e51b8152602060048201526012602482015271115d1a195c881b9bdd081858d8d95c1d195960721b60448201526064016100b5565b805182146103ed5760405162461bcd60e51b81526004016100b590610ad5565b60005b82811015610349576104573385858481811061040e5761040e610b22565b90506020020160208101906104239190610b67565b84848151811061043557610435610b22565b6020026020010151886001600160a01b03166104ed909392919063ffffffff16565b8061046181610b8b565b9150506103f0565b60005460ff161561048c5760405162461bcd60e51b81526004016100b590610aad565b6000805460ff1916600117905534156104dc5760405162461bcd60e51b8152602060048201526012602482015271115d1a195c881b9bdd081858d8d95c1d195960721b60448201526064016100b5565b6103496001600160a01b0386163386865b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261054790859061054d565b50505050565b60006105a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106249092919063ffffffff16565b80519091501561061f57808060200190518101906105c09190610ba4565b61061f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016100b5565b505050565b6060610633848460008561063b565b949350505050565b60608247101561069c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016100b5565b600080866001600160a01b031685876040516106b89190610bea565b60006040518083038185875af1925050503d80600081146106f5576040519150601f19603f3d011682016040523d82523d6000602084013e6106fa565b606091505b509150915061070b87838387610716565b979650505050505050565b6060831561078557825160000361077e576001600160a01b0385163b61077e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100b5565b5081610633565b610633838381511561079a5781518083602001fd5b8060405162461bcd60e51b81526004016100b59190610c06565b6001600160a01b03811681146107c957600080fd5b50565b60008083601f8401126107de57600080fd5b50813567ffffffffffffffff8111156107f657600080fd5b60208301915083602082850101111561080e57600080fd5b9250929050565b60008060006040848603121561082a57600080fd5b8335610835816107b4565b9250602084013567ffffffffffffffff81111561085157600080fd5b61085d868287016107cc565b9497909650939450505050565b60008083601f84011261087c57600080fd5b50813567ffffffffffffffff81111561089457600080fd5b6020830191508360208260051b850101111561080e57600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f8301126108d657600080fd5b8135602067ffffffffffffffff808311156108f3576108f36108af565b8260051b604051601f19603f83011681018181108482111715610918576109186108af565b60405293845285810183019383810192508785111561093657600080fd5b83870191505b8482101561070b5781358352918301919083019061093c565b60008060006040848603121561096a57600080fd5b833567ffffffffffffffff8082111561098257600080fd5b61098e8783880161086a565b909550935060208601359150808211156109a757600080fd5b506109b4868287016108c5565b9150509250925092565b600080600080606085870312156109d457600080fd5b84356109df816107b4565b9350602085013567ffffffffffffffff808211156109fc57600080fd5b610a088883890161086a565b90955093506040870135915080821115610a2157600080fd5b50610a2e878288016108c5565b91505092959194509250565b600080600080600060808688031215610a5257600080fd5b8535610a5d816107b4565b94506020860135610a6d816107b4565b935060408601359250606086013567ffffffffffffffff811115610a9057600080fd5b610a9c888289016107cc565b969995985093965092949392505050565b6020808252600e908201526d1499595b9d1c985b9d0818d85b1b60921b604082015260600190565b6020808252602d908201527f44657374696e6174696f6e20616e6420616d6f756e7420617272617973206c6560408201526c0dccee8d040dad2e6dac2e8c6d609b1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610b6157610b61610b38565b92915050565b600060208284031215610b7957600080fd5b8135610b84816107b4565b9392505050565b600060018201610b9d57610b9d610b38565b5060010190565b600060208284031215610bb657600080fd5b81518015158114610b8457600080fd5b60005b83811015610be1578181015183820152602001610bc9565b50506000910152565b60008251610bfc818460208701610bc6565b9190910192915050565b6020815260008251806020840152610c25816040850160208701610bc6565b601f01601f1916919091016040019291505056fea2646970667358221220b9a8bcd7f8361e681b03b7f22f95b2475a81bb0784e7ddff2028fc43d6c0aa2464736f6c63430008130033
Deployed Bytecode
0x60806040526004361061003f5760003560e01c806329723511146100445780635234641214610059578063d54cefc11461006c578063f9c028ec1461007f575b600080fd5b610057610052366004610815565b610092565b005b610057610067366004610955565b610153565b61005761007a3660046109be565b61035a565b61005761008d366004610a3a565b610469565b60005460ff16156100be5760405162461bcd60e51b81526004016100b590610aad565b60405180910390fd5b6000805460ff191660011781556040516001600160a01b038516913480156108fc02929091818181858888f19350505050158015610100573d6000803e3d6000fd5b50826001600160a01b03167f69ca02dd4edd7bf0a4abb9ed3b7af3f14778db5d61921c7dc7cd545266326de23460405161013c91815260200190565b60405180910390a250506000805460ff1916905550565b60005460ff16156101765760405162461bcd60e51b81526004016100b590610aad565b6000805460ff19166001179055805182146101a35760405162461bcd60e51b81526004016100b590610ad5565b346000805b848110156102fa578381815181106101c2576101c2610b22565b60200260200101519150818310156102135760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742042616c616e636560601b60448201526064016100b5565b61021d8284610b4e565b925085858281811061023157610231610b22565b90506020020160208101906102469190610b67565b6001600160a01b03166108fc839081150290604051600060405180830381858888f1935050505015801561027e573d6000803e3d6000fd5b5085858281811061029157610291610b22565b90506020020160208101906102a69190610b67565b6001600160a01b03167f69ca02dd4edd7bf0a4abb9ed3b7af3f14778db5d61921c7dc7cd545266326de2836040516102e091815260200190565b60405180910390a2806102f281610b8b565b9150506101a8565b5081156103495760405162461bcd60e51b815260206004820152601a60248201527f546865726520617265206d616e7920657874726120636f73747300000000000060448201526064016100b5565b50506000805460ff19169055505050565b60005460ff161561037d5760405162461bcd60e51b81526004016100b590610aad565b6000805460ff1916600117905534156103cd5760405162461bcd60e51b8152602060048201526012602482015271115d1a195c881b9bdd081858d8d95c1d195960721b60448201526064016100b5565b805182146103ed5760405162461bcd60e51b81526004016100b590610ad5565b60005b82811015610349576104573385858481811061040e5761040e610b22565b90506020020160208101906104239190610b67565b84848151811061043557610435610b22565b6020026020010151886001600160a01b03166104ed909392919063ffffffff16565b8061046181610b8b565b9150506103f0565b60005460ff161561048c5760405162461bcd60e51b81526004016100b590610aad565b6000805460ff1916600117905534156104dc5760405162461bcd60e51b8152602060048201526012602482015271115d1a195c881b9bdd081858d8d95c1d195960721b60448201526064016100b5565b6103496001600160a01b0386163386865b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261054790859061054d565b50505050565b60006105a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106249092919063ffffffff16565b80519091501561061f57808060200190518101906105c09190610ba4565b61061f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016100b5565b505050565b6060610633848460008561063b565b949350505050565b60608247101561069c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016100b5565b600080866001600160a01b031685876040516106b89190610bea565b60006040518083038185875af1925050503d80600081146106f5576040519150601f19603f3d011682016040523d82523d6000602084013e6106fa565b606091505b509150915061070b87838387610716565b979650505050505050565b6060831561078557825160000361077e576001600160a01b0385163b61077e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100b5565b5081610633565b610633838381511561079a5781518083602001fd5b8060405162461bcd60e51b81526004016100b59190610c06565b6001600160a01b03811681146107c957600080fd5b50565b60008083601f8401126107de57600080fd5b50813567ffffffffffffffff8111156107f657600080fd5b60208301915083602082850101111561080e57600080fd5b9250929050565b60008060006040848603121561082a57600080fd5b8335610835816107b4565b9250602084013567ffffffffffffffff81111561085157600080fd5b61085d868287016107cc565b9497909650939450505050565b60008083601f84011261087c57600080fd5b50813567ffffffffffffffff81111561089457600080fd5b6020830191508360208260051b850101111561080e57600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f8301126108d657600080fd5b8135602067ffffffffffffffff808311156108f3576108f36108af565b8260051b604051601f19603f83011681018181108482111715610918576109186108af565b60405293845285810183019383810192508785111561093657600080fd5b83870191505b8482101561070b5781358352918301919083019061093c565b60008060006040848603121561096a57600080fd5b833567ffffffffffffffff8082111561098257600080fd5b61098e8783880161086a565b909550935060208601359150808211156109a757600080fd5b506109b4868287016108c5565b9150509250925092565b600080600080606085870312156109d457600080fd5b84356109df816107b4565b9350602085013567ffffffffffffffff808211156109fc57600080fd5b610a088883890161086a565b90955093506040870135915080821115610a2157600080fd5b50610a2e878288016108c5565b91505092959194509250565b600080600080600060808688031215610a5257600080fd5b8535610a5d816107b4565b94506020860135610a6d816107b4565b935060408601359250606086013567ffffffffffffffff811115610a9057600080fd5b610a9c888289016107cc565b969995985093965092949392505050565b6020808252600e908201526d1499595b9d1c985b9d0818d85b1b60921b604082015260600190565b6020808252602d908201527f44657374696e6174696f6e20616e6420616d6f756e7420617272617973206c6560408201526c0dccee8d040dad2e6dac2e8c6d609b1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610b6157610b61610b38565b92915050565b600060208284031215610b7957600080fd5b8135610b84816107b4565b9392505050565b600060018201610b9d57610b9d610b38565b5060010190565b600060208284031215610bb657600080fd5b81518015158114610b8457600080fd5b60005b83811015610be1578181015183820152602001610bc9565b50506000910152565b60008251610bfc818460208701610bc6565b9190910192915050565b6020815260008251806020840152610c25816040850160208701610bc6565b601f01601f1916919091016040019291505056fea2646970667358221220b9a8bcd7f8361e681b03b7f22f95b2475a81bb0784e7ddff2028fc43d6c0aa2464736f6c63430008130033
Deployed Bytecode Sourcemap
242:2754:11:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2252:189;;;;;;:::i;:::-;;:::i;:::-;;797:595;;;;;;:::i;:::-;;:::i;1649:426::-;;;;;;:::i;:::-;;:::i;2727:267::-;;;;;;:::i;:::-;;:::i;2252:189::-;499:6;;;;498:7;490:34;;;;-1:-1:-1;;;490:34:11;;;;;;;:::i;:::-;;;;;;;;;534:6;:13;;-1:-1:-1;;534:13:11;543:4;534:13;;;2365:31:::1;::::0;-1:-1:-1;;;;;2365:20:11;::::1;::::0;2386:9:::1;2365:31:::0;::::1;;;::::0;2386:9;;2365:31;534:6;2365:31;2386:9;2365:20;:31;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;2420:2;-1:-1:-1::0;;;;;2411:23:11::1;;2424:9;2411:23;;;;5251:25:14::0;;5239:2;5224:18;;5105:177;2411:23:11::1;;;;;;;;-1:-1:-1::0;;577:5:11;568:14;;-1:-1:-1;;568:14:11;;;-1:-1:-1;2252:189:11:o;797:595::-;499:6;;;;498:7;490:34;;;;-1:-1:-1;;;490:34:11;;;;;;;:::i;:::-;534:6;:13;;-1:-1:-1;;534:13:11;543:4;534:13;;;946;;932:27;::::1;924:85;;;;-1:-1:-1::0;;;924:85:11::1;;;;;;;:::i;:::-;1032:9;1019:10;::::0;1071:256:::1;1088:14:::0;;::::1;1071:256;;;1131:6;1138:1;1131:9;;;;;;;;:::i;:::-;;;;;;;1123:17;;1171:5;1162;:14;;1154:47;;;::::0;-1:-1:-1;;;1154:47:11;;6035:2:14;1154:47:11::1;::::0;::::1;6017:21:14::0;6074:2;6054:18;;;6047:30;-1:-1:-1;;;6093:18:14;;;6086:50;6153:18;;1154:47:11::1;5833:344:14::0;1154:47:11::1;1215:14;1224:5:::0;1215:14;::::1;:::i;:::-;;;1251:3;;1255:1;1251:6;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;1243:24:11::1;:31;1268:5;1243:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;1302:3;;1306:1;1302:6;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;1293:23:11::1;;1310:5;1293:23;;;;5251:25:14::0;;5239:2;5224:18;;5105:177;1293:23:11::1;;;;;;;;1104:3:::0;::::1;::::0;::::1;:::i;:::-;;;;1071:256;;;-1:-1:-1::0;1344:10:11;;1336:49:::1;;;::::0;-1:-1:-1;;;1336:49:11;;7041:2:14;1336:49:11::1;::::0;::::1;7023:21:14::0;7080:2;7060:18;;;7053:30;7119:28;7099:18;;;7092:56;7165:18;;1336:49:11::1;6839:350:14::0;1336:49:11::1;-1:-1:-1::0;;577:5:11;568:14;;-1:-1:-1;;568:14:11;;;-1:-1:-1;;;797:595:11:o;1649:426::-;499:6;;;;498:7;490:34;;;;-1:-1:-1;;;490:34:11;;;;;;;:::i;:::-;534:6;:13;;-1:-1:-1;;534:13:11;543:4;534:13;;;1811:9:::1;:14:::0;1803:45:::1;;;::::0;-1:-1:-1;;;1803:45:11;;7396:2:14;1803:45:11::1;::::0;::::1;7378:21:14::0;7435:2;7415:18;;;7408:30;-1:-1:-1;;;7454:18:14;;;7447:48;7512:18;;1803:45:11::1;7194:342:14::0;1803:45:11::1;1880:13:::0;;1866:27;::::1;1858:85;;;;-1:-1:-1::0;;;1858:85:11::1;;;;;;;:::i;:::-;1958:6;1953:116;1970:14:::0;;::::1;1953:116;;;2005:53;2028:10;2040:3;;2044:1;2040:6;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;2048;2055:1;2048:9;;;;;;;;:::i;:::-;;;;;;;2005:5;-1:-1:-1::0;;;;;2005:22:11::1;;;:53;;;;;;:::i;:::-;1986:3:::0;::::1;::::0;::::1;:::i;:::-;;;;1953:116;;2727:267:::0;499:6;;;;498:7;490:34;;;;-1:-1:-1;;;490:34:11;;;;;;;:::i;:::-;534:6;:13;;-1:-1:-1;;534:13:11;543:4;534:13;;;2895:9:::1;:14:::0;2887:45:::1;;;::::0;-1:-1:-1;;;2887:45:11;;7396:2:14;2887:45:11::1;::::0;::::1;7378:21:14::0;7435:2;7415:18;;;7408:30;-1:-1:-1;;;7454:18:14;;;7447:48;7512:18;;2887:45:11::1;7194:342:14::0;2887:45:11::1;2942;-1:-1:-1::0;;;;;2942:22:11;::::1;2965:10;2977:2:::0;2981:5;974:241:5;1139:68;;;-1:-1:-1;;;;;7799:15:14;;;1139:68:5;;;7781:34:14;7851:15;;7831:18;;;7824:43;7883:18;;;;7876:34;;;1139:68:5;;;;;;;;;;7716:18:14;;;;1139:68:5;;;;;;;;-1:-1:-1;;;;;1139:68:5;-1:-1:-1;;;1139:68:5;;;1112:96;;1132:5;;1112:19;:96::i;:::-;974:241;;;;:::o;3747:706::-;4166:23;4192:69;4220:4;4192:69;;;;;;;;;;;;;;;;;4200:5;-1:-1:-1;;;;;4192:27:5;;;:69;;;;;:::i;:::-;4275:17;;4166:95;;-1:-1:-1;4275:21:5;4271:176;;4370:10;4359:30;;;;;;;;;;;;:::i;:::-;4351:85;;;;-1:-1:-1;;;4351:85:5;;8405:2:14;4351:85:5;;;8387:21:14;8444:2;8424:18;;;8417:30;8483:34;8463:18;;;8456:62;-1:-1:-1;;;8534:18:14;;;8527:40;8584:19;;4351:85:5;8203:406:14;4351:85:5;3817:636;3747:706;;:::o;3873:223:6:-;4006:12;4037:52;4059:6;4067:4;4073:1;4076:12;4037:21;:52::i;:::-;4030:59;3873:223;-1:-1:-1;;;;3873:223:6:o;4960:446::-;5125:12;5182:5;5157:21;:30;;5149:81;;;;-1:-1:-1;;;5149:81:6;;8816:2:14;5149:81:6;;;8798:21:14;8855:2;8835:18;;;8828:30;8894:34;8874:18;;;8867:62;-1:-1:-1;;;8945:18:14;;;8938:36;8991:19;;5149:81:6;8614:402:14;5149:81:6;5241:12;5255:23;5282:6;-1:-1:-1;;;;;5282:11:6;5301:5;5308:4;5282:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5240:73;;;;5330:69;5357:6;5365:7;5374:10;5386:12;5330:26;:69::i;:::-;5323:76;4960:446;-1:-1:-1;;;;;;;4960:446:6:o;7466:628::-;7646:12;7674:7;7670:418;;;7701:10;:17;7722:1;7701:22;7697:286;;-1:-1:-1;;;;;1465:19:6;;;7908:60;;;;-1:-1:-1;;;7908:60:6;;9770:2:14;7908:60:6;;;9752:21:14;9809:2;9789:18;;;9782:30;9848:31;9828:18;;;9821:59;9897:18;;7908:60:6;9568:353:14;7908:60:6;-1:-1:-1;8003:10:6;7996:17;;7670:418;8044:33;8052:10;8064:12;8775:17;;:21;8771:379;;9003:10;8997:17;9059:15;9046:10;9042:2;9038:19;9031:44;8771:379;9126:12;9119:20;;-1:-1:-1;;;9119:20:6;;;;;;;;:::i;14:131:14:-;-1:-1:-1;;;;;89:31:14;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:347::-;201:8;211:6;265:3;258:4;250:6;246:17;242:27;232:55;;283:1;280;273:12;232:55;-1:-1:-1;306:20:14;;349:18;338:30;;335:50;;;381:1;378;371:12;335:50;418:4;410:6;406:17;394:29;;470:3;463:4;454:6;446;442:19;438:30;435:39;432:59;;;487:1;484;477:12;432:59;150:347;;;;;:::o;502:544::-;581:6;589;597;650:2;638:9;629:7;625:23;621:32;618:52;;;666:1;663;656:12;618:52;705:9;692:23;724:31;749:5;724:31;:::i;:::-;774:5;-1:-1:-1;830:2:14;815:18;;802:32;857:18;846:30;;843:50;;;889:1;886;879:12;843:50;928:58;978:7;969:6;958:9;954:22;928:58;:::i;:::-;502:544;;1005:8;;-1:-1:-1;902:84:14;;-1:-1:-1;;;;502:544:14:o;1051:367::-;1114:8;1124:6;1178:3;1171:4;1163:6;1159:17;1155:27;1145:55;;1196:1;1193;1186:12;1145:55;-1:-1:-1;1219:20:14;;1262:18;1251:30;;1248:50;;;1294:1;1291;1284:12;1248:50;1331:4;1323:6;1319:17;1307:29;;1391:3;1384:4;1374:6;1371:1;1367:14;1359:6;1355:27;1351:38;1348:47;1345:67;;;1408:1;1405;1398:12;1423:127;1484:10;1479:3;1475:20;1472:1;1465:31;1515:4;1512:1;1505:15;1539:4;1536:1;1529:15;1555:902;1609:5;1662:3;1655:4;1647:6;1643:17;1639:27;1629:55;;1680:1;1677;1670:12;1629:55;1716:6;1703:20;1742:4;1765:18;1802:2;1798;1795:10;1792:36;;;1808:18;;:::i;:::-;1854:2;1851:1;1847:10;1886:2;1880:9;1949:2;1945:7;1940:2;1936;1932:11;1928:25;1920:6;1916:38;2004:6;1992:10;1989:22;1984:2;1972:10;1969:18;1966:46;1963:72;;;2015:18;;:::i;:::-;2051:2;2044:22;2101:18;;;2177:15;;;2173:24;;;2135:15;;;;-1:-1:-1;2209:15:14;;;2206:35;;;2237:1;2234;2227:12;2206:35;2273:2;2265:6;2261:15;2250:26;;2285:142;2301:6;2296:3;2293:15;2285:142;;;2367:17;;2355:30;;2405:12;;;;2318;;;;2285:142;;2462:684;2582:6;2590;2598;2651:2;2639:9;2630:7;2626:23;2622:32;2619:52;;;2667:1;2664;2657:12;2619:52;2707:9;2694:23;2736:18;2777:2;2769:6;2766:14;2763:34;;;2793:1;2790;2783:12;2763:34;2832:70;2894:7;2885:6;2874:9;2870:22;2832:70;:::i;:::-;2921:8;;-1:-1:-1;2806:96:14;-1:-1:-1;3009:2:14;2994:18;;2981:32;;-1:-1:-1;3025:16:14;;;3022:36;;;3054:1;3051;3044:12;3022:36;;3077:63;3132:7;3121:8;3110:9;3106:24;3077:63;:::i;:::-;3067:73;;;2462:684;;;;;:::o;3151:833::-;3294:6;3302;3310;3318;3371:2;3359:9;3350:7;3346:23;3342:32;3339:52;;;3387:1;3384;3377:12;3339:52;3426:9;3413:23;3445:31;3470:5;3445:31;:::i;:::-;3495:5;-1:-1:-1;3551:2:14;3536:18;;3523:32;3574:18;3604:14;;;3601:34;;;3631:1;3628;3621:12;3601:34;3670:70;3732:7;3723:6;3712:9;3708:22;3670:70;:::i;:::-;3759:8;;-1:-1:-1;3644:96:14;-1:-1:-1;3847:2:14;3832:18;;3819:32;;-1:-1:-1;3863:16:14;;;3860:36;;;3892:1;3889;3882:12;3860:36;;3915:63;3970:7;3959:8;3948:9;3944:24;3915:63;:::i;:::-;3905:73;;;3151:833;;;;;;;:::o;3989:768::-;4100:6;4108;4116;4124;4132;4185:3;4173:9;4164:7;4160:23;4156:33;4153:53;;;4202:1;4199;4192:12;4153:53;4241:9;4228:23;4260:31;4285:5;4260:31;:::i;:::-;4310:5;-1:-1:-1;4367:2:14;4352:18;;4339:32;4380:33;4339:32;4380:33;:::i;:::-;4432:7;-1:-1:-1;4486:2:14;4471:18;;4458:32;;-1:-1:-1;4541:2:14;4526:18;;4513:32;4568:18;4557:30;;4554:50;;;4600:1;4597;4590:12;4554:50;4639:58;4689:7;4680:6;4669:9;4665:22;4639:58;:::i;:::-;3989:768;;;;-1:-1:-1;3989:768:14;;-1:-1:-1;4716:8:14;;4613:84;3989:768;-1:-1:-1;;;3989:768:14:o;4762:338::-;4964:2;4946:21;;;5003:2;4983:18;;;4976:30;-1:-1:-1;;;5037:2:14;5022:18;;5015:44;5091:2;5076:18;;4762:338::o;5287:409::-;5489:2;5471:21;;;5528:2;5508:18;;;5501:30;5567:34;5562:2;5547:18;;5540:62;-1:-1:-1;;;5633:2:14;5618:18;;5611:43;5686:3;5671:19;;5287:409::o;5701:127::-;5762:10;5757:3;5753:20;5750:1;5743:31;5793:4;5790:1;5783:15;5817:4;5814:1;5807:15;6182:127;6243:10;6238:3;6234:20;6231:1;6224:31;6274:4;6271:1;6264:15;6298:4;6295:1;6288:15;6314:128;6381:9;;;6402:11;;;6399:37;;;6416:18;;:::i;:::-;6314:128;;;;:::o;6447:247::-;6506:6;6559:2;6547:9;6538:7;6534:23;6530:32;6527:52;;;6575:1;6572;6565:12;6527:52;6614:9;6601:23;6633:31;6658:5;6633:31;:::i;:::-;6683:5;6447:247;-1:-1:-1;;;6447:247:14:o;6699:135::-;6738:3;6759:17;;;6756:43;;6779:18;;:::i;:::-;-1:-1:-1;6826:1:14;6815:13;;6699:135::o;7921:277::-;7988:6;8041:2;8029:9;8020:7;8016:23;8012:32;8009:52;;;8057:1;8054;8047:12;8009:52;8089:9;8083:16;8142:5;8135:13;8128:21;8121:5;8118:32;8108:60;;8164:1;8161;8154:12;9021:250;9106:1;9116:113;9130:6;9127:1;9124:13;9116:113;;;9206:11;;;9200:18;9187:11;;;9180:39;9152:2;9145:10;9116:113;;;-1:-1:-1;;9263:1:14;9245:16;;9238:27;9021:250::o;9276:287::-;9405:3;9443:6;9437:13;9459:66;9518:6;9513:3;9506:4;9498:6;9494:17;9459:66;:::i;:::-;9541:16;;;;;9276:287;-1:-1:-1;;9276:287:14:o;9926:396::-;10075:2;10064:9;10057:21;10038:4;10107:6;10101:13;10150:6;10145:2;10134:9;10130:18;10123:34;10166:79;10238:6;10233:2;10222:9;10218:18;10213:2;10205:6;10201:15;10166:79;:::i;:::-;10306:2;10285:15;-1:-1:-1;;10281:29:14;10266:45;;;;10313:2;10262:54;;9926:396;-1:-1:-1;;9926:396:14:o
Swarm Source
ipfs://b9a8bcd7f8361e681b03b7f22f95b2475a81bb0784e7ddff2028fc43d6c0aa24
Net Worth in USD
Net Worth in ETH
Token Allocations
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.383483 | 1 | $0.3834 |
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.