Source Code
Latest 25 from a total of 604 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Boost | 23367729 | 181 days ago | IN | 0 ETH | 0.00003766 | ||||
| Boost | 23367729 | 181 days ago | IN | 0 ETH | 0.0000544 | ||||
| Boost | 23367651 | 181 days ago | IN | 0 ETH | 0.00006124 | ||||
| Boost | 23367054 | 181 days ago | IN | 0 ETH | 0.00009965 | ||||
| Boost | 23367018 | 181 days ago | IN | 0 ETH | 0.00007078 | ||||
| Boost | 23366991 | 181 days ago | IN | 0 ETH | 0.0000512 | ||||
| Boost | 23366860 | 181 days ago | IN | 0 ETH | 0.00006098 | ||||
| Boost | 23366836 | 181 days ago | IN | 0 ETH | 0.00005789 | ||||
| Boost | 23366812 | 181 days ago | IN | 0 ETH | 0.00006295 | ||||
| Boost | 23366766 | 181 days ago | IN | 0 ETH | 0.00006586 | ||||
| Boost | 23366666 | 181 days ago | IN | 0 ETH | 0.00002119 | ||||
| Boost | 23366653 | 181 days ago | IN | 0 ETH | 0.00002297 | ||||
| Boost | 23366638 | 181 days ago | IN | 0 ETH | 0.0000227 | ||||
| Boost | 23359737 | 182 days ago | IN | 0 ETH | 0.00001989 | ||||
| Boost | 23359654 | 182 days ago | IN | 0 ETH | 0.00001368 | ||||
| Boost | 23359650 | 182 days ago | IN | 0 ETH | 0.00002117 | ||||
| Boost | 23358622 | 182 days ago | IN | 0 ETH | 0.00002409 | ||||
| Boost | 23354350 | 182 days ago | IN | 0 ETH | 0.00003537 | ||||
| Boost | 23353160 | 183 days ago | IN | 0 ETH | 0.0000456 | ||||
| Boost | 23352683 | 183 days ago | IN | 0 ETH | 0.00003091 | ||||
| Boost | 23347634 | 183 days ago | IN | 0 ETH | 0.00018838 | ||||
| Boost | 23347315 | 183 days ago | IN | 0 ETH | 0.0001341 | ||||
| Boost | 23347315 | 183 days ago | IN | 0 ETH | 0.00017075 | ||||
| Boost | 23345277 | 184 days ago | IN | 0 ETH | 0.00002233 | ||||
| Boost | 23344938 | 184 days ago | IN | 0 ETH | 0.00004174 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
|||
|---|---|---|---|---|---|---|---|---|
| Transfer | 23382223 | 179 days ago | 0 ETH | |||||
| Balance Of | 23382223 | 179 days ago | 0 ETH | |||||
| Emergency Withdr... | 23382223 | 179 days ago | 0 ETH | |||||
| User Info | 23367729 | 181 days ago | 0 ETH | |||||
| Pending Dai | 23367729 | 181 days ago | 0 ETH | |||||
| Config | 23367729 | 181 days ago | 0 ETH | |||||
| Token Data | 23367729 | 181 days ago | 0 ETH | |||||
| Transfer | 23367729 | 181 days ago | 0 ETH | |||||
| Mint | 23367729 | 181 days ago | 0 ETH | |||||
| Transfer | 23367729 | 181 days ago | 0 ETH | |||||
| User Info | 23367729 | 181 days ago | 0 ETH | |||||
| Pending Dai | 23367729 | 181 days ago | 0 ETH | |||||
| Config | 23367729 | 181 days ago | 0 ETH | |||||
| Token Data | 23367729 | 181 days ago | 0 ETH | |||||
| Transfer | 23367651 | 181 days ago | 0 ETH | |||||
| Mint | 23367651 | 181 days ago | 0 ETH | |||||
| Transfer | 23367651 | 181 days ago | 0 ETH | |||||
| User Info | 23367651 | 181 days ago | 0 ETH | |||||
| Pending Dai | 23367651 | 181 days ago | 0 ETH | |||||
| Config | 23367651 | 181 days ago | 0 ETH | |||||
| Token Data | 23367651 | 181 days ago | 0 ETH | |||||
| Transfer | 23367054 | 181 days ago | 0 ETH | |||||
| Mint | 23367054 | 181 days ago | 0 ETH | |||||
| Transfer | 23367054 | 181 days ago | 0 ETH | |||||
| User Info | 23367054 | 181 days ago | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Booster
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
struct UserInfo {
uint256 amount;
uint256 rewardDebt;
uint256 rewardBalance;
uint256 lastClaim;
uint256 sumTaxed;
uint256 parentTaxed;
}
struct Configuration {
uint256 orderLockingHeight;
uint256 depositThreshold;
uint256 claimThreshold;
uint256 claimCharge;
uint256 commissionRatio;
uint256 cooldown;
uint256 withdrawalCharge;
}
interface IMasterChef {
function pendingDai(address user) external view returns (uint256);
function userInfo(address user) external view returns (UserInfo memory);
function config() external view returns (Configuration memory);
function highestParent() external view returns (address);
}
struct Data {
uint256 boostRate;
uint256 validBlock;
uint256 initBlock;
}
interface IMedal is IERC721 {
function tokenData(uint256 tokenId) external view returns (Data memory);
}
interface ISubERC20 {
function mint(address account, uint256 amount) external;
function burn(address account, uint256 amount) external;
}
/// @title Booster
/// @notice Handles deposit of Elite Medals to boost DAI rewards from MasterChef
contract Booster is Ownable, ReentrancyGuard, IERC721Receiver {
struct BoostInfo {
uint256 pendingDai;
uint256 lastClaim;
}
address public constant BLACK = 0x1111111111111111111111111111111111111111;
address public highestParent;
bool public active;
IMasterChef public masterChef;
IMedal public medal;
IERC20 public Dai;
ISubERC20 public bDai;
mapping(address => uint256) public medalInfo;
mapping(address => BoostInfo) public boostInfo;
mapping(address => bool) public disableUser;
mapping(uint256 => bool) public disableNFT;
/// @dev Errors
error InvalidAddress();
error InsufficientBalance();
error Unauthorized();
error NFTNotOwned();
error InvalidNFT();
error ClaimTooEarly();
error InactiveContract();
error DisabledUser();
error DisabledNFT();
error NotInCooldown();
event Deposit(address from, uint256 tokenId);
event Boost(address from, uint256 amount, uint256 parentAmount, uint256 number);
event Withdraw(uint256 amount, address to);
event UpdateActive(bool state);
event UpdateDisableUser(address from, bool state);
event UpdateDisableNFT(uint256 tokenId, bool state);
constructor(address _owner, address _masterChef, address _medal, address _dai, address _bDai) {
masterChef = IMasterChef(_masterChef);
medal = IMedal(_medal);
Dai = IERC20(_dai);
bDai = ISubERC20(_bDai);
active = true;
highestParent = masterChef.highestParent();
_transferOwnership(_owner);
}
/// @notice Deposit an NFT to enable boosting
function deposit(uint256 tokenId) external {
if (medal.ownerOf(tokenId) != msg.sender) revert NFTNotOwned();
Configuration memory cfg = masterChef.config();
UserInfo memory userInfo = masterChef.userInfo(msg.sender);
if (userInfo.lastClaim == 0 || (block.number - userInfo.lastClaim) > cfg.cooldown) {
revert NotInCooldown();
}
medal.safeTransferFrom(msg.sender, BLACK, tokenId);
medalInfo[msg.sender] = tokenId;
emit Deposit(msg.sender, tokenId);
}
/// @notice Claim and boost DAI rewards
function boost() external nonReentrant {
if (!active) revert InactiveContract();
if (disableUser[msg.sender]) revert DisabledUser();
uint256 tokenId = medalInfo[msg.sender];
if (tokenId == 0) revert InvalidNFT();
if (disableNFT[tokenId]) revert DisabledNFT();
Data memory data = medal.tokenData(tokenId);
if (data.validBlock < block.number) revert ClaimTooEarly();
BoostInfo memory info = boostInfo[msg.sender];
Configuration memory cfg = masterChef.config();
uint256 pendingDai = masterChef.pendingDai(msg.sender);
if (pendingDai < cfg.claimThreshold) revert InsufficientBalance();
UserInfo memory userInfo = masterChef.userInfo(msg.sender);
if (info.lastClaim > 0 && userInfo.lastClaim <= info.lastClaim) {
revert ClaimTooEarly();
}
boostInfo[msg.sender] = BoostInfo({
pendingDai: pendingDai,
lastClaim: block.number
});
uint256 amount = (pendingDai * (data.boostRate * 100)) / 10000;
uint256 parentAmount = amount * cfg.claimCharge / 10000;
if (parentAmount > 0) Dai.transfer(highestParent, parentAmount);
amount = amount - parentAmount;
bDai.mint(msg.sender, amount);
Dai.transfer(msg.sender, amount);
emit Boost(msg.sender, amount, parentAmount, block.number);
}
/// @notice Emergency withdraw DAI from contract
function emergencyWithdraw(address to, uint256 amount) external onlyOwner nonReentrant {
if (to == address(0)) revert InvalidAddress();
if (Dai.balanceOf(address(this)) < amount) revert InsufficientBalance();
Dai.transfer(to, amount);
emit Withdraw(amount, to);
}
function updateActive(bool state) external onlyOwner {
active = state;
emit UpdateActive(state);
}
function updateDisableUser(address from, bool state) external onlyOwner {
if (from == address(0)) revert InvalidAddress();
disableUser[from] = state;
emit UpdateDisableUser(from, state);
}
function updateDisableNFT(uint256 tokenId, bool state) external onlyOwner {
if (tokenId == 0) revert InvalidNFT();
disableNFT[tokenId] = state;
emit UpdateDisableNFT(tokenId, state);
}
// Required to accept ERC721 safe transfers
function onERC721Received(
address,
address,
uint256,
bytes calldata
) external pure override returns (bytes4) {
return IERC721Receiver.onERC721Received.selector;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @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`.
*
* 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;
/**
* @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* 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 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 the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @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);
}// 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 v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @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);
}// 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": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": [],
"evmVersion": "istanbul"
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_masterChef","type":"address"},{"internalType":"address","name":"_medal","type":"address"},{"internalType":"address","name":"_dai","type":"address"},{"internalType":"address","name":"_bDai","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ClaimTooEarly","type":"error"},{"inputs":[],"name":"DisabledNFT","type":"error"},{"inputs":[],"name":"DisabledUser","type":"error"},{"inputs":[],"name":"InactiveContract","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidNFT","type":"error"},{"inputs":[],"name":"NFTNotOwned","type":"error"},{"inputs":[],"name":"NotInCooldown","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"parentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"number","type":"uint256"}],"name":"Boost","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Deposit","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"UpdateActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"UpdateDisableNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"UpdateDisableUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BLACK","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Dai","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bDai","outputs":[{"internalType":"contract ISubERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"boostInfo","outputs":[{"internalType":"uint256","name":"pendingDai","type":"uint256"},{"internalType":"uint256","name":"lastClaim","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"disableNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"disableUser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"highestParent","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterChef","outputs":[{"internalType":"contract IMasterChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"medal","outputs":[{"internalType":"contract IMedal","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"medalInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"updateActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"state","type":"bool"}],"name":"updateDisableNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"updateDisableUser","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162001657380380620016578339810160408190526200003491620001a4565b6200003f3362000137565b60018055600380546001600160a01b038087166001600160a01b0319928316811790935560048054878316908416178155600580548784169085161790556006805492861692909316919091179091556002805460ff60a01b1916600160a01b1790556040805163b994cc4560e01b8152905163b994cc45928281019260209291908290030181865afa158015620000db573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000101919062000214565b600280546001600160a01b0319166001600160a01b03929092169190911790556200012c8562000137565b505050505062000239565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200019f57600080fd5b919050565b600080600080600060a08688031215620001bd57600080fd5b620001c88662000187565b9450620001d86020870162000187565b9350620001e86040870162000187565b9250620001f86060870162000187565b9150620002086080870162000187565b90509295509295909350565b6000602082840312156200022757600080fd5b620002328262000187565b9392505050565b61140e80620002496000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063aa77a8091161007c578063aa77a809146102b9578063b6b55f25146102dc578063b994cc45146102ef578063d723a3d214610302578063ee6649a11461033e578063f2fde38b1461036157600080fd5b8063715018a61461027257806381f237b81461027a5780638da5cb5b1461028d57806395ccea671461029e578063a66f42c0146102b157600080fd5b806320f51707116100ff57806320f51707146101f0578063225b031d14610203578063543e9dbf1461021e578063575a86b21461024c5780636764120c1461025f57600080fd5b806302fb0c5e1461013c57806306797868146101655780630aa937671461019057806310b11e14146101a5578063150b7a02146101b8575b600080fd5b60025461015090600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b600654610178906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b6101a361019e366004610ffb565b610374565b005b6101a36101b3366004611040565b6103f4565b6101d76101c636600461106e565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161015c565b600554610178906001600160a01b031681565b61017873111111111111111111111111111111111111111181565b61023e61022c36600461110d565b60076020526000908152604090205481565b60405190815260200161015c565b600354610178906001600160a01b031681565b6101a361026d366004611131565b61047f565b6101a36104df565b600454610178906001600160a01b031681565b6000546001600160a01b0316610178565b6101a36102ac36600461114e565b6104f3565b6101a361067b565b6101506102c736600461117a565b600a6020526000908152604090205460ff1681565b6101a36102ea36600461117a565b610be1565b600254610178906001600160a01b031681565b61032961031036600461110d565b6008602052600090815260409020805460019091015482565b6040805192835260208301919091520161015c565b61015061034c36600461110d565b60096020526000908152604090205460ff1681565b6101a361036f36600461110d565b610e6b565b61037c610ee9565b8161039a5760405163079f151f60e11b815260040160405180910390fd5b6000828152600a6020908152604091829020805460ff19168415159081179091558251858152918201527f73b1c57111c578f80a66c18ee5451bc79fdc3d6000261a4c89c070fb91bdd85891015b60405180910390a15050565b6103fc610ee9565b6001600160a01b0382166104235760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b038216600081815260096020908152604091829020805460ff19168515159081179091558251938452908301527ff9c4e47c60b7a9d21f5359984eeb75eec20ab7d5f5c633e2eb7780dc6191103591016103e8565b610487610ee9565b60028054821515600160a01b0260ff60a01b199091161790556040517f1aeaaae8f3dfe7571a27a3576558260788745acdc3b5bd1c09041614d4fdbef8906104d490831515815260200190565b60405180910390a150565b6104e7610ee9565b6104f16000610f43565b565b6104fb610ee9565b610503610f93565b6001600160a01b03821661052a5760405163e6c4247b60e01b815260040160405180910390fd5b6005546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105969190611193565b10156105b557604051631e9acf1760e31b815260040160405180910390fd5b60055460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610608573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062c91906111ac565b50604080518281526001600160a01b03841660208201527f8353ffcac0876ad14e226d9783c04540bfebf13871e868157d2a391cad98e918910160405180910390a161067760018055565b5050565b610683610f93565b600254600160a01b900460ff166106ad576040516384c9906960e01b815260040160405180910390fd5b3360009081526009602052604090205460ff16156106de576040516316e7880d60e11b815260040160405180910390fd5b336000908152600760205260409020548061070c5760405163079f151f60e11b815260040160405180910390fd5b6000818152600a602052604090205460ff161561073c57604051631ed71e4160e01b815260040160405180910390fd5b6004805460405163b4b5b48f60e01b81529182018390526000916001600160a01b039091169063b4b5b48f90602401606060405180830381865afa158015610788573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ac91906111c9565b905043816020015110156107d357604051631613b7eb60e01b815260040160405180910390fd5b33600090815260086020908152604080832081518083018352815481526001909101549281019290925260035481516379502c5560e01b815291519293926001600160a01b03909116916379502c559160048083019260e09291908290030181865afa158015610847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086b9190611233565b60035460405163064bc20960e01b81523360048201529192506000916001600160a01b039091169063064bc20990602401602060405180830381865afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd9190611193565b9050816040015181101561090457604051631e9acf1760e31b815260040160405180910390fd5b600354604051630cacd00160e11b81523360048201526000916001600160a01b031690631959a0029060240160c060405180830381865afa15801561094d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097191906112c5565b90506000846020015111801561098f57508360200151816060015111155b156109ad57604051631613b7eb60e01b815260040160405180910390fd5b604080518082018252838152436020808301918252336000908152600890915292832091518255516001909101558551612710906109ec906064611363565b6109f69085611363565b610a009190611382565b90506000612710856060015183610a179190611363565b610a219190611382565b90508015610aa45760055460025460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015610a7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa291906111ac565b505b610aae81836113a4565b6006546040516340c10f1960e01b8152336004820152602481018390529193506001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610afb57600080fd5b505af1158015610b0f573d6000803e3d6000fd5b505060055460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b03909116925063a9059cbb91506044016020604051808303816000875af1158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8891906111ac565b5060408051338152602081018490529081018290524360608201527f82f1a735a8f74841f96f5781d0def32cd252e61f6c5c5f9c6cfb3a18e12d71099060800160405180910390a150505050505050506104f160018055565b600480546040516331a9108f60e11b815291820183905233916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610c2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5091906113bb565b6001600160a01b031614610c775760405163ca5ae8a360e01b815260040160405180910390fd5b600354604080516379502c5560e01b815290516000926001600160a01b0316916379502c559160048083019260e09291908290030181865afa158015610cc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce59190611233565b600354604051630cacd00160e11b81523360048201529192506000916001600160a01b0390911690631959a0029060240160c060405180830381865afa158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5791906112c5565b9050806060015160001480610d7d575060a08201516060820151610d7b90436113a4565b115b15610d9b576040516374d7ec0760e11b815260040160405180910390fd5b60048054604051632142170760e11b815233928101929092527311111111111111111111111111111111111111116024830152604482018590526001600160a01b0316906342842e0e90606401600060405180830381600087803b158015610e0257600080fd5b505af1158015610e16573d6000803e3d6000fd5b505033600081815260076020908152604091829020889055815192835282018790527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c935001905060405180910390a1505050565b610e73610ee9565b6001600160a01b038116610edd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610ee681610f43565b50565b6000546001600160a01b031633146104f15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ed4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60026001541415610fe65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ed4565b6002600155565b8015158114610ee657600080fd5b6000806040838503121561100e57600080fd5b82359150602083013561102081610fed565b809150509250929050565b6001600160a01b0381168114610ee657600080fd5b6000806040838503121561105357600080fd5b823561105e8161102b565b9150602083013561102081610fed565b60008060008060006080868803121561108657600080fd5b85356110918161102b565b945060208601356110a18161102b565b935060408601359250606086013567ffffffffffffffff808211156110c557600080fd5b818801915088601f8301126110d957600080fd5b8135818111156110e857600080fd5b8960208285010111156110fa57600080fd5b9699959850939650602001949392505050565b60006020828403121561111f57600080fd5b813561112a8161102b565b9392505050565b60006020828403121561114357600080fd5b813561112a81610fed565b6000806040838503121561116157600080fd5b823561116c8161102b565b946020939093013593505050565b60006020828403121561118c57600080fd5b5035919050565b6000602082840312156111a557600080fd5b5051919050565b6000602082840312156111be57600080fd5b815161112a81610fed565b6000606082840312156111db57600080fd5b6040516060810181811067ffffffffffffffff8211171561120c57634e487b7160e01b600052604160045260246000fd5b80604052508251815260208301516020820152604083015160408201528091505092915050565b600060e0828403121561124557600080fd5b60405160e0810181811067ffffffffffffffff8211171561127657634e487b7160e01b600052604160045260246000fd5b8060405250825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c08201528091505092915050565b600060c082840312156112d757600080fd5b60405160c0810181811067ffffffffffffffff8211171561130857634e487b7160e01b600052604160045260246000fd5b8060405250825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a08201528091505092915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561137d5761137d61134d565b500290565b60008261139f57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156113b6576113b661134d565b500390565b6000602082840312156113cd57600080fd5b815161112a8161102b56fea2646970667358221220826da3281613774b9192cecc66f3f8ee0f2894277a6a6e912ddea711cd247d9264736f6c634300080c00330000000000000000000000008a8068363595a00b6f9b6a2cc4bd60c5f5021da2000000000000000000000000a083db1d528538946b80fd4c741e2d99c8343d46000000000000000000000000b30078527a471badc44a43e203b24ea0a36e04960000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000994d39bf77157757a859f41bf3813a7b3747b59f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063aa77a8091161007c578063aa77a809146102b9578063b6b55f25146102dc578063b994cc45146102ef578063d723a3d214610302578063ee6649a11461033e578063f2fde38b1461036157600080fd5b8063715018a61461027257806381f237b81461027a5780638da5cb5b1461028d57806395ccea671461029e578063a66f42c0146102b157600080fd5b806320f51707116100ff57806320f51707146101f0578063225b031d14610203578063543e9dbf1461021e578063575a86b21461024c5780636764120c1461025f57600080fd5b806302fb0c5e1461013c57806306797868146101655780630aa937671461019057806310b11e14146101a5578063150b7a02146101b8575b600080fd5b60025461015090600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b600654610178906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b6101a361019e366004610ffb565b610374565b005b6101a36101b3366004611040565b6103f4565b6101d76101c636600461106e565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161015c565b600554610178906001600160a01b031681565b61017873111111111111111111111111111111111111111181565b61023e61022c36600461110d565b60076020526000908152604090205481565b60405190815260200161015c565b600354610178906001600160a01b031681565b6101a361026d366004611131565b61047f565b6101a36104df565b600454610178906001600160a01b031681565b6000546001600160a01b0316610178565b6101a36102ac36600461114e565b6104f3565b6101a361067b565b6101506102c736600461117a565b600a6020526000908152604090205460ff1681565b6101a36102ea36600461117a565b610be1565b600254610178906001600160a01b031681565b61032961031036600461110d565b6008602052600090815260409020805460019091015482565b6040805192835260208301919091520161015c565b61015061034c36600461110d565b60096020526000908152604090205460ff1681565b6101a361036f36600461110d565b610e6b565b61037c610ee9565b8161039a5760405163079f151f60e11b815260040160405180910390fd5b6000828152600a6020908152604091829020805460ff19168415159081179091558251858152918201527f73b1c57111c578f80a66c18ee5451bc79fdc3d6000261a4c89c070fb91bdd85891015b60405180910390a15050565b6103fc610ee9565b6001600160a01b0382166104235760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b038216600081815260096020908152604091829020805460ff19168515159081179091558251938452908301527ff9c4e47c60b7a9d21f5359984eeb75eec20ab7d5f5c633e2eb7780dc6191103591016103e8565b610487610ee9565b60028054821515600160a01b0260ff60a01b199091161790556040517f1aeaaae8f3dfe7571a27a3576558260788745acdc3b5bd1c09041614d4fdbef8906104d490831515815260200190565b60405180910390a150565b6104e7610ee9565b6104f16000610f43565b565b6104fb610ee9565b610503610f93565b6001600160a01b03821661052a5760405163e6c4247b60e01b815260040160405180910390fd5b6005546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105969190611193565b10156105b557604051631e9acf1760e31b815260040160405180910390fd5b60055460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610608573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062c91906111ac565b50604080518281526001600160a01b03841660208201527f8353ffcac0876ad14e226d9783c04540bfebf13871e868157d2a391cad98e918910160405180910390a161067760018055565b5050565b610683610f93565b600254600160a01b900460ff166106ad576040516384c9906960e01b815260040160405180910390fd5b3360009081526009602052604090205460ff16156106de576040516316e7880d60e11b815260040160405180910390fd5b336000908152600760205260409020548061070c5760405163079f151f60e11b815260040160405180910390fd5b6000818152600a602052604090205460ff161561073c57604051631ed71e4160e01b815260040160405180910390fd5b6004805460405163b4b5b48f60e01b81529182018390526000916001600160a01b039091169063b4b5b48f90602401606060405180830381865afa158015610788573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ac91906111c9565b905043816020015110156107d357604051631613b7eb60e01b815260040160405180910390fd5b33600090815260086020908152604080832081518083018352815481526001909101549281019290925260035481516379502c5560e01b815291519293926001600160a01b03909116916379502c559160048083019260e09291908290030181865afa158015610847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086b9190611233565b60035460405163064bc20960e01b81523360048201529192506000916001600160a01b039091169063064bc20990602401602060405180830381865afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd9190611193565b9050816040015181101561090457604051631e9acf1760e31b815260040160405180910390fd5b600354604051630cacd00160e11b81523360048201526000916001600160a01b031690631959a0029060240160c060405180830381865afa15801561094d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097191906112c5565b90506000846020015111801561098f57508360200151816060015111155b156109ad57604051631613b7eb60e01b815260040160405180910390fd5b604080518082018252838152436020808301918252336000908152600890915292832091518255516001909101558551612710906109ec906064611363565b6109f69085611363565b610a009190611382565b90506000612710856060015183610a179190611363565b610a219190611382565b90508015610aa45760055460025460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015610a7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa291906111ac565b505b610aae81836113a4565b6006546040516340c10f1960e01b8152336004820152602481018390529193506001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610afb57600080fd5b505af1158015610b0f573d6000803e3d6000fd5b505060055460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b03909116925063a9059cbb91506044016020604051808303816000875af1158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8891906111ac565b5060408051338152602081018490529081018290524360608201527f82f1a735a8f74841f96f5781d0def32cd252e61f6c5c5f9c6cfb3a18e12d71099060800160405180910390a150505050505050506104f160018055565b600480546040516331a9108f60e11b815291820183905233916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610c2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5091906113bb565b6001600160a01b031614610c775760405163ca5ae8a360e01b815260040160405180910390fd5b600354604080516379502c5560e01b815290516000926001600160a01b0316916379502c559160048083019260e09291908290030181865afa158015610cc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce59190611233565b600354604051630cacd00160e11b81523360048201529192506000916001600160a01b0390911690631959a0029060240160c060405180830381865afa158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5791906112c5565b9050806060015160001480610d7d575060a08201516060820151610d7b90436113a4565b115b15610d9b576040516374d7ec0760e11b815260040160405180910390fd5b60048054604051632142170760e11b815233928101929092527311111111111111111111111111111111111111116024830152604482018590526001600160a01b0316906342842e0e90606401600060405180830381600087803b158015610e0257600080fd5b505af1158015610e16573d6000803e3d6000fd5b505033600081815260076020908152604091829020889055815192835282018790527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c935001905060405180910390a1505050565b610e73610ee9565b6001600160a01b038116610edd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610ee681610f43565b50565b6000546001600160a01b031633146104f15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ed4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60026001541415610fe65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ed4565b6002600155565b8015158114610ee657600080fd5b6000806040838503121561100e57600080fd5b82359150602083013561102081610fed565b809150509250929050565b6001600160a01b0381168114610ee657600080fd5b6000806040838503121561105357600080fd5b823561105e8161102b565b9150602083013561102081610fed565b60008060008060006080868803121561108657600080fd5b85356110918161102b565b945060208601356110a18161102b565b935060408601359250606086013567ffffffffffffffff808211156110c557600080fd5b818801915088601f8301126110d957600080fd5b8135818111156110e857600080fd5b8960208285010111156110fa57600080fd5b9699959850939650602001949392505050565b60006020828403121561111f57600080fd5b813561112a8161102b565b9392505050565b60006020828403121561114357600080fd5b813561112a81610fed565b6000806040838503121561116157600080fd5b823561116c8161102b565b946020939093013593505050565b60006020828403121561118c57600080fd5b5035919050565b6000602082840312156111a557600080fd5b5051919050565b6000602082840312156111be57600080fd5b815161112a81610fed565b6000606082840312156111db57600080fd5b6040516060810181811067ffffffffffffffff8211171561120c57634e487b7160e01b600052604160045260246000fd5b80604052508251815260208301516020820152604083015160408201528091505092915050565b600060e0828403121561124557600080fd5b60405160e0810181811067ffffffffffffffff8211171561127657634e487b7160e01b600052604160045260246000fd5b8060405250825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c08201528091505092915050565b600060c082840312156112d757600080fd5b60405160c0810181811067ffffffffffffffff8211171561130857634e487b7160e01b600052604160045260246000fd5b8060405250825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a08201528091505092915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561137d5761137d61134d565b500290565b60008261139f57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156113b6576113b661134d565b500390565b6000602082840312156113cd57600080fd5b815161112a8161102b56fea2646970667358221220826da3281613774b9192cecc66f3f8ee0f2894277a6a6e912ddea711cd247d9264736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008a8068363595a00b6f9b6a2cc4bd60c5f5021da2000000000000000000000000a083db1d528538946b80fd4c741e2d99c8343d46000000000000000000000000b30078527a471badc44a43e203b24ea0a36e04960000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000994d39bf77157757a859f41bf3813a7b3747b59f
-----Decoded View---------------
Arg [0] : _owner (address): 0x8A8068363595a00B6f9b6a2cc4bd60C5f5021Da2
Arg [1] : _masterChef (address): 0xA083Db1d528538946b80Fd4C741E2D99C8343d46
Arg [2] : _medal (address): 0xB30078527A471Badc44a43E203b24Ea0a36e0496
Arg [3] : _dai (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F
Arg [4] : _bDai (address): 0x994D39bF77157757a859f41bf3813a7b3747b59F
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000008a8068363595a00b6f9b6a2cc4bd60c5f5021da2
Arg [1] : 000000000000000000000000a083db1d528538946b80fd4c741e2d99c8343d46
Arg [2] : 000000000000000000000000b30078527a471badc44a43e203b24ea0a36e0496
Arg [3] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [4] : 000000000000000000000000994d39bf77157757a859f41bf3813a7b3747b59f
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.