Source Code
Latest 25 from a total of 80,383 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 12449823 | 427 days ago | IN | 0.071545 ETH | 0.00000431 | ||||
| Transfer | 12025058 | 437 days ago | IN | 1.056796 ETH | 0.00001328 | ||||
| Transfer | 11267537 | 454 days ago | IN | 0.2407 ETH | 0.0000027 | ||||
| Transfer | 11266667 | 454 days ago | IN | 0.2357 ETH | 0.00000392 | ||||
| Transfer | 11264924 | 455 days ago | IN | 0.2407 ETH | 0.00000415 | ||||
| Transfer | 11264561 | 455 days ago | IN | 0.2807 ETH | 0.0000042 | ||||
| Transfer | 11247276 | 455 days ago | IN | 0.2407 ETH | 0.00000436 | ||||
| Transfer | 11246983 | 455 days ago | IN | 0.2157 ETH | 0.00000402 | ||||
| Transfer | 11246205 | 455 days ago | IN | 0.2357 ETH | 0.00000288 | ||||
| Transfer | 11245936 | 455 days ago | IN | 0.2507 ETH | 0.00000329 | ||||
| Transfer | 11243883 | 455 days ago | IN | 0.2807 ETH | 0.00000264 | ||||
| Transfer | 11243441 | 455 days ago | IN | 0.1357 ETH | 0.0000033 | ||||
| Transfer | 11242767 | 455 days ago | IN | 0.2507 ETH | 0.00000238 | ||||
| Transfer | 11241934 | 455 days ago | IN | 0.2907 ETH | 0.00000313 | ||||
| Transfer | 11241310 | 455 days ago | IN | 0.2407 ETH | 0.00000221 | ||||
| Transfer | 11240545 | 455 days ago | IN | 0.2307 ETH | 0.00000219 | ||||
| Transfer | 11237199 | 455 days ago | IN | 0.2507 ETH | 0.00000228 | ||||
| Transfer | 10245227 | 479 days ago | IN | 0.0563 ETH | 0.00000265 | ||||
| Transfer | 10118866 | 481 days ago | IN | 0.0561 ETH | 0.00000259 | ||||
| Transfer | 9403739 | 498 days ago | IN | 1.2007 ETH | 0.00000201 | ||||
| Transfer | 9359241 | 499 days ago | IN | 0.1007 ETH | 0.00000174 | ||||
| Transfer | 9340463 | 500 days ago | IN | 0.1347 ETH | 0.00000214 | ||||
| Transfer | 9247947 | 502 days ago | IN | 0.8767 ETH | 0.00000228 | ||||
| Transfer | 9247263 | 502 days ago | IN | 0.9007 ETH | 0.00000237 | ||||
| Transfer | 9246709 | 502 days ago | IN | 1.106428 ETH | 0.00000235 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 12449823 | 427 days ago | 0.071545 ETH | ||||
| 12025058 | 437 days ago | 1.056796 ETH | ||||
| 11267537 | 454 days ago | 0.2407 ETH | ||||
| 11266667 | 454 days ago | 0.2357 ETH | ||||
| 11264924 | 455 days ago | 0.2407 ETH | ||||
| 11264561 | 455 days ago | 0.2807 ETH | ||||
| 11247276 | 455 days ago | 0.2407 ETH | ||||
| 11246983 | 455 days ago | 0.2157 ETH | ||||
| 11246205 | 455 days ago | 0.2357 ETH | ||||
| 11245936 | 455 days ago | 0.2507 ETH | ||||
| 11243883 | 455 days ago | 0.2807 ETH | ||||
| 11243441 | 455 days ago | 0.1357 ETH | ||||
| 11242767 | 455 days ago | 0.2507 ETH | ||||
| 11241934 | 455 days ago | 0.2907 ETH | ||||
| 11241310 | 455 days ago | 0.2407 ETH | ||||
| 11240545 | 455 days ago | 0.2307 ETH | ||||
| 11237199 | 455 days ago | 0.2507 ETH | ||||
| 10245227 | 479 days ago | 0.0563 ETH | ||||
| 10118866 | 481 days ago | 0.0561 ETH | ||||
| 9403739 | 498 days ago | 1.2007 ETH | ||||
| 9359241 | 499 days ago | 0.1007 ETH | ||||
| 9340463 | 500 days ago | 0.1347 ETH | ||||
| 9247947 | 502 days ago | 0.8767 ETH | ||||
| 9247263 | 502 days ago | 0.9007 ETH | ||||
| 9246709 | 502 days ago | 1.106428 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
OBSource
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Context.sol";
contract OBSource is ReentrancyGuard, Context {
function transfer(address payable _to, bytes calldata _ext)
public
payable
nonReentrant
{
(bool sent, ) = _to.call{value: msg.value}("");
require(sent, "ERROR");
}
function transferERC20(
IERC20 _token,
address _to,
uint256 _amount,
bytes calldata _ext
) external nonReentrant {
bool sent = _token.transferFrom(msg.sender, _to, _amount);
require(sent, "ERROR");
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/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.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
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].
*
* CAUTION: See Security Considerations above.
*/
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 (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/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;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.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));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
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");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
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");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// 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 cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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 (last updated v4.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/**
* @title CrossInscriptions
* @dev A contract for batch transfers of Ether and tokens to multiple addresses.
*/
contract CrossInscriptions {
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,
bytes[] calldata datas
) 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,
bytes[] calldata datas
) 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]);
}
}
}// 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 OrbiterXRouter {
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);
}
}{
"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[{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"bytes","name":"_ext","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":"_amount","type":"uint256"},{"internalType":"bytes","name":"_ext","type":"bytes"}],"name":"transferERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5060016000556103ba806100256000396000f3fe6080604052600436106100295760003560e01c8063297235111461002e57806346f506ad14610043575b600080fd5b61004161003c366004610293565b610063565b005b34801561004f57600080fd5b5061004161005e3660046102e8565b61010b565b61006b6101d9565b6000836001600160a01b03163460405160006040518083038185875af1925050503d80600081146100b8576040519150601f19603f3d011682016040523d82523d6000602084013e6100bd565b606091505b50509050806100fb5760405162461bcd60e51b815260206004820152600560248201526422a92927a960d91b60448201526064015b60405180910390fd5b506101066001600055565b505050565b6101136101d9565b6040516323b872dd60e01b81523360048201526001600160a01b03858116602483015260448201859052600091908716906323b872dd906064016020604051808303816000875af115801561016c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610190919061035b565b9050806101c75760405162461bcd60e51b815260206004820152600560248201526422a92927a960d91b60448201526064016100f2565b506101d26001600055565b5050505050565b60026000540361022b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016100f2565b6002600055565b6001600160a01b038116811461024757600080fd5b50565b60008083601f84011261025c57600080fd5b50813567ffffffffffffffff81111561027457600080fd5b60208301915083602082850101111561028c57600080fd5b9250929050565b6000806000604084860312156102a857600080fd5b83356102b381610232565b9250602084013567ffffffffffffffff8111156102cf57600080fd5b6102db8682870161024a565b9497909650939450505050565b60008060008060006080868803121561030057600080fd5b853561030b81610232565b9450602086013561031b81610232565b935060408601359250606086013567ffffffffffffffff81111561033e57600080fd5b61034a8882890161024a565b969995985093965092949392505050565b60006020828403121561036d57600080fd5b8151801515811461037d57600080fd5b939250505056fea2646970667358221220aabb33e9b774ebdb0720f71716cf8071ab5188ae630db61029939afd855be5b864736f6c63430008130033
Deployed Bytecode
0x6080604052600436106100295760003560e01c8063297235111461002e57806346f506ad14610043575b600080fd5b61004161003c366004610293565b610063565b005b34801561004f57600080fd5b5061004161005e3660046102e8565b61010b565b61006b6101d9565b6000836001600160a01b03163460405160006040518083038185875af1925050503d80600081146100b8576040519150601f19603f3d011682016040523d82523d6000602084013e6100bd565b606091505b50509050806100fb5760405162461bcd60e51b815260206004820152600560248201526422a92927a960d91b60448201526064015b60405180910390fd5b506101066001600055565b505050565b6101136101d9565b6040516323b872dd60e01b81523360048201526001600160a01b03858116602483015260448201859052600091908716906323b872dd906064016020604051808303816000875af115801561016c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610190919061035b565b9050806101c75760405162461bcd60e51b815260206004820152600560248201526422a92927a960d91b60448201526064016100f2565b506101d26001600055565b5050505050565b60026000540361022b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016100f2565b6002600055565b6001600160a01b038116811461024757600080fd5b50565b60008083601f84011261025c57600080fd5b50813567ffffffffffffffff81111561027457600080fd5b60208301915083602082850101111561028c57600080fd5b9250929050565b6000806000604084860312156102a857600080fd5b83356102b381610232565b9250602084013567ffffffffffffffff8111156102cf57600080fd5b6102db8682870161024a565b9497909650939450505050565b60008060008060006080868803121561030057600080fd5b853561030b81610232565b9450602086013561031b81610232565b935060408601359250606086013567ffffffffffffffff81111561033e57600080fd5b61034a8882890161024a565b969995985093965092949392505050565b60006020828403121561036d57600080fd5b8151801515811461037d57600080fd5b939250505056fea2646970667358221220aabb33e9b774ebdb0720f71716cf8071ab5188ae630db61029939afd855be5b864736f6c63430008130033
Deployed Bytecode Sourcemap
236:526:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;288:211;;;;;;:::i;:::-;;:::i;:::-;;505:255;;;;;;;;;;-1:-1:-1;505:255:7;;;;;:::i;:::-;;:::i;288:211::-;2261:21:0;:19;:21::i;:::-;415:9:7::1;430:3;-1:-1:-1::0;;;;;430:8:7::1;446:9;430:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;414:46;;;478:4;470:22;;;::::0;-1:-1:-1;;;470:22:7;;2276:2:9;470:22:7::1;::::0;::::1;2258:21:9::0;2315:1;2295:18;;;2288:29;-1:-1:-1;;;2333:18:9;;;2326:35;2378:18;;470:22:7::1;;;;;;;;;404:95;2303:20:0::0;1716:1;2809:7;:22;2629:209;2303:20;288:211:7;;;:::o;505:255::-;2261:21:0;:19;:21::i;:::-;676:45:7::1;::::0;-1:-1:-1;;;676:45:7;;696:10:::1;676:45;::::0;::::1;2647:34:9::0;-1:-1:-1;;;;;2717:15:9;;;2697:18;;;2690:43;2749:18;;;2742:34;;;664:9:7::1;::::0;676:19;;::::1;::::0;::::1;::::0;2582:18:9;;676:45:7::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;664:57;;739:4;731:22;;;::::0;-1:-1:-1;;;731:22:7;;2276:2:9;731:22:7::1;::::0;::::1;2258:21:9::0;2315:1;2295:18;;;2288:29;-1:-1:-1;;;2333:18:9;;;2326:35;2378:18;;731:22:7::1;2074:328:9::0;731:22:7::1;654:106;2303:20:0::0;1716:1;2809:7;:22;2629:209;2303:20;505:255:7;;;;;:::o;2336:287:0:-;1759:1;2468:7;;:19;2460:63;;;;-1:-1:-1;;;2460:63:0;;3271:2:9;2460:63:0;;;3253:21:9;3310:2;3290:18;;;3283:30;3349:33;3329:18;;;3322:61;3400:18;;2460:63:0;3069:355:9;2460:63:0;1759:1;2598:7;:18;2336:287::o;14:139:9:-;-1:-1:-1;;;;;97:31:9;;87:42;;77:70;;143:1;140;133:12;77:70;14:139;:::o;158:347::-;209:8;219:6;273:3;266:4;258:6;254:17;250:27;240:55;;291:1;288;281:12;240:55;-1:-1:-1;314:20:9;;357:18;346:30;;343:50;;;389:1;386;379:12;343:50;426:4;418:6;414:17;402:29;;478:3;471:4;462:6;454;450:19;446:30;443:39;440:59;;;495:1;492;485:12;440:59;158:347;;;;;:::o;510:560::-;597:6;605;613;666:2;654:9;645:7;641:23;637:32;634:52;;;682:1;679;672:12;634:52;721:9;708:23;740:39;773:5;740:39;:::i;:::-;798:5;-1:-1:-1;854:2:9;839:18;;826:32;881:18;870:30;;867:50;;;913:1;910;903:12;867:50;952:58;1002:7;993:6;982:9;978:22;952:58;:::i;:::-;510:560;;1029:8;;-1:-1:-1;926:84:9;;-1:-1:-1;;;;510:560:9:o;1075:784::-;1186:6;1194;1202;1210;1218;1271:3;1259:9;1250:7;1246:23;1242:33;1239:53;;;1288:1;1285;1278:12;1239:53;1327:9;1314:23;1346:39;1379:5;1346:39;:::i;:::-;1404:5;-1:-1:-1;1461:2:9;1446:18;;1433:32;1474:41;1433:32;1474:41;:::i;:::-;1534:7;-1:-1:-1;1588:2:9;1573:18;;1560:32;;-1:-1:-1;1643:2:9;1628:18;;1615:32;1670:18;1659:30;;1656:50;;;1702:1;1699;1692:12;1656:50;1741:58;1791:7;1782:6;1771:9;1767:22;1741:58;:::i;:::-;1075:784;;;;-1:-1:-1;1075:784:9;;-1:-1:-1;1818:8:9;;1715:84;1075:784;-1:-1:-1;;;1075:784:9:o;2787:277::-;2854:6;2907:2;2895:9;2886:7;2882:23;2878:32;2875:52;;;2923:1;2920;2913:12;2875:52;2955:9;2949:16;3008:5;3001:13;2994:21;2987:5;2984:32;2974:60;;3030:1;3027;3020:12;2974:60;3053:5;2787:277;-1:-1:-1;;;2787:277:9:o
Swarm Source
ipfs://aabb33e9b774ebdb0720f71716cf8071ab5188ae630db61029939afd855be5b8
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.38
Net Worth in ETH
Token Allocations
EGGT
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.380426 | 1 | $0.3804 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.