More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 5,211 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 19881996 | 62 days ago | IN | 0 ETH | 0.00087849 | ||||
Withdraw | 19880499 | 62 days ago | IN | 0 ETH | 0.00050897 | ||||
Withdraw | 19880499 | 62 days ago | IN | 0 ETH | 0.00011803 | ||||
Withdraw | 19880497 | 62 days ago | IN | 0 ETH | 0.00056982 | ||||
Withdraw | 19880495 | 62 days ago | IN | 0 ETH | 0.00056771 | ||||
Withdraw | 19880492 | 62 days ago | IN | 0 ETH | 0.00051154 | ||||
Withdraw | 19880490 | 62 days ago | IN | 0 ETH | 0.00054886 | ||||
Withdraw | 19880489 | 62 days ago | IN | 0 ETH | 0.00054403 | ||||
Withdraw | 19880486 | 62 days ago | IN | 0 ETH | 0.0005557 | ||||
Withdraw | 19880483 | 62 days ago | IN | 0 ETH | 0.00009271 | ||||
Withdraw | 19880483 | 62 days ago | IN | 0 ETH | 0.00049155 | ||||
Withdraw | 19806496 | 73 days ago | IN | 0 ETH | 0.00059073 | ||||
Claim Reward For... | 19806488 | 73 days ago | IN | 0 ETH | 0.00033232 | ||||
Withdraw | 19806482 | 73 days ago | IN | 0 ETH | 0.00067976 | ||||
Withdraw | 19806476 | 73 days ago | IN | 0 ETH | 0.00057237 | ||||
Withdraw | 19806469 | 73 days ago | IN | 0 ETH | 0.00061998 | ||||
Claim Reward For... | 19806461 | 73 days ago | IN | 0 ETH | 0.00034068 | ||||
Withdraw | 19289484 | 145 days ago | IN | 0 ETH | 0.00416008 | ||||
Withdraw | 19289464 | 145 days ago | IN | 0 ETH | 0.0054907 | ||||
Withdraw | 18367296 | 275 days ago | IN | 0 ETH | 0.00121815 | ||||
Withdraw | 18128561 | 308 days ago | IN | 0 ETH | 0.00202602 | ||||
Withdraw | 17578260 | 385 days ago | IN | 0 ETH | 0.00252716 | ||||
Withdraw | 17578252 | 385 days ago | IN | 0 ETH | 0.00222761 | ||||
Withdraw | 17578231 | 385 days ago | IN | 0 ETH | 0.00250808 | ||||
Withdraw | 17448031 | 403 days ago | IN | 0 ETH | 0.00519705 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BanditStaking
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-04-02 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8; // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } /** * @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 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 { _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); } } // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @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); } // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } contract BanditStaking is Ownable, IERC721Receiver { IERC721 public banditNft; IERC20 public xBandit; uint256 public rewardRate = 1; mapping(uint256 => uint256) private tokenIdToLastWithdrawTime; mapping(uint256 => uint256) private tokenIdToInitialStakeTime; mapping(uint256 => address) private tokenIdToOwner; mapping(uint256 => uint256) private tokenIdToEarnedBalance; mapping(uint256 => bool) private legendaries; constructor(address banditNftAddress, address xBanditAddress) { banditNft = IERC721(banditNftAddress); xBandit = IERC20(xBanditAddress); } function stakedBy(uint256 tokenId) public view returns (address) { return tokenIdToOwner[tokenId]; } function setBanditNftAddress(address newAddy) public onlyOwner { banditNft = IERC721(newAddy); } function setXBanditAddress(address newAddy) public onlyOwner { xBandit = IERC20(newAddy); } function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external override returns (bytes4) { require(banditNft.ownerOf(tokenId) == address(this), "fuck off"); require(tokenIdToOwner[tokenId] == address(0), "fuck off"); tokenIdToLastWithdrawTime[tokenId] = block.timestamp; tokenIdToInitialStakeTime[tokenId] = block.timestamp; tokenIdToOwner[tokenId] = from; tokenIdToEarnedBalance[tokenId] = 0; return BanditStaking.onERC721Received.selector; } function earned(uint256 tokenId) public view returns (uint256) { uint256 totalTimeStaked = block.timestamp - tokenIdToInitialStakeTime[tokenId]; uint256 rewardNumerator = 100; if (totalTimeStaked > 2592000 * 3) { rewardNumerator = 130; } else if (totalTimeStaked > 2592000 * 2) { rewardNumerator = 120; } else if (totalTimeStaked > 2592000) { rewardNumerator = 110; } if (isLegendary(tokenId)) { rewardNumerator = rewardNumerator + (rewardNumerator / 4); } return ((block.timestamp - tokenIdToLastWithdrawTime[tokenId]) * rewardRate * rewardNumerator * 1e18) / (86 * 100); } function claimRewardForToken(uint256 tokenId) public { require( banditNft.ownerOf(tokenId) == address(this), "This token is not yet staked" ); require( tokenIdToOwner[tokenId] == msg.sender, "You cannot claim rewards for a token you do not own" ); tokenIdToEarnedBalance[tokenId] = earned(tokenId); tokenIdToLastWithdrawTime[tokenId] = block.timestamp; uint256 finalEarnedAmount = tokenIdToEarnedBalance[tokenId]; tokenIdToEarnedBalance[tokenId] = 0; xBandit.transfer(msg.sender, finalEarnedAmount); } function withdraw(uint256 tokenId) external { claimRewardForToken(tokenId); tokenIdToOwner[tokenId] = address(0); banditNft.transferFrom(address(this), msg.sender, tokenId); } function setLegendaryToken(uint256 tokenId) public { legendaries[tokenId] = true; } function isLegendary(uint256 tokenId) public view returns (bool) { return legendaries[tokenId]; } function stakedTokensBy(address maybeOwner) public view returns (int256[] memory) { int256[] memory fin = new int256[](3333); uint lastSet = 0; for (uint i = 0; i < 3333; i++) { fin[i] = -1; if (tokenIdToOwner[i] == maybeOwner) { fin[lastSet] = int(i); lastSet++; } } return fin; } function timeStaked(uint256 tokenId) public view returns (uint256) { require(tokenIdToOwner[tokenId] != address(0), "This token is not staked yet"); return block.timestamp - tokenIdToInitialStakeTime[tokenId]; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"banditNftAddress","type":"address"},{"internalType":"address","name":"xBanditAddress","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"},{"inputs":[],"name":"banditNft","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimRewardForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isLegendary","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAddy","type":"address"}],"name":"setBanditNftAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setLegendaryToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddy","type":"address"}],"name":"setXBanditAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakedBy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maybeOwner","type":"address"}],"name":"stakedTokensBy","outputs":[{"internalType":"int256[]","name":"","type":"int256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"timeStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xBandit","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600160035534801561001557600080fd5b50604051610e54380380610e54833981016040819052610034916100da565b61003d3361006e565b600180546001600160a01b039384166001600160a01b0319918216179091556002805492909316911617905561010d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100d557600080fd5b919050565b600080604083850312156100ed57600080fd5b6100f6836100be565b9150610104602084016100be565b90509250929050565b610d388061011c6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80638da5cb5b116100a2578063bcd038d911610071578063bcd038d91461024f578063c1c55b5214610262578063c5a991f814610275578063f2fde38b146102a8578063f6b0b719146102bb57600080fd5b80638da5cb5b146101d95780639ee4af10146101ea578063acee66fa14610213578063bbecab461461022657600080fd5b8063562f34be116100de578063562f34be1461018a578063715018a61461019d578063726e3e6d146101a55780637b0a47ee146101d057600080fd5b8063150b7a021461011057806328e56163146101415780632e1a7d4d146101565780634d6ed8c414610169575b600080fd5b61012361011e366004610ab7565b6102db565b6040516001600160e01b031990911681526020015b60405180910390f35b61015461014f366004610b56565b61043d565b005b610154610164366004610b56565b61062f565b61017c610177366004610b56565b6106c2565b604051908152602001610138565b610154610198366004610b6f565b61079f565b6101546107eb565b6001546101b8906001600160a01b031681565b6040516001600160a01b039091168152602001610138565b61017c60035481565b6000546001600160a01b03166101b8565b6101b86101f8366004610b56565b6000908152600660205260409020546001600160a01b031690565b61017c610221366004610b56565b610821565b610154610234366004610b56565b6000908152600860205260409020805460ff19166001179055565b61015461025d366004610b6f565b6108a4565b6002546101b8906001600160a01b031681565b610298610283366004610b56565b60009081526008602052604090205460ff1690565b6040519015158152602001610138565b6101546102b6366004610b6f565b6108f0565b6102ce6102c9366004610b6f565b61098b565b6040516101389190610b93565b6001546040516331a9108f60e11b81526004810185905260009130916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d9190610bd7565b6001600160a01b0316146103935760405162461bcd60e51b8152602060048201526008602482015267333ab1b59037b33360c11b60448201526064015b60405180910390fd5b6000848152600660205260409020546001600160a01b0316156103e35760405162461bcd60e51b8152602060048201526008602482015267333ab1b59037b33360c11b604482015260640161038a565b506000838152600460209081526040808320429081905560058352818420556006825280832080546001600160a01b0389166001600160a01b03199091161790556007909152812055630a85bd0160e11b95945050505050565b6001546040516331a9108f60e11b81526004810183905230916001600160a01b031690636352211e90602401602060405180830381865afa158015610486573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104aa9190610bd7565b6001600160a01b0316146105005760405162461bcd60e51b815260206004820152601c60248201527f5468697320746f6b656e206973206e6f7420796574207374616b656400000000604482015260640161038a565b6000818152600660205260409020546001600160a01b031633146105825760405162461bcd60e51b815260206004820152603360248201527f596f752063616e6e6f7420636c61696d207265776172647320666f722061207460448201527237b5b2b7103cb7ba903237903737ba1037bbb760691b606482015260840161038a565b61058b816106c2565b6000828152600760208181526040808420948555600480835281852042905592909152835492909355600254925163a9059cbb60e01b815233918101919091526024810182905290916001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a9190610bf4565b505050565b6106388161043d565b6000818152600660205260409081902080546001600160a01b031916905560015490516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156106a757600080fd5b505af11580156106bb573d6000803e3d6000fd5b5050505050565b60008181526005602052604081205481906106dd9042610c2c565b905060646276a7008211156106f457506082610716565b624f1a0082111561070757506078610716565b62278d008211156107165750606e5b60008481526008602052604090205460ff161561074557610738600482610c43565b6107429082610c65565b90505b6003546000858152600460205260409020546121989183916107679042610c2c565b6107719190610c7d565b61077b9190610c7d565b61078d90670de0b6b3a7640000610c7d565b6107979190610c43565b949350505050565b6000546001600160a01b031633146107c95760405162461bcd60e51b815260040161038a90610c9c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108155760405162461bcd60e51b815260040161038a90610c9c565b61081f6000610a52565b565b6000818152600660205260408120546001600160a01b03166108855760405162461bcd60e51b815260206004820152601c60248201527f5468697320746f6b656e206973206e6f74207374616b65642079657400000000604482015260640161038a565b60008281526005602052604090205461089e9042610c2c565b92915050565b6000546001600160a01b031633146108ce5760405162461bcd60e51b815260040161038a90610c9c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461091a5760405162461bcd60e51b815260040161038a90610c9c565b6001600160a01b03811661097f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161038a565b61098881610a52565b50565b60408051610d058082526201a0c0820190925260609160009190602082016201a0a0803683370190505090506000805b610d05811015610a49576000198382815181106109da576109da610cd1565b6020908102919091018101919091526000828152600690915260409020546001600160a01b0386811691161415610a375780838381518110610a1e57610a1e610cd1565b602090810291909101015281610a3381610ce7565b9250505b80610a4181610ce7565b9150506109bb565b50909392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461098857600080fd5b600080600080600060808688031215610acf57600080fd5b8535610ada81610aa2565b94506020860135610aea81610aa2565b935060408601359250606086013567ffffffffffffffff80821115610b0e57600080fd5b818801915088601f830112610b2257600080fd5b813581811115610b3157600080fd5b896020828501011115610b4357600080fd5b9699959850939650602001949392505050565b600060208284031215610b6857600080fd5b5035919050565b600060208284031215610b8157600080fd5b8135610b8c81610aa2565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015610bcb57835183529284019291840191600101610baf565b50909695505050505050565b600060208284031215610be957600080fd5b8151610b8c81610aa2565b600060208284031215610c0657600080fd5b81518015158114610b8c57600080fd5b634e487b7160e01b600052601160045260246000fd5b600082821015610c3e57610c3e610c16565b500390565b600082610c6057634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115610c7857610c78610c16565b500190565b6000816000190483118215151615610c9757610c97610c16565b500290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610cfb57610cfb610c16565b506001019056fea264697066735822122015d0e3325b604f31c41a368ce6854a1c25ef8f38a80c6e5b316a1a8fb35c731e64736f6c634300080c003300000000000000000000000079120de091295505683660cb13c13c92a1c3a99a0000000000000000000000004f995cccf05a3578ee3a2e1ad36066cd99245915
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80638da5cb5b116100a2578063bcd038d911610071578063bcd038d91461024f578063c1c55b5214610262578063c5a991f814610275578063f2fde38b146102a8578063f6b0b719146102bb57600080fd5b80638da5cb5b146101d95780639ee4af10146101ea578063acee66fa14610213578063bbecab461461022657600080fd5b8063562f34be116100de578063562f34be1461018a578063715018a61461019d578063726e3e6d146101a55780637b0a47ee146101d057600080fd5b8063150b7a021461011057806328e56163146101415780632e1a7d4d146101565780634d6ed8c414610169575b600080fd5b61012361011e366004610ab7565b6102db565b6040516001600160e01b031990911681526020015b60405180910390f35b61015461014f366004610b56565b61043d565b005b610154610164366004610b56565b61062f565b61017c610177366004610b56565b6106c2565b604051908152602001610138565b610154610198366004610b6f565b61079f565b6101546107eb565b6001546101b8906001600160a01b031681565b6040516001600160a01b039091168152602001610138565b61017c60035481565b6000546001600160a01b03166101b8565b6101b86101f8366004610b56565b6000908152600660205260409020546001600160a01b031690565b61017c610221366004610b56565b610821565b610154610234366004610b56565b6000908152600860205260409020805460ff19166001179055565b61015461025d366004610b6f565b6108a4565b6002546101b8906001600160a01b031681565b610298610283366004610b56565b60009081526008602052604090205460ff1690565b6040519015158152602001610138565b6101546102b6366004610b6f565b6108f0565b6102ce6102c9366004610b6f565b61098b565b6040516101389190610b93565b6001546040516331a9108f60e11b81526004810185905260009130916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d9190610bd7565b6001600160a01b0316146103935760405162461bcd60e51b8152602060048201526008602482015267333ab1b59037b33360c11b60448201526064015b60405180910390fd5b6000848152600660205260409020546001600160a01b0316156103e35760405162461bcd60e51b8152602060048201526008602482015267333ab1b59037b33360c11b604482015260640161038a565b506000838152600460209081526040808320429081905560058352818420556006825280832080546001600160a01b0389166001600160a01b03199091161790556007909152812055630a85bd0160e11b95945050505050565b6001546040516331a9108f60e11b81526004810183905230916001600160a01b031690636352211e90602401602060405180830381865afa158015610486573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104aa9190610bd7565b6001600160a01b0316146105005760405162461bcd60e51b815260206004820152601c60248201527f5468697320746f6b656e206973206e6f7420796574207374616b656400000000604482015260640161038a565b6000818152600660205260409020546001600160a01b031633146105825760405162461bcd60e51b815260206004820152603360248201527f596f752063616e6e6f7420636c61696d207265776172647320666f722061207460448201527237b5b2b7103cb7ba903237903737ba1037bbb760691b606482015260840161038a565b61058b816106c2565b6000828152600760208181526040808420948555600480835281852042905592909152835492909355600254925163a9059cbb60e01b815233918101919091526024810182905290916001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a9190610bf4565b505050565b6106388161043d565b6000818152600660205260409081902080546001600160a01b031916905560015490516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156106a757600080fd5b505af11580156106bb573d6000803e3d6000fd5b5050505050565b60008181526005602052604081205481906106dd9042610c2c565b905060646276a7008211156106f457506082610716565b624f1a0082111561070757506078610716565b62278d008211156107165750606e5b60008481526008602052604090205460ff161561074557610738600482610c43565b6107429082610c65565b90505b6003546000858152600460205260409020546121989183916107679042610c2c565b6107719190610c7d565b61077b9190610c7d565b61078d90670de0b6b3a7640000610c7d565b6107979190610c43565b949350505050565b6000546001600160a01b031633146107c95760405162461bcd60e51b815260040161038a90610c9c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108155760405162461bcd60e51b815260040161038a90610c9c565b61081f6000610a52565b565b6000818152600660205260408120546001600160a01b03166108855760405162461bcd60e51b815260206004820152601c60248201527f5468697320746f6b656e206973206e6f74207374616b65642079657400000000604482015260640161038a565b60008281526005602052604090205461089e9042610c2c565b92915050565b6000546001600160a01b031633146108ce5760405162461bcd60e51b815260040161038a90610c9c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461091a5760405162461bcd60e51b815260040161038a90610c9c565b6001600160a01b03811661097f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161038a565b61098881610a52565b50565b60408051610d058082526201a0c0820190925260609160009190602082016201a0a0803683370190505090506000805b610d05811015610a49576000198382815181106109da576109da610cd1565b6020908102919091018101919091526000828152600690915260409020546001600160a01b0386811691161415610a375780838381518110610a1e57610a1e610cd1565b602090810291909101015281610a3381610ce7565b9250505b80610a4181610ce7565b9150506109bb565b50909392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461098857600080fd5b600080600080600060808688031215610acf57600080fd5b8535610ada81610aa2565b94506020860135610aea81610aa2565b935060408601359250606086013567ffffffffffffffff80821115610b0e57600080fd5b818801915088601f830112610b2257600080fd5b813581811115610b3157600080fd5b896020828501011115610b4357600080fd5b9699959850939650602001949392505050565b600060208284031215610b6857600080fd5b5035919050565b600060208284031215610b8157600080fd5b8135610b8c81610aa2565b9392505050565b6020808252825182820181905260009190848201906040850190845b81811015610bcb57835183529284019291840191600101610baf565b50909695505050505050565b600060208284031215610be957600080fd5b8151610b8c81610aa2565b600060208284031215610c0657600080fd5b81518015158114610b8c57600080fd5b634e487b7160e01b600052601160045260246000fd5b600082821015610c3e57610c3e610c16565b500390565b600082610c6057634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115610c7857610c78610c16565b500190565b6000816000190483118215151615610c9757610c97610c16565b500290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610cfb57610cfb610c16565b506001019056fea264697066735822122015d0e3325b604f31c41a368ce6854a1c25ef8f38a80c6e5b316a1a8fb35c731e64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000079120de091295505683660cb13c13c92a1c3a99a0000000000000000000000004f995cccf05a3578ee3a2e1ad36066cd99245915
-----Decoded View---------------
Arg [0] : banditNftAddress (address): 0x79120DE091295505683660Cb13C13C92a1C3A99a
Arg [1] : xBanditAddress (address): 0x4f995CccF05A3578EE3a2E1ad36066CD99245915
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000079120de091295505683660cb13c13c92a1c3a99a
Arg [1] : 0000000000000000000000004f995cccf05a3578ee3a2e1ad36066cd99245915
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.