Source Code
Latest 25 from a total of 106 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Pay For Mint Wit... | 24509904 | 4 hrs ago | IN | 0 ETH | 0.00027302 | ||||
| Pay For Mint Wit... | 24509893 | 4 hrs ago | IN | 0 ETH | 0.00027288 | ||||
| Pay For Mint | 24445815 | 9 days ago | IN | 0.006082 ETH | 0.00019602 | ||||
| Pay For Mint | 24445812 | 9 days ago | IN | 0.005877 ETH | 0.00020609 | ||||
| Pay For Mint Wit... | 24444759 | 9 days ago | IN | 0 ETH | 0.00026306 | ||||
| Pay For Mint | 24438803 | 10 days ago | IN | 0.006059 ETH | 0.000015 | ||||
| Pay For Mint Wit... | 24428831 | 11 days ago | IN | 0 ETH | 0.00026714 | ||||
| Pay For Mint | 24388488 | 17 days ago | IN | 0.013762 ETH | 0.00020459 | ||||
| Withdraw Token | 24300352 | 29 days ago | IN | 0 ETH | 0.00001261 | ||||
| Withdraw | 24300338 | 29 days ago | IN | 0 ETH | 0.00000534 | ||||
| Pay For Mint | 24224876 | 39 days ago | IN | 0.005003 ETH | 0.0001968 | ||||
| Pay For Mint Wit... | 24080641 | 60 days ago | IN | 0 ETH | 0.00025968 | ||||
| Pay For Mint Wit... | 24080404 | 60 days ago | IN | 0 ETH | 0.00025973 | ||||
| Pay For Mint Wit... | 24080390 | 60 days ago | IN | 0 ETH | 0.00025999 | ||||
| Pay For Mint Wit... | 24080377 | 60 days ago | IN | 0 ETH | 0.00026038 | ||||
| Pay For Mint Wit... | 24080363 | 60 days ago | IN | 0 ETH | 0.00025991 | ||||
| Pay For Mint Wit... | 24080314 | 60 days ago | IN | 0 ETH | 0.00025044 | ||||
| Pay For Mint | 24053895 | 63 days ago | IN | 0.003996 ETH | 0.0001939 | ||||
| Pay For Mint | 23965240 | 76 days ago | IN | 0.002325 ETH | 0.00001995 | ||||
| Pay For Mint | 23965053 | 76 days ago | IN | 0.002579 ETH | 0.00023357 | ||||
| Pay For Mint | 23964697 | 76 days ago | IN | 0.002331 ETH | 0.000209 | ||||
| Pay For Mint | 23961471 | 76 days ago | IN | 0.005254 ETH | 0.00019576 | ||||
| Pay For Mint | 23954982 | 77 days ago | IN | 0.007279 ETH | 0.00019367 | ||||
| Pay For Mint | 23954958 | 77 days ago | IN | 0.00224 ETH | 0.00019325 | ||||
| Pay For Mint Wit... | 23934317 | 80 days ago | IN | 0 ETH | 0.0000059 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
OrdXPayment
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 420 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
/**
* @title OrdXPayment
* @dev Contract for handling payments for Bitcoin Ordinals NFTs on the Ord-X platform
* Supports ETH, USDC, and USDT payments
*/
contract OrdXPayment is Ownable, ReentrancyGuard {
// Token addresses
address public immutable usdcAddress;
address public immutable usdtAddress;
// Struct to store sale information
struct SaleInfo {
bool processed;
string currency;
uint256 amount;
}
// Mapping to track processed sales
mapping(string => SaleInfo) public processedSales;
// Events
event PaymentReceived(
string indexed saleId,
address indexed payer,
uint256 amount,
string currency,
bytes32 txHash
);
event Withdrawn(address indexed to, uint256 amount);
event TokenWithdrawn(address indexed token, address indexed to, uint256 amount);
/**
* @dev Constructor sets the token addresses and the contract owner
* @param _usdcAddress Address of the USDC token contract
* @param _usdtAddress Address of the USDT token contract
* @param _owner Address of the contract owner
*/
constructor(
address _usdcAddress,
address _usdtAddress,
address _owner
) Ownable(_owner) {
require(_usdcAddress != address(0), "USDC address cannot be zero");
require(_usdtAddress != address(0), "USDT address cannot be zero");
require(_owner != address(0), "Owner address cannot be zero");
usdcAddress = _usdcAddress;
usdtAddress = _usdtAddress;
}
/**
* @dev Pay for a mint with ETH
* @param saleId Unique identifier for the sale
* @param expectedAmount Minimum ETH amount expected for the sale (with 2% buffer)
*/
function payForMint(string calldata saleId, uint256 expectedAmount) external payable nonReentrant {
require(!processedSales[saleId].processed, "Sale already processed");
require(msg.value >= expectedAmount, "Insufficient ETH sent");
processedSales[saleId] = SaleInfo({
processed: true,
currency: "ETH",
amount: msg.value
});
// Emit event with transaction hash for off-chain verification
emit PaymentReceived(
saleId,
msg.sender,
msg.value,
"ETH",
blockhash(block.number - 1) // Using previous block hash as a placeholder
);
}
/**
* @dev Pay for a mint with USDC
* @param saleId Unique identifier for the sale
* @param amount Amount of USDC to transfer
*/
function payForMintWithUSDC(string calldata saleId, uint256 amount) external nonReentrant {
require(!processedSales[saleId].processed, "Sale already processed");
require(amount > 0, "Amount must be greater than 0");
IERC20 usdc = IERC20(usdcAddress);
require(usdc.transferFrom(msg.sender, address(this), amount), "USDC transfer failed");
processedSales[saleId] = SaleInfo({
processed: true,
currency: "USDC",
amount: amount
});
emit PaymentReceived(
saleId,
msg.sender,
amount,
"USDC",
blockhash(block.number - 1)
);
}
/**
* @dev Pay for a mint with USDT
* @param saleId Unique identifier for the sale
* @param amount Amount of USDT to transfer
*/
function payForMintWithUSDT(string calldata saleId, uint256 amount) external nonReentrant {
require(!processedSales[saleId].processed, "Sale already processed");
require(amount > 0, "Amount must be greater than 0");
IERC20 usdt = IERC20(usdtAddress);
require(usdt.transferFrom(msg.sender, address(this), amount), "USDT transfer failed");
processedSales[saleId] = SaleInfo({
processed: true,
currency: "USDT",
amount: amount
});
emit PaymentReceived(
saleId,
msg.sender,
amount,
"USDT",
blockhash(block.number - 1)
);
}
/**
* @dev Check if a sale has been processed
* @param saleId Unique identifier for the sale
* @return bool Whether the sale has been processed
*/
function isSaleProcessed(string calldata saleId) external view returns (bool) {
return processedSales[saleId].processed;
}
/**
* @dev Get sale information for a given sale ID
* @param saleId Unique identifier for the sale
* @return processed Whether the sale has been processed
* @return currency The currency used for the sale
* @return amount The amount of the sale
*/
function getSaleInfo(string calldata saleId) external view returns (bool processed, string memory currency, uint256 amount) {
SaleInfo memory info = processedSales[saleId];
return (info.processed, info.currency, info.amount);
}
/**
* @dev Withdraw ETH from the contract to the owner
* @param amount Amount of ETH to withdraw
*/
function withdraw(uint256 amount) external onlyOwner nonReentrant {
require(amount > 0, "Amount must be greater than 0");
require(amount <= address(this).balance, "Insufficient balance");
address payable ownerAddress = payable(owner());
(bool success, ) = ownerAddress.call{value: amount}("");
require(success, "Withdrawal failed");
emit Withdrawn(ownerAddress, amount);
}
/**
* @dev Withdraw tokens from the contract to the owner
* @param tokenAddress Address of the token to withdraw
* @param amount Amount of tokens to withdraw
*/
function withdrawToken(address tokenAddress, uint256 amount) external onlyOwner nonReentrant {
require(tokenAddress != address(0), "Token address cannot be zero");
require(amount > 0, "Amount must be greater than 0");
address ownerAddress = owner();
IERC20 token = IERC20(tokenAddress);
require(token.transfer(ownerAddress, amount), "Token transfer failed");
emit TokenWithdrawn(tokenAddress, ownerAddress, amount);
}
/**
* @dev Get the balance of ETH in the contract
* @return uint256 Balance of ETH
*/
function getBalance() external view returns (uint256) {
return address(this).balance;
}
/**
* @dev Get the balance of a token in the contract
* @param tokenAddress Address of the token
* @return uint256 Balance of the token
*/
function getTokenBalance(address tokenAddress) external view returns (uint256) {
return IERC20(tokenAddress).balanceOf(address(this));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}{
"optimizer": {
"enabled": true,
"runs": 420
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_usdcAddress","type":"address"},{"internalType":"address","name":"_usdtAddress","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"saleId","type":"string"},{"indexed":true,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"currency","type":"string"},{"indexed":false,"internalType":"bytes32","name":"txHash","type":"bytes32"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"saleId","type":"string"}],"name":"getSaleInfo","outputs":[{"internalType":"bool","name":"processed","type":"bool"},{"internalType":"string","name":"currency","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"getTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"saleId","type":"string"}],"name":"isSaleProcessed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"saleId","type":"string"},{"internalType":"uint256","name":"expectedAmount","type":"uint256"}],"name":"payForMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"saleId","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"payForMintWithUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"saleId","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"payForMintWithUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"processedSales","outputs":[{"internalType":"bool","name":"processed","type":"bool"},{"internalType":"string","name":"currency","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdcAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdtAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60c06040523480156200001157600080fd5b506040516200180e3803806200180e833981016040819052620000349162000203565b806001600160a01b0381166200006557604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000708162000196565b50600180556001600160a01b038316620000cd5760405162461bcd60e51b815260206004820152601b60248201527f5553444320616464726573732063616e6e6f74206265207a65726f000000000060448201526064016200005c565b6001600160a01b038216620001255760405162461bcd60e51b815260206004820152601b60248201527f5553445420616464726573732063616e6e6f74206265207a65726f000000000060448201526064016200005c565b6001600160a01b0381166200017d5760405162461bcd60e51b815260206004820152601c60248201527f4f776e657220616464726573732063616e6e6f74206265207a65726f0000000060448201526064016200005c565b506001600160a01b039182166080521660a0526200024d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001fe57600080fd5b919050565b6000806000606084860312156200021957600080fd5b6200022484620001e6565b92506200023460208501620001e6565b91506200024460408501620001e6565b90509250925092565b60805160a05161158e62000280600039600081816102640152610e4101526000818160ff0152610618015261158e6000f3fe6080604052600436106100e85760003560e01c806387dc57301161008a5780639e281a98116100595780639e281a9814610286578063a9e4ea51146102a6578063e2c93de9146102c6578063f2fde38b146102f657600080fd5b806387dc5730146102015780638a13d8bf146102215780638da5cb5b146102345780639ab4a4451461025257600080fd5b80633aecd0e3116100c65780633aecd0e31461017d5780635de429e01461019d578063715018a6146101bd578063841dc6d6146101d257600080fd5b806302d45457146100ed57806312065fe01461013e5780632e1a7d4d1461015b575b600080fd5b3480156100f957600080fd5b506101217f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014a57600080fd5b50475b604051908152602001610135565b34801561016757600080fd5b5061017b610176366004611123565b610316565b005b34801561018957600080fd5b5061014d610198366004611158565b6104c2565b3480156101a957600080fd5b5061017b6101b83660046111c3565b610533565b3480156101c957600080fd5b5061017b6107ef565b3480156101de57600080fd5b506101f26101ed366004611225565b610803565b604051610135939291906112d6565b34801561020d57600080fd5b506101f261021c366004611336565b6108bd565b61017b61022f3660046111c3565b6109b3565b34801561024057600080fd5b506000546001600160a01b0316610121565b34801561025e57600080fd5b506101217f000000000000000000000000000000000000000000000000000000000000000081565b34801561029257600080fd5b5061017b6102a1366004611378565b610b79565b3480156102b257600080fd5b5061017b6102c13660046111c3565b610d5c565b3480156102d257600080fd5b506102e66102e1366004611336565b611005565b6040519015158152602001610135565b34801561030257600080fd5b5061017b610311366004611158565b611034565b61031e61106f565b61032661109c565b6000811161037b5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203000000060448201526064015b60405180910390fd5b478111156103cb5760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610372565b600080546040516001600160a01b039091169190829084908381818185875af1925050503d806000811461041b576040519150601f19603f3d011682016040523d82523d6000602084013e610420565b606091505b50509050806104715760405162461bcd60e51b815260206004820152601160248201527f5769746864726177616c206661696c65640000000000000000000000000000006044820152606401610372565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040516104ac91815260200190565b60405180910390a250506104bf60018055565b50565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052d91906113a2565b92915050565b61053b61109c565b6002838360405161054d9291906113bb565b9081526040519081900360200190205460ff16156105a65760405162461bcd60e51b815260206004820152601660248201527514d85b1948185b1c9958591e481c1c9bd8d95cdcd95960521b6044820152606401610372565b600081116105f65760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610372565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b038216906323b872dd906064016020604051808303816000875af115801561066b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068f91906113cb565b6106db5760405162461bcd60e51b815260206004820152601460248201527f55534443207472616e73666572206661696c65640000000000000000000000006044820152606401610372565b6040518060600160405280600115158152602001604051806040016040528060048152602001635553444360e01b815250815260200183815250600285856040516107279291906113bb565b908152604051602091819003820190208251815460ff19169015151781559082015160018201906107589082611477565b5060409182015160029091015551339061077590869086906113bb565b6040519081900390207f9b26bd59207aed1ca3b855f5c822dc569f3101181b2d49e6e08ed603d0110c56846107ab600143611537565b60408051928352606060208401819052600490840152635553444360e01b608084015290409082015260a0015b60405180910390a3506107ea60018055565b505050565b6107f761106f565b61080160006110c6565b565b80516020818301810180516002825292820191909301209152805460018201805460ff9092169291610834906113ed565b80601f0160208091040260200160405190810160405280929190818152602001828054610860906113ed565b80156108ad5780601f10610882576101008083540402835291602001916108ad565b820191906000526020600020905b81548152906001019060200180831161089057829003601f168201915b5050505050908060020154905083565b60006060600080600286866040516108d69291906113bb565b90815260408051918290036020908101832060608401909252815460ff16151583526001820180549184019161090b906113ed565b80601f0160208091040260200160405190810160405280929190818152602001828054610937906113ed565b80156109845780601f1061095957610100808354040283529160200191610984565b820191906000526020600020905b81548152906001019060200180831161096757829003601f168201915b505050918352505060029190910154602091820152815190820151604090920151909891975095509350505050565b6109bb61109c565b600283836040516109cd9291906113bb565b9081526040519081900360200190205460ff1615610a265760405162461bcd60e51b815260206004820152601660248201527514d85b1948185b1c9958591e481c1c9bd8d95cdcd95960521b6044820152606401610372565b80341015610a765760405162461bcd60e51b815260206004820152601560248201527f496e73756666696369656e74204554482073656e7400000000000000000000006044820152606401610372565b604080516060810182526001815281518083018352600381526208aa8960eb1b60208281019190915282015234818301529051600290610ab990869086906113bb565b908152604051602091819003820190208251815460ff1916901515178155908201516001820190610aea9082611477565b50604091820151600290910155513390610b0790859085906113bb565b6040519081900390207f9b26bd59207aed1ca3b855f5c822dc569f3101181b2d49e6e08ed603d0110c5634610b3d600143611537565b604080519283526060602084018190526003908401526208aa8960eb1b608084015290409082015260a00160405180910390a36107ea60018055565b610b8161106f565b610b8961109c565b6001600160a01b038216610bdf5760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e20616464726573732063616e6e6f74206265207a65726f000000006044820152606401610372565b60008111610c2f5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610372565b600080546001600160a01b031660405163a9059cbb60e01b81526001600160a01b03808316600483015260248201859052919250849182169063a9059cbb906044016020604051808303816000875af1158015610c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb491906113cb565b610d005760405162461bcd60e51b815260206004820152601560248201527f546f6b656e207472616e73666572206661696c656400000000000000000000006044820152606401610372565b816001600160a01b0316846001600160a01b03167f8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e562085604051610d4591815260200190565b60405180910390a35050610d5860018055565b5050565b610d6461109c565b60028383604051610d769291906113bb565b9081526040519081900360200190205460ff1615610dcf5760405162461bcd60e51b815260206004820152601660248201527514d85b1948185b1c9958591e481c1c9bd8d95cdcd95960521b6044820152606401610372565b60008111610e1f5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610372565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b038216906323b872dd906064016020604051808303816000875af1158015610e94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb891906113cb565b610f045760405162461bcd60e51b815260206004820152601460248201527f55534454207472616e73666572206661696c65640000000000000000000000006044820152606401610372565b6040518060600160405280600115158152602001604051806040016040528060048152602001631554d11560e21b81525081526020018381525060028585604051610f509291906113bb565b908152604051602091819003820190208251815460ff1916901515178155908201516001820190610f819082611477565b50604091820151600290910155513390610f9e90869086906113bb565b6040519081900390207f9b26bd59207aed1ca3b855f5c822dc569f3101181b2d49e6e08ed603d0110c5684610fd4600143611537565b60408051928352606060208401819052600490840152631554d11560e21b608084015290409082015260a0016107d8565b6000600283836040516110199291906113bb565b9081526040519081900360200190205460ff16905092915050565b61103c61106f565b6001600160a01b03811661106657604051631e4fbdf760e01b815260006004820152602401610372565b6104bf816110c6565b6000546001600160a01b031633146108015760405163118cdaa760e01b8152336004820152602401610372565b6002600154036110bf57604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561113557600080fd5b5035919050565b80356001600160a01b038116811461115357600080fd5b919050565b60006020828403121561116a57600080fd5b6111738261113c565b9392505050565b60008083601f84011261118c57600080fd5b50813567ffffffffffffffff8111156111a457600080fd5b6020830191508360208285010111156111bc57600080fd5b9250929050565b6000806000604084860312156111d857600080fd5b833567ffffffffffffffff8111156111ef57600080fd5b6111fb8682870161117a565b909790965060209590950135949350505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561123757600080fd5b813567ffffffffffffffff8082111561124f57600080fd5b818401915084601f83011261126357600080fd5b8135818111156112755761127561120f565b604051601f8201601f19908116603f0116810190838211818310171561129d5761129d61120f565b816040528281528760208487010111156112b657600080fd5b826020860160208301376000928101602001929092525095945050505050565b83151581526000602060606020840152845180606085015260005b8181101561130d578681018301518582016080015282016112f1565b506000608082860101526080601f19601f83011685010192505050826040830152949350505050565b6000806020838503121561134957600080fd5b823567ffffffffffffffff81111561136057600080fd5b61136c8582860161117a565b90969095509350505050565b6000806040838503121561138b57600080fd5b6113948361113c565b946020939093013593505050565b6000602082840312156113b457600080fd5b5051919050565b8183823760009101908152919050565b6000602082840312156113dd57600080fd5b8151801515811461117357600080fd5b600181811c9082168061140157607f821691505b60208210810361142157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156107ea576000816000526020600020601f850160051c810160208610156114505750805b601f850160051c820191505b8181101561146f5782815560010161145c565b505050505050565b815167ffffffffffffffff8111156114915761149161120f565b6114a58161149f84546113ed565b84611427565b602080601f8311600181146114da57600084156114c25750858301515b600019600386901b1c1916600185901b17855561146f565b600085815260208120601f198616915b82811015611509578886015182559484019460019091019084016114ea565b50858210156115275787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561052d57634e487b7160e01b600052601160045260246000fdfea26469706673582212203099240cf9cf78a36ab04683d6ac883a24c94b5e6eb4daa9c5f0e50e2182810b64736f6c63430008180033000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000049af770e0dd596d4022871d13e12095bb2b239a3
Deployed Bytecode
0x6080604052600436106100e85760003560e01c806387dc57301161008a5780639e281a98116100595780639e281a9814610286578063a9e4ea51146102a6578063e2c93de9146102c6578063f2fde38b146102f657600080fd5b806387dc5730146102015780638a13d8bf146102215780638da5cb5b146102345780639ab4a4451461025257600080fd5b80633aecd0e3116100c65780633aecd0e31461017d5780635de429e01461019d578063715018a6146101bd578063841dc6d6146101d257600080fd5b806302d45457146100ed57806312065fe01461013e5780632e1a7d4d1461015b575b600080fd5b3480156100f957600080fd5b506101217f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014a57600080fd5b50475b604051908152602001610135565b34801561016757600080fd5b5061017b610176366004611123565b610316565b005b34801561018957600080fd5b5061014d610198366004611158565b6104c2565b3480156101a957600080fd5b5061017b6101b83660046111c3565b610533565b3480156101c957600080fd5b5061017b6107ef565b3480156101de57600080fd5b506101f26101ed366004611225565b610803565b604051610135939291906112d6565b34801561020d57600080fd5b506101f261021c366004611336565b6108bd565b61017b61022f3660046111c3565b6109b3565b34801561024057600080fd5b506000546001600160a01b0316610121565b34801561025e57600080fd5b506101217f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec781565b34801561029257600080fd5b5061017b6102a1366004611378565b610b79565b3480156102b257600080fd5b5061017b6102c13660046111c3565b610d5c565b3480156102d257600080fd5b506102e66102e1366004611336565b611005565b6040519015158152602001610135565b34801561030257600080fd5b5061017b610311366004611158565b611034565b61031e61106f565b61032661109c565b6000811161037b5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e203000000060448201526064015b60405180910390fd5b478111156103cb5760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610372565b600080546040516001600160a01b039091169190829084908381818185875af1925050503d806000811461041b576040519150601f19603f3d011682016040523d82523d6000602084013e610420565b606091505b50509050806104715760405162461bcd60e51b815260206004820152601160248201527f5769746864726177616c206661696c65640000000000000000000000000000006044820152606401610372565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040516104ac91815260200190565b60405180910390a250506104bf60018055565b50565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052d91906113a2565b92915050565b61053b61109c565b6002838360405161054d9291906113bb565b9081526040519081900360200190205460ff16156105a65760405162461bcd60e51b815260206004820152601660248201527514d85b1948185b1c9958591e481c1c9bd8d95cdcd95960521b6044820152606401610372565b600081116105f65760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610372565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48906001600160a01b038216906323b872dd906064016020604051808303816000875af115801561066b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068f91906113cb565b6106db5760405162461bcd60e51b815260206004820152601460248201527f55534443207472616e73666572206661696c65640000000000000000000000006044820152606401610372565b6040518060600160405280600115158152602001604051806040016040528060048152602001635553444360e01b815250815260200183815250600285856040516107279291906113bb565b908152604051602091819003820190208251815460ff19169015151781559082015160018201906107589082611477565b5060409182015160029091015551339061077590869086906113bb565b6040519081900390207f9b26bd59207aed1ca3b855f5c822dc569f3101181b2d49e6e08ed603d0110c56846107ab600143611537565b60408051928352606060208401819052600490840152635553444360e01b608084015290409082015260a0015b60405180910390a3506107ea60018055565b505050565b6107f761106f565b61080160006110c6565b565b80516020818301810180516002825292820191909301209152805460018201805460ff9092169291610834906113ed565b80601f0160208091040260200160405190810160405280929190818152602001828054610860906113ed565b80156108ad5780601f10610882576101008083540402835291602001916108ad565b820191906000526020600020905b81548152906001019060200180831161089057829003601f168201915b5050505050908060020154905083565b60006060600080600286866040516108d69291906113bb565b90815260408051918290036020908101832060608401909252815460ff16151583526001820180549184019161090b906113ed565b80601f0160208091040260200160405190810160405280929190818152602001828054610937906113ed565b80156109845780601f1061095957610100808354040283529160200191610984565b820191906000526020600020905b81548152906001019060200180831161096757829003601f168201915b505050918352505060029190910154602091820152815190820151604090920151909891975095509350505050565b6109bb61109c565b600283836040516109cd9291906113bb565b9081526040519081900360200190205460ff1615610a265760405162461bcd60e51b815260206004820152601660248201527514d85b1948185b1c9958591e481c1c9bd8d95cdcd95960521b6044820152606401610372565b80341015610a765760405162461bcd60e51b815260206004820152601560248201527f496e73756666696369656e74204554482073656e7400000000000000000000006044820152606401610372565b604080516060810182526001815281518083018352600381526208aa8960eb1b60208281019190915282015234818301529051600290610ab990869086906113bb565b908152604051602091819003820190208251815460ff1916901515178155908201516001820190610aea9082611477565b50604091820151600290910155513390610b0790859085906113bb565b6040519081900390207f9b26bd59207aed1ca3b855f5c822dc569f3101181b2d49e6e08ed603d0110c5634610b3d600143611537565b604080519283526060602084018190526003908401526208aa8960eb1b608084015290409082015260a00160405180910390a36107ea60018055565b610b8161106f565b610b8961109c565b6001600160a01b038216610bdf5760405162461bcd60e51b815260206004820152601c60248201527f546f6b656e20616464726573732063616e6e6f74206265207a65726f000000006044820152606401610372565b60008111610c2f5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610372565b600080546001600160a01b031660405163a9059cbb60e01b81526001600160a01b03808316600483015260248201859052919250849182169063a9059cbb906044016020604051808303816000875af1158015610c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb491906113cb565b610d005760405162461bcd60e51b815260206004820152601560248201527f546f6b656e207472616e73666572206661696c656400000000000000000000006044820152606401610372565b816001600160a01b0316846001600160a01b03167f8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e562085604051610d4591815260200190565b60405180910390a35050610d5860018055565b5050565b610d6461109c565b60028383604051610d769291906113bb565b9081526040519081900360200190205460ff1615610dcf5760405162461bcd60e51b815260206004820152601660248201527514d85b1948185b1c9958591e481c1c9bd8d95cdcd95960521b6044820152606401610372565b60008111610e1f5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610372565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7906001600160a01b038216906323b872dd906064016020604051808303816000875af1158015610e94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb891906113cb565b610f045760405162461bcd60e51b815260206004820152601460248201527f55534454207472616e73666572206661696c65640000000000000000000000006044820152606401610372565b6040518060600160405280600115158152602001604051806040016040528060048152602001631554d11560e21b81525081526020018381525060028585604051610f509291906113bb565b908152604051602091819003820190208251815460ff1916901515178155908201516001820190610f819082611477565b50604091820151600290910155513390610f9e90869086906113bb565b6040519081900390207f9b26bd59207aed1ca3b855f5c822dc569f3101181b2d49e6e08ed603d0110c5684610fd4600143611537565b60408051928352606060208401819052600490840152631554d11560e21b608084015290409082015260a0016107d8565b6000600283836040516110199291906113bb565b9081526040519081900360200190205460ff16905092915050565b61103c61106f565b6001600160a01b03811661106657604051631e4fbdf760e01b815260006004820152602401610372565b6104bf816110c6565b6000546001600160a01b031633146108015760405163118cdaa760e01b8152336004820152602401610372565b6002600154036110bf57604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561113557600080fd5b5035919050565b80356001600160a01b038116811461115357600080fd5b919050565b60006020828403121561116a57600080fd5b6111738261113c565b9392505050565b60008083601f84011261118c57600080fd5b50813567ffffffffffffffff8111156111a457600080fd5b6020830191508360208285010111156111bc57600080fd5b9250929050565b6000806000604084860312156111d857600080fd5b833567ffffffffffffffff8111156111ef57600080fd5b6111fb8682870161117a565b909790965060209590950135949350505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561123757600080fd5b813567ffffffffffffffff8082111561124f57600080fd5b818401915084601f83011261126357600080fd5b8135818111156112755761127561120f565b604051601f8201601f19908116603f0116810190838211818310171561129d5761129d61120f565b816040528281528760208487010111156112b657600080fd5b826020860160208301376000928101602001929092525095945050505050565b83151581526000602060606020840152845180606085015260005b8181101561130d578681018301518582016080015282016112f1565b506000608082860101526080601f19601f83011685010192505050826040830152949350505050565b6000806020838503121561134957600080fd5b823567ffffffffffffffff81111561136057600080fd5b61136c8582860161117a565b90969095509350505050565b6000806040838503121561138b57600080fd5b6113948361113c565b946020939093013593505050565b6000602082840312156113b457600080fd5b5051919050565b8183823760009101908152919050565b6000602082840312156113dd57600080fd5b8151801515811461117357600080fd5b600181811c9082168061140157607f821691505b60208210810361142157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156107ea576000816000526020600020601f850160051c810160208610156114505750805b601f850160051c820191505b8181101561146f5782815560010161145c565b505050505050565b815167ffffffffffffffff8111156114915761149161120f565b6114a58161149f84546113ed565b84611427565b602080601f8311600181146114da57600084156114c25750858301515b600019600386901b1c1916600185901b17855561146f565b600085815260208120601f198616915b82811015611509578886015182559484019460019091019084016114ea565b50858210156115275787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561052d57634e487b7160e01b600052601160045260246000fdfea26469706673582212203099240cf9cf78a36ab04683d6ac883a24c94b5e6eb4daa9c5f0e50e2182810b64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000049af770e0dd596d4022871d13e12095bb2b239a3
-----Decoded View---------------
Arg [0] : _usdcAddress (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [1] : _usdtAddress (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [2] : _owner (address): 0x49Af770E0dD596D4022871d13e12095BB2B239a3
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [1] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [2] : 00000000000000000000000049af770e0dd596d4022871d13e12095bb2b239a3
Loading...
Loading
Loading...
Loading
Net Worth in USD
$621.08
Net Worth in ETH
0.314205
Token Allocations
USDC
59.34%
ETH
29.05%
USDT
11.62%
Multichain Portfolio | 34 Chains
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.