Source Code
Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 8,601 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Request Purchase | 13361439 | 335 days ago | IN | 0.00005226 ETH | 0.00004445 | ||||
| Request Purchase | 13357651 | 336 days ago | IN | 0.00005235 ETH | 0.00001219 | ||||
| Request Purchase | 13357559 | 336 days ago | IN | 0.00082935 ETH | 0.00001306 | ||||
| Request Purchase | 13353268 | 336 days ago | IN | 0.00005235 ETH | 0.000013 | ||||
| Request Purchase | 13348499 | 336 days ago | IN | 0.00005237 ETH | 0.00001413 | ||||
| Request Purchase | 13348440 | 336 days ago | IN | 0.00005237 ETH | 0.00001411 | ||||
| Request Purchase | 13347413 | 336 days ago | IN | 0.00005237 ETH | 0.0000858 | ||||
| Request Purchase | 13346777 | 336 days ago | IN | 0.00005237 ETH | 0.00002753 | ||||
| Request Purchase | 13346228 | 336 days ago | IN | 0.00005264 ETH | 0.00001274 | ||||
| Request Purchase | 13345822 | 336 days ago | IN | 0.00005264 ETH | 0.00001927 | ||||
| Request Purchase | 13344831 | 336 days ago | IN | 0.00005264 ETH | 0.00001167 | ||||
| Request Purchase | 13344786 | 336 days ago | IN | 0.00052641 ETH | 0.00022792 | ||||
| Request Purchase | 13341740 | 336 days ago | IN | 0.00005264 ETH | 0.0000123 | ||||
| Request Purchase | 13341531 | 336 days ago | IN | 0.00005264 ETH | 0.00001127 | ||||
| Request Purchase | 13341119 | 336 days ago | IN | 0.00005291 ETH | 0.00001023 | ||||
| Request Purchase | 13340887 | 336 days ago | IN | 0.00005291 ETH | 0.00001025 | ||||
| Request Purchase | 13340655 | 336 days ago | IN | 0.00005291 ETH | 0.00001076 | ||||
| Request Purchase | 13330752 | 336 days ago | IN | 0.00005233 ETH | 0.00001233 | ||||
| Request Purchase | 13330191 | 336 days ago | IN | 0.00005233 ETH | 0.00001243 | ||||
| Request Purchase | 13327012 | 336 days ago | IN | 0.00005262 ETH | 0.00001124 | ||||
| Request Purchase | 13324564 | 336 days ago | IN | 0.00005262 ETH | 0.0000123 | ||||
| Request Purchase | 13322635 | 336 days ago | IN | 0.0000529 ETH | 0.00001026 | ||||
| Request Purchase | 13319541 | 336 days ago | IN | 0.0000529 ETH | 0.00001178 | ||||
| Request Purchase | 13316127 | 337 days ago | IN | 0.00005317 ETH | 0.00001193 | ||||
| Request Purchase | 13314298 | 337 days ago | IN | 0.00005314 ETH | 0.00001452 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 13361439 | 335 days ago | 0 ETH | ||||
| 13361439 | 335 days ago | 0.00000102 ETH | ||||
| 13361439 | 335 days ago | 0.00005124 ETH | ||||
| 13361439 | 335 days ago | 0 ETH | ||||
| 13361439 | 335 days ago | 0 ETH | ||||
| 13361439 | 335 days ago | 0 ETH | ||||
| 13361439 | 335 days ago | 0 ETH | ||||
| 13361439 | 335 days ago | 0 ETH | ||||
| 13357651 | 336 days ago | 0 ETH | ||||
| 13357651 | 336 days ago | 0.00000102 ETH | ||||
| 13357651 | 336 days ago | 0.00005132 ETH | ||||
| 13357651 | 336 days ago | 0 ETH | ||||
| 13357651 | 336 days ago | 0 ETH | ||||
| 13357651 | 336 days ago | 0 ETH | ||||
| 13357651 | 336 days ago | 0 ETH | ||||
| 13357651 | 336 days ago | 0 ETH | ||||
| 13357559 | 336 days ago | 0 ETH | ||||
| 13357559 | 336 days ago | 0.00000102 ETH | ||||
| 13357559 | 336 days ago | 0.000777 ETH | ||||
| 13357559 | 336 days ago | 0.00005132 ETH | ||||
| 13357559 | 336 days ago | 0 ETH | ||||
| 13357559 | 336 days ago | 0 ETH | ||||
| 13357559 | 336 days ago | 0 ETH | ||||
| 13357559 | 336 days ago | 0 ETH | ||||
| 13357559 | 336 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MicroGateway
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../MicroUtilityV4.sol";
interface MicroNFT {
struct SaleConfiguration {
uint64 editionSize;
uint16 profitSharing;
address payable fundsRecipient;
uint256 publicSalePrice;
uint32 maxSalePurchasePerAddress;
uint64 publicSaleStart;
uint64 publicSaleEnd;
bytes32 presaleMerkleRoot;
bool cancelable;
}
function saleConfig() external view returns (SaleConfiguration memory);
function purchase(address minter, uint256 quantity)
external
returns (uint256);
function purchasePresale(
address minter,
uint256 quantity,
bytes32[] calldata merkleProof
) external returns (uint256);
}
contract MicroGateway is Ownable, ReentrancyGuard, MicroUtilityV4 {
using SafeMath for uint256;
bool private _initialized;
error PurchaseWrongPrice(uint256 correctPrice);
error Unauthorized();
event NewCollectionMinted(
address indexed sender,
address indexed contractAddress,
uint256 quantity
);
event FundsWithdrawn(
address indexed sender,
address indexed fundsRecipient,
uint256 fund
);
function init(bytes memory initPayload) external returns (bool) {
if (_initialized) {
revert Unauthorized();
}
(address _owner, address _manager) = abi.decode(
initPayload,
(address, address)
);
transferOwnership(_owner);
_setManager(_manager);
_initialized = true;
return true;
}
function requestPurchase(address nftAddress, uint256 quantity)
external
payable
nonReentrant
{
address minter = msg.sender;
_isMinting(minter, nftAddress, quantity);
MicroNFT(nftAddress).purchase(minter, quantity);
emit NewCollectionMinted(minter, nftAddress, quantity);
}
function requestPresale(
address nftAddress,
uint256 quantity,
bytes32[] calldata merkleProof
) external payable nonReentrant {
address minter = msg.sender;
_isMinting(minter, nftAddress, quantity);
MicroNFT(nftAddress).purchasePresale(minter, quantity, merkleProof);
emit NewCollectionMinted(minter, nftAddress, quantity);
}
function _payoutFundingRaise(uint256 totalPurchase, address fundsRecipient)
internal
returns (bool)
{
if (fundsRecipient == address(0) || totalPurchase == 0) {
return false;
}
_payoutRemainder(fundsRecipient, totalPurchase);
emit FundsWithdrawn(msg.sender, fundsRecipient, totalPurchase);
return true;
}
function _isMinting(address minter, address nftAddress, uint256 quantity) internal {
MicroNFT.SaleConfiguration memory saleConfig = MicroNFT(nftAddress)
.saleConfig();
uint256 salePrice = saleConfig.publicSalePrice.mul(quantity);
uint256 protocolFee = getMicroFeeWei(quantity);
uint256 totalFee = salePrice.add(protocolFee);
if (msg.value < totalFee) {
revert PurchaseWrongPrice(totalFee);
}
_payoutMicroFee(protocolFee);
_payoutFundingRaise(salePrice, saleConfig.fundsRecipient);
_payoutRemainder(minter, msg.value.sub(totalFee));
}
function editManager(address _manager) external onlyOwner {
_setManager(_manager);
}
}// SPDX-License-Identifier: MIT
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() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
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 {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
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 make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
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
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.5.0;
interface IMicroManager {
function microBridge(address _address) external view returns (bool);
function treasuryAddress() external view returns (address);
function microProtocolFee() external view returns (uint256);
function oracleAddress() external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;
interface IPriceOracle {
function convertUsdToWei(uint256 usdAmount) external view returns (uint256 weiAmount);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {IPriceOracle} from "./interfaces/IPriceOracle.sol";
import {IMicroManager} from "./interfaces/IMicroManager.sol";
error PaymentFailed();
contract MicroUtilityV4 {
using SafeMath for uint256;
IMicroManager public microManager;
uint256 private constant STATIC_GAS_LIMIT = 210_000;
event FeePayout(
uint256 MicroMintFeeWei,
address MicroFeeRecipient,
bool success
);
/**
* PUBLIC FUNCTIONS
* state changing
*/
function getMicroFeeWei(uint256 quantity) public view returns (uint256) {
if (quantity == 0) {
return 0;
}
return
IPriceOracle(microManager.oracleAddress()).convertUsdToWei(
microManager.microProtocolFee().mul(quantity)
);
}
function _payoutMicroFee(uint256 microProtocolFee) internal {
address treasury = microManager.treasuryAddress();
_payoutRemainder(treasury, microProtocolFee);
emit FeePayout(microProtocolFee, treasury, true);
}
function _setManager(address _manager) internal {
microManager = IMicroManager(_manager);
}
function _payoutRemainder(address recipient, uint256 value) internal {
if (value > 0) {
(bool success, ) = payable(recipient).call{
value: value,
gas: gasleft() > STATIC_GAS_LIMIT ? STATIC_GAS_LIMIT : gasleft()
}("");
if (!success) {
revert PaymentFailed();
}
}
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"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":[],"name":"PaymentFailed","type":"error"},{"inputs":[{"internalType":"uint256","name":"correctPrice","type":"uint256"}],"name":"PurchaseWrongPrice","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"MicroMintFeeWei","type":"uint256"},{"indexed":false,"internalType":"address","name":"MicroFeeRecipient","type":"address"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"}],"name":"FeePayout","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"fundsRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"fund","type":"uint256"}],"name":"FundsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"NewCollectionMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"editManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"getMicroFeeWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"initPayload","type":"bytes"}],"name":"init","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"microManager","outputs":[{"internalType":"contract IMicroManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"requestPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"requestPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061001a33610023565b60018055610073565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610f0d806100826000396000f3fe6080604052600436106100865760003560e01c8063715018a611610059578063715018a61461013b57806387031fe5146101505780638da5cb5b14610170578063cd5954fc1461018e578063f2fde38b146101a157600080fd5b80630e21ea061461008b5780634ddf47d4146100c85780635e752eb4146100f8578063616985ed1461010d575b600080fd5b34801561009757600080fd5b506002546100ab906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100d457600080fd5b506100e86100e3366004610abf565b6101c1565b60405190151581526020016100bf565b61010b610106366004610b85565b610238565b005b34801561011957600080fd5b5061012d610128366004610bb1565b61036a565b6040519081526020016100bf565b34801561014757600080fd5b5061010b6104e7565b34801561015c57600080fd5b5061010b61016b366004610bca565b61051d565b34801561017c57600080fd5b506000546001600160a01b03166100ab565b61010b61019c366004610be7565b610553565b3480156101ad57600080fd5b5061010b6101bc366004610bca565b610684565b600254600090600160a01b900460ff16156101ee576040516282b42960e81b815260040160405180910390fd5b600080838060200190518101906102059190610c83565b9150915061021282610684565b61021b8161071c565b50506002805460ff60a01b1916600160a01b179055506001919050565b60026001540361028f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155336102a081848461073e565b6040516346f4991160e11b81526001600160a01b03828116600483015260248201849052841690638de93222906044016020604051808303816000875af11580156102ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103139190610cbd565b50826001600160a01b0316816001600160a01b03167fa7b01104a6b6c5840d976794ca3cdc03532966d0b58b7799a9202d093e152ad08460405161035991815260200190565b60405180910390a350506001805550565b60008160000361037c57506000919050565b600260009054906101000a90046001600160a01b03166001600160a01b031663a89ae4ba6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f39190610cd6565b6001600160a01b031663f5d7816161048284600260009054906101000a90046001600160a01b03166001600160a01b0316630c1119bb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047c9190610cbd565b90610833565b6040518263ffffffff1660e01b81526004016104a091815260200190565b602060405180830381865afa1580156104bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e19190610cbd565b92915050565b6000546001600160a01b031633146105115760405162461bcd60e51b815260040161028690610cf3565b61051b6000610846565b565b6000546001600160a01b031633146105475760405162461bcd60e51b815260040161028690610cf3565b6105508161071c565b50565b6002600154036105a55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610286565b6002600155336105b681868661073e565b6040516341def22360e11b81526001600160a01b038616906383bde446906105e8908490889088908890600401610d28565b6020604051808303816000875af1158015610607573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062b9190610cbd565b50846001600160a01b0316816001600160a01b03167fa7b01104a6b6c5840d976794ca3cdc03532966d0b58b7799a9202d093e152ad08660405161067191815260200190565b60405180910390a3505060018055505050565b6000546001600160a01b031633146106ae5760405162461bcd60e51b815260040161028690610cf3565b6001600160a01b0381166107135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610286565b61055081610846565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b03166390aa0b0f6040518163ffffffff1660e01b815260040161012060405180830381865afa15801561077f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a39190610dcb565b905060006107be83836060015161083390919063ffffffff16565b905060006107cb8461036a565b905060006107d98383610896565b9050803410156107ff5760405163c5a8df2f60e01b815260048101829052602401610286565b610808826108a2565b610816838560400151610968565b5061082a8761082534846109de565b6109ea565b50505050505050565b600061083f8284610e89565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061083f8284610ea8565b6002546040805163c5f956af60e01b815290516000926001600160a01b03169163c5f956af9160048083019260209291908290030181865afa1580156108ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109109190610cd6565b905061091c81836109ea565b604080518381526001600160a01b038316602082015260018183015290517f7d91e6735310f2a10253c2b777a07cdd5bce000456de934af23dfc9e4aea7f879181900360600190a15050565b60006001600160a01b038216158061097e575082155b1561098b575060006104e1565b61099582846109ea565b6040518381526001600160a01b0383169033907fa92ff919b850e4909ab2261d907ef955f11bc1716733a6cbece38d163a69af8a9060200160405180910390a350600192915050565b600061083f8284610ec0565b8015610a7b576000826001600160a01b031682620334505a11610a0d575a610a12565b620334505b6040519091906000818181858888f193505050503d8060008114610a52576040519150601f19603f3d011682016040523d82523d6000602084013e610a57565b606091505b5050905080610a79576040516307a4ced160e51b815260040160405180910390fd5b505b5050565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff81118282101715610ab957610ab9610a7f565b60405290565b600060208284031215610ad157600080fd5b813567ffffffffffffffff80821115610ae957600080fd5b818401915084601f830112610afd57600080fd5b813581811115610b0f57610b0f610a7f565b604051601f8201601f19908116603f01168101908382118183101715610b3757610b37610a7f565b81604052828152876020848701011115610b5057600080fd5b826020860160208301376000928101602001929092525095945050505050565b6001600160a01b038116811461055057600080fd5b60008060408385031215610b9857600080fd5b8235610ba381610b70565b946020939093013593505050565b600060208284031215610bc357600080fd5b5035919050565b600060208284031215610bdc57600080fd5b813561083f81610b70565b60008060008060608587031215610bfd57600080fd5b8435610c0881610b70565b935060208501359250604085013567ffffffffffffffff80821115610c2c57600080fd5b818701915087601f830112610c4057600080fd5b813581811115610c4f57600080fd5b8860208260051b8501011115610c6457600080fd5b95989497505060200194505050565b8051610c7e81610b70565b919050565b60008060408385031215610c9657600080fd5b8251610ca181610b70565b6020840151909250610cb281610b70565b809150509250929050565b600060208284031215610ccf57600080fd5b5051919050565b600060208284031215610ce857600080fd5b815161083f81610b70565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b038516815260208101849052606060408201819052810182905260006001600160fb1b03831115610d5f57600080fd5b8260051b808560808501376000920160800191825250949350505050565b805167ffffffffffffffff81168114610c7e57600080fd5b805161ffff81168114610c7e57600080fd5b805163ffffffff81168114610c7e57600080fd5b80518015158114610c7e57600080fd5b60006101208284031215610dde57600080fd5b610de6610a95565b610def83610d7d565b8152610dfd60208401610d95565b6020820152610e0e60408401610c73565b604082015260608301516060820152610e2960808401610da7565b6080820152610e3a60a08401610d7d565b60a0820152610e4b60c08401610d7d565b60c082015260e083015160e0820152610100610e68818501610dbb565b908201529392505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610ea357610ea3610e73565b500290565b60008219821115610ebb57610ebb610e73565b500190565b600082821015610ed257610ed2610e73565b50039056fea26469706673582212204249af9b144b650f6966e2624c92d4f232477644682858ea854c112a43763fe864736f6c634300080d0033
Deployed Bytecode
0x6080604052600436106100865760003560e01c8063715018a611610059578063715018a61461013b57806387031fe5146101505780638da5cb5b14610170578063cd5954fc1461018e578063f2fde38b146101a157600080fd5b80630e21ea061461008b5780634ddf47d4146100c85780635e752eb4146100f8578063616985ed1461010d575b600080fd5b34801561009757600080fd5b506002546100ab906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100d457600080fd5b506100e86100e3366004610abf565b6101c1565b60405190151581526020016100bf565b61010b610106366004610b85565b610238565b005b34801561011957600080fd5b5061012d610128366004610bb1565b61036a565b6040519081526020016100bf565b34801561014757600080fd5b5061010b6104e7565b34801561015c57600080fd5b5061010b61016b366004610bca565b61051d565b34801561017c57600080fd5b506000546001600160a01b03166100ab565b61010b61019c366004610be7565b610553565b3480156101ad57600080fd5b5061010b6101bc366004610bca565b610684565b600254600090600160a01b900460ff16156101ee576040516282b42960e81b815260040160405180910390fd5b600080838060200190518101906102059190610c83565b9150915061021282610684565b61021b8161071c565b50506002805460ff60a01b1916600160a01b179055506001919050565b60026001540361028f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155336102a081848461073e565b6040516346f4991160e11b81526001600160a01b03828116600483015260248201849052841690638de93222906044016020604051808303816000875af11580156102ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103139190610cbd565b50826001600160a01b0316816001600160a01b03167fa7b01104a6b6c5840d976794ca3cdc03532966d0b58b7799a9202d093e152ad08460405161035991815260200190565b60405180910390a350506001805550565b60008160000361037c57506000919050565b600260009054906101000a90046001600160a01b03166001600160a01b031663a89ae4ba6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f39190610cd6565b6001600160a01b031663f5d7816161048284600260009054906101000a90046001600160a01b03166001600160a01b0316630c1119bb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047c9190610cbd565b90610833565b6040518263ffffffff1660e01b81526004016104a091815260200190565b602060405180830381865afa1580156104bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e19190610cbd565b92915050565b6000546001600160a01b031633146105115760405162461bcd60e51b815260040161028690610cf3565b61051b6000610846565b565b6000546001600160a01b031633146105475760405162461bcd60e51b815260040161028690610cf3565b6105508161071c565b50565b6002600154036105a55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610286565b6002600155336105b681868661073e565b6040516341def22360e11b81526001600160a01b038616906383bde446906105e8908490889088908890600401610d28565b6020604051808303816000875af1158015610607573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062b9190610cbd565b50846001600160a01b0316816001600160a01b03167fa7b01104a6b6c5840d976794ca3cdc03532966d0b58b7799a9202d093e152ad08660405161067191815260200190565b60405180910390a3505060018055505050565b6000546001600160a01b031633146106ae5760405162461bcd60e51b815260040161028690610cf3565b6001600160a01b0381166107135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610286565b61055081610846565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b03166390aa0b0f6040518163ffffffff1660e01b815260040161012060405180830381865afa15801561077f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a39190610dcb565b905060006107be83836060015161083390919063ffffffff16565b905060006107cb8461036a565b905060006107d98383610896565b9050803410156107ff5760405163c5a8df2f60e01b815260048101829052602401610286565b610808826108a2565b610816838560400151610968565b5061082a8761082534846109de565b6109ea565b50505050505050565b600061083f8284610e89565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061083f8284610ea8565b6002546040805163c5f956af60e01b815290516000926001600160a01b03169163c5f956af9160048083019260209291908290030181865afa1580156108ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109109190610cd6565b905061091c81836109ea565b604080518381526001600160a01b038316602082015260018183015290517f7d91e6735310f2a10253c2b777a07cdd5bce000456de934af23dfc9e4aea7f879181900360600190a15050565b60006001600160a01b038216158061097e575082155b1561098b575060006104e1565b61099582846109ea565b6040518381526001600160a01b0383169033907fa92ff919b850e4909ab2261d907ef955f11bc1716733a6cbece38d163a69af8a9060200160405180910390a350600192915050565b600061083f8284610ec0565b8015610a7b576000826001600160a01b031682620334505a11610a0d575a610a12565b620334505b6040519091906000818181858888f193505050503d8060008114610a52576040519150601f19603f3d011682016040523d82523d6000602084013e610a57565b606091505b5050905080610a79576040516307a4ced160e51b815260040160405180910390fd5b505b5050565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff81118282101715610ab957610ab9610a7f565b60405290565b600060208284031215610ad157600080fd5b813567ffffffffffffffff80821115610ae957600080fd5b818401915084601f830112610afd57600080fd5b813581811115610b0f57610b0f610a7f565b604051601f8201601f19908116603f01168101908382118183101715610b3757610b37610a7f565b81604052828152876020848701011115610b5057600080fd5b826020860160208301376000928101602001929092525095945050505050565b6001600160a01b038116811461055057600080fd5b60008060408385031215610b9857600080fd5b8235610ba381610b70565b946020939093013593505050565b600060208284031215610bc357600080fd5b5035919050565b600060208284031215610bdc57600080fd5b813561083f81610b70565b60008060008060608587031215610bfd57600080fd5b8435610c0881610b70565b935060208501359250604085013567ffffffffffffffff80821115610c2c57600080fd5b818701915087601f830112610c4057600080fd5b813581811115610c4f57600080fd5b8860208260051b8501011115610c6457600080fd5b95989497505060200194505050565b8051610c7e81610b70565b919050565b60008060408385031215610c9657600080fd5b8251610ca181610b70565b6020840151909250610cb281610b70565b809150509250929050565b600060208284031215610ccf57600080fd5b5051919050565b600060208284031215610ce857600080fd5b815161083f81610b70565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b038516815260208101849052606060408201819052810182905260006001600160fb1b03831115610d5f57600080fd5b8260051b808560808501376000920160800191825250949350505050565b805167ffffffffffffffff81168114610c7e57600080fd5b805161ffff81168114610c7e57600080fd5b805163ffffffff81168114610c7e57600080fd5b80518015158114610c7e57600080fd5b60006101208284031215610dde57600080fd5b610de6610a95565b610def83610d7d565b8152610dfd60208401610d95565b6020820152610e0e60408401610c73565b604082015260608301516060820152610e2960808401610da7565b6080820152610e3a60a08401610d7d565b60a0820152610e4b60c08401610d7d565b60c082015260e083015160e0820152610100610e68818501610dbb565b908201529392505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610ea357610ea3610e73565b500290565b60008219821115610ebb57610ebb610e73565b500190565b600082821015610ed257610ed2610e73565b50039056fea26469706673582212204249af9b144b650f6966e2624c92d4f232477644682858ea854c112a43763fe864736f6c634300080d0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ZKSYNC | 100.00% | $3,072.57 | 0.00006719 | $0.206454 |
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.