Source Code
Latest 25 from a total of 591 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 11803706 | 1877 days ago | IN | 0 ETH | 0.02586654 | ||||
| Withdraw | 11734673 | 1888 days ago | IN | 0 ETH | 0.03740453 | ||||
| Claim | 11729430 | 1888 days ago | IN | 0 ETH | 0.01105611 | ||||
| Claim | 11717299 | 1890 days ago | IN | 0 ETH | 0.0136242 | ||||
| Withdraw | 11648924 | 1901 days ago | IN | 0 ETH | 0.01753978 | ||||
| Withdraw | 11637931 | 1902 days ago | IN | 0 ETH | 0.04435008 | ||||
| Harvest | 11629727 | 1904 days ago | IN | 0 ETH | 0.0241762 | ||||
| Harvest | 11625645 | 1904 days ago | IN | 0 ETH | 0.02205581 | ||||
| Harvest | 11600884 | 1908 days ago | IN | 0 ETH | 0.02245173 | ||||
| Harvest | 11572553 | 1912 days ago | IN | 0 ETH | 0.02012632 | ||||
| Harvest | 11566638 | 1913 days ago | IN | 0 ETH | 0.02157666 | ||||
| Harvest | 11565648 | 1913 days ago | IN | 0 ETH | 0.02607351 | ||||
| Harvest | 11546805 | 1916 days ago | IN | 0 ETH | 0.03239673 | ||||
| Harvest | 11525331 | 1920 days ago | IN | 0 ETH | 0.02123166 | ||||
| Harvest | 11524878 | 1920 days ago | IN | 0 ETH | 0.01733644 | ||||
| Harvest | 11517733 | 1921 days ago | IN | 0 ETH | 0.02225036 | ||||
| Claim | 11515140 | 1921 days ago | IN | 0 ETH | 0.04119487 | ||||
| Harvest | 11499444 | 1924 days ago | IN | 0 ETH | 0.01094212 | ||||
| Harvest | 11499348 | 1924 days ago | IN | 0 ETH | 0.01633111 | ||||
| Harvest | 11499335 | 1924 days ago | IN | 0 ETH | 0.01231464 | ||||
| Harvest | 11490170 | 1925 days ago | IN | 0 ETH | 0.01220467 | ||||
| Claim | 11485147 | 1926 days ago | IN | 0 ETH | 0.04521027 | ||||
| Harvest | 11483228 | 1926 days ago | IN | 0 ETH | 0.02352719 | ||||
| Harvest | 11479590 | 1927 days ago | IN | 0 ETH | 0.01004769 | ||||
| Harvest | 11474919 | 1927 days ago | IN | 0 ETH | 0.01904012 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x2234332C...40312A68F The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
UptownPandaFarm
Compiler Version
v0.6.6+commit.6c089d02
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./interfaces/IUptownPandaFarm.sol";
contract UptownPandaFarm is IUptownPandaFarm {
event SupplySnapshotAdded(uint256 idx, uint256 intervalIdx, uint256 timestamp, uint256 totalAmount);
event SupplySnapshotUpdated(uint256 idx, uint256 intervalIdx, uint256 timestamp, uint256 totalAmount);
event HarvestChunkAdded(address indexed staker, uint256 idx, uint256 timestamp, uint256 amount);
event RewardClaimed(address indexed staker, uint256 indexed harvestChunkIdx, uint256 timestamp, uint256 amount);
using Math for uint256;
using SafeMath for uint256;
using Address for address;
uint256 public constant REWARD_HALVING_INTERVAL = 10 days; // interval for halving the rewards in seconds
uint256 public constant HARVEST_INTERVAL = 1 days; // how long does it take to increase % of allowed reward withdraw
uint256 public constant HARVEST_STEP = 10; // how much percent you're allowed to withdraw (after 1 day 10%, after 2 days 20%,...)
uint256 public immutable HARVEST_CHUNKS_COUNT = uint256(100).div(HARVEST_STEP); // how many parts harvest is split into
bool public hasFarmingStarted = false; // indicates if farming has begun
uint256 public initialFarmUpSupply; // inidicates how many $UP tokens were minted for the farm
address public upTokenAddress; // $UP token address
address public farmTokenAddress; // address of token to farm with
IERC20 private upToken; // $UP IERC20 token
IERC20 private farmToken; // farm IERC20 token
address private owner;
struct SupplySnapshot {
uint256 intervalIdx;
uint256 timestamp;
uint256 amount;
}
struct HarvestChunk {
uint256 timestamp;
uint256 totalAmount;
uint256 claimedAmount;
}
SupplySnapshot[] public supplySnapshots;
mapping(address => uint256) public balances;
mapping(address => HarvestChunk[]) public harvestChunks;
mapping(address => uint256) public harvestSnapshotIdxs;
constructor() public {
owner = msg.sender;
}
modifier originIsOwner() {
require(owner == tx.origin, "Tx origin is not the owner of the contract.");
_;
}
modifier farmNotStarted() {
require(!hasFarmingStarted, "Farm has already been started.");
_;
}
modifier farmStarted() {
require(hasFarmingStarted, "Farm has not been started yet.");
_;
}
modifier farmUpSupplySetCorrectly(address _upToken, uint256 supplyToCheck) {
require(
IERC20(_upToken).balanceOf(address(this)) == supplyToCheck,
"Token supply for this farm is not set correctly!"
);
_;
}
modifier stakeAddressIsValid() {
require(!address(msg.sender).isContract(), "Staking from contracts is not allowed.");
_;
}
modifier stakeAmountIsValid(uint256 _amount) {
require(_amount > 0, "Staking amount must be bigger than 0.");
_;
}
modifier withdrawAmountIsValid(uint256 _amount) {
require(_amount > 0, "Withdraw amount must be bigger than 0.");
require(balances[msg.sender] >= _amount, "Requested amount is bigger than your balance.");
_;
}
function startFarming(
address _upToken,
address _farmToken,
uint256 _initialFarmUpSupply
) external override originIsOwner farmNotStarted farmUpSupplySetCorrectly(_upToken, _initialFarmUpSupply) {
addSupplySnapshot(0, block.timestamp, 0);
upTokenAddress = _upToken;
farmTokenAddress = _farmToken;
upToken = IERC20(_upToken);
farmToken = IERC20(_farmToken);
initialFarmUpSupply = _initialFarmUpSupply;
hasFarmingStarted = true;
}
function stake(uint256 _amount) external override farmStarted stakeAddressIsValid stakeAmountIsValid(_amount) {
harvestReward(totalStakedSupply().add(_amount));
farmToken.transferFrom(msg.sender, address(this), _amount);
balances[msg.sender] = balances[msg.sender].add(_amount);
}
function withdraw(uint256 _amount) external override farmStarted withdrawAmountIsValid(_amount) {
harvestReward(totalStakedSupply().sub(_amount));
farmToken.transfer(msg.sender, _amount);
balances[msg.sender] = balances[msg.sender].sub(_amount);
}
function harvest() external override farmStarted {
harvestReward(totalStakedSupply()); // since no funds are added(staking)/subtracted(withdrawing) we just pass in the current supply
}
function claim() external override farmStarted {
claimHarvestedReward();
}
function harvestableReward() external view override returns (uint256) {
if (supplySnapshots.length == 0) {
return 0;
}
uint256 latestSupplySnapshotIdx = supplySnapshots.length.sub(1);
uint256 total = 0;
for (uint256 i = harvestSnapshotIdxs[msg.sender]; i < latestSupplySnapshotIdx; i++) {
total = total.add(calculateChunkRewardFromSupplySnapshot(i));
}
SupplySnapshot storage latestSupplySnapshot = supplySnapshots[latestSupplySnapshotIdx];
uint256 currentIntervalIdx = latestSupplySnapshot.intervalIdx;
uint256 currentTimestamp = latestSupplySnapshot.timestamp;
while (true) {
uint256 nextIntervalIdx = currentIntervalIdx.add(1);
uint256 nextTimestamp = Math.min(block.timestamp, getIntervalTimestamp(nextIntervalIdx));
uint256 intervalChunkLength = nextTimestamp.sub(currentTimestamp);
total = total.add(
calculateChunkReward(intervalChunkLength, currentIntervalIdx, latestSupplySnapshot.amount)
);
if (nextTimestamp == block.timestamp) {
break;
}
currentIntervalIdx = nextIntervalIdx;
currentTimestamp = nextTimestamp;
}
return total;
}
function claimableHarvestedReward() external view override returns (uint256) {
HarvestChunk[] storage stakerHarvestChunks = harvestChunks[msg.sender];
uint256 total = 0;
for (uint256 i = 0; i < stakerHarvestChunks.length; i++) {
total = total.add(getHarvestChunkClaimableAmount(stakerHarvestChunks[i]));
}
return total;
}
function totalHarvestedReward() external view override returns (uint256) {
HarvestChunk[] storage stakerHarvestChunks = harvestChunks[msg.sender];
uint256 total = 0;
for (uint256 i = 0; i < stakerHarvestChunks.length; i++) {
total = total.add(stakerHarvestChunks[i].totalAmount.sub(stakerHarvestChunks[i].claimedAmount));
}
return total;
}
function getHarvestChunkClaimableAmount(HarvestChunk storage _stakerHarvestChunk) private view returns (uint256) {
uint256 claimPercent = getHarvestChunkClaimPercent(_stakerHarvestChunk.timestamp);
uint256 claimAmount = _stakerHarvestChunk.totalAmount.mul(claimPercent).div(100);
return _stakerHarvestChunk.claimedAmount > claimAmount ? 0 : claimAmount.sub(_stakerHarvestChunk.claimedAmount);
}
function getHarvestChunkClaimPercent(uint256 _harvestTimestamp) private view returns (uint256) {
if (_harvestTimestamp >= block.timestamp) {
return 0;
}
uint256 currentChunk = block.timestamp.sub(_harvestTimestamp).div(HARVEST_INTERVAL);
return currentChunk >= HARVEST_CHUNKS_COUNT ? 100 : currentChunk.mul(HARVEST_STEP);
}
function claimHarvestedReward() private {
HarvestChunk[] storage stakerHarvestChunks = harvestChunks[msg.sender];
for (uint256 i = 0; i < stakerHarvestChunks.length; i++) {
uint256 claimableAmount = getHarvestChunkClaimableAmount(stakerHarvestChunks[i]);
if (claimableAmount == 0) {
continue;
}
upToken.transfer(msg.sender, claimableAmount);
stakerHarvestChunks[i].claimedAmount = stakerHarvestChunks[i].claimedAmount.add(claimableAmount);
emit RewardClaimed(msg.sender, i, block.timestamp, claimableAmount);
}
}
function harvestReward(uint256 _newTotalSupply) private {
updateSupplySnapshots(_newTotalSupply);
uint256 latestSupplySnapshotIdx = supplySnapshots.length.sub(1);
if (balances[msg.sender] == 0) {
harvestSnapshotIdxs[msg.sender] = latestSupplySnapshotIdx;
return;
}
claimHarvestedReward();
uint256 rewardToHarvest = 0;
for (uint256 i = harvestSnapshotIdxs[msg.sender]; i < latestSupplySnapshotIdx; i++) {
rewardToHarvest = rewardToHarvest.add(calculateChunkRewardFromSupplySnapshot(i));
}
harvestSnapshotIdxs[msg.sender] = latestSupplySnapshotIdx;
addHarvestChunk(rewardToHarvest);
}
function addHarvestChunk(uint256 _rewardToHarvest) private {
uint256 idx = harvestChunks[msg.sender].length;
harvestChunks[msg.sender].push(HarvestChunk(block.timestamp, _rewardToHarvest, 0));
emit HarvestChunkAdded(msg.sender, idx, block.timestamp, _rewardToHarvest);
}
function updateSupplySnapshots(uint256 _newTotalSupply) private {
uint256 latestSnapshotIdx = supplySnapshots.length.sub(1);
SupplySnapshot storage latestSnapshot = supplySnapshots[latestSnapshotIdx];
if (latestSnapshot.timestamp >= block.timestamp) {
updateSupplySnapshot(latestSnapshotIdx, latestSnapshot, _newTotalSupply);
return;
}
uint256 currentIntervalIdx = latestSnapshot.intervalIdx;
while (true) {
uint256 nextIntervalIdx = currentIntervalIdx.add(1);
uint256 nextIntervalTimestamp = getIntervalTimestamp(nextIntervalIdx);
uint256 snapshotIntervalIdx = block.timestamp < nextIntervalTimestamp
? currentIntervalIdx
: nextIntervalIdx;
uint256 snapshotTimestamp = Math.min(block.timestamp, nextIntervalTimestamp);
uint256 snapshotAmount = snapshotTimestamp == block.timestamp ? _newTotalSupply : latestSnapshot.amount;
addSupplySnapshot(snapshotIntervalIdx, snapshotTimestamp, snapshotAmount);
if (snapshotTimestamp == block.timestamp) {
break;
}
currentIntervalIdx = nextIntervalIdx;
}
}
function updateSupplySnapshot(
uint256 _supplySnapshotIdx,
SupplySnapshot storage _supplySnapshot,
uint256 _newTotalSupply
) private {
_supplySnapshot.amount = _newTotalSupply;
emit SupplySnapshotUpdated(
_supplySnapshotIdx,
_supplySnapshot.intervalIdx,
_supplySnapshot.timestamp,
_supplySnapshot.amount
);
}
function addSupplySnapshot(
uint256 _intervalIdx,
uint256 _timestamp,
uint256 _amount
) private {
uint256 supplySnapshotIdx = supplySnapshots.length;
supplySnapshots.push(SupplySnapshot(_intervalIdx, _timestamp, _amount));
emit SupplySnapshotAdded(supplySnapshotIdx, _intervalIdx, _timestamp, _amount);
}
function totalStakedSupply() public view returns (uint256) {
return supplySnapshots.length > 0 ? supplySnapshots[supplySnapshots.length.sub(1)].amount : 0; // latest entry is current total supply
}
function calculateChunkRewardFromSupplySnapshot(uint256 supplySnapshotIdx) private view returns (uint256) {
uint256 intervalChunkLength = supplySnapshots[supplySnapshotIdx.add(1)].timestamp.sub(
supplySnapshots[supplySnapshotIdx].timestamp
);
return
calculateChunkReward(
intervalChunkLength,
supplySnapshots[supplySnapshotIdx].intervalIdx,
supplySnapshots[supplySnapshotIdx].amount
);
}
function calculateChunkReward(
uint256 _intervalChunkLength,
uint256 _intervalIdx,
uint256 _supplyAmount
) private view returns (uint256) {
if (_supplyAmount == 0) {
return 0;
}
return
getIntervalTotalReward(_intervalIdx)
.mul(_intervalChunkLength)
.div(REWARD_HALVING_INTERVAL)
.mul(balances[msg.sender])
.div(_supplyAmount);
}
function nextIntervalTimestamp() external view returns (uint256) {
if (supplySnapshots.length == 0) {
return 0;
}
uint256 currentIntervalIdx = block.timestamp.sub(supplySnapshots[0].timestamp).div(REWARD_HALVING_INTERVAL);
return getIntervalTimestamp(currentIntervalIdx.add(1));
}
function currentIntervalTotalReward() external view returns (uint256) {
uint256 currentIntervalIdx = supplySnapshots.length == 0
? 0
: block.timestamp.sub(supplySnapshots[0].timestamp).div(REWARD_HALVING_INTERVAL);
return getIntervalTotalReward(currentIntervalIdx);
}
function getIntervalTotalReward(uint256 _intervalIdx) private view returns (uint256) {
return initialFarmUpSupply.div(2**_intervalIdx.add(1));
}
function getIntervalTimestamp(uint256 _intervalIdx) private view returns (uint256) {
return
supplySnapshots.length > 0
? supplySnapshots[0].timestamp.add(REWARD_HALVING_INTERVAL.mul(_intervalIdx))
: 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IUptownPandaFarm {
function startFarming(
address _upToken,
address _farmToken,
uint256 _initialFarmUpSupply
) external;
function stake(uint256 _amount) external;
function withdraw(uint256 _amount) external;
function harvest() external;
function claim() external;
function harvestableReward() external view returns (uint256);
function claimableHarvestedReward() external view returns (uint256);
function totalHarvestedReward() external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow, so we distribute
return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.6.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, 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) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* 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);
uint256 c = a - b;
return c;
}
/**
* @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) {
// 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 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts 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) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.6.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.6.2;
/**
* @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 in 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");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
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);
}
}
}
}{
"remappings": [],
"optimizer": {
"enabled": false,
"runs": 200
},
"evmVersion": "istanbul",
"libraries": {
"": {}
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"idx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"HarvestChunkAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"uint256","name":"harvestChunkIdx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"idx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"intervalIdx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"SupplySnapshotAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"idx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"intervalIdx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"SupplySnapshotUpdated","type":"event"},{"inputs":[],"name":"HARVEST_CHUNKS_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HARVEST_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HARVEST_STEP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_HALVING_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimableHarvestedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentIntervalTotalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"harvestChunks","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"claimedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"harvestSnapshotIdxs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestableReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasFarmingStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialFarmUpSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextIntervalTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_upToken","type":"address"},{"internalType":"address","name":"_farmToken","type":"address"},{"internalType":"uint256","name":"_initialFarmUpSupply","type":"uint256"}],"name":"startFarming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplySnapshots","outputs":[{"internalType":"uint256","name":"intervalIdx","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalHarvestedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"upTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x60a060405262000020600a60646200009560201b62001d921790919060201c565b60809081525060008060006101000a81548160ff0219169083151502179055503480156200004d57600080fd5b5033600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001b2565b6000620000df83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620000e760201b60201c565b905092915050565b6000808311829062000197576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200015b5780820151818401526020810190506200013e565b50505050905090810190601f168015620001895780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581620001a457fe5b049050809150509392505050565b6080516124b8620001d260003980610b6b528061216852506124b86000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806388693237116100c3578063ba43b9491161007c578063ba43b9491461045a578063bcdc3cfc146104a4578063bd3182d2146104c2578063ce9f9c1d1461051a578063f530760214610538578063f986aed0146105565761014d565b806388693237146103145780638e79c8741461038257806390aa5ac7146103a057806394505001146103be578063a694fc3a146103dc578063b1991e891461040a5761014d565b80634e71d92d116101155780634e71d92d1461021e5780635164dd81146102285780635197cb061461024657806379566beb146102645780638153b0a0146102865780638817e361146102f65761014d565b80630d9a34a21461015257806327e235e3146101705780632dd39570146101c85780632e1a7d4d146101e65780634641257d14610214575b600080fd5b61015a6105a0565b6040518082815260200191505060405180910390f35b6101b26004803603602081101561018657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105a7565b6040518082815260200191505060405180910390f35b6101d06105bf565b6040518082815260200191505060405180910390f35b610212600480360360208110156101fc57600080fd5b8101908080359060200190929190505050610691565b005b61021c6109a4565b005b610226610a37565b005b610230610ac2565b6040518082815260200191505060405180910390f35b61024e610b69565b6040518082815260200191505060405180910390f35b61026c610b8d565b604051808215151515815260200191505060405180910390f35b6102d26004803603604081101561029c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b9f565b60405180848152602001838152602001828152602001935050505060405180910390f35b6102fe610be3565b6040518082815260200191505060405180910390f35b6103806004803603606081101561032a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d60565b005b61038a6110d2565b6040518082815260200191505060405180910390f35b6103a86110d9565b6040518082815260200191505060405180910390f35b6103c661115f565b6040518082815260200191505060405180910390f35b610408600480360360208110156103f257600080fd5b8101908080359060200190929190505050611165565b005b6104366004803603602081101561042057600080fd5b8101908080359060200190929190505050611489565b60405180848152602001838152602001828152602001935050505060405180910390f35b6104626114c0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104ac6114e6565b6040518082815260200191505060405180910390f35b610504600480360360208110156104d857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611538565b6040518082815260200191505060405180910390f35b610522611550565b6040518082815260200191505060405180910390f35b610540611555565b6040518082815260200191505060405180910390f35b61055e6115c5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6201518081565b60086020528060005260406000206000915090505481565b600080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080905060008090505b82805490508110156106885761067961066a84838154811061062c57fe5b90600052602060002090600302016002015485848154811061064a57fe5b9060005260206000209060030201600101546115eb90919063ffffffff16565b8361163590919063ffffffff16565b9150808060010191505061060e565b50809250505090565b6000809054906101000a900460ff16610712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d20686173206e6f74206265656e2073746172746564207965742e000081525060200191505060405180910390fd5b806000811161076c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123dc6026913960400191505060405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180612369602d913960400191505060405180910390fd5b610826610821836108136114e6565b6115eb90919063ffffffff16565b6116bd565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156108cf57600080fd5b505af11580156108e3573d6000803e3d6000fd5b505050506040513d60208110156108f957600080fd5b81019080805190602001909291905050505061095d82600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115eb90919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6000809054906101000a900460ff16610a25576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d20686173206e6f74206265656e2073746172746564207965742e000081525060200191505060405180910390fd5b610a35610a306114e6565b6116bd565b565b6000809054906101000a900460ff16610ab8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d20686173206e6f74206265656e2073746172746564207965742e000081525060200191505060405180910390fd5b610ac061184d565b565b600080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080905060008090505b8280549050811015610b6057610b51610b42848381548110610b2f57fe5b9060005260206000209060030201611a77565b8361163590919063ffffffff16565b91508080600101915050610b11565b50809250505090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000809054906101000a900460ff1681565b60096020528160005260406000208181548110610bb857fe5b9060005260206000209060030201600091509150508060000154908060010154908060020154905083565b6000806007805490501415610bfb5760009050610d5d565b6000610c1660016007805490506115eb90919063ffffffff16565b905060008090506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b82811015610c9457610c85610c7682611aea565b8361163590919063ffffffff16565b91508080600101915050610c62565b50600060078381548110610ca457fe5b906000526020600020906003020190506000816000015490506000826001015490505b600115610d54576000610ce460018461163590919063ffffffff16565b90506000610cfa42610cf584611ba0565b611c04565b90506000610d1184836115eb90919063ffffffff16565b9050610d34610d2582878960020154611c1d565b8861163590919063ffffffff16565b965042821415610d4657505050610d54565b829450819350505050610cc7565b83955050505050505b90565b3273ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180612428602b913960400191505060405180910390fd5b6000809054906101000a900460ff1615610e88576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d2068617320616c7265616479206265656e20737461727465642e000081525060200191505060405180910390fd5b8281808273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610f0857600080fd5b505afa158015610f1c573d6000803e3d6000fd5b505050506040513d6020811015610f3257600080fd5b810190808051906020019092919050505014610f99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806124536030913960400191505060405180910390fd5b610fa66000426000611ccd565b84600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260018190555060016000806101000a81548160ff0219169083151502179055505050505050565b620d2f0081565b60008060078054905014156110f1576000905061115c565b600061113a620d2f0061112c600760008154811061110b57fe5b906000526020600020906003020160010154426115eb90919063ffffffff16565b611d9290919063ffffffff16565b905061115861115360018361163590919063ffffffff16565b611ba0565b9150505b90565b60015481565b6000809054906101000a900460ff166111e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d20686173206e6f74206265656e2073746172746564207965742e000081525060200191505060405180910390fd5b6112053373ffffffffffffffffffffffffffffffffffffffff16611ddc565b1561125b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806124026026913960400191505060405180910390fd5b80600081116112b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806123966025913960400191505060405180910390fd5b6112d76112d2836112c46114e6565b61163590919063ffffffff16565b6116bd565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156113b457600080fd5b505af11580156113c8573d6000803e3d6000fd5b505050506040513d60208110156113de57600080fd5b81019080805190602001909291905050505061144282600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461163590919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6007818154811061149657fe5b90600052602060002090600302016000915090508060000154908060010154908060020154905083565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600780549050116114fb576000611533565b600761151660016007805490506115eb90919063ffffffff16565b8154811061152057fe5b9060005260206000209060030201600201545b905090565b600a6020528060005260406000206000915090505481565b600a81565b6000806000600780549050146115b1576115ac620d2f0061159e600760008154811061157d57fe5b906000526020600020906003020160010154426115eb90919063ffffffff16565b611d9290919063ffffffff16565b6115b4565b60005b90506115bf81611def565b91505090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061162d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e23565b905092915050565b6000808284019050838110156116b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6116c681611ee3565b60006116e160016007805490506115eb90919063ffffffff16565b90506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156117755780600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505061184a565b61177d61184d565b60008090506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b828110156117f9576117ea6117db82611aea565b8361163590919063ffffffff16565b915080806001019150506117c7565b5081600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061184781611fdb565b50505b50565b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008090505b8180549050811015611a735760006118c68383815481106118b357fe5b9060005260206000209060030201611a77565b905060008114156118d75750611a66565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561198057600080fd5b505af1158015611994573d6000803e3d6000fd5b505050506040513d60208110156119aa57600080fd5b8101908080519060200190929190505050506119ec818484815481106119cc57fe5b90600052602060002090600302016002015461163590919063ffffffff16565b8383815481106119f857fe5b906000526020600020906003020160020181905550813373ffffffffffffffffffffffffffffffffffffffff167f812be816db82c66cd18ca8457005cd84689642d8ac4d38599cc6af444a2dc72a4284604051808381526020018281526020019250505060405180910390a3505b8080600101915050611896565b5050565b600080611a878360000154612128565b90506000611ab56064611aa78487600101546121b390919063ffffffff16565b611d9290919063ffffffff16565b905080846002015411611ade57611ad98460020154826115eb90919063ffffffff16565b611ae1565b60005b92505050919050565b600080611b4f60078481548110611afd57fe5b9060005260206000209060030201600101546007611b2560018761163590919063ffffffff16565b81548110611b2f57fe5b9060005260206000209060030201600101546115eb90919063ffffffff16565b9050611b988160078581548110611b6257fe5b90600052602060002090600302016000015460078681548110611b8157fe5b906000526020600020906003020160020154611c1d565b915050919050565b60008060078054905011611bb5576000611bfd565b611bfc611bce83620d2f006121b390919063ffffffff16565b6007600081548110611bdc57fe5b90600052602060002090600302016001015461163590919063ffffffff16565b5b9050919050565b6000818310611c135781611c15565b825b905092915050565b600080821415611c305760009050611cc6565b611cc382611cb5600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ca7620d2f00611c998a611c8b8b611def565b6121b390919063ffffffff16565b611d9290919063ffffffff16565b6121b390919063ffffffff16565b611d9290919063ffffffff16565b90505b9392505050565b600060078054905090506007604051806060016040528086815260200185815260200184815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000155602082015181600101556040820151816002015550507f0ee3d84dbc45f6e63350ac52170bb1a32b8fd07b858e273029a114a80a2d4987818585856040518085815260200184815260200183815260200182815260200194505050505060405180910390a150505050565b6000611dd483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612239565b905092915050565b600080823b905060008111915050919050565b6000611e1c611e0860018461163590919063ffffffff16565b60020a600154611d9290919063ffffffff16565b9050919050565b6000838311158290611ed0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e95578082015181840152602081019050611e7a565b50505050905090810190601f168015611ec25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000611efe60016007805490506115eb90919063ffffffff16565b9050600060078281548110611f0f57fe5b9060005260206000209060030201905042816001015410611f3c57611f358282856122ff565b5050611fd8565b6000816000015490505b600115611fd4576000611f6360018361163590919063ffffffff16565b90506000611f7082611ba0565b90506000814210611f815782611f83565b835b90506000611f914284611c04565b90506000428214611fa6578660020154611fa8565b885b9050611fb5838383611ccd565b42821415611fc7575050505050611fd4565b8495505050505050611f46565b5050505b50565b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052804281526020018481526020016000815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000155602082015181600101556040820151816002015550503373ffffffffffffffffffffffffffffffffffffffff167f7fca54417ab38d203659539fb2212043fba2cbce70d0b4c424c57c5532de5d0882428560405180848152602001838152602001828152602001935050505060405180910390a25050565b600042821061213a57600090506121ae565b60006121646201518061215685426115eb90919063ffffffff16565b611d9290919063ffffffff16565b90507f00000000000000000000000000000000000000000000000000000000000000008110156121a7576121a2600a826121b390919063ffffffff16565b6121aa565b60645b9150505b919050565b6000808314156121c65760009050612233565b60008284029050828482816121d757fe5b041461222e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806123bb6021913960400191505060405180910390fd5b809150505b92915050565b600080831182906122e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156122aa57808201518184015260208101905061228f565b50505050905090810190601f1680156122d75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816122f157fe5b049050809150509392505050565b8082600201819055507f9dabc137847f49542f09f1c64d28d5f0bc8bda9b3c5d96b05c715c1c0f74e22b838360000154846001015485600201546040518085815260200184815260200183815260200182815260200194505050505060405180910390a150505056fe52657175657374656420616d6f756e7420697320626967676572207468616e20796f75722062616c616e63652e5374616b696e6720616d6f756e74206d75737420626520626967676572207468616e20302e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77576974686472617720616d6f756e74206d75737420626520626967676572207468616e20302e5374616b696e672066726f6d20636f6e747261637473206973206e6f7420616c6c6f7765642e5478206f726967696e206973206e6f7420746865206f776e6572206f662074686520636f6e74726163742e546f6b656e20737570706c7920666f722074686973206661726d206973206e6f742073657420636f72726563746c7921a26469706673582212201c067b5cd7522a32a96e7a3e95fc40167c409a5149e990215d115f5e23e3352364736f6c63430006060033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806388693237116100c3578063ba43b9491161007c578063ba43b9491461045a578063bcdc3cfc146104a4578063bd3182d2146104c2578063ce9f9c1d1461051a578063f530760214610538578063f986aed0146105565761014d565b806388693237146103145780638e79c8741461038257806390aa5ac7146103a057806394505001146103be578063a694fc3a146103dc578063b1991e891461040a5761014d565b80634e71d92d116101155780634e71d92d1461021e5780635164dd81146102285780635197cb061461024657806379566beb146102645780638153b0a0146102865780638817e361146102f65761014d565b80630d9a34a21461015257806327e235e3146101705780632dd39570146101c85780632e1a7d4d146101e65780634641257d14610214575b600080fd5b61015a6105a0565b6040518082815260200191505060405180910390f35b6101b26004803603602081101561018657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105a7565b6040518082815260200191505060405180910390f35b6101d06105bf565b6040518082815260200191505060405180910390f35b610212600480360360208110156101fc57600080fd5b8101908080359060200190929190505050610691565b005b61021c6109a4565b005b610226610a37565b005b610230610ac2565b6040518082815260200191505060405180910390f35b61024e610b69565b6040518082815260200191505060405180910390f35b61026c610b8d565b604051808215151515815260200191505060405180910390f35b6102d26004803603604081101561029c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b9f565b60405180848152602001838152602001828152602001935050505060405180910390f35b6102fe610be3565b6040518082815260200191505060405180910390f35b6103806004803603606081101561032a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d60565b005b61038a6110d2565b6040518082815260200191505060405180910390f35b6103a86110d9565b6040518082815260200191505060405180910390f35b6103c661115f565b6040518082815260200191505060405180910390f35b610408600480360360208110156103f257600080fd5b8101908080359060200190929190505050611165565b005b6104366004803603602081101561042057600080fd5b8101908080359060200190929190505050611489565b60405180848152602001838152602001828152602001935050505060405180910390f35b6104626114c0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104ac6114e6565b6040518082815260200191505060405180910390f35b610504600480360360208110156104d857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611538565b6040518082815260200191505060405180910390f35b610522611550565b6040518082815260200191505060405180910390f35b610540611555565b6040518082815260200191505060405180910390f35b61055e6115c5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6201518081565b60086020528060005260406000206000915090505481565b600080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080905060008090505b82805490508110156106885761067961066a84838154811061062c57fe5b90600052602060002090600302016002015485848154811061064a57fe5b9060005260206000209060030201600101546115eb90919063ffffffff16565b8361163590919063ffffffff16565b9150808060010191505061060e565b50809250505090565b6000809054906101000a900460ff16610712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d20686173206e6f74206265656e2073746172746564207965742e000081525060200191505060405180910390fd5b806000811161076c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123dc6026913960400191505060405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180612369602d913960400191505060405180910390fd5b610826610821836108136114e6565b6115eb90919063ffffffff16565b6116bd565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156108cf57600080fd5b505af11580156108e3573d6000803e3d6000fd5b505050506040513d60208110156108f957600080fd5b81019080805190602001909291905050505061095d82600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115eb90919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6000809054906101000a900460ff16610a25576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d20686173206e6f74206265656e2073746172746564207965742e000081525060200191505060405180910390fd5b610a35610a306114e6565b6116bd565b565b6000809054906101000a900460ff16610ab8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d20686173206e6f74206265656e2073746172746564207965742e000081525060200191505060405180910390fd5b610ac061184d565b565b600080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080905060008090505b8280549050811015610b6057610b51610b42848381548110610b2f57fe5b9060005260206000209060030201611a77565b8361163590919063ffffffff16565b91508080600101915050610b11565b50809250505090565b7f000000000000000000000000000000000000000000000000000000000000000a81565b6000809054906101000a900460ff1681565b60096020528160005260406000208181548110610bb857fe5b9060005260206000209060030201600091509150508060000154908060010154908060020154905083565b6000806007805490501415610bfb5760009050610d5d565b6000610c1660016007805490506115eb90919063ffffffff16565b905060008090506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b82811015610c9457610c85610c7682611aea565b8361163590919063ffffffff16565b91508080600101915050610c62565b50600060078381548110610ca457fe5b906000526020600020906003020190506000816000015490506000826001015490505b600115610d54576000610ce460018461163590919063ffffffff16565b90506000610cfa42610cf584611ba0565b611c04565b90506000610d1184836115eb90919063ffffffff16565b9050610d34610d2582878960020154611c1d565b8861163590919063ffffffff16565b965042821415610d4657505050610d54565b829450819350505050610cc7565b83955050505050505b90565b3273ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180612428602b913960400191505060405180910390fd5b6000809054906101000a900460ff1615610e88576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d2068617320616c7265616479206265656e20737461727465642e000081525060200191505060405180910390fd5b8281808273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610f0857600080fd5b505afa158015610f1c573d6000803e3d6000fd5b505050506040513d6020811015610f3257600080fd5b810190808051906020019092919050505014610f99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806124536030913960400191505060405180910390fd5b610fa66000426000611ccd565b84600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260018190555060016000806101000a81548160ff0219169083151502179055505050505050565b620d2f0081565b60008060078054905014156110f1576000905061115c565b600061113a620d2f0061112c600760008154811061110b57fe5b906000526020600020906003020160010154426115eb90919063ffffffff16565b611d9290919063ffffffff16565b905061115861115360018361163590919063ffffffff16565b611ba0565b9150505b90565b60015481565b6000809054906101000a900460ff166111e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4661726d20686173206e6f74206265656e2073746172746564207965742e000081525060200191505060405180910390fd5b6112053373ffffffffffffffffffffffffffffffffffffffff16611ddc565b1561125b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806124026026913960400191505060405180910390fd5b80600081116112b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806123966025913960400191505060405180910390fd5b6112d76112d2836112c46114e6565b61163590919063ffffffff16565b6116bd565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156113b457600080fd5b505af11580156113c8573d6000803e3d6000fd5b505050506040513d60208110156113de57600080fd5b81019080805190602001909291905050505061144282600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461163590919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6007818154811061149657fe5b90600052602060002090600302016000915090508060000154908060010154908060020154905083565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600780549050116114fb576000611533565b600761151660016007805490506115eb90919063ffffffff16565b8154811061152057fe5b9060005260206000209060030201600201545b905090565b600a6020528060005260406000206000915090505481565b600a81565b6000806000600780549050146115b1576115ac620d2f0061159e600760008154811061157d57fe5b906000526020600020906003020160010154426115eb90919063ffffffff16565b611d9290919063ffffffff16565b6115b4565b60005b90506115bf81611def565b91505090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061162d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e23565b905092915050565b6000808284019050838110156116b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6116c681611ee3565b60006116e160016007805490506115eb90919063ffffffff16565b90506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156117755780600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505061184a565b61177d61184d565b60008090506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b828110156117f9576117ea6117db82611aea565b8361163590919063ffffffff16565b915080806001019150506117c7565b5081600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061184781611fdb565b50505b50565b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008090505b8180549050811015611a735760006118c68383815481106118b357fe5b9060005260206000209060030201611a77565b905060008114156118d75750611a66565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561198057600080fd5b505af1158015611994573d6000803e3d6000fd5b505050506040513d60208110156119aa57600080fd5b8101908080519060200190929190505050506119ec818484815481106119cc57fe5b90600052602060002090600302016002015461163590919063ffffffff16565b8383815481106119f857fe5b906000526020600020906003020160020181905550813373ffffffffffffffffffffffffffffffffffffffff167f812be816db82c66cd18ca8457005cd84689642d8ac4d38599cc6af444a2dc72a4284604051808381526020018281526020019250505060405180910390a3505b8080600101915050611896565b5050565b600080611a878360000154612128565b90506000611ab56064611aa78487600101546121b390919063ffffffff16565b611d9290919063ffffffff16565b905080846002015411611ade57611ad98460020154826115eb90919063ffffffff16565b611ae1565b60005b92505050919050565b600080611b4f60078481548110611afd57fe5b9060005260206000209060030201600101546007611b2560018761163590919063ffffffff16565b81548110611b2f57fe5b9060005260206000209060030201600101546115eb90919063ffffffff16565b9050611b988160078581548110611b6257fe5b90600052602060002090600302016000015460078681548110611b8157fe5b906000526020600020906003020160020154611c1d565b915050919050565b60008060078054905011611bb5576000611bfd565b611bfc611bce83620d2f006121b390919063ffffffff16565b6007600081548110611bdc57fe5b90600052602060002090600302016001015461163590919063ffffffff16565b5b9050919050565b6000818310611c135781611c15565b825b905092915050565b600080821415611c305760009050611cc6565b611cc382611cb5600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ca7620d2f00611c998a611c8b8b611def565b6121b390919063ffffffff16565b611d9290919063ffffffff16565b6121b390919063ffffffff16565b611d9290919063ffffffff16565b90505b9392505050565b600060078054905090506007604051806060016040528086815260200185815260200184815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000155602082015181600101556040820151816002015550507f0ee3d84dbc45f6e63350ac52170bb1a32b8fd07b858e273029a114a80a2d4987818585856040518085815260200184815260200183815260200182815260200194505050505060405180910390a150505050565b6000611dd483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612239565b905092915050565b600080823b905060008111915050919050565b6000611e1c611e0860018461163590919063ffffffff16565b60020a600154611d9290919063ffffffff16565b9050919050565b6000838311158290611ed0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e95578082015181840152602081019050611e7a565b50505050905090810190601f168015611ec25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000611efe60016007805490506115eb90919063ffffffff16565b9050600060078281548110611f0f57fe5b9060005260206000209060030201905042816001015410611f3c57611f358282856122ff565b5050611fd8565b6000816000015490505b600115611fd4576000611f6360018361163590919063ffffffff16565b90506000611f7082611ba0565b90506000814210611f815782611f83565b835b90506000611f914284611c04565b90506000428214611fa6578660020154611fa8565b885b9050611fb5838383611ccd565b42821415611fc7575050505050611fd4565b8495505050505050611f46565b5050505b50565b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052804281526020018481526020016000815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000155602082015181600101556040820151816002015550503373ffffffffffffffffffffffffffffffffffffffff167f7fca54417ab38d203659539fb2212043fba2cbce70d0b4c424c57c5532de5d0882428560405180848152602001838152602001828152602001935050505060405180910390a25050565b600042821061213a57600090506121ae565b60006121646201518061215685426115eb90919063ffffffff16565b611d9290919063ffffffff16565b90507f000000000000000000000000000000000000000000000000000000000000000a8110156121a7576121a2600a826121b390919063ffffffff16565b6121aa565b60645b9150505b919050565b6000808314156121c65760009050612233565b60008284029050828482816121d757fe5b041461222e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806123bb6021913960400191505060405180910390fd5b809150505b92915050565b600080831182906122e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156122aa57808201518184015260208101905061228f565b50505050905090810190601f1680156122d75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816122f157fe5b049050809150509392505050565b8082600201819055507f9dabc137847f49542f09f1c64d28d5f0bc8bda9b3c5d96b05c715c1c0f74e22b838360000154846001015485600201546040518085815260200184815260200183815260200182815260200194505050505060405180910390a150505056fe52657175657374656420616d6f756e7420697320626967676572207468616e20796f75722062616c616e63652e5374616b696e6720616d6f756e74206d75737420626520626967676572207468616e20302e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77576974686472617720616d6f756e74206d75737420626520626967676572207468616e20302e5374616b696e672066726f6d20636f6e747261637473206973206e6f7420616c6c6f7765642e5478206f726967696e206973206e6f7420746865206f776e6572206f662074686520636f6e74726163742e546f6b656e20737570706c7920666f722074686973206661726d206973206e6f742073657420636f72726563746c7921a26469706673582212201c067b5cd7522a32a96e7a3e95fc40167c409a5149e990215d115f5e23e3352364736f6c63430006060033
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.