Source Code
Latest 25 from a total of 12,572 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 24289886 | 38 days ago | IN | 0 ETH | 0.00000611 | ||||
| Withdraw | 24083415 | 67 days ago | IN | 0 ETH | 0.00002254 | ||||
| Withdraw | 22307071 | 315 days ago | IN | 0 ETH | 0.00001577 | ||||
| Emergency Withdr... | 21994232 | 359 days ago | IN | 0 ETH | 0.00005309 | ||||
| Emergency Withdr... | 21880618 | 375 days ago | IN | 0 ETH | 0.00003783 | ||||
| Withdraw | 21817683 | 384 days ago | IN | 0 ETH | 0.00029843 | ||||
| Emergency Withdr... | 21339387 | 451 days ago | IN | 0 ETH | 0.00158094 | ||||
| Withdraw | 21287024 | 458 days ago | IN | 0 ETH | 0.00227709 | ||||
| Withdraw | 21287016 | 458 days ago | IN | 0 ETH | 0.00041793 | ||||
| Withdraw | 21260395 | 462 days ago | IN | 0 ETH | 0.00097292 | ||||
| Emergency Withdr... | 18272435 | 880 days ago | IN | 0 ETH | 0.00062857 | ||||
| Withdraw | 17275142 | 1020 days ago | IN | 0 ETH | 0.00889029 | ||||
| Emergency Withdr... | 15985025 | 1201 days ago | IN | 0 ETH | 0.0009142 | ||||
| Withdraw | 15523646 | 1266 days ago | IN | 0 ETH | 0.00139694 | ||||
| Withdraw | 15523620 | 1266 days ago | IN | 0 ETH | 0.00039483 | ||||
| Withdraw | 15523431 | 1266 days ago | IN | 0 ETH | 0.00253271 | ||||
| Withdraw | 15523351 | 1266 days ago | IN | 0 ETH | 0.00672536 | ||||
| Withdraw | 15068599 | 1337 days ago | IN | 0 ETH | 0.00138068 | ||||
| Withdraw | 14839481 | 1376 days ago | IN | 0 ETH | 0.00265898 | ||||
| Withdraw | 14679072 | 1402 days ago | IN | 0 ETH | 0.00460739 | ||||
| Withdraw | 14616935 | 1412 days ago | IN | 0 ETH | 0.00639619 | ||||
| Withdraw | 14612125 | 1413 days ago | IN | 0 ETH | 0.00382193 | ||||
| Withdraw | 14391747 | 1447 days ago | IN | 0 ETH | 0.0012372 | ||||
| Withdraw | 14391743 | 1447 days ago | IN | 0 ETH | 0.00617998 | ||||
| Withdraw | 14380141 | 1449 days ago | IN | 0 ETH | 0.0073984 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MasterChef
Compiler Version
v0.7.3+commit.9bfce1f6
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
import "./IMigrator.sol";
import "./ERC20Mintable.sol";
import "./Ownable.sol";
import "./ERC20.sol";
import "./SafeERC20.sol";
import "./SafeMath.sol";
contract MasterChef is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// Info of each user.
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
//
// We do some fancy math here. Basically, any point in time, the amount of BASKETs
// entitled to a user but is pending to be distributed is:
//
// pending reward = (user.amount * pool.accBasketPerShare) - user.rewardDebt
//
// Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
// 1. The pool's `accBasketPerShare` (and `lastRewardBlock`) gets updated.
// 2. User receives the pending reward sent to his/her address.
// 3. User's `amount` gets updated.
// 4. User's `rewardDebt` gets updated.
}
// Info of each pool.
struct PoolInfo {
IERC20 lpToken; // Address of LP token contract.
uint256 allocPoint; // How many allocation points assigned to this pool. BASKETs to distribute per block.
uint256 lastRewardBlock; // Last block number that BASKETs distribution occurs.
uint256 accBasketPerShare; // Accumulated BASKETs per share, times 1e12. See below.
}
// The BASKET TOKEN!
ERC20 public basket;
// Div rate
uint256 public constant divRate = 1e18;
// Dev fund (10)%
uint256 public constant devFundRate = 0.1e18;
// Treasury rate (30)%
uint256 public constant treasuryRate = 0.3e18;
// Dev address
address public devaddr;
// Treasury address
address public treasuryaddr;
// BASKET tokens created per block.
uint256 public basketPerBlock;
// The migrator contract. It has a lot of power. Can only be set through governance (owner).
IMigrator public migrator;
// Info of each pool.
PoolInfo[] public poolInfo;
// Info of each user that stakes LP tokens.
mapping(uint256 => mapping(address => UserInfo)) public userInfo;
// Total allocation points. Must be the sum of all allocation points in all pools.
uint256 public totalAllocPoint = 0;
// The block number when BASKET mining starts.
uint256 public startBlock;
// Events
event Recovered(address token, uint256 amount);
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
constructor(
ERC20 _basket,
address _timelock,
address _devaddr,
address _treasuryaddr,
uint256 _basketPerBlock,
uint256 _startBlock
) {
basket = _basket;
devaddr = _devaddr;
treasuryaddr = _treasuryaddr;
basketPerBlock = _basketPerBlock;
startBlock = _startBlock;
transferOwnership(_timelock);
}
function poolLength() external view returns (uint256) {
return poolInfo.length;
}
// Add a new lp to the pool. Can only be called by the owner.
// XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
function add(
uint256 _allocPoint,
IERC20 _lpToken,
bool _withUpdate
) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
totalAllocPoint = totalAllocPoint.add(_allocPoint);
poolInfo.push(
PoolInfo({
lpToken: _lpToken,
allocPoint: _allocPoint,
lastRewardBlock: lastRewardBlock,
accBasketPerShare: 0
})
);
}
// Update the given pool's BASKET allocation point. Can only be called by the owner.
function set(
uint256 _pid,
uint256 _allocPoint,
bool _withUpdate
) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
poolInfo[_pid].allocPoint = _allocPoint;
}
// Return reward multiplier over the given _from to _to block.
function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
return _to.sub(_from);
}
// View function to see pending BASKETs on frontend.
function pendingBasket(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accBasketPerShare = pool.accBasketPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (block.number > pool.lastRewardBlock && lpSupply != 0) {
uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
uint256 basketReward = multiplier.mul(basketPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
accBasketPerShare = accBasketPerShare.add(basketReward.mul(1e12).div(lpSupply));
}
return user.amount.mul(accBasketPerShare).div(1e12).sub(user.rewardDebt);
}
// Update reward vairables for all pools. Be careful of gas spending!
function massUpdatePools() public {
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
updatePool(pid);
}
}
// Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0) {
pool.lastRewardBlock = block.number;
return;
}
uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
uint256 basketReward = multiplier.mul(basketPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
uint256 devAlloc = basketReward.mul(devFundRate).div(divRate);
uint256 treasuryAlloc = basketReward.mul(treasuryRate).div(divRate);
uint256 basketWithoutDevAndTreasury = basketReward.sub(devAlloc).sub(treasuryAlloc);
ERC20Mintable(address(basket)).mint(devaddr, devAlloc);
ERC20Mintable(address(basket)).mint(treasuryaddr, treasuryAlloc);
ERC20Mintable(address(basket)).mint(address(this), basketWithoutDevAndTreasury);
pool.accBasketPerShare = pool.accBasketPerShare.add(basketWithoutDevAndTreasury.mul(1e12).div(lpSupply));
pool.lastRewardBlock = block.number;
}
// Deposit LP tokens to MasterChef for BASKET allocation.
function deposit(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = user.amount.mul(pool.accBasketPerShare).div(1e12).sub(user.rewardDebt);
safeBasketTransfer(msg.sender, pending);
}
pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
user.amount = user.amount.add(_amount);
user.rewardDebt = user.amount.mul(pool.accBasketPerShare).div(1e12);
emit Deposit(msg.sender, _pid, _amount);
}
// Withdraw LP tokens from MasterChef.
function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "withdraw: not good");
updatePool(_pid);
uint256 pending = user.amount.mul(pool.accBasketPerShare).div(1e12).sub(user.rewardDebt);
safeBasketTransfer(msg.sender, pending);
user.amount = user.amount.sub(_amount);
user.rewardDebt = user.amount.mul(pool.accBasketPerShare).div(1e12);
pool.lpToken.safeTransfer(address(msg.sender), _amount);
emit Withdraw(msg.sender, _pid, _amount);
}
// Withdraw without caring about rewards. EMERGENCY ONLY.
function emergencyWithdraw(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
pool.lpToken.safeTransfer(address(msg.sender), user.amount);
emit EmergencyWithdraw(msg.sender, _pid, user.amount);
user.amount = 0;
user.rewardDebt = 0;
}
// Safe basket transfer function, just in case if rounding error causes pool to not have enough BASKETs.
function safeBasketTransfer(address _to, uint256 _amount) internal {
uint256 basketBal = basket.balanceOf(address(this));
if (_amount > basketBal) {
basket.transfer(_to, basketBal);
} else {
basket.transfer(_to, _amount);
}
}
// **** Custom functions ****
function setDev(address _devaddr) public {
require(msg.sender == devaddr, "dev: wut?");
devaddr = _devaddr;
}
function setTreasury(address _treasury) public {
require(msg.sender == treasuryaddr, "treasury: wut?");
treasuryaddr = _treasury;
}
function setBasketPerBlock(uint256 _basketPerBlock) public onlyOwner {
require(_basketPerBlock > 0, "!basketPerBlock-0");
basketPerBlock = _basketPerBlock;
}
function setStartBlock(uint256 _startBlock) public onlyOwner {
require(block.number < startBlock, "started");
startBlock = _startBlock;
}
// **** Migrate ****
// Set the migrator contract. Can only be called by the owner.
function setMigrator(IMigrator _migrator) public onlyOwner {
migrator = _migrator;
}
// Migrate lp token to another lp contract
function migrate(uint256 _pid) public onlyOwner {
require(address(migrator) != address(0), "migrate: no migrator");
PoolInfo storage pool = poolInfo[_pid];
IERC20 lpToken = pool.lpToken;
uint256 bal = lpToken.balanceOf(address(this));
lpToken.safeApprove(address(migrator), bal);
IERC20 newLpToken = IERC20(migrator.migrate(address(lpToken)));
require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
pool.lpToken = newLpToken;
}
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 GSN 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 payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of returning `false` on failure. This behavior is nonetheless conventional
* and does not conflict with the expectations of ERC20 applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name_, string memory symbol_) public {
_name = name_;
_symbol = symbol_;
_decimals = 18;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
* called.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/
function _setupDecimals(uint8 decimals_) internal virtual {
_decimals = decimals_;
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./Context.sol";
import "./ERC20.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
using SafeMath for uint256;
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");
_approve(account, _msgSender(), decreasedAllowance);
_burn(account, amount);
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
import "./Ownable.sol";
import "./ERC20.sol";
import "./ERC20Burnable.sol";
contract ERC20Mintable is ERC20, ERC20Burnable, Ownable {
constructor(
address _owner,
string memory _name,
string memory _symbol
) ERC20(_name, _symbol) {
transferOwnership(_owner);
}
function mint(address _recipient, uint256 _amount) public onlyOwner {
_mint(_recipient, _amount);
}
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @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 `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, 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);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
interface IMigrator {
// Perform LP token migration from legacy LP token to new LP token.
// Take the current LP token address and return the new LP token address.
// Migrator should have full access to the caller's LP token.
// Return the new LP token address.
//
// XXX Migrator must have allowance access to old LP tokens.
// New LP tokens must mint EXACTLY the same amount of LP tokens or
// else something bad will happen!!!
function migrate(address token) external returns (address);
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./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 () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), 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 {
emit OwnershipTransferred(_owner, address(0));
_owner = 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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line max-line-length
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).add(value);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) { // Return data is optional
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b > a) return (false, 0);
return (true, a - b);
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a / b);
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
return a - b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a % b;
}
}
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract ERC20","name":"_basket","type":"address"},{"internalType":"address","name":"_timelock","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_treasuryaddr","type":"address"},{"internalType":"uint256","name":"_basketPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"basket","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basketPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFundRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"divRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IMigrator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingBasket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accBasketPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_basketPerBlock","type":"uint256"}],"name":"setBasketPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"setDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigrator","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","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":[],"name":"treasuryRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405260006008553480156200001657600080fd5b506040516200224538038062002245833981810160405260c08110156200003c57600080fd5b508051602082015160408301516060840151608085015160a090950151939492939192909160006200006d62000104565b600080546001600160a01b0319166001600160a01b03831690811782556040519293509160008051602062002225833981519152908290a350600180546001600160a01b038089166001600160a01b03199283161790925560028054878416908316179055600380549286169290911691909117905560048290556009819055620000f88562000108565b50505050505062000221565b3390565b6200011262000104565b6001600160a01b03166200012562000212565b6001600160a01b03161462000181576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620001c85760405162461bcd60e51b8152600401808060200182810382526026815260200180620021ff6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216916000805160206200222583398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b611fce80620002316000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063d477f05f116100a2578063edc832b311610071578063edc832b3146104c8578063f0f44260146104d0578063f2fde38b146104f6578063f35e4a6e1461051c576101e5565b8063d477f05f1461046f578063d49e77cd14610495578063e2bbb1581461049d578063e4b72516146104c0576101e5565b806393f1a40b116100de57806393f1a40b146103ee578063b2e0243014610433578063b8b8532b1461043b578063c412664a14610467576101e5565b8063715018a6146103b35780637cd07e47146103bb5780638da5cb5b146103c35780638dbb1e3a146103cb576101e5565b8063454b060811610187578063630b5ba111610156578063630b5ba11461033f57806364482f79146103475780636c3128db146103725780636e99b75e1461038f576101e5565b8063454b0608146102e057806348cd4cb1146102fd57806351eb05a6146103055780635312ea8e14610322576101e5565b806317caf6f1116101c357806317caf6f1146102595780631eaaa0451461026157806323cf311814610297578063441a3e70146102bd576101e5565b80630248f4f1146101ea578063081e3eda146102045780631526fe271461020c575b600080fd5b6101f2610539565b60408051918252519081900360200190f35b6101f261053f565b6102296004803603602081101561022257600080fd5b5035610545565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101f2610586565b6102956004803603606081101561027757600080fd5b508035906001600160a01b036020820135169060400135151561058c565b005b610295600480360360208110156102ad57600080fd5b50356001600160a01b0316610711565b610295600480360360408110156102d357600080fd5b5080359060200135610795565b610295600480360360208110156102f657600080fd5b50356108e8565b6101f2610ba6565b6102956004803603602081101561031b57600080fd5b5035610bac565b6102956004803603602081101561033857600080fd5b5035610e89565b610295610f24565b6102956004803603606081101561035d57600080fd5b50803590602081013590604001351515610f47565b6102956004803603602081101561038857600080fd5b5035611022565b6103976110d2565b604080516001600160a01b039092168252519081900360200190f35b6102956110e1565b61039761118d565b61039761119c565b6101f2600480360360408110156103e157600080fd5b50803590602001356111ab565b61041a6004803603604081101561040457600080fd5b50803590602001356001600160a01b03166111c0565b6040805192835260208301919091528051918290030190f35b6101f26111e4565b6101f26004803603604081101561045157600080fd5b50803590602001356001600160a01b03166111f0565b6101f2611352565b6102956004803603602081101561048557600080fd5b50356001600160a01b031661135e565b6103976113cb565b610295600480360360408110156104b357600080fd5b50803590602001356113da565b6101f26114df565b6103976114eb565b610295600480360360208110156104e657600080fd5b50356001600160a01b03166114fa565b6102956004803603602081101561050c57600080fd5b50356001600160a01b031661156c565b6102956004803603602081101561053257600080fd5b503561166e565b60045481565b60065490565b6006818154811061055257fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b610594611715565b6001600160a01b03166105a561119c565b6001600160a01b0316146105ee576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b80156105fc576105fc610f24565b6000600954431161060f57600954610611565b435b6008549091506106219085611719565b600855604080516080810182526001600160a01b0394851681526020810195865290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919096161790945593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40840155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d418301555090517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b610719611715565b6001600160a01b031661072a61119c565b6001600160a01b031614610773576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000600683815481106107a457fe5b600091825260208083208684526007825260408085203386529092529220805460049092029092019250831115610817576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61082084610bac565b600061085a826001015461085464e8d4a5100061084e8760030154876000015461177390919063ffffffff16565b906117cc565b90611833565b90506108663382611890565b81546108729085611833565b808355600384015461088f9164e8d4a510009161084e9190611773565b600183015582546108aa906001600160a01b03163386611a21565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b6108f0611715565b6001600160a01b031661090161119c565b6001600160a01b03161461094a576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b6005546001600160a01b031661099e576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b6000600682815481106109ad57fe5b600091825260208083206004928302018054604080516370a0823160e01b81523095810195909552519195506001600160a01b0316939284926370a0823192602480840193829003018186803b158015610a0657600080fd5b505afa158015610a1a573d6000803e3d6000fd5b505050506040513d6020811015610a3057600080fd5b5051600554909150610a4f906001600160a01b03848116911683611a73565b6005546040805163ce5494bb60e01b81526001600160a01b0385811660048301529151600093929092169163ce5494bb9160248082019260209290919082900301818787803b158015610aa157600080fd5b505af1158015610ab5573d6000803e3d6000fd5b505050506040513d6020811015610acb57600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b038316916370a0823191602480820192602092909190829003018186803b158015610b1757600080fd5b505afa158015610b2b573d6000803e3d6000fd5b505050506040513d6020811015610b4157600080fd5b50518214610b85576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b83546001600160a01b0319166001600160a01b039190911617909255505050565b60095481565b600060068281548110610bbb57fe5b9060005260206000209060040201905080600201544311610bdc5750610e86565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610c2657600080fd5b505afa158015610c3a573d6000803e3d6000fd5b505050506040513d6020811015610c5057600080fd5b5051905080610c66575043600290910155610e86565b6000610c768360020154436111ab565b90506000610ca360085461084e8660010154610c9d6004548761177390919063ffffffff16565b90611773565b90506000610cc5670de0b6b3a764000061084e8467016345785d8a0000611773565b90506000610ce7670de0b6b3a764000061084e85670429d069189e0000611773565b90506000610cf9826108548686611833565b600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810188905290519394509116916340c10f199160448082019260009290919082900301818387803b158015610d5357600080fd5b505af1158015610d67573d6000803e3d6000fd5b5050600154600354604080516340c10f1960e01b81526001600160a01b0392831660048201526024810188905290519190921693506340c10f199250604480830192600092919082900301818387803b158015610dc357600080fd5b505af1158015610dd7573d6000803e3d6000fd5b5050600154604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b158015610e2e57600080fd5b505af1158015610e42573d6000803e3d6000fd5b50505050610e70610e658761084e64e8d4a510008561177390919063ffffffff16565b600389015490611719565b6003880155505043600290950194909455505050505b50565b600060068281548110610e9857fe5b60009182526020808320858452600782526040808520338087529352909320805460049093029093018054909450610edd926001600160a01b03919091169190611a21565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b60065460005b81811015610f4357610f3b81610bac565b600101610f2a565b5050565b610f4f611715565b6001600160a01b0316610f6061119c565b6001600160a01b031614610fa9576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b8015610fb757610fb7610f24565b610ff482610fee60068681548110610fcb57fe5b90600052602060002090600402016001015460085461183390919063ffffffff16565b90611719565b600881905550816006848154811061100857fe5b906000526020600020906004020160010181905550505050565b61102a611715565b6001600160a01b031661103b61119c565b6001600160a01b031614611084576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b600081116110cd576040805162461bcd60e51b81526020600482015260116024820152700216261736b6574506572426c6f636b2d3607c1b604482015290519081900360640190fd5b600455565b6003546001600160a01b031681565b6110e9611715565b6001600160a01b03166110fa61119c565b6001600160a01b031614611143576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6005546001600160a01b031681565b6000546001600160a01b031690565b60006111b78284611833565b90505b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b670de0b6b3a764000081565b6000806006848154811061120057fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b15801561127e57600080fd5b505afa158015611292573d6000803e3d6000fd5b505050506040513d60208110156112a857600080fd5b50516002850154909150431180156112bf57508015155b1561131f5760006112d48560020154436111ab565b905060006112fb60085461084e8860010154610c9d6004548761177390919063ffffffff16565b905061131a6113138461084e8464e8d4a51000611773565b8590611719565b935050505b611347836001015461085464e8d4a5100061084e86886000015461177390919063ffffffff16565b979650505050505050565b67016345785d8a000081565b6002546001600160a01b031633146113a9576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6000600683815481106113e957fe5b6000918252602080832086845260078252604080852033865290925292206004909102909101915061141a84610bac565b80541561145d57600061144f826001015461085464e8d4a5100061084e8760030154876000015461177390919063ffffffff16565b905061145b3382611890565b505b8154611474906001600160a01b0316333086611b86565b80546114809084611719565b808255600383015461149d9164e8d4a510009161084e9190611773565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b670429d069189e000081565b6001546001600160a01b031681565b6003546001600160a01b0316331461154a576040805162461bcd60e51b815260206004820152600e60248201526d74726561737572793a207775743f60901b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b611574611715565b6001600160a01b031661158561119c565b6001600160a01b0316146115ce576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b6001600160a01b0381166116135760405162461bcd60e51b8152600401808060200182810382526026815260200180611eac6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611676611715565b6001600160a01b031661168761119c565b6001600160a01b0316146116d0576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b6009544310611710576040805162461bcd60e51b81526020600482015260076024820152661cdd185c9d195960ca1b604482015290519081900360640190fd5b600955565b3390565b6000828201838110156111b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611782575060006111ba565b8282028284828161178f57fe5b04146111b75760405162461bcd60e51b8152600401808060200182810382526021815260200180611ef86021913960400191505060405180910390fd5b6000808211611822576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161182b57fe5b049392505050565b60008282111561188a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156118db57600080fd5b505afa1580156118ef573d6000803e3d6000fd5b505050506040513d602081101561190557600080fd5b5051905080821115611999576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561196757600080fd5b505af115801561197b573d6000803e3d6000fd5b505050506040513d602081101561199157600080fd5b50611a1c9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156119ef57600080fd5b505af1158015611a03573d6000803e3d6000fd5b505050506040513d6020811015611a1957600080fd5b50505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a1c908490611be6565b801580611af9575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611acb57600080fd5b505afa158015611adf573d6000803e3d6000fd5b505050506040513d6020811015611af557600080fd5b5051155b611b345760405162461bcd60e51b8152600401808060200182810382526036815260200180611f636036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611a1c908490611be6565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611be0908590611be6565b50505050565b6060611c3b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c979092919063ffffffff16565b805190915015611a1c57808060200190516020811015611c5a57600080fd5b5051611a1c5760405162461bcd60e51b815260040180806020018281038252602a815260200180611f39602a913960400191505060405180910390fd5b6060611ca68484600085611cb0565b90505b9392505050565b606082471015611cf15760405162461bcd60e51b8152600401808060200182810382526026815260200180611ed26026913960400191505060405180910390fd5b611cfa85611e01565b611d4b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d8a5780518252601f199092019160209182019101611d6b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611dec576040519150601f19603f3d011682016040523d82523d6000602084013e611df1565b606091505b5091509150611347828286611e07565b3b151590565b60608315611e16575081611ca9565b825115611e265782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e70578181015183820152602001611e58565b50505050905090810190601f168015611e9d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220cd8ae4599b7f06d7dd78ccc791dc125380f1bd805ac9eda16b016662c7a42fc964736f6c634300070300334f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573738be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e000000000000000000000000044564d0bd94343f72e3c8a0d22308b7fa71db0bb000000000000000000000000f337a885a7543cab542b2d3f5a8c1945036e0c420000000000000000000000005566ff926fb4318c2862cfd7dbae014034426d290000000000000000000000007301c46be73bb04847576b6af107172bf5e8388e00000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000000000000b91fb1
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063d477f05f116100a2578063edc832b311610071578063edc832b3146104c8578063f0f44260146104d0578063f2fde38b146104f6578063f35e4a6e1461051c576101e5565b8063d477f05f1461046f578063d49e77cd14610495578063e2bbb1581461049d578063e4b72516146104c0576101e5565b806393f1a40b116100de57806393f1a40b146103ee578063b2e0243014610433578063b8b8532b1461043b578063c412664a14610467576101e5565b8063715018a6146103b35780637cd07e47146103bb5780638da5cb5b146103c35780638dbb1e3a146103cb576101e5565b8063454b060811610187578063630b5ba111610156578063630b5ba11461033f57806364482f79146103475780636c3128db146103725780636e99b75e1461038f576101e5565b8063454b0608146102e057806348cd4cb1146102fd57806351eb05a6146103055780635312ea8e14610322576101e5565b806317caf6f1116101c357806317caf6f1146102595780631eaaa0451461026157806323cf311814610297578063441a3e70146102bd576101e5565b80630248f4f1146101ea578063081e3eda146102045780631526fe271461020c575b600080fd5b6101f2610539565b60408051918252519081900360200190f35b6101f261053f565b6102296004803603602081101561022257600080fd5b5035610545565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101f2610586565b6102956004803603606081101561027757600080fd5b508035906001600160a01b036020820135169060400135151561058c565b005b610295600480360360208110156102ad57600080fd5b50356001600160a01b0316610711565b610295600480360360408110156102d357600080fd5b5080359060200135610795565b610295600480360360208110156102f657600080fd5b50356108e8565b6101f2610ba6565b6102956004803603602081101561031b57600080fd5b5035610bac565b6102956004803603602081101561033857600080fd5b5035610e89565b610295610f24565b6102956004803603606081101561035d57600080fd5b50803590602081013590604001351515610f47565b6102956004803603602081101561038857600080fd5b5035611022565b6103976110d2565b604080516001600160a01b039092168252519081900360200190f35b6102956110e1565b61039761118d565b61039761119c565b6101f2600480360360408110156103e157600080fd5b50803590602001356111ab565b61041a6004803603604081101561040457600080fd5b50803590602001356001600160a01b03166111c0565b6040805192835260208301919091528051918290030190f35b6101f26111e4565b6101f26004803603604081101561045157600080fd5b50803590602001356001600160a01b03166111f0565b6101f2611352565b6102956004803603602081101561048557600080fd5b50356001600160a01b031661135e565b6103976113cb565b610295600480360360408110156104b357600080fd5b50803590602001356113da565b6101f26114df565b6103976114eb565b610295600480360360208110156104e657600080fd5b50356001600160a01b03166114fa565b6102956004803603602081101561050c57600080fd5b50356001600160a01b031661156c565b6102956004803603602081101561053257600080fd5b503561166e565b60045481565b60065490565b6006818154811061055257fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b610594611715565b6001600160a01b03166105a561119c565b6001600160a01b0316146105ee576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b80156105fc576105fc610f24565b6000600954431161060f57600954610611565b435b6008549091506106219085611719565b600855604080516080810182526001600160a01b0394851681526020810195865290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919096161790945593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40840155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d418301555090517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b610719611715565b6001600160a01b031661072a61119c565b6001600160a01b031614610773576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000600683815481106107a457fe5b600091825260208083208684526007825260408085203386529092529220805460049092029092019250831115610817576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61082084610bac565b600061085a826001015461085464e8d4a5100061084e8760030154876000015461177390919063ffffffff16565b906117cc565b90611833565b90506108663382611890565b81546108729085611833565b808355600384015461088f9164e8d4a510009161084e9190611773565b600183015582546108aa906001600160a01b03163386611a21565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b6108f0611715565b6001600160a01b031661090161119c565b6001600160a01b03161461094a576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b6005546001600160a01b031661099e576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b6000600682815481106109ad57fe5b600091825260208083206004928302018054604080516370a0823160e01b81523095810195909552519195506001600160a01b0316939284926370a0823192602480840193829003018186803b158015610a0657600080fd5b505afa158015610a1a573d6000803e3d6000fd5b505050506040513d6020811015610a3057600080fd5b5051600554909150610a4f906001600160a01b03848116911683611a73565b6005546040805163ce5494bb60e01b81526001600160a01b0385811660048301529151600093929092169163ce5494bb9160248082019260209290919082900301818787803b158015610aa157600080fd5b505af1158015610ab5573d6000803e3d6000fd5b505050506040513d6020811015610acb57600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b038316916370a0823191602480820192602092909190829003018186803b158015610b1757600080fd5b505afa158015610b2b573d6000803e3d6000fd5b505050506040513d6020811015610b4157600080fd5b50518214610b85576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b83546001600160a01b0319166001600160a01b039190911617909255505050565b60095481565b600060068281548110610bbb57fe5b9060005260206000209060040201905080600201544311610bdc5750610e86565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610c2657600080fd5b505afa158015610c3a573d6000803e3d6000fd5b505050506040513d6020811015610c5057600080fd5b5051905080610c66575043600290910155610e86565b6000610c768360020154436111ab565b90506000610ca360085461084e8660010154610c9d6004548761177390919063ffffffff16565b90611773565b90506000610cc5670de0b6b3a764000061084e8467016345785d8a0000611773565b90506000610ce7670de0b6b3a764000061084e85670429d069189e0000611773565b90506000610cf9826108548686611833565b600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810188905290519394509116916340c10f199160448082019260009290919082900301818387803b158015610d5357600080fd5b505af1158015610d67573d6000803e3d6000fd5b5050600154600354604080516340c10f1960e01b81526001600160a01b0392831660048201526024810188905290519190921693506340c10f199250604480830192600092919082900301818387803b158015610dc357600080fd5b505af1158015610dd7573d6000803e3d6000fd5b5050600154604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b158015610e2e57600080fd5b505af1158015610e42573d6000803e3d6000fd5b50505050610e70610e658761084e64e8d4a510008561177390919063ffffffff16565b600389015490611719565b6003880155505043600290950194909455505050505b50565b600060068281548110610e9857fe5b60009182526020808320858452600782526040808520338087529352909320805460049093029093018054909450610edd926001600160a01b03919091169190611a21565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b60065460005b81811015610f4357610f3b81610bac565b600101610f2a565b5050565b610f4f611715565b6001600160a01b0316610f6061119c565b6001600160a01b031614610fa9576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b8015610fb757610fb7610f24565b610ff482610fee60068681548110610fcb57fe5b90600052602060002090600402016001015460085461183390919063ffffffff16565b90611719565b600881905550816006848154811061100857fe5b906000526020600020906004020160010181905550505050565b61102a611715565b6001600160a01b031661103b61119c565b6001600160a01b031614611084576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b600081116110cd576040805162461bcd60e51b81526020600482015260116024820152700216261736b6574506572426c6f636b2d3607c1b604482015290519081900360640190fd5b600455565b6003546001600160a01b031681565b6110e9611715565b6001600160a01b03166110fa61119c565b6001600160a01b031614611143576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6005546001600160a01b031681565b6000546001600160a01b031690565b60006111b78284611833565b90505b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b670de0b6b3a764000081565b6000806006848154811061120057fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b15801561127e57600080fd5b505afa158015611292573d6000803e3d6000fd5b505050506040513d60208110156112a857600080fd5b50516002850154909150431180156112bf57508015155b1561131f5760006112d48560020154436111ab565b905060006112fb60085461084e8860010154610c9d6004548761177390919063ffffffff16565b905061131a6113138461084e8464e8d4a51000611773565b8590611719565b935050505b611347836001015461085464e8d4a5100061084e86886000015461177390919063ffffffff16565b979650505050505050565b67016345785d8a000081565b6002546001600160a01b031633146113a9576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6000600683815481106113e957fe5b6000918252602080832086845260078252604080852033865290925292206004909102909101915061141a84610bac565b80541561145d57600061144f826001015461085464e8d4a5100061084e8760030154876000015461177390919063ffffffff16565b905061145b3382611890565b505b8154611474906001600160a01b0316333086611b86565b80546114809084611719565b808255600383015461149d9164e8d4a510009161084e9190611773565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b670429d069189e000081565b6001546001600160a01b031681565b6003546001600160a01b0316331461154a576040805162461bcd60e51b815260206004820152600e60248201526d74726561737572793a207775743f60901b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b611574611715565b6001600160a01b031661158561119c565b6001600160a01b0316146115ce576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b6001600160a01b0381166116135760405162461bcd60e51b8152600401808060200182810382526026815260200180611eac6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611676611715565b6001600160a01b031661168761119c565b6001600160a01b0316146116d0576040805162461bcd60e51b81526020600482018190526024820152600080516020611f19833981519152604482015290519081900360640190fd5b6009544310611710576040805162461bcd60e51b81526020600482015260076024820152661cdd185c9d195960ca1b604482015290519081900360640190fd5b600955565b3390565b6000828201838110156111b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611782575060006111ba565b8282028284828161178f57fe5b04146111b75760405162461bcd60e51b8152600401808060200182810382526021815260200180611ef86021913960400191505060405180910390fd5b6000808211611822576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161182b57fe5b049392505050565b60008282111561188a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156118db57600080fd5b505afa1580156118ef573d6000803e3d6000fd5b505050506040513d602081101561190557600080fd5b5051905080821115611999576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561196757600080fd5b505af115801561197b573d6000803e3d6000fd5b505050506040513d602081101561199157600080fd5b50611a1c9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156119ef57600080fd5b505af1158015611a03573d6000803e3d6000fd5b505050506040513d6020811015611a1957600080fd5b50505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a1c908490611be6565b801580611af9575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611acb57600080fd5b505afa158015611adf573d6000803e3d6000fd5b505050506040513d6020811015611af557600080fd5b5051155b611b345760405162461bcd60e51b8152600401808060200182810382526036815260200180611f636036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611a1c908490611be6565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611be0908590611be6565b50505050565b6060611c3b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c979092919063ffffffff16565b805190915015611a1c57808060200190516020811015611c5a57600080fd5b5051611a1c5760405162461bcd60e51b815260040180806020018281038252602a815260200180611f39602a913960400191505060405180910390fd5b6060611ca68484600085611cb0565b90505b9392505050565b606082471015611cf15760405162461bcd60e51b8152600401808060200182810382526026815260200180611ed26026913960400191505060405180910390fd5b611cfa85611e01565b611d4b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d8a5780518252601f199092019160209182019101611d6b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611dec576040519150601f19603f3d011682016040523d82523d6000602084013e611df1565b606091505b5091509150611347828286611e07565b3b151590565b60608315611e16575081611ca9565b825115611e265782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e70578181015183820152602001611e58565b50505050905090810190601f168015611e9d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220cd8ae4599b7f06d7dd78ccc791dc125380f1bd805ac9eda16b016662c7a42fc964736f6c63430007030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000044564d0bd94343f72e3c8a0d22308b7fa71db0bb000000000000000000000000f337a885a7543cab542b2d3f5a8c1945036e0c420000000000000000000000005566ff926fb4318c2862cfd7dbae014034426d290000000000000000000000007301c46be73bb04847576b6af107172bf5e8388e00000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000000000000b91fb1
-----Decoded View---------------
Arg [0] : _basket (address): 0x44564d0bd94343f72E3C8a0D22308B7Fa71DB0Bb
Arg [1] : _timelock (address): 0xF337A885a7543CAb542B2D3f5A8c1945036E0C42
Arg [2] : _devaddr (address): 0x5566ff926fb4318c2862cfD7DBAe014034426D29
Arg [3] : _treasuryaddr (address): 0x7301C46be73bB04847576b6Af107172bF5e8388e
Arg [4] : _basketPerBlock (uint256): 200000000000000000
Arg [5] : _startBlock (uint256): 12132273
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000044564d0bd94343f72e3c8a0d22308b7fa71db0bb
Arg [1] : 000000000000000000000000f337a885a7543cab542b2d3f5a8c1945036e0c42
Arg [2] : 0000000000000000000000005566ff926fb4318c2862cfd7dbae014034426d29
Arg [3] : 0000000000000000000000007301c46be73bb04847576b6af107172bf5e8388e
Arg [4] : 00000000000000000000000000000000000000000000000002c68af0bb140000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000b91fb1
Deployed Bytecode Sourcemap
214:10434:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1943:29;;;:::i;:::-;;;;;;;;;;;;;;;;3212:93;;;:::i;2133:26::-;;;;;;;;;;;;;;;;-1:-1:-1;2133:26:7;;:::i;:::-;;;;-1:-1:-1;;;;;2133:26:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2370:34;;;:::i;3470:575::-;;;;;;;;;;;;;;;;-1:-1:-1;3470:575:7;;;-1:-1:-1;;;;;3470:575:7;;;;;;;;;;;;:::i;:::-;;9988:96;;;;;;;;;;;;;;;;-1:-1:-1;9988:96:7;-1:-1:-1;;;;;9988:96:7;;:::i;7752:647::-;;;;;;;;;;;;;;;;-1:-1:-1;7752:647:7;;;;;;;:::i;10137:509::-;;;;;;;;;;;;;;;;-1:-1:-1;10137:509:7;;:::i;2461:25::-;;;:::i;5817:1168::-;;;;;;;;;;;;;;;;-1:-1:-1;5817:1168:7;;:::i;8467:349::-;;;;;;;;;;;;;;;;-1:-1:-1;8467:349:7;;:::i;5569:175::-;;;:::i;4140:328::-;;;;;;;;;;;;;;;;-1:-1:-1;4140:328:7;;;;;;;;;;;;;;:::i;9549:177::-;;;;;;;;;;;;;;;;-1:-1:-1;9549:177:7;;:::i;1870:27::-;;;:::i;:::-;;;;-1:-1:-1;;;;;1870:27:7;;;;;;;;;;;;;;1710:145:8;;;:::i;2075:25:7:-;;;:::i;1078:85:8:-;;;:::i;4541:119:7:-;;;;;;;;;;;;;;;;-1:-1:-1;4541:119:7;;;;;;;:::i;2213:64::-;;;;;;;;;;;;;;;;-1:-1:-1;2213:64:7;;;;;;-1:-1:-1;;;;;2213:64:7;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1604:38;;;:::i;4723:766::-;;;;;;;;;;;;;;;;-1:-1:-1;4723:766:7;;;;;;-1:-1:-1;;;;;4723:766:7;;:::i;1671:44::-;;;:::i;9257:129::-;;;;;;;;;;;;;;;;-1:-1:-1;9257:129:7;-1:-1:-1;;;;;9257:129:7;;:::i;1818:22::-;;;:::i;7053:650::-;;;;;;;;;;;;;;;;-1:-1:-1;7053:650:7;;;;;;;:::i;1748:45::-;;;:::i;1562:19::-;;;:::i;9392:151::-;;;;;;;;;;;;;;;;-1:-1:-1;9392:151:7;-1:-1:-1;;;;;9392:151:7;;:::i;2004:240:8:-;;;;;;;;;;;;;;;;-1:-1:-1;2004:240:8;-1:-1:-1;;;;;2004:240:8;;:::i;9732:157:7:-;;;;;;;;;;;;;;;;-1:-1:-1;9732:157:7;;:::i;1943:29::-;;;;:::o;3212:93::-;3283:8;:15;3212:93;:::o;2133:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2133:26:7;;;;-1:-1:-1;2133:26:7;;;:::o;2370:34::-;;;;:::o;3470:575::-;1301:12:8;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:8;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:8;;1282:68;;;;;-1:-1:-1;;;1282:68:8;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:8;;;;;;;;;;;;;;;3600:11:7::1;3596:59;;;3627:17;:15;:17::i;:::-;3664:23;3705:10;;3690:12;:25;:53;;3733:10;;3690:53;;;3718:12;3690:53;3771:15;::::0;3664:79;;-1:-1:-1;3771:32:7::1;::::0;3791:11;3771:19:::1;:32::i;:::-;3753:15;:50:::0;3840:188:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;3840:188:7;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;3840:188:7;;;;;;3813:8:::1;:225:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;3813:225:7::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;-1:-1:-1;3813:225:7;;;;;;;3470:575::o;9988:96::-;1301:12:8;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:8;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:8;;1282:68;;;;;-1:-1:-1;;;1282:68:8;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:8;;;;;;;;;;;;;;;10057:8:7::1;:20:::0;;-1:-1:-1;;;;;;10057:20:7::1;-1:-1:-1::0;;;;;10057:20:7;;;::::1;::::0;;;::::1;::::0;;9988:96::o;7752:647::-;7818:21;7842:8;7851:4;7842:14;;;;;;;;;;;;;;;;7890;;;:8;:14;;;;;;7905:10;7890:26;;;;;;;7934:11;;7842:14;;;;;;;;-1:-1:-1;7934:22:7;-1:-1:-1;7934:22:7;7926:53;;;;;-1:-1:-1;;;7926:53:7;;;;;;;;;;;;-1:-1:-1;;;7926:53:7;;;;;;;;;;;;;;;7989:16;8000:4;7989:10;:16::i;:::-;8015:15;8033:70;8087:4;:15;;;8033:49;8077:4;8033:39;8049:4;:22;;;8033:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49::i;:::-;:53;;:70::i;:::-;8015:88;;8113:39;8132:10;8144:7;8113:18;:39::i;:::-;8176:11;;:24;;8192:7;8176:15;:24::i;:::-;8162:38;;;8244:22;;;;8228:49;;8272:4;;8228:39;;8162:38;8228:15;:39::i;:49::-;8210:15;;;:67;8287:12;;:55;;-1:-1:-1;;;;;8287:12:7;8321:10;8334:7;8287:25;:55::i;:::-;8357:35;;;;;;;;8378:4;;8366:10;;8357:35;;;;;;;;;7752:647;;;;;:::o;10137:509::-;1301:12:8;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:8;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:8;;1282:68;;;;;-1:-1:-1;;;1282:68:8;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:8;;;;;;;;;;;;;;;10211:8:7::1;::::0;-1:-1:-1;;;;;10211:8:7::1;10195:64;;;::::0;;-1:-1:-1;;;10195:64:7;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;10195:64:7;;;;;;;;;;;;;::::1;;10269:21;10293:8;10302:4;10293:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;10334:12:::0;;10370:32:::1;::::0;;-1:-1:-1;;;10370:32:7;;10396:4:::1;10370:32:::0;;::::1;::::0;;;;;10293:14;;-1:-1:-1;;;;;;10334:12:7::1;::::0;10293:14;10334:12;;10370:17:::1;::::0;:32;;;;;;;;;;10334:12;10370:32;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;10370:32:7;10440:8:::1;::::0;10370:32;;-1:-1:-1;10412:43:7::1;::::0;-1:-1:-1;;;;;10412:19:7;;::::1;::::0;10440:8:::1;10370:32:::0;10412:19:::1;:43::i;:::-;10492:8;::::0;:34:::1;::::0;;-1:-1:-1;;;10492:34:7;;-1:-1:-1;;;;;10492:34:7;;::::1;;::::0;::::1;::::0;;;10465:17:::1;::::0;10492:8;;;::::1;::::0;:16:::1;::::0;:34;;;;;::::1;::::0;;;;;;;;;10465:17;10492:8;:34;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;10492:34:7;10552:35:::1;::::0;;-1:-1:-1;;;10552:35:7;;10581:4:::1;10552:35;::::0;::::1;::::0;;;10492:34;;-1:-1:-1;;;;;;10552:20:7;::::1;::::0;::::1;::::0;:35;;;;;10492:34:::1;::::0;10552:35;;;;;;;;:20;:35;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;10552:35:7;10545:42;::::1;10537:67;;;::::0;;-1:-1:-1;;;10537:67:7;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;10537:67:7;;;;;;;;;;;;;::::1;;10614:25:::0;;-1:-1:-1;;;;;;10614:25:7::1;-1:-1:-1::0;;;;;10614:25:7;;;::::1;;::::0;;;-1:-1:-1;;;10137:509:7:o;2461:25::-;;;;:::o;5817:1168::-;5868:21;5892:8;5901:4;5892:14;;;;;;;;;;;;;;;;;;5868:38;;5936:4;:20;;;5920:12;:36;5916:73;;5972:7;;;5916:73;6017:12;;:37;;;-1:-1:-1;;;6017:37:7;;6048:4;6017:37;;;;;;5998:16;;-1:-1:-1;;;;;6017:12:7;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6017:37:7;;-1:-1:-1;6068:13:7;6064:99;;-1:-1:-1;6120:12:7;6097:20;;;;:35;6146:7;;6064:99;6172:18;6193:49;6207:4;:20;;;6229:12;6193:13;:49::i;:::-;6172:70;;6252:20;6275:72;6331:15;;6275:51;6310:4;:15;;;6275:30;6290:14;;6275:10;:14;;:30;;;;:::i;:::-;:34;;:51::i;:72::-;6252:95;-1:-1:-1;6358:16:7;6377:42;1638:4;6377:29;6252:95;1709:6;6377:16;:29::i;:42::-;6358:61;-1:-1:-1;6429:21:7;6453:43;1638:4;6453:30;:12;1787:6;6453:16;:30::i;:43::-;6429:67;-1:-1:-1;6507:35:7;6545:45;6429:67;6545:26;:12;6562:8;6545:16;:26::i;:45::-;6623:6;;6637:7;;6601:54;;;-1:-1:-1;;;6601:54:7;;-1:-1:-1;;;;;6637:7:7;;;6601:54;;;;;;;;;;;;6507:83;;-1:-1:-1;6623:6:7;;;6601:35;;:54;;;;;6623:6;;6601:54;;;;;;;;6623:6;;6601:54;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6687:6:7;;6701:12;;6665:64;;;-1:-1:-1;;;6665:64:7;;-1:-1:-1;;;;;6701:12:7;;;6665:64;;;;;;;;;;;;6687:6;;;;;-1:-1:-1;6665:35:7;;-1:-1:-1;6665:64:7;;;;;6687:6;;6665:64;;;;;;;6687:6;;6665:64;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6761:6:7;;6739:79;;;-1:-1:-1;;;6739:79:7;;6783:4;6739:79;;;;;;;;;;;;-1:-1:-1;;;;;6761:6:7;;;;-1:-1:-1;6739:35:7;;-1:-1:-1;6739:79:7;;;;;6761:6;;6739:79;;;;;;;;6761:6;;6739:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6854;6881:51;6923:8;6881:37;6913:4;6881:27;:31;;:37;;;;:::i;:51::-;6854:22;;;;;:26;:79::i;:::-;6829:22;;;:104;-1:-1:-1;;6966:12:7;6943:20;;;;:35;;;;-1:-1:-1;;;;5817:1168:7;;:::o;8467:349::-;8525:21;8549:8;8558:4;8549:14;;;;;;;;;;;;;;;;8597;;;:8;:14;;;;;;8612:10;8597:26;;;;;;;;8680:11;;8549:14;;;;;;;8633:12;;8549:14;;-1:-1:-1;8633:59:7;;-1:-1:-1;;;;;8633:12:7;;;;;8612:10;8633:25;:59::i;:::-;8743:11;;8707:48;;;;;;;8737:4;;8725:10;;8707:48;;;;;;;;;8779:1;8765:15;;;8790;;;;:19;-1:-1:-1;;8467:349:7:o;5569:175::-;5630:8;:15;5613:14;5655:83;5683:6;5677:3;:12;5655:83;;;5712:15;5723:3;5712:10;:15::i;:::-;5691:5;;5655:83;;;;5569:175;:::o;4140:328::-;1301:12:8;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:8;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:8;;1282:68;;;;;-1:-1:-1;;;1282:68:8;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:8;;;;;;;;;;;;;;;4267:11:7::1;4263:59;;;4294:17;:15;:17::i;:::-;4349:63;4400:11;4349:46;4369:8;4378:4;4369:14;;;;;;;;;;;;;;;;;;:25;;;4349:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;4331:15;:81;;;;4450:11;4422:8;4431:4;4422:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;4140:328:::0;;;:::o;9549:177::-;1301:12:8;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:8;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:8;;1282:68;;;;;-1:-1:-1;;;1282:68:8;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:8;;;;;;;;;;;;;;;9654:1:7::1;9636:15;:19;9628:49;;;::::0;;-1:-1:-1;;;9628:49:7;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;9628:49:7;;;;;;;;;;;;;::::1;;9687:14;:32:::0;9549:177::o;1870:27::-;;;-1:-1:-1;;;;;1870:27:7;;:::o;1710:145:8:-;1301:12;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:8;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:8;;1282:68;;;;;-1:-1:-1;;;1282:68:8;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:8;;;;;;;;;;;;;;;1816:1:::1;1800:6:::0;;1779:40:::1;::::0;-1:-1:-1;;;;;1800:6:8;;::::1;::::0;1779:40:::1;::::0;1816:1;;1779:40:::1;1846:1;1829:19:::0;;-1:-1:-1;;;;;;1829:19:8::1;::::0;;1710:145::o;2075:25:7:-;;;-1:-1:-1;;;;;2075:25:7;;:::o;1078:85:8:-;1124:7;1150:6;-1:-1:-1;;;;;1150:6:8;1078:85;:::o;4541:119:7:-;4613:7;4639:14;:3;4647:5;4639:7;:14::i;:::-;4632:21;;4541:119;;;;;:::o;2213:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1604:38::-;1638:4;1604:38;:::o;4723:766::-;4798:7;4817:21;4841:8;4850:4;4841:14;;;;;;;;;;;;;;;;4889;;;:8;:14;;;;;;-1:-1:-1;;;;;4889:21:7;;;;;;;;;;;4841:14;;;;;;;4948:22;;;;4999:12;;:37;;-1:-1:-1;;;4999:37:7;;5030:4;4999:37;;;;;;;;;4841:14;;-1:-1:-1;4889:21:7;;4948:22;;4841:14;;4999:12;;;;;:22;;:37;;;;;4841:14;;4999:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4999:37:7;5065:20;;;;4999:37;;-1:-1:-1;5050:12:7;:35;:52;;;;-1:-1:-1;5089:13:7;;;5050:52;5046:355;;;5118:18;5139:49;5153:4;:20;;;5175:12;5139:13;:49::i;:::-;5118:70;;5202:20;5225:72;5281:15;;5225:51;5260:4;:15;;;5225:30;5240:14;;5225:10;:14;;:30;;;;:::i;:72::-;5202:95;-1:-1:-1;5331:59:7;5353:36;5380:8;5353:22;5202:95;5370:4;5353:16;:22::i;:36::-;5331:17;;:21;:59::i;:::-;5311:79;;5046:355;;;5417:65;5466:4;:15;;;5417:44;5456:4;5417:34;5433:17;5417:4;:11;;;:15;;:34;;;;:::i;:65::-;5410:72;4723:766;-1:-1:-1;;;;;;;4723:766:7:o;1671:44::-;1709:6;1671:44;:::o;9257:129::-;9330:7;;-1:-1:-1;;;;;9330:7:7;9316:10;:21;9308:43;;;;;-1:-1:-1;;;9308:43:7;;;;;;;;;;;;-1:-1:-1;;;9308:43:7;;;;;;;;;;;;;;;9361:7;:18;;-1:-1:-1;;;;;;9361:18:7;-1:-1:-1;;;;;9361:18:7;;;;;;;;;;9257:129::o;1818:22::-;;;-1:-1:-1;;;;;1818:22:7;;:::o;7053:650::-;7118:21;7142:8;7151:4;7142:14;;;;;;;;;;;;;;;;7190;;;:8;:14;;;;;;7205:10;7190:26;;;;;;;7142:14;;;;;;;;-1:-1:-1;7226:16:7;7199:4;7226:10;:16::i;:::-;7256:11;;:15;7252:187;;7287:15;7305:70;7359:4;:15;;;7305:49;7349:4;7305:39;7321:4;:22;;;7305:4;:11;;;:15;;:39;;;;:::i;:70::-;7287:88;;7389:39;7408:10;7420:7;7389:18;:39::i;:::-;7252:187;;7448:12;;:74;;-1:-1:-1;;;;;7448:12:7;7486:10;7507:4;7514:7;7448:29;:74::i;:::-;7546:11;;:24;;7562:7;7546:15;:24::i;:::-;7532:38;;;7614:22;;;;7598:49;;7642:4;;7598:39;;7532:38;7598:15;:39::i;:49::-;7580:15;;;:67;7662:34;;;;;;;;7682:4;;7670:10;;7662:34;;;;;;;;;7053:650;;;;:::o;1748:45::-;1787:6;1748:45;:::o;1562:19::-;;;-1:-1:-1;;;;;1562:19:7;;:::o;9392:151::-;9471:12;;-1:-1:-1;;;;;9471:12:7;9457:10;:26;9449:53;;;;;-1:-1:-1;;;9449:53:7;;;;;;;;;;;;-1:-1:-1;;;9449:53:7;;;;;;;;;;;;;;;9512:12;:24;;-1:-1:-1;;;;;;9512:24:7;-1:-1:-1;;;;;9512:24:7;;;;;;;;;;9392:151::o;2004:240:8:-;1301:12;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:8;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:8;;1282:68;;;;;-1:-1:-1;;;1282:68:8;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:8;;;;;;;;;;;;;;;-1:-1:-1;;;;;2092:22:8;::::1;2084:73;;;;-1:-1:-1::0;;;2084:73:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2193:6;::::0;;2172:38:::1;::::0;-1:-1:-1;;;;;2172:38:8;;::::1;::::0;2193:6;::::1;::::0;2172:38:::1;::::0;::::1;2220:6;:17:::0;;-1:-1:-1;;;;;;2220:17:8::1;-1:-1:-1::0;;;;;2220:17:8;;;::::1;::::0;;;::::1;::::0;;2004:240::o;9732:157:7:-;1301:12:8;:10;:12::i;:::-;-1:-1:-1;;;;;1290:23:8;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1290:23:8;;1282:68;;;;;-1:-1:-1;;;1282:68:8;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1282:68:8;;;;;;;;;;;;;;;9826:10:7::1;;9811:12;:25;9803:45;;;::::0;;-1:-1:-1;;;9803:45:7;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;9803:45:7;;;;;;;;;;;;;::::1;;9858:10;:24:::0;9732:157::o;598:104:1:-;685:10;598:104;:::o;2690:175:10:-;2748:7;2779:5;;;2802:6;;;;2794:46;;;;;-1:-1:-1;;;2794:46:10;;;;;;;;;;;;;;;;;;;;;;;;;;;3538:215;3596:7;3619:6;3615:20;;-1:-1:-1;3634:1:10;3627:8;;3615:20;3657:5;;;3661:1;3657;:5;:1;3680:5;;;;;:10;3672:56;;;;-1:-1:-1;;;3672:56:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4217:150;4275:7;4306:1;4302;:5;4294:44;;;;;-1:-1:-1;;;4294:44:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;4359:1;4355;:5;;;;;;;4217:150;-1:-1:-1;;;4217:150:10:o;3136:155::-;3194:7;3226:1;3221;:6;;3213:49;;;;;-1:-1:-1;;;3213:49:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3279:5:10;;;3136:155::o;8931:285:7:-;9028:6;;:31;;;-1:-1:-1;;;9028:31:7;;9053:4;9028:31;;;;;;9008:17;;-1:-1:-1;;;;;9028:6:7;;:16;;:31;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9028:31:7;;-1:-1:-1;9073:19:7;;;9069:141;;;9108:6;;:31;;;-1:-1:-1;;;9108:31:7;;-1:-1:-1;;;;;9108:31:7;;;;;;;;;;;;;;;:6;;;;;:15;;:31;;;;;;;;;;;;;;:6;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9069:141:7;;-1:-1:-1;9069:141:7;;9170:6;;:29;;;-1:-1:-1;;;9170:29:7;;-1:-1:-1;;;;;9170:29:7;;;;;;;;;;;;;;;:6;;;;;:15;;:29;;;;;;;;;;;;;;:6;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;9069:141:7;8931:285;;;:::o;685:175:9:-;794:58;;;-1:-1:-1;;;;;794:58:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;794:58:9;-1:-1:-1;;;794:58:9;;;767:86;;787:5;;767:19;:86::i;1329:613::-;1694:10;;;1693:62;;-1:-1:-1;1710:39:9;;;-1:-1:-1;;;1710:39:9;;1734:4;1710:39;;;;-1:-1:-1;;;;;1710:39:9;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1710:39:9;:44;1693:62;1685:150;;;;-1:-1:-1;;;1685:150:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1872:62;;;-1:-1:-1;;;;;1872:62:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1872:62:9;-1:-1:-1;;;1872:62:9;;;1845:90;;1865:5;;1845:19;:90::i;866:203::-;993:68;;;-1:-1:-1;;;;;993:68:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;993:68:9;-1:-1:-1;;;993:68:9;;;966:96;;986:5;;966:19;:96::i;:::-;866:203;;;;:::o;2948:751::-;3367:23;3393:69;3421:4;3393:69;;;;;;;;;;;;;;;;;3401:5;-1:-1:-1;;;;;3393:27:9;;;:69;;;;;:::i;:::-;3476:17;;3367:95;;-1:-1:-1;3476:21:9;3472:221;;3616:10;3605:30;;;;;;;;;;;;;;;-1:-1:-1;3605:30:9;3597:85;;;;-1:-1:-1;;;3597:85:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3581:193:0;3684:12;3715:52;3737:6;3745:4;3751:1;3754:12;3715:21;:52::i;:::-;3708:59;;3581:193;;;;;;:::o;4608:523::-;4735:12;4792:5;4767:21;:30;;4759:81;;;;-1:-1:-1;;;4759:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4858:18;4869:6;4858:10;:18::i;:::-;4850:60;;;;;-1:-1:-1;;;4850:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4981:12;4995:23;5022:6;-1:-1:-1;;;;;5022:11:0;5042:5;5050:4;5022:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5022:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4980:75;;;;5072:52;5090:7;5099:10;5111:12;5072:17;:52::i;726:413::-;1086:20;1124:8;;;726:413::o;7091:725::-;7206:12;7234:7;7230:580;;;-1:-1:-1;7264:10:0;7257:17;;7230:580;7375:17;;:21;7371:429;;7633:10;7627:17;7693:15;7680:10;7676:2;7672:19;7665:44;7582:145;7772:12;7765:20;;-1:-1:-1;;;7765:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://cd8ae4599b7f06d7dd78ccc791dc125380f1bd805ac9eda16b016662c7a42fc9
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.