Source Code
Latest 25 from a total of 26 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 19597335 | 692 days ago | IN | 0 ETH | 0.00145737 | ||||
| Unstake | 19545345 | 699 days ago | IN | 0 ETH | 0.00293574 | ||||
| Claim | 19435035 | 715 days ago | IN | 0 ETH | 0.00410004 | ||||
| Claim | 18801695 | 803 days ago | IN | 0 ETH | 0.00418076 | ||||
| Claim | 18686018 | 820 days ago | IN | 0 ETH | 0.0024479 | ||||
| Claim | 18455868 | 852 days ago | IN | 0 ETH | 0.00137748 | ||||
| Stake | 18440039 | 854 days ago | IN | 0 ETH | 0.00127506 | ||||
| Stake | 18419724 | 857 days ago | IN | 0 ETH | 0.00174041 | ||||
| Claim | 18419686 | 857 days ago | IN | 0 ETH | 0.00212934 | ||||
| Stake | 18371338 | 864 days ago | IN | 0 ETH | 0.0008462 | ||||
| Claim | 18371236 | 864 days ago | IN | 0 ETH | 0.00154704 | ||||
| Stake | 18321941 | 871 days ago | IN | 0 ETH | 0.0005915 | ||||
| Claim | 18321862 | 871 days ago | IN | 0 ETH | 0.0009581 | ||||
| Stake | 18276295 | 877 days ago | IN | 0 ETH | 0.0004684 | ||||
| Stake | 18269609 | 878 days ago | IN | 0 ETH | 0.00079613 | ||||
| Stake | 18241013 | 882 days ago | IN | 0 ETH | 0.0005397 | ||||
| Claim | 18240989 | 882 days ago | IN | 0 ETH | 0.00060305 | ||||
| Claim | 18233991 | 883 days ago | IN | 0 ETH | 0.00061513 | ||||
| Stake | 18132993 | 897 days ago | IN | 0 ETH | 0.00159562 | ||||
| Stake | 16931104 | 1066 days ago | IN | 0 ETH | 0.0028715 | ||||
| Claim | 16881633 | 1073 days ago | IN | 0 ETH | 0.00101631 | ||||
| Stake | 16861839 | 1076 days ago | IN | 0 ETH | 0.00167156 | ||||
| Claim | 16861795 | 1076 days ago | IN | 0 ETH | 0.00196428 | ||||
| Stake | 16861787 | 1076 days ago | IN | 0 ETH | 0.00164124 | ||||
| Update | 16747773 | 1092 days ago | IN | 0 ETH | 0.00075565 |
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 0xb44Bc0A9...4a72D266E The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
DAOFarm
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity =0.8.14;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract DAOFarm is ReentrancyGuard {
using SafeERC20 for IERC20;
uint constant HUNDRED_PERCENT = 1e3;
uint constant ACC_REWARD_MULTIPLIER = 1e36;
uint constant UPDATE_PERIOD = 60;
struct User {
uint shares;
uint rewardDebt;
uint requestedUnstakeAt;
}
mapping (address => User) public users;
IERC20 immutable public stakingToken;
IERC20 immutable public rewardToken;
address immutable public feeCollector1;
address immutable public feeCollector2;
uint immutable public rewardPerPeriod;
uint immutable public cooldownPeriod;
uint immutable public cooldownFee;
uint immutable public cooldownFeeSplit;
uint immutable public startTime;
uint immutable public endTime;
uint public totalShares;
uint public totalClaimed;
uint public accRewardPerShare;
uint public lastUpdateTimestamp;
event Stake(address userAddress, uint amount);
event RequestUnstake(address userAddress, bool withoutClaim, uint timestamp);
event Unstake(address userAddress, uint amount, uint fee);
event Claim(address userAddress, uint reward);
event Update(uint periodsPassed, uint totalShares, uint totalClaimed, uint accRewardPerShare, uint timestamp);
modifier withUpdate() {
update();
_;
}
constructor(
IERC20 _stakingToken,
IERC20 _rewardToken,
address _feeCollector1,
address _feeCollector2,
uint _rewardPerPeriod,
uint _cooldownPeriod,
uint _cooldownFee,
uint _cooldownFeeSplit,
uint _startTime,
uint _endTime
) {
require(address(_stakingToken) != address(0));
require(address(_rewardToken) != address(0));
require(_feeCollector1 != address(0));
require(_feeCollector2 != address(0));
require(_cooldownFee <= HUNDRED_PERCENT);
require(_cooldownFeeSplit <= HUNDRED_PERCENT);
require(_startTime > block.timestamp);
require(_startTime < _endTime);
stakingToken = _stakingToken;
rewardToken = _rewardToken;
feeCollector1 = _feeCollector1;
feeCollector2 = _feeCollector2;
rewardPerPeriod = _rewardPerPeriod;
cooldownPeriod = _cooldownPeriod;
cooldownFee = _cooldownFee;
cooldownFeeSplit = _cooldownFeeSplit;
startTime = _startTime;
endTime = _endTime;
lastUpdateTimestamp = _startTime;
}
// =================== EXTERNAL FUNCTIONS =================== //
/**
Check whether some update periods have passed and if so, increase the pending reward of all users.
*/
function update() public {
uint currentTimestamp = block.timestamp;
if (currentTimestamp > endTime) {
currentTimestamp = endTime;
}
require(currentTimestamp > startTime, "before startTime");
uint periodsPassed = (currentTimestamp - lastUpdateTimestamp) / UPDATE_PERIOD;
if (periodsPassed > 0 && totalShares > 0) {
uint reward = rewardPerPeriod * periodsPassed;
accRewardPerShare += ACC_REWARD_MULTIPLIER * reward / totalShares;
lastUpdateTimestamp += periodsPassed * UPDATE_PERIOD;
}
emit Update(periodsPassed, totalShares, totalClaimed, accRewardPerShare, block.timestamp);
}
/**
Stake tokens.
@param amount amount to stake
*/
function stake(uint amount) external nonReentrant withUpdate {
User storage user = users[msg.sender];
require(amount > 0, "0 amount");
require(user.requestedUnstakeAt == 0, "unstake requested");
uint balanceBefore = stakingToken.balanceOf(address(this));
stakingToken.safeTransferFrom(msg.sender, address(this), amount);
uint receivedAmount = stakingToken.balanceOf(address(this)) - balanceBefore;
user.shares += receivedAmount;
user.rewardDebt += _calculateAbsoluteReward(receivedAmount);
totalShares += receivedAmount;
emit Stake(msg.sender, receivedAmount);
}
/**
Enter the cooldown period for unstaking without any fee after the period passes.
Users can't stake or claim while in the cooldown period.
@param withoutClaim in case the pending rewards can't be claimed, there's still this option to request unstake without claiming
*/
function requestUnstake(bool withoutClaim) external nonReentrant withUpdate {
User storage user = users[msg.sender];
require(user.requestedUnstakeAt == 0, "unstake requested already");
_requestUnstake(withoutClaim);
}
/**
Unstaking before the cooldown period ends causes a fee on the staked amount (it's free of charge if the farm staking has ended).
*/
function unstake() external nonReentrant withUpdate {
User storage user = users[msg.sender];
if (user.requestedUnstakeAt == 0) {
_requestUnstake(false);
}
uint unstakeAmount = user.shares;
bool earlyUnstake = block.timestamp < user.requestedUnstakeAt + cooldownPeriod;
uint fee;
if (earlyUnstake) {
fee = _applyPercentage(unstakeAmount, cooldownFee);
uint feeSplit1 = _applyPercentage(fee, cooldownFeeSplit);
uint feeSplit2 = fee - feeSplit1;
stakingToken.safeTransfer(feeCollector1, feeSplit1);
stakingToken.safeTransfer(feeCollector2, feeSplit2);
}
unstakeAmount -= fee;
stakingToken.safeTransfer(msg.sender, unstakeAmount);
delete users[msg.sender];
emit Unstake(msg.sender, unstakeAmount, fee);
}
/**
Claim all the pending rewards.
*/
function claim() external nonReentrant withUpdate returns (uint claimableReward) {
claimableReward = getClaimableReward(msg.sender);
require(claimableReward > 0, "nothing to claim");
_claim(msg.sender);
}
// =================== INTERNAL FUNCTIONS =================== //
function _claim(address userAddress) internal {
User storage user = users[userAddress];
uint claimableReward = getClaimableReward(userAddress);
if (claimableReward > 0) {
require(getRewardBalance() >= claimableReward, "not enough reward balance");
user.rewardDebt += claimableReward;
totalClaimed += claimableReward;
rewardToken.safeTransfer(userAddress, claimableReward);
emit Claim(userAddress, claimableReward);
}
}
function _requestUnstake(bool withoutClaim) internal {
User storage user = users[msg.sender];
require(user.shares > 0, "nothing to unstake");
if (!withoutClaim) {
_claim(msg.sender);
}
user.requestedUnstakeAt = block.timestamp;
totalShares -= user.shares;
emit RequestUnstake(msg.sender, withoutClaim, block.timestamp);
}
// =================== VIEW FUNCTIONS =================== //
function getClaimableReward(address userAddress) public view returns (uint reward) {
User storage user = users[userAddress];
if (user.requestedUnstakeAt > 0) {
return 0;
}
uint absoluteReward = _calculateAbsoluteReward(user.shares);
reward = absoluteReward - user.rewardDebt;
}
function getRewardBalance() public view returns (uint rewardBalance) {
uint balance = rewardToken.balanceOf(address(this));
if (rewardToken != stakingToken) {
return balance;
} else {
return balance - totalShares;
}
}
function getFarmInfo(address userAddress) public view returns (IERC20, IERC20, uint, uint, uint, uint, uint, uint, uint, uint) {
User storage user = users[userAddress];
return (
stakingToken,
rewardToken,
rewardPerPeriod,
cooldownPeriod,
cooldownFee,
startTime,
endTime,
totalShares,
user.shares,
user.requestedUnstakeAt
);
}
function _calculateAbsoluteReward(uint shares) private view returns (uint absoluteReward) {
return accRewardPerShare * shares / ACC_REWARD_MULTIPLIER;
}
function _applyPercentage(uint value, uint percentage) internal pure returns (uint) {
return value * percentage / HUNDRED_PERCENT;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)
pragma solidity ^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
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/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 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'
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) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_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
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)
pragma solidity ^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;
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");
(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");
(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");
(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");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal 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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_stakingToken","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_feeCollector1","type":"address"},{"internalType":"address","name":"_feeCollector2","type":"address"},{"internalType":"uint256","name":"_rewardPerPeriod","type":"uint256"},{"internalType":"uint256","name":"_cooldownPeriod","type":"uint256"},{"internalType":"uint256","name":"_cooldownFee","type":"uint256"},{"internalType":"uint256","name":"_cooldownFeeSplit","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"withoutClaim","type":"bool"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RequestUnstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"Unstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"periodsPassed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalShares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalClaimed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Update","type":"event"},{"inputs":[],"name":"accRewardPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"claimableReward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cooldownFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldownFeeSplit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldownPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"getClaimableReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"getFarmInfo","outputs":[{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardBalance","outputs":[{"internalType":"uint256","name":"rewardBalance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"withoutClaim","type":"bool"}],"name":"requestUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"requestedUnstakeAt","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x6101c06040523480156200001257600080fd5b50604051620018733803806200187383398101604081905262000035916200012a565b60016000556001600160a01b038a166200004e57600080fd5b6001600160a01b0389166200006257600080fd5b6001600160a01b0388166200007657600080fd5b6001600160a01b0387166200008a57600080fd5b6103e88411156200009a57600080fd5b6103e8831115620000aa57600080fd5b428211620000b757600080fd5b808210620000c457600080fd5b6001600160a01b03998a1660805297891660a05295881660c0529390961660e052610100919091526101205261014093909352610160929092526101808290526101a052600555620001d0565b6001600160a01b03811681146200012757600080fd5b50565b6000806000806000806000806000806101408b8d0312156200014b57600080fd5b8a51620001588162000111565b60208c0151909a506200016b8162000111565b60408c01519099506200017e8162000111565b60608c0151909850620001918162000111565b8097505060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b015191506101208b015190509295989b9194979a5092959850565b60805160a05160c05160e05161010051610120516101405161016051610180516101a05161157162000302600039600081816102e1015281816103aa01528181610a2b0152610a540152600081816102bf015281816104850152610a7601526000818161019101526106160152600081816101b80152818161029d01526105e80152600081816101570152818161027b01526105b1015260008181610259015281816103d10152610b1301526000818161043701526106cd015260008181610361015261067901526000818161023701528181610522015281816108f60152818161098f01526110a40152600081816102150152818161045e01528181610657015281816106ab0152818161070e0152818161096501528181610cc901528181610d4b0152610d9501526115716000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80634e71d92d116100c3578063939d62371161007c578063939d6237146104a7578063a2e62045146104b0578063a694fc3a146104b8578063a87430ba146104cb578063d54ad2a114610514578063f7c618c11461051d57600080fd5b80634e71d92d1461040f5780635e42b455146104175780635ff329af1461041f578063723807671461043257806372f702f31461045957806378e979251461048057600080fd5b80632a625bd5116101155780632a625bd51461035c5780632def66201461039b5780633197cbb6146103a557806338b41a31146103cc5780633a98ef39146103f35780634dad01bb146103fc57600080fd5b806304646a49146101525780630464a0bc1461018c57806307903264146101b357806314bcec9f146101da5780631c9a4fd1146101e3575b600080fd5b6101797f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6101797f000000000000000000000000000000000000000000000000000000000000000081565b6101797f000000000000000000000000000000000000000000000000000000000000000081565b61017960055481565b6103076101f136600461135d565b6001600160a01b0316600090815260016020526040902060028054825491909201547f0000000000000000000000000000000000000000000000000000000000000000937f0000000000000000000000000000000000000000000000000000000000000000937f0000000000000000000000000000000000000000000000000000000000000000937f0000000000000000000000000000000000000000000000000000000000000000937f0000000000000000000000000000000000000000000000000000000000000000937f0000000000000000000000000000000000000000000000000000000000000000937f00000000000000000000000000000000000000000000000000000000000000009390929091565b604080516001600160a01b039b8c1681529a90991660208b0152978901969096526060880194909452608087019290925260a086015260c085015260e084015261010083015261012082015261014001610183565b6103837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610183565b6103a3610544565b005b6101797f000000000000000000000000000000000000000000000000000000000000000081565b6101797f000000000000000000000000000000000000000000000000000000000000000081565b61017960025481565b6103a361040a366004611397565b6107a2565b610179610844565b6101796108d4565b61017961042d36600461135d565b6109d4565b6103837f000000000000000000000000000000000000000000000000000000000000000081565b6103837f000000000000000000000000000000000000000000000000000000000000000081565b6101797f000000000000000000000000000000000000000000000000000000000000000081565b61017960045481565b6103a3610a28565b6103a36104c63660046113b4565b610bf5565b6104f96104d936600461135d565b600160208190526000918252604090912080549181015460029091015483565b60408051938452602084019290925290820152606001610183565b61017960035481565b6103837f000000000000000000000000000000000000000000000000000000000000000081565b60026000540361056f5760405162461bcd60e51b8152600401610566906113cd565b60405180910390fd5b600260005561057c610a28565b33600090815260016020526040812060028101549091036105a1576105a16000610e96565b805460028201546000906105d6907f00000000000000000000000000000000000000000000000000000000000000009061141a565b42109050600081156106f55761060c837f0000000000000000000000000000000000000000000000000000000000000000610f5b565b9050600061063a827f0000000000000000000000000000000000000000000000000000000000000000610f5b565b905060006106488284611432565b905061069e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000084610f7b565b6106f26001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610f7b565b50505b6106ff8184611432565b92506107356001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163385610f7b565b336000818152600160208181526040808420848155928301849055600290920192909255805192835290820185905281018290527ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb280906060015b60405180910390a1505060016000555050565b6002600054036107c45760405162461bcd60e51b8152600401610566906113cd565b60026000556107d1610a28565b3360009081526001602052604090206002810154156108325760405162461bcd60e51b815260206004820152601960248201527f756e7374616b652072657175657374656420616c7265616479000000000000006044820152606401610566565b61083b82610e96565b50506001600055565b60006002600054036108685760405162461bcd60e51b8152600401610566906113cd565b6002600055610875610a28565b61087e336109d4565b9050600081116108c35760405162461bcd60e51b815260206004820152601060248201526f6e6f7468696e6720746f20636c61696d60801b6044820152606401610566565b6108cc33610fe3565b600160005590565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561093d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109619190611449565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146109c157919050565b6002546109ce9082611432565b91505090565b6001600160a01b03811660009081526001602052604081206002810154156109ff5750600092915050565b6000610a0e8260000154611112565b9050816001015481610a209190611432565b949350505050565b427f0000000000000000000000000000000000000000000000000000000000000000811115610a7457507f00000000000000000000000000000000000000000000000000000000000000005b7f00000000000000000000000000000000000000000000000000000000000000008111610ad65760405162461bcd60e51b815260206004820152601060248201526f6265666f726520737461727454696d6560801b6044820152606401610566565b6000603c60055483610ae89190611432565b610af29190611462565b9050600081118015610b0657506000600254115b15610b9a576000610b37827f0000000000000000000000000000000000000000000000000000000000000000611484565b600254909150610b56826ec097ce7bc90715b34b9f1000000000611484565b610b609190611462565b60046000828254610b71919061141a565b90915550610b829050603c83611484565b60056000828254610b93919061141a565b9091555050505b60025460035460045460408051858152602081019490945283019190915260608201524260808201527f058060763f0c6ae3b30d3624dbb6899601ed67b215a0b7591707778c7218db2f9060a0015b60405180910390a15050565b600260005403610c175760405162461bcd60e51b8152600401610566906113cd565b6002600055610c24610a28565b33600090815260016020526040902081610c6b5760405162461bcd60e51b81526020600482015260086024820152670c08185b5bdd5b9d60c21b6044820152606401610566565b600281015415610cb15760405162461bcd60e51b81526020600482015260116024820152701d5b9cdd185ad9481c995c5d595cdd1959607a1b6044820152606401610566565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610d18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3c9190611449565b9050610d736001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333086611142565b6040516370a0823160e01b815230600482015260009082906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e009190611449565b610e0a9190611432565b905080836000016000828254610e20919061141a565b90915550610e2f905081611112565b836001016000828254610e42919061141a565b925050819055508060026000828254610e5b919061141a565b909155505060408051338152602081018390527febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a910161078f565b3360009081526001602052604090208054610ee85760405162461bcd60e51b81526020600482015260126024820152716e6f7468696e6720746f20756e7374616b6560701b6044820152606401610566565b81610ef657610ef633610fe3565b428160020181905550806000015460026000828254610f159190611432565b909155505060408051338152831515602082015242918101919091527f210fb9018b5172f4fd6bd4ca39c12a16c0b77798930fbc61dc8915600f795e5890606001610be9565b60006103e8610f6a8385611484565b610f749190611462565b9392505050565b6040516001600160a01b038316602482015260448101829052610fde90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611180565b505050565b6001600160a01b038116600090815260016020526040812090611005836109d4565b90508015610fde57806110166108d4565b10156110645760405162461bcd60e51b815260206004820152601960248201527f6e6f7420656e6f756768207265776172642062616c616e6365000000000000006044820152606401610566565b80826001016000828254611078919061141a565b925050819055508060036000828254611091919061141a565b909155506110cb90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168483610f7b565b604080516001600160a01b0385168152602081018390527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a1505050565b60006ec097ce7bc90715b34b9f1000000000826004546111329190611484565b61113c9190611462565b92915050565b6040516001600160a01b038085166024830152831660448201526064810182905261117a9085906323b872dd60e01b90608401610fa7565b50505050565b60006111d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112529092919063ffffffff16565b805190915015610fde57808060200190518101906111f391906114a3565b610fde5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610566565b6060610a20848460008585843b6112ab5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610566565b600080866001600160a01b031685876040516112c791906114ec565b60006040518083038185875af1925050503d8060008114611304576040519150601f19603f3d011682016040523d82523d6000602084013e611309565b606091505b5091509150611319828286611324565b979650505050505050565b60608315611333575081610f74565b8251156113435782518084602001fd5b8160405162461bcd60e51b81526004016105669190611508565b60006020828403121561136f57600080fd5b81356001600160a01b0381168114610f7457600080fd5b801515811461139457600080fd5b50565b6000602082840312156113a957600080fd5b8135610f7481611386565b6000602082840312156113c657600080fd5b5035919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561142d5761142d611404565b500190565b60008282101561144457611444611404565b500390565b60006020828403121561145b57600080fd5b5051919050565b60008261147f57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561149e5761149e611404565b500290565b6000602082840312156114b557600080fd5b8151610f7481611386565b60005b838110156114db5781810151838201526020016114c3565b8381111561117a5750506000910152565b600082516114fe8184602087016114c0565b9190910192915050565b60208152600082518060208401526115278160408501602087016114c0565b601f01601f1916919091016040019291505056fea264697066735822122078ed28a47953b1826aca0f1b76dd19a0dc0f6b7df250eb69bc3d52d515b9f3c964736f6c634300080e0033000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e10000000000000000000000001f961bceaef8edf6fb2797c0293ffbde3e99461400000000000000000000000091646c2c2ff05c4e9822740b0ad9d8b3da51382b00000000000000000000000091646c2c2ff05c4e9822740b0ad9d8b3da51382b000000000000000000000000000000000000000000000000001687fa416b319b000000000000000000000000000000000000000000000000000000000013c680000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000064008fc00000000000000000000000000000000000000000000000000000000067c2f6c0
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80634e71d92d116100c3578063939d62371161007c578063939d6237146104a7578063a2e62045146104b0578063a694fc3a146104b8578063a87430ba146104cb578063d54ad2a114610514578063f7c618c11461051d57600080fd5b80634e71d92d1461040f5780635e42b455146104175780635ff329af1461041f578063723807671461043257806372f702f31461045957806378e979251461048057600080fd5b80632a625bd5116101155780632a625bd51461035c5780632def66201461039b5780633197cbb6146103a557806338b41a31146103cc5780633a98ef39146103f35780634dad01bb146103fc57600080fd5b806304646a49146101525780630464a0bc1461018c57806307903264146101b357806314bcec9f146101da5780631c9a4fd1146101e3575b600080fd5b6101797f000000000000000000000000000000000000000000000000000000000013c68081565b6040519081526020015b60405180910390f35b6101797f000000000000000000000000000000000000000000000000000000000000000181565b6101797f000000000000000000000000000000000000000000000000000000000000000581565b61017960055481565b6103076101f136600461135d565b6001600160a01b0316600090815260016020526040902060028054825491909201547f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e1937f0000000000000000000000001f961bceaef8edf6fb2797c0293ffbde3e994614937f000000000000000000000000000000000000000000000000001687fa416b319b937f000000000000000000000000000000000000000000000000000000000013c680937f0000000000000000000000000000000000000000000000000000000000000005937f0000000000000000000000000000000000000000000000000000000064008fc0937f0000000000000000000000000000000000000000000000000000000067c2f6c09390929091565b604080516001600160a01b039b8c1681529a90991660208b0152978901969096526060880194909452608087019290925260a086015260c085015260e084015261010083015261012082015261014001610183565b6103837f00000000000000000000000091646c2c2ff05c4e9822740b0ad9d8b3da51382b81565b6040516001600160a01b039091168152602001610183565b6103a3610544565b005b6101797f0000000000000000000000000000000000000000000000000000000067c2f6c081565b6101797f000000000000000000000000000000000000000000000000001687fa416b319b81565b61017960025481565b6103a361040a366004611397565b6107a2565b610179610844565b6101796108d4565b61017961042d36600461135d565b6109d4565b6103837f00000000000000000000000091646c2c2ff05c4e9822740b0ad9d8b3da51382b81565b6103837f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e181565b6101797f0000000000000000000000000000000000000000000000000000000064008fc081565b61017960045481565b6103a3610a28565b6103a36104c63660046113b4565b610bf5565b6104f96104d936600461135d565b600160208190526000918252604090912080549181015460029091015483565b60408051938452602084019290925290820152606001610183565b61017960035481565b6103837f0000000000000000000000001f961bceaef8edf6fb2797c0293ffbde3e99461481565b60026000540361056f5760405162461bcd60e51b8152600401610566906113cd565b60405180910390fd5b600260005561057c610a28565b33600090815260016020526040812060028101549091036105a1576105a16000610e96565b805460028201546000906105d6907f000000000000000000000000000000000000000000000000000000000013c6809061141a565b42109050600081156106f55761060c837f0000000000000000000000000000000000000000000000000000000000000005610f5b565b9050600061063a827f0000000000000000000000000000000000000000000000000000000000000001610f5b565b905060006106488284611432565b905061069e6001600160a01b037f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e1167f00000000000000000000000091646c2c2ff05c4e9822740b0ad9d8b3da51382b84610f7b565b6106f26001600160a01b037f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e1167f00000000000000000000000091646c2c2ff05c4e9822740b0ad9d8b3da51382b83610f7b565b50505b6106ff8184611432565b92506107356001600160a01b037f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e1163385610f7b565b336000818152600160208181526040808420848155928301849055600290920192909255805192835290820185905281018290527ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb280906060015b60405180910390a1505060016000555050565b6002600054036107c45760405162461bcd60e51b8152600401610566906113cd565b60026000556107d1610a28565b3360009081526001602052604090206002810154156108325760405162461bcd60e51b815260206004820152601960248201527f756e7374616b652072657175657374656420616c7265616479000000000000006044820152606401610566565b61083b82610e96565b50506001600055565b60006002600054036108685760405162461bcd60e51b8152600401610566906113cd565b6002600055610875610a28565b61087e336109d4565b9050600081116108c35760405162461bcd60e51b815260206004820152601060248201526f6e6f7468696e6720746f20636c61696d60801b6044820152606401610566565b6108cc33610fe3565b600160005590565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f0000000000000000000000001f961bceaef8edf6fb2797c0293ffbde3e99461416906370a0823190602401602060405180830381865afa15801561093d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109619190611449565b90507f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e16001600160a01b03167f0000000000000000000000001f961bceaef8edf6fb2797c0293ffbde3e9946146001600160a01b0316146109c157919050565b6002546109ce9082611432565b91505090565b6001600160a01b03811660009081526001602052604081206002810154156109ff5750600092915050565b6000610a0e8260000154611112565b9050816001015481610a209190611432565b949350505050565b427f0000000000000000000000000000000000000000000000000000000067c2f6c0811115610a7457507f0000000000000000000000000000000000000000000000000000000067c2f6c05b7f0000000000000000000000000000000000000000000000000000000064008fc08111610ad65760405162461bcd60e51b815260206004820152601060248201526f6265666f726520737461727454696d6560801b6044820152606401610566565b6000603c60055483610ae89190611432565b610af29190611462565b9050600081118015610b0657506000600254115b15610b9a576000610b37827f000000000000000000000000000000000000000000000000001687fa416b319b611484565b600254909150610b56826ec097ce7bc90715b34b9f1000000000611484565b610b609190611462565b60046000828254610b71919061141a565b90915550610b829050603c83611484565b60056000828254610b93919061141a565b9091555050505b60025460035460045460408051858152602081019490945283019190915260608201524260808201527f058060763f0c6ae3b30d3624dbb6899601ed67b215a0b7591707778c7218db2f9060a0015b60405180910390a15050565b600260005403610c175760405162461bcd60e51b8152600401610566906113cd565b6002600055610c24610a28565b33600090815260016020526040902081610c6b5760405162461bcd60e51b81526020600482015260086024820152670c08185b5bdd5b9d60c21b6044820152606401610566565b600281015415610cb15760405162461bcd60e51b81526020600482015260116024820152701d5b9cdd185ad9481c995c5d595cdd1959607a1b6044820152606401610566565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e16001600160a01b0316906370a0823190602401602060405180830381865afa158015610d18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3c9190611449565b9050610d736001600160a01b037f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e116333086611142565b6040516370a0823160e01b815230600482015260009082906001600160a01b037f000000000000000000000000e2c4c997771ede649bc1161d8091b69f8c14c0e116906370a0823190602401602060405180830381865afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e009190611449565b610e0a9190611432565b905080836000016000828254610e20919061141a565b90915550610e2f905081611112565b836001016000828254610e42919061141a565b925050819055508060026000828254610e5b919061141a565b909155505060408051338152602081018390527febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a910161078f565b3360009081526001602052604090208054610ee85760405162461bcd60e51b81526020600482015260126024820152716e6f7468696e6720746f20756e7374616b6560701b6044820152606401610566565b81610ef657610ef633610fe3565b428160020181905550806000015460026000828254610f159190611432565b909155505060408051338152831515602082015242918101919091527f210fb9018b5172f4fd6bd4ca39c12a16c0b77798930fbc61dc8915600f795e5890606001610be9565b60006103e8610f6a8385611484565b610f749190611462565b9392505050565b6040516001600160a01b038316602482015260448101829052610fde90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611180565b505050565b6001600160a01b038116600090815260016020526040812090611005836109d4565b90508015610fde57806110166108d4565b10156110645760405162461bcd60e51b815260206004820152601960248201527f6e6f7420656e6f756768207265776172642062616c616e6365000000000000006044820152606401610566565b80826001016000828254611078919061141a565b925050819055508060036000828254611091919061141a565b909155506110cb90506001600160a01b037f0000000000000000000000001f961bceaef8edf6fb2797c0293ffbde3e994614168483610f7b565b604080516001600160a01b0385168152602081018390527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a1505050565b60006ec097ce7bc90715b34b9f1000000000826004546111329190611484565b61113c9190611462565b92915050565b6040516001600160a01b038085166024830152831660448201526064810182905261117a9085906323b872dd60e01b90608401610fa7565b50505050565b60006111d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112529092919063ffffffff16565b805190915015610fde57808060200190518101906111f391906114a3565b610fde5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610566565b6060610a20848460008585843b6112ab5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610566565b600080866001600160a01b031685876040516112c791906114ec565b60006040518083038185875af1925050503d8060008114611304576040519150601f19603f3d011682016040523d82523d6000602084013e611309565b606091505b5091509150611319828286611324565b979650505050505050565b60608315611333575081610f74565b8251156113435782518084602001fd5b8160405162461bcd60e51b81526004016105669190611508565b60006020828403121561136f57600080fd5b81356001600160a01b0381168114610f7457600080fd5b801515811461139457600080fd5b50565b6000602082840312156113a957600080fd5b8135610f7481611386565b6000602082840312156113c657600080fd5b5035919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561142d5761142d611404565b500190565b60008282101561144457611444611404565b500390565b60006020828403121561145b57600080fd5b5051919050565b60008261147f57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561149e5761149e611404565b500290565b6000602082840312156114b557600080fd5b8151610f7481611386565b60005b838110156114db5781810151838201526020016114c3565b8381111561117a5750506000910152565b600082516114fe8184602087016114c0565b9190910192915050565b60208152600082518060208401526115278160408501602087016114c0565b601f01601f1916919091016040019291505056fea264697066735822122078ed28a47953b1826aca0f1b76dd19a0dc0f6b7df250eb69bc3d52d515b9f3c964736f6c634300080e0033
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.