Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 76 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy In ETH | 19477892 | 200 days ago | IN | 0.02963977 ETH | 0.00475992 | ||||
Buy In ETH | 19477514 | 200 days ago | IN | 0.03032385 ETH | 0.00371116 | ||||
Buy In ETH | 19475716 | 200 days ago | IN | 0.03040322 ETH | 0.00325853 | ||||
Buy In ETH | 19475071 | 200 days ago | IN | 0.03092166 ETH | 0.00393366 | ||||
Buy In ETH | 19471098 | 201 days ago | IN | 0.75492893 ETH | 0.00396888 | ||||
Buy In ETH | 19470945 | 201 days ago | IN | 0.02987071 ETH | 0.00404878 | ||||
Buy In ETH | 19470735 | 201 days ago | IN | 0.03018911 ETH | 0.00414035 | ||||
Buy In ETH | 19466890 | 201 days ago | IN | 1.480065 ETH | 0.00281146 | ||||
Buy In ETH | 19466775 | 201 days ago | IN | 1.41771792 ETH | 0.0012164 | ||||
Buy In ETH | 19464117 | 202 days ago | IN | 0.02857551 ETH | 0.00424089 | ||||
Buy In ETH | 19457753 | 202 days ago | IN | 0.13747845 ETH | 0.00299647 | ||||
Buy In ETH | 19426478 | 207 days ago | IN | 0.62474573 ETH | 0.008116 | ||||
Buy In ETH | 19411548 | 209 days ago | IN | 0.02481559 ETH | 0.00713251 | ||||
Buy In ETH | 19406903 | 210 days ago | IN | 0.12805487 ETH | 0.00700678 | ||||
Buy In ETH | 19406694 | 210 days ago | IN | 0.02561097 ETH | 0.00659463 | ||||
Buy In ETH | 19405584 | 210 days ago | IN | 0.25637706 ETH | 0.00607767 | ||||
Buy In ETH | 19377219 | 214 days ago | IN | 0.65919925 ETH | 0.00902448 | ||||
Buy In ETH | 19356968 | 217 days ago | IN | 0.02885843 ETH | 0.00732286 | ||||
Buy In ETH | 19335538 | 220 days ago | IN | 0.73460272 ETH | 0.00743109 | ||||
Buy In ETH | 19313018 | 223 days ago | IN | 0.79078889 ETH | 0.00579744 | ||||
Buy In ETH | 19312934 | 223 days ago | IN | 0.79078889 ETH | 0.00578382 | ||||
Buy In ETH | 19312924 | 223 days ago | IN | 0.79078889 ETH | 0.00633819 | ||||
Buy In ETH | 19312909 | 223 days ago | IN | 0.79078889 ETH | 0.00726419 | ||||
Buy In ETH | 19312894 | 223 days ago | IN | 0.79078889 ETH | 0.00603737 | ||||
Buy In ETH | 19312860 | 223 days ago | IN | 0.79078889 ETH | 0.00657001 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19477892 | 200 days ago | 0.02963977 ETH | ||||
19477514 | 200 days ago | 0.03032385 ETH | ||||
19475716 | 200 days ago | 0.03040322 ETH | ||||
19475071 | 200 days ago | 0.03092166 ETH | ||||
19471098 | 201 days ago | 0.75492893 ETH | ||||
19470945 | 201 days ago | 0.02987071 ETH | ||||
19470735 | 201 days ago | 0.03018911 ETH | ||||
19466890 | 201 days ago | 1.480065 ETH | ||||
19464117 | 202 days ago | 0.02857551 ETH | ||||
19457753 | 202 days ago | 0.13747845 ETH | ||||
19426478 | 207 days ago | 0.62474573 ETH | ||||
19411548 | 209 days ago | 0.02481559 ETH | ||||
19406903 | 210 days ago | 0.12805487 ETH | ||||
19406694 | 210 days ago | 0.02561097 ETH | ||||
19405584 | 210 days ago | 0.25637706 ETH | ||||
19377219 | 214 days ago | 0.65919925 ETH | ||||
19356968 | 217 days ago | 0.02885843 ETH | ||||
19335538 | 220 days ago | 0.73460272 ETH | ||||
19313018 | 223 days ago | 0.79078889 ETH | ||||
19312934 | 223 days ago | 0.79078889 ETH | ||||
19312924 | 223 days ago | 0.79078889 ETH | ||||
19312909 | 223 days ago | 0.79078889 ETH | ||||
19312894 | 223 days ago | 0.79078889 ETH | ||||
19312860 | 223 days ago | 0.79078889 ETH | ||||
19312820 | 223 days ago | 0.79491079 ETH |
Loading...
Loading
Contract Name:
AgoraNFTShop
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; interface IAgoraNFT { function mint( address, uint256, uint256, bytes memory ) external; } interface IERC20 { function balanceOf(address account) external view returns (uint256); function transferFrom( address from, address to, uint256 amount ) external returns (bool); function decimals() external view returns (uint8); function allowance(address owner, address spender) external view returns (uint256); } contract AgoraNFTShop is Pausable, Ownable { IAgoraNFT public agoraNFT; IERC20 public stableUSD; address public fundsRecipient; AggregatorV3Interface private ethToUsdFeed; //ChainLink Feed mapping(uint256 => uint256) public USDPrice; constructor( IAgoraNFT _agoraNFT, IERC20 _stableUSD, address _fundsRecipient, address _ethToUsdFeed ) { agoraNFT = _agoraNFT; stableUSD = _stableUSD; fundsRecipient = _fundsRecipient; ethToUsdFeed = AggregatorV3Interface(_ethToUsdFeed); // Prices USDPrice[1] = 50000; // USDPrice[2] = 10000; // Socrates USDPrice[3] = 5000; // Plato USDPrice[4] = 2500; // Aristotle USDPrice[5] = 1000; // Pythagoras USDPrice[6] = 500; // Epicurus USDPrice[7] = 100; // Thales USDPrice[8] = 50; // Citizen } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } /** * @dev Buy NFT with ETH with a 0.8% slippage * @param _tokenId Id of the token to be minted */ function buyInETH( uint256 _tokenId, address _to, uint _amount ) public payable whenNotPaused { uint256 ethPrice = getNFTPriceInETH(_tokenId); require( msg.value > (_amount * (992 * ethPrice)) / 1000 && msg.value < (_amount * (1008 * ethPrice)) / 1000, "bad ETH amount" ); // Proceed to mint the token _mint(_to, _tokenId, _amount, ""); // The value is immediately transfered to the funds recipient (bool sent, ) = payable(fundsRecipient).call{value: msg.value}(""); require(sent, "Failed to send Ether"); } /** * @dev Buy NFT with the specified token. * will revert if allowance is not set. * Please check for token alowance before calling this function. * You may need to call the "approve" function before. * @param _tokenId Id of the token to be minted */ function buyInUSD( uint256 _tokenId, address _to, uint _amount ) public whenNotPaused { stableUSD.transferFrom( msg.sender, fundsRecipient, _amount * USDPrice[_tokenId] * 10**stableUSD.decimals() ); _mint(_to, _tokenId, _amount, ""); } /** * @dev Mint a specific amount of a given token * @param _to Address that will receive the token * @param _tokenId Id of the token to mint * @param _amount Amount to mint */ function _mint( address _to, uint256 _tokenId, uint256 _amount, bytes memory _data ) internal { agoraNFT.mint(_to, _tokenId, _amount, _data); } /** * @dev Get current rate of ETH to US Dollar */ function _getETHtoUSDPrice() private view returns (uint256) { (, int256 price, , , ) = ethToUsdFeed.latestRoundData(); return uint256(price); } /** * @dev Return the price in ETH of the specified Id * decimals of Chainlink feeds are NOT with 18 decimals. * @param _tokenId Id of the token need price */ function getNFTPriceInETH(uint256 _tokenId) public view returns (uint256 priceInETH) { uint256 priceInUsd = USDPrice[_tokenId]; uint256 ethToUsd = _getETHtoUSDPrice(); // Convert price in ETH for US Dollar price priceInETH = (priceInUsd * 10**ethToUsdFeed.decimals() * 10**18) / ethToUsd; } /** * @dev Set the price in USD (no decimals) of a given token * @param _tokenId Id of the token to change the price of * @param _price New price in USD (no decimals) for the token */ function setPrice(uint256 _tokenId, uint256 _price) external onlyOwner { USDPrice[_tokenId] = _price; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); // getRoundData and latestRoundData should both raise "No data present" // if they do not have data to report, instead of returning unset values // which could be misinterpreted as actual reported values. function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IAgoraNFT","name":"_agoraNFT","type":"address"},{"internalType":"contract IERC20","name":"_stableUSD","type":"address"},{"internalType":"address","name":"_fundsRecipient","type":"address"},{"internalType":"address","name":"_ethToUsdFeed","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"USDPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"agoraNFT","outputs":[{"internalType":"contract IAgoraNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyInETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyInUSD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundsRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getNFTPriceInETH","outputs":[{"internalType":"uint256","name":"priceInETH","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stableUSD","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001cb938038062001cb9833981810160405281019062000037919062000416565b60008060006101000a81548160ff02191690831515021790555062000071620000656200025560201b60201c565b6200025d60201b60201c565b83600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061c3506005600060018152602001908152602001600020819055506127106005600060028152602001908152602001600020819055506113886005600060038152602001908152602001600020819055506109c46005600060048152602001908152602001600020819055506103e86005600060058152602001908152602001600020819055506101f4600560006006815260200190815260200160002081905550606460056000600781526020019081526020016000208190555060326005600060088152602001908152602001600020819055505050505062000488565b600033905090565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003548262000327565b9050919050565b6000620003688262000347565b9050919050565b6200037a816200035b565b81146200038657600080fd5b50565b6000815190506200039a816200036f565b92915050565b6000620003ad8262000347565b9050919050565b620003bf81620003a0565b8114620003cb57600080fd5b50565b600081519050620003df81620003b4565b92915050565b620003f08162000347565b8114620003fc57600080fd5b50565b6000815190506200041081620003e5565b92915050565b6000806000806080858703121562000433576200043262000322565b5b6000620004438782880162000389565b94505060206200045687828801620003ce565b93505060406200046987828801620003ff565b92505060606200047c87828801620003ff565b91505092959194509250565b61182180620004986000396000f3fe6080604052600436106100dd5760003560e01c8063802716441161007f578063bfd752d911610059578063bfd752d914610276578063d58bb01b14610292578063f2fde38b146102bd578063f7d97577146102e6576100dd565b8063802716441461020b5780638456cb59146102345780638da5cb5b1461024b576100dd565b80633f4ba83a116100bb5780633f4ba83a146101755780635c975abb1461018c578063715018a6146101b757806373618dbe146101ce576100dd565b8063202693eb146100e257806330f8c9ee1461010d5780633b6fd2cf1461014a575b600080fd5b3480156100ee57600080fd5b506100f761030f565b6040516101049190610d55565b60405180910390f35b34801561011957600080fd5b50610134600480360381019061012f9190610dab565b610335565b6040516101419190610de7565b60405180910390f35b34801561015657600080fd5b5061015f61034d565b60405161016c9190610e23565b60405180910390f35b34801561018157600080fd5b5061018a610373565b005b34801561019857600080fd5b506101a1610385565b6040516101ae9190610e59565b60405180910390f35b3480156101c357600080fd5b506101cc61039b565b005b3480156101da57600080fd5b506101f560048036038101906101f09190610dab565b6103af565b6040516102029190610de7565b60405180910390f35b34801561021757600080fd5b50610232600480360381019061022d9190610ea0565b6104a3565b005b34801561024057600080fd5b50610249610655565b005b34801561025757600080fd5b50610260610667565b60405161026d9190610e23565b60405180910390f35b610290600480360381019061028b9190610ea0565b610690565b005b34801561029e57600080fd5b506102a761082c565b6040516102b49190610f14565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df9190610f2f565b610852565b005b3480156102f257600080fd5b5061030d60048036038101906103089190610f5c565b6108d6565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60056020528060005260406000206000915090505481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61037b6108fa565b610383610978565b565b60008060009054906101000a900460ff16905090565b6103a36108fa565b6103ad60006109da565b565b6000806005600084815260200190815260200160002054905060006103d2610a9f565b905080670de0b6b3a7640000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f9190610fd5565b600a61047b9190611164565b8461048691906111af565b61049091906111af565b61049a9190611238565b92505050919050565b6104ab610b40565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561057a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059e9190610fd5565b600a6105aa9190611164565b6005600089815260200190815260200160002054866105c991906111af565b6105d391906111af565b6040518463ffffffff1660e01b81526004016105f193929190611269565b6020604051808303816000875af1158015610610573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063491906112cc565b5061065082848360405180602001604052806000815250610b8a565b505050565b61065d6108fa565b610665610c23565b565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610698610b40565b60006106a3846103af565b90506103e8816103e06106b691906111af565b836106c191906111af565b6106cb9190611238565b341180156106fd57506103e8816103f06106e591906111af565b836106f091906111af565b6106fa9190611238565b34105b61073c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073390611356565b60405180910390fd5b61075783858460405180602001604052806000815250610b8a565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161079f906113a7565b60006040518083038185875af1925050503d80600081146107dc576040519150601f19603f3d011682016040523d82523d6000602084013e6107e1565b606091505b5050905080610825576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081c90611408565b60405180910390fd5b5050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61085a6108fa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c19061149a565b60405180910390fd5b6108d3816109da565b50565b6108de6108fa565b8060056000848152602001908152602001600020819055505050565b610902610c85565b73ffffffffffffffffffffffffffffffffffffffff16610920610667565b73ffffffffffffffffffffffffffffffffffffffff1614610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90611506565b60405180910390fd5b565b610980610c8d565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6109c3610c85565b6040516109d09190610e23565b60405180910390a1565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3391906115b3565b5050509150508091505090565b610b48610385565b15610b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7f9061167a565b60405180910390fd5b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663731133e9858585856040518563ffffffff1660e01b8152600401610beb9493929190611733565b600060405180830381600087803b158015610c0557600080fd5b505af1158015610c19573d6000803e3d6000fd5b5050505050505050565b610c2b610b40565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c6e610c85565b604051610c7b9190610e23565b60405180910390a1565b600033905090565b610c95610385565b610cd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccb906117cb565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610d1b610d16610d1184610cd6565b610cf6565b610cd6565b9050919050565b6000610d2d82610d00565b9050919050565b6000610d3f82610d22565b9050919050565b610d4f81610d34565b82525050565b6000602082019050610d6a6000830184610d46565b92915050565b600080fd5b6000819050919050565b610d8881610d75565b8114610d9357600080fd5b50565b600081359050610da581610d7f565b92915050565b600060208284031215610dc157610dc0610d70565b5b6000610dcf84828501610d96565b91505092915050565b610de181610d75565b82525050565b6000602082019050610dfc6000830184610dd8565b92915050565b6000610e0d82610cd6565b9050919050565b610e1d81610e02565b82525050565b6000602082019050610e386000830184610e14565b92915050565b60008115159050919050565b610e5381610e3e565b82525050565b6000602082019050610e6e6000830184610e4a565b92915050565b610e7d81610e02565b8114610e8857600080fd5b50565b600081359050610e9a81610e74565b92915050565b600080600060608486031215610eb957610eb8610d70565b5b6000610ec786828701610d96565b9350506020610ed886828701610e8b565b9250506040610ee986828701610d96565b9150509250925092565b6000610efe82610d22565b9050919050565b610f0e81610ef3565b82525050565b6000602082019050610f296000830184610f05565b92915050565b600060208284031215610f4557610f44610d70565b5b6000610f5384828501610e8b565b91505092915050565b60008060408385031215610f7357610f72610d70565b5b6000610f8185828601610d96565b9250506020610f9285828601610d96565b9150509250929050565b600060ff82169050919050565b610fb281610f9c565b8114610fbd57600080fd5b50565b600081519050610fcf81610fa9565b92915050565b600060208284031215610feb57610fea610d70565b5b6000610ff984828501610fc0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b60018511156110885780860481111561106457611063611002565b5b60018516156110735780820291505b808102905061108185611031565b9450611048565b94509492505050565b6000826110a1576001905061115d565b816110af576000905061115d565b81600181146110c557600281146110cf576110fe565b600191505061115d565b60ff8411156110e1576110e0611002565b5b8360020a9150848211156110f8576110f7611002565b5b5061115d565b5060208310610133831016604e8410600b84101617156111335782820a90508381111561112e5761112d611002565b5b61115d565b611140848484600161103e565b9250905081840481111561115757611156611002565b5b81810290505b9392505050565b600061116f82610d75565b915061117a83610f9c565b92506111a77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611091565b905092915050565b60006111ba82610d75565b91506111c583610d75565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156111fe576111fd611002565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061124382610d75565b915061124e83610d75565b92508261125e5761125d611209565b5b828204905092915050565b600060608201905061127e6000830186610e14565b61128b6020830185610e14565b6112986040830184610dd8565b949350505050565b6112a981610e3e565b81146112b457600080fd5b50565b6000815190506112c6816112a0565b92915050565b6000602082840312156112e2576112e1610d70565b5b60006112f0848285016112b7565b91505092915050565b600082825260208201905092915050565b7f6261642045544820616d6f756e74000000000000000000000000000000000000600082015250565b6000611340600e836112f9565b915061134b8261130a565b602082019050919050565b6000602082019050818103600083015261136f81611333565b9050919050565b600081905092915050565b50565b6000611391600083611376565b915061139c82611381565b600082019050919050565b60006113b282611384565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b60006113f26014836112f9565b91506113fd826113bc565b602082019050919050565b60006020820190508181036000830152611421816113e5565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006114846026836112f9565b915061148f82611428565b604082019050919050565b600060208201905081810360008301526114b381611477565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006114f06020836112f9565b91506114fb826114ba565b602082019050919050565b6000602082019050818103600083015261151f816114e3565b9050919050565b600069ffffffffffffffffffff82169050919050565b61154581611526565b811461155057600080fd5b50565b6000815190506115628161153c565b92915050565b6000819050919050565b61157b81611568565b811461158657600080fd5b50565b60008151905061159881611572565b92915050565b6000815190506115ad81610d7f565b92915050565b600080600080600060a086880312156115cf576115ce610d70565b5b60006115dd88828901611553565b95505060206115ee88828901611589565b94505060406115ff8882890161159e565b93505060606116108882890161159e565b925050608061162188828901611553565b9150509295509295909350565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006116646010836112f9565b915061166f8261162e565b602082019050919050565b6000602082019050818103600083015261169381611657565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b838110156116d45780820151818401526020810190506116b9565b838111156116e3576000848401525b50505050565b6000601f19601f8301169050919050565b60006117058261169a565b61170f81856116a5565b935061171f8185602086016116b6565b611728816116e9565b840191505092915050565b60006080820190506117486000830187610e14565b6117556020830186610dd8565b6117626040830185610dd8565b818103606083015261177481846116fa565b905095945050505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006117b56014836112f9565b91506117c08261177f565b602082019050919050565b600060208201905081810360008301526117e4816117a8565b905091905056fea26469706673582212204601d21ab4991489a725b5ceeac170fd14c70bd047b770cad18553ad7a48caab64736f6c634300080c00330000000000000000000000000e067c8ced4e946220a019b554f6436af517f8b6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000004fa5ea49d49ea79b7464f40eddc8836601c841d00000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Deployed Bytecode
0x6080604052600436106100dd5760003560e01c8063802716441161007f578063bfd752d911610059578063bfd752d914610276578063d58bb01b14610292578063f2fde38b146102bd578063f7d97577146102e6576100dd565b8063802716441461020b5780638456cb59146102345780638da5cb5b1461024b576100dd565b80633f4ba83a116100bb5780633f4ba83a146101755780635c975abb1461018c578063715018a6146101b757806373618dbe146101ce576100dd565b8063202693eb146100e257806330f8c9ee1461010d5780633b6fd2cf1461014a575b600080fd5b3480156100ee57600080fd5b506100f761030f565b6040516101049190610d55565b60405180910390f35b34801561011957600080fd5b50610134600480360381019061012f9190610dab565b610335565b6040516101419190610de7565b60405180910390f35b34801561015657600080fd5b5061015f61034d565b60405161016c9190610e23565b60405180910390f35b34801561018157600080fd5b5061018a610373565b005b34801561019857600080fd5b506101a1610385565b6040516101ae9190610e59565b60405180910390f35b3480156101c357600080fd5b506101cc61039b565b005b3480156101da57600080fd5b506101f560048036038101906101f09190610dab565b6103af565b6040516102029190610de7565b60405180910390f35b34801561021757600080fd5b50610232600480360381019061022d9190610ea0565b6104a3565b005b34801561024057600080fd5b50610249610655565b005b34801561025757600080fd5b50610260610667565b60405161026d9190610e23565b60405180910390f35b610290600480360381019061028b9190610ea0565b610690565b005b34801561029e57600080fd5b506102a761082c565b6040516102b49190610f14565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df9190610f2f565b610852565b005b3480156102f257600080fd5b5061030d60048036038101906103089190610f5c565b6108d6565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60056020528060005260406000206000915090505481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61037b6108fa565b610383610978565b565b60008060009054906101000a900460ff16905090565b6103a36108fa565b6103ad60006109da565b565b6000806005600084815260200190815260200160002054905060006103d2610a9f565b905080670de0b6b3a7640000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f9190610fd5565b600a61047b9190611164565b8461048691906111af565b61049091906111af565b61049a9190611238565b92505050919050565b6104ab610b40565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561057a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059e9190610fd5565b600a6105aa9190611164565b6005600089815260200190815260200160002054866105c991906111af565b6105d391906111af565b6040518463ffffffff1660e01b81526004016105f193929190611269565b6020604051808303816000875af1158015610610573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063491906112cc565b5061065082848360405180602001604052806000815250610b8a565b505050565b61065d6108fa565b610665610c23565b565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610698610b40565b60006106a3846103af565b90506103e8816103e06106b691906111af565b836106c191906111af565b6106cb9190611238565b341180156106fd57506103e8816103f06106e591906111af565b836106f091906111af565b6106fa9190611238565b34105b61073c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073390611356565b60405180910390fd5b61075783858460405180602001604052806000815250610b8a565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161079f906113a7565b60006040518083038185875af1925050503d80600081146107dc576040519150601f19603f3d011682016040523d82523d6000602084013e6107e1565b606091505b5050905080610825576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081c90611408565b60405180910390fd5b5050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61085a6108fa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c19061149a565b60405180910390fd5b6108d3816109da565b50565b6108de6108fa565b8060056000848152602001908152602001600020819055505050565b610902610c85565b73ffffffffffffffffffffffffffffffffffffffff16610920610667565b73ffffffffffffffffffffffffffffffffffffffff1614610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90611506565b60405180910390fd5b565b610980610c8d565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6109c3610c85565b6040516109d09190610e23565b60405180910390a1565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3391906115b3565b5050509150508091505090565b610b48610385565b15610b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7f9061167a565b60405180910390fd5b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663731133e9858585856040518563ffffffff1660e01b8152600401610beb9493929190611733565b600060405180830381600087803b158015610c0557600080fd5b505af1158015610c19573d6000803e3d6000fd5b5050505050505050565b610c2b610b40565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c6e610c85565b604051610c7b9190610e23565b60405180910390a1565b600033905090565b610c95610385565b610cd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccb906117cb565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610d1b610d16610d1184610cd6565b610cf6565b610cd6565b9050919050565b6000610d2d82610d00565b9050919050565b6000610d3f82610d22565b9050919050565b610d4f81610d34565b82525050565b6000602082019050610d6a6000830184610d46565b92915050565b600080fd5b6000819050919050565b610d8881610d75565b8114610d9357600080fd5b50565b600081359050610da581610d7f565b92915050565b600060208284031215610dc157610dc0610d70565b5b6000610dcf84828501610d96565b91505092915050565b610de181610d75565b82525050565b6000602082019050610dfc6000830184610dd8565b92915050565b6000610e0d82610cd6565b9050919050565b610e1d81610e02565b82525050565b6000602082019050610e386000830184610e14565b92915050565b60008115159050919050565b610e5381610e3e565b82525050565b6000602082019050610e6e6000830184610e4a565b92915050565b610e7d81610e02565b8114610e8857600080fd5b50565b600081359050610e9a81610e74565b92915050565b600080600060608486031215610eb957610eb8610d70565b5b6000610ec786828701610d96565b9350506020610ed886828701610e8b565b9250506040610ee986828701610d96565b9150509250925092565b6000610efe82610d22565b9050919050565b610f0e81610ef3565b82525050565b6000602082019050610f296000830184610f05565b92915050565b600060208284031215610f4557610f44610d70565b5b6000610f5384828501610e8b565b91505092915050565b60008060408385031215610f7357610f72610d70565b5b6000610f8185828601610d96565b9250506020610f9285828601610d96565b9150509250929050565b600060ff82169050919050565b610fb281610f9c565b8114610fbd57600080fd5b50565b600081519050610fcf81610fa9565b92915050565b600060208284031215610feb57610fea610d70565b5b6000610ff984828501610fc0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b60018511156110885780860481111561106457611063611002565b5b60018516156110735780820291505b808102905061108185611031565b9450611048565b94509492505050565b6000826110a1576001905061115d565b816110af576000905061115d565b81600181146110c557600281146110cf576110fe565b600191505061115d565b60ff8411156110e1576110e0611002565b5b8360020a9150848211156110f8576110f7611002565b5b5061115d565b5060208310610133831016604e8410600b84101617156111335782820a90508381111561112e5761112d611002565b5b61115d565b611140848484600161103e565b9250905081840481111561115757611156611002565b5b81810290505b9392505050565b600061116f82610d75565b915061117a83610f9c565b92506111a77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611091565b905092915050565b60006111ba82610d75565b91506111c583610d75565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156111fe576111fd611002565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061124382610d75565b915061124e83610d75565b92508261125e5761125d611209565b5b828204905092915050565b600060608201905061127e6000830186610e14565b61128b6020830185610e14565b6112986040830184610dd8565b949350505050565b6112a981610e3e565b81146112b457600080fd5b50565b6000815190506112c6816112a0565b92915050565b6000602082840312156112e2576112e1610d70565b5b60006112f0848285016112b7565b91505092915050565b600082825260208201905092915050565b7f6261642045544820616d6f756e74000000000000000000000000000000000000600082015250565b6000611340600e836112f9565b915061134b8261130a565b602082019050919050565b6000602082019050818103600083015261136f81611333565b9050919050565b600081905092915050565b50565b6000611391600083611376565b915061139c82611381565b600082019050919050565b60006113b282611384565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b60006113f26014836112f9565b91506113fd826113bc565b602082019050919050565b60006020820190508181036000830152611421816113e5565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006114846026836112f9565b915061148f82611428565b604082019050919050565b600060208201905081810360008301526114b381611477565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006114f06020836112f9565b91506114fb826114ba565b602082019050919050565b6000602082019050818103600083015261151f816114e3565b9050919050565b600069ffffffffffffffffffff82169050919050565b61154581611526565b811461155057600080fd5b50565b6000815190506115628161153c565b92915050565b6000819050919050565b61157b81611568565b811461158657600080fd5b50565b60008151905061159881611572565b92915050565b6000815190506115ad81610d7f565b92915050565b600080600080600060a086880312156115cf576115ce610d70565b5b60006115dd88828901611553565b95505060206115ee88828901611589565b94505060406115ff8882890161159e565b93505060606116108882890161159e565b925050608061162188828901611553565b9150509295509295909350565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006116646010836112f9565b915061166f8261162e565b602082019050919050565b6000602082019050818103600083015261169381611657565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b838110156116d45780820151818401526020810190506116b9565b838111156116e3576000848401525b50505050565b6000601f19601f8301169050919050565b60006117058261169a565b61170f81856116a5565b935061171f8185602086016116b6565b611728816116e9565b840191505092915050565b60006080820190506117486000830187610e14565b6117556020830186610dd8565b6117626040830185610dd8565b818103606083015261177481846116fa565b905095945050505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006117b56014836112f9565b91506117c08261177f565b602082019050919050565b600060208201905081810360008301526117e4816117a8565b905091905056fea26469706673582212204601d21ab4991489a725b5ceeac170fd14c70bd047b770cad18553ad7a48caab64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000e067c8ced4e946220a019b554f6436af517f8b6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000004fa5ea49d49ea79b7464f40eddc8836601c841d00000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
-----Decoded View---------------
Arg [0] : _agoraNFT (address): 0x0E067c8ced4e946220A019B554F6436Af517F8b6
Arg [1] : _stableUSD (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [2] : _fundsRecipient (address): 0x4fA5EA49d49eA79b7464f40eDDC8836601C841D0
Arg [3] : _ethToUsdFeed (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000e067c8ced4e946220a019b554f6436af517f8b6
Arg [1] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [2] : 0000000000000000000000004fa5ea49d49ea79b7464f40eddc8836601c841d0
Arg [3] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.