Source Code
Latest 25 from a total of 13,585 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 14142455 | 6 days ago | IN | 0 GLMR | 0.00795125 | ||||
| Withdraw | 12930923 | 106 days ago | IN | 0 GLMR | 0.01285842 | ||||
| Withdraw | 12930643 | 106 days ago | IN | 0 GLMR | 0.01302652 | ||||
| Withdraw | 12655253 | 128 days ago | IN | 0 GLMR | 0.01287154 | ||||
| Withdraw | 12655252 | 128 days ago | IN | 0 GLMR | 0.0132553 | ||||
| Withdraw | 12637241 | 130 days ago | IN | 0 GLMR | 0.00722256 | ||||
| Withdraw | 12637240 | 130 days ago | IN | 0 GLMR | 0.0132553 | ||||
| Withdraw | 12560995 | 135 days ago | IN | 0 GLMR | 0.00827956 | ||||
| Withdraw | 12458006 | 143 days ago | IN | 0 GLMR | 0.0083878 | ||||
| Withdraw | 12339138 | 152 days ago | IN | 0 GLMR | 0.01287154 | ||||
| Withdraw | 12339135 | 152 days ago | IN | 0 GLMR | 0.01303964 | ||||
| Withdraw | 12332779 | 152 days ago | IN | 0 GLMR | 0.00722256 | ||||
| Withdraw | 12230145 | 159 days ago | IN | 0 GLMR | 0.004404 | ||||
| Withdraw | 12230143 | 159 days ago | IN | 0 GLMR | 0.0080825 | ||||
| Withdraw | 12187149 | 162 days ago | IN | 0 GLMR | 0.00827956 | ||||
| Withdraw | 12187146 | 162 days ago | IN | 0 GLMR | 0.0083878 | ||||
| Withdraw | 12173353 | 163 days ago | IN | 0 GLMR | 0.00827956 | ||||
| Withdraw | 12173351 | 163 days ago | IN | 0 GLMR | 0.0083878 | ||||
| Withdraw | 12111598 | 168 days ago | IN | 0 GLMR | 0.01303964 | ||||
| Withdraw | 11918405 | 181 days ago | IN | 0 GLMR | 0.00464217 | ||||
| Withdraw | 11869483 | 185 days ago | IN | 0 GLMR | 0.01287154 | ||||
| Withdraw | 11869464 | 185 days ago | IN | 0 GLMR | 0.01303964 | ||||
| Withdraw | 11848608 | 186 days ago | IN | 0 GLMR | 0.0078485 | ||||
| Withdraw | 11848598 | 186 days ago | IN | 0 GLMR | 0.007951 | ||||
| Withdraw | 11780353 | 191 days ago | IN | 0 GLMR | 0.01287154 |
View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
Loading...
Loading
Contract Name:
EarnBLP
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
/**
* Copyright Trader Joe
* @title EarnBLP
* @author Trader Joe
* @notice EarnBLP is a contract that allows BLP deposits and receives stablecoins sent by MoneyMaker's daily
* harvests. Users deposit BLP and receive a share of what has been sent by MoneyMaker based on their participation of
* the total deposited BLP. It is similar to a MasterChef, but we allow for claiming of different reward tokens
* (in case at some point we wish to change the stablecoin rewarded).
* Every time `updateReward(token)` is called, We distribute the balance of that tokens as rewards to users that are
* currently staking inside this contract, and they can claim it using `withdraw(0)`
*/
contract EarnBLP is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
/// @notice Info of each user
struct UserInfo {
uint256 amount;
mapping(IERC20 => uint256) rewardDebt;
/**
* @notice We do some fancy math here. Basically, any point in time, the amount of BLPs
* entitled to a user but is pending to be distributed is:
*
* pending reward = (user.amount * accRewardPerShare) - user.rewardDebt[token]
*
* Whenever a user deposits or withdraws BLP. Here's what happens:
* 1. accRewardPerShare (and `lastRewardBalance`) gets updated
* 2. User receives the pending reward sent to his/her address
* 3. User's `amount` gets updated
* 4. User's `rewardDebt[token]` gets updated
*/
}
IERC20 public blp;
/// @dev Internal balance of BLP, this gets updated on user deposits / withdrawals
/// this allows to reward users with BLP
uint256 public internalBlpBalance;
/// @notice Array of tokens that users can claim
IERC20[] public rewardTokens;
mapping(IERC20 => bool) public isRewardToken;
/// @notice Last reward balance of `token`
mapping(IERC20 => uint256) public lastRewardBalance;
address public feeCollector;
/// @notice The deposit fee, scaled to `DEPOSIT_FEE_PERCENT_PRECISION`
uint256 public depositFeePercent;
/// @notice The precision of `depositFeePercent`
uint256 public DEPOSIT_FEE_PERCENT_PRECISION;
/// @notice Accumulated `token` rewards per share, scaled to `ACC_REWARD_PER_SHARE_PRECISION`
mapping(IERC20 => uint256) public accRewardPerShare;
/// @notice The precision of `accRewardPerShare`
uint256 public ACC_REWARD_PER_SHARE_PRECISION;
/// @dev Info of each user that stakes BLP
mapping(address => UserInfo) private userInfo;
/// @notice Emitted when a user deposits BLP
event Deposit(address indexed user, uint256 amount, uint256 fee);
/// @notice Emitted when owner changes the deposit fee percentage
event DepositFeeChanged(uint256 newFee, uint256 oldFee);
/// @notice Emitted when a user withdraws BLP
event Withdraw(address indexed user, uint256 amount);
/// @notice Emitted when a user claims reward
event ClaimReward(
address indexed user,
address indexed rewardToken,
uint256 amount
);
/// @notice Emitted when a user emergency withdraws its BLP
event EmergencyWithdraw(address indexed user, uint256 amount);
/// @notice Emitted when owner adds a token to the reward tokens list
event RewardTokenAdded(address token);
/// @notice Emitted when owner removes a token from the reward tokens list
event RewardTokenRemoved(address token);
/**
* @notice Initialize a new EarnBLP contract
* @dev This contract needs to receive an ERC20 `_rewardToken` in order to distribute them
* (with MoneyMaker in our case)
* @param _rewardToken The address of the ERC20 reward token
* @param _blp The address of the BLP token
* @param _feeCollector The address where deposit fees will be sent
* @param _depositFeePercent The deposit fee percent, scalled to 1e18, e.g. 3% is 3e16
*/
constructor(
IERC20 _rewardToken,
IERC20 _blp,
address _feeCollector,
uint256 _depositFeePercent
) {
require(
address(_rewardToken) != address(0),
"EarnBLP: reward token can't be address(0)"
);
require(
address(_blp) != address(0),
"EarnBLP: blp can't be address(0)"
);
require(
_feeCollector != address(0),
"EarnBLP: fee collector can't be address(0)"
);
require(
_depositFeePercent <= 5e17,
"EarnBLP: max deposit fee can't be greater than 50%"
);
blp = _blp;
depositFeePercent = _depositFeePercent;
feeCollector = _feeCollector;
isRewardToken[_rewardToken] = true;
rewardTokens.push(_rewardToken);
DEPOSIT_FEE_PERCENT_PRECISION = 1e18;
ACC_REWARD_PER_SHARE_PRECISION = 1e24;
}
/**
* @notice Deposit BLP for reward token allocation
* @param _amount The amount of BLP to deposit
*/
function deposit(uint256 _amount) external {
UserInfo storage user = userInfo[_msgSender()];
uint256 _fee = _amount.mul(depositFeePercent).div(
DEPOSIT_FEE_PERCENT_PRECISION
);
uint256 _amountMinusFee = _amount.sub(_fee);
uint256 _previousAmount = user.amount;
uint256 _newAmount = user.amount.add(_amountMinusFee);
user.amount = _newAmount;
uint256 _len = rewardTokens.length;
for (uint256 i; i < _len; i++) {
IERC20 _token = rewardTokens[i];
updateReward(_token);
uint256 _previousRewardDebt = user.rewardDebt[_token];
user.rewardDebt[_token] = _newAmount
.mul(accRewardPerShare[_token])
.div(ACC_REWARD_PER_SHARE_PRECISION);
if (_previousAmount != 0) {
uint256 _pending = _previousAmount
.mul(accRewardPerShare[_token])
.div(ACC_REWARD_PER_SHARE_PRECISION)
.sub(_previousRewardDebt);
if (_pending != 0) {
safeTokenTransfer(_token, _msgSender(), _pending);
emit ClaimReward(_msgSender(), address(_token), _pending);
}
}
}
internalBlpBalance = internalBlpBalance.add(_amountMinusFee);
blp.safeTransferFrom(_msgSender(), feeCollector, _fee);
blp.safeTransferFrom(_msgSender(), address(this), _amountMinusFee);
emit Deposit(_msgSender(), _amountMinusFee, _fee);
}
/**
* @notice Get user info
* @param _user The address of the user
* @param _rewardToken The address of the reward token
* @return The amount of BLP user has deposited
* @return The reward debt for the chosen token
*/
function getUserInfo(
address _user,
IERC20 _rewardToken
) external view returns (uint256, uint256) {
UserInfo storage user = userInfo[_user];
return (user.amount, user.rewardDebt[_rewardToken]);
}
/**
* @notice Get the number of reward tokens
* @return The length of the array
*/
function rewardTokensLength() external view returns (uint256) {
return rewardTokens.length;
}
/**
* @notice Add a reward token
* @param _rewardToken The address of the reward token
*/
function addRewardToken(IERC20 _rewardToken) external onlyOwner {
require(
!isRewardToken[_rewardToken] && address(_rewardToken) != address(0),
"EarnBLP: token can't be added"
);
require(rewardTokens.length < 25, "EarnBLP: list of token too big");
rewardTokens.push(_rewardToken);
isRewardToken[_rewardToken] = true;
updateReward(_rewardToken);
emit RewardTokenAdded(address(_rewardToken));
}
/**
* @notice Remove a reward token
* @param _rewardToken The address of the reward token
*/
function removeRewardToken(IERC20 _rewardToken) external onlyOwner {
require(isRewardToken[_rewardToken], "EarnBLP: token can't be removed");
updateReward(_rewardToken);
isRewardToken[_rewardToken] = false;
uint256 _len = rewardTokens.length;
for (uint256 i; i < _len; i++) {
if (rewardTokens[i] == _rewardToken) {
rewardTokens[i] = rewardTokens[_len - 1];
rewardTokens.pop();
break;
}
}
emit RewardTokenRemoved(address(_rewardToken));
}
/**
* @notice Set the deposit fee percent
* @param _depositFeePercent The new deposit fee percent
*/
function setDepositFeePercent(
uint256 _depositFeePercent
) external onlyOwner {
require(
_depositFeePercent <= 5e17,
"EarnBLP: deposit fee can't be greater than 50%"
);
uint256 oldFee = depositFeePercent;
depositFeePercent = _depositFeePercent;
emit DepositFeeChanged(_depositFeePercent, oldFee);
}
/**
* @notice View function to see pending reward token on frontend
* @param _user The address of the user
* @param _token The address of the token
* @return `_user`'s pending reward token
*/
function pendingReward(
address _user,
IERC20 _token
) external view returns (uint256) {
require(isRewardToken[_token], "EarnBLP: wrong reward token");
UserInfo storage user = userInfo[_user];
uint256 _totalBlp = internalBlpBalance;
uint256 _accRewardTokenPerShare = accRewardPerShare[_token];
uint256 _currRewardBalance = _token.balanceOf(address(this));
uint256 _rewardBalance = _token == blp
? _currRewardBalance.sub(_totalBlp)
: _currRewardBalance;
if (_rewardBalance != lastRewardBalance[_token] && _totalBlp != 0) {
uint256 _accruedReward = _rewardBalance.sub(
lastRewardBalance[_token]
);
_accRewardTokenPerShare = _accRewardTokenPerShare.add(
_accruedReward.mul(ACC_REWARD_PER_SHARE_PRECISION).div(
_totalBlp
)
);
}
return
user
.amount
.mul(_accRewardTokenPerShare)
.div(ACC_REWARD_PER_SHARE_PRECISION)
.sub(user.rewardDebt[_token]);
}
/**
* @notice Withdraw BLP and harvest the rewards
* @param _amount The amount of BLP to withdraw
*/
function withdraw(uint256 _amount) external {
UserInfo storage user = userInfo[_msgSender()];
uint256 _previousAmount = user.amount;
require(
_amount <= _previousAmount,
"EarnBLP: withdraw amount exceeds balance"
);
uint256 _newAmount = user.amount.sub(_amount);
user.amount = _newAmount;
uint256 _len = rewardTokens.length;
if (_previousAmount != 0) {
for (uint256 i; i < _len; i++) {
IERC20 _token = rewardTokens[i];
updateReward(_token);
uint256 _pending = _previousAmount
.mul(accRewardPerShare[_token])
.div(ACC_REWARD_PER_SHARE_PRECISION)
.sub(user.rewardDebt[_token]);
user.rewardDebt[_token] = _newAmount
.mul(accRewardPerShare[_token])
.div(ACC_REWARD_PER_SHARE_PRECISION);
if (_pending != 0) {
safeTokenTransfer(_token, _msgSender(), _pending);
emit ClaimReward(_msgSender(), address(_token), _pending);
}
}
}
internalBlpBalance = internalBlpBalance.sub(_amount);
blp.safeTransfer(_msgSender(), _amount);
emit Withdraw(_msgSender(), _amount);
}
/**
* @notice Withdraw without caring about rewards. EMERGENCY ONLY
*/
function emergencyWithdraw() external {
UserInfo storage user = userInfo[_msgSender()];
uint256 _amount = user.amount;
user.amount = 0;
uint256 _len = rewardTokens.length;
for (uint256 i; i < _len; i++) {
IERC20 _token = rewardTokens[i];
user.rewardDebt[_token] = 0;
}
internalBlpBalance = internalBlpBalance.sub(_amount);
blp.safeTransfer(_msgSender(), _amount);
emit EmergencyWithdraw(_msgSender(), _amount);
}
/**
* @notice Update reward variables
* @param _token The address of the reward token
* @dev Needs to be called before any deposit or withdrawal
*/
function updateReward(IERC20 _token) public {
require(isRewardToken[_token], "EarnBLP: wrong reward token");
uint256 _totalBlp = internalBlpBalance;
uint256 _currRewardBalance = _token.balanceOf(address(this));
uint256 _rewardBalance = _token == blp
? _currRewardBalance.sub(_totalBlp)
: _currRewardBalance;
// Did EarnBLP receive any token
if (_rewardBalance == lastRewardBalance[_token] || _totalBlp == 0) {
return;
}
uint256 _accruedReward = _rewardBalance.sub(lastRewardBalance[_token]);
accRewardPerShare[_token] = accRewardPerShare[_token].add(
_accruedReward.mul(ACC_REWARD_PER_SHARE_PRECISION).div(_totalBlp)
);
lastRewardBalance[_token] = _rewardBalance;
}
/**
* @notice Safe token transfer function, just in case if rounding error
* causes pool to not have enough reward tokens
* @param _token The address of then token to transfer
* @param _to The address that will receive `_amount` `rewardToken`
* @param _amount The amount to send to `_to`
*/
function safeTokenTransfer(
IERC20 _token,
address _to,
uint256 _amount
) internal {
uint256 _currRewardBalance = _token.balanceOf(address(this));
uint256 _rewardBalance = _token == blp
? _currRewardBalance.sub(internalBlpBalance)
: _currRewardBalance;
if (_amount > _rewardBalance) {
lastRewardBalance[_token] = lastRewardBalance[_token].sub(
_rewardBalance
);
_token.safeTransfer(_to, _rewardBalance);
} else {
lastRewardBalance[_token] = lastRewardBalance[_token].sub(_amount);
_token.safeTransfer(_to, _amount);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @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 a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* 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) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"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":"_rewardToken","type":"address"},{"internalType":"contract IERC20","name":"_blp","type":"address"},{"internalType":"address","name":"_feeCollector","type":"address"},{"internalType":"uint256","name":"_depositFeePercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"}],"name":"DepositFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"RewardTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"RewardTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ACC_REWARD_PER_SHARE_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSIT_FEE_PERCENT_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"accRewardPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"}],"name":"addRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blp","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"}],"name":"getUserInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"internalBlpBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"isRewardToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"lastRewardBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"}],"name":"removeRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokensLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositFeePercent","type":"uint256"}],"name":"setDepositFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162001df938038062001df98339810160408190526200003491620002f5565b6200003f336200028c565b6001600160a01b038416620000ad5760405162461bcd60e51b815260206004820152602960248201527f4561726e424c503a2072657761726420746f6b656e2063616e2774206265206160448201526864647265737328302960b81b60648201526084015b60405180910390fd5b6001600160a01b038316620001055760405162461bcd60e51b815260206004820181905260248201527f4561726e424c503a20626c702063616e277420626520616464726573732830296044820152606401620000a4565b6001600160a01b038216620001705760405162461bcd60e51b815260206004820152602a60248201527f4561726e424c503a2066656520636f6c6c6563746f722063616e2774206265206044820152696164647265737328302960b01b6064820152608401620000a4565b6706f05b59d3b20000811115620001e55760405162461bcd60e51b815260206004820152603260248201527f4561726e424c503a206d6178206465706f736974206665652063616e27742062604482015271652067726561746572207468616e2035302560701b6064820152608401620000a4565b600180546001600160a01b03199081166001600160a01b0395861617825560079290925560068054831693851693909317909255929091166000818152600460205260408120805460ff19168417905560038054938401815590527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9091018054909216179055670de0b6b3a764000060085569d3c21bcecceda1000000600a556200034f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620002f257600080fd5b50565b600080600080608085870312156200030c57600080fd5b84516200031981620002dc565b60208601519094506200032c81620002dc565b60408601519093506200033f81620002dc565b6060959095015193969295505050565b611a9a806200035f6000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80637bb7bed1116100e3578063bf199e621161008c578063db2e21bc11610066578063db2e21bc14610335578063f2801fe71461033d578063f2fde38b1461039357600080fd5b8063bf199e6214610311578063c415b95c14610319578063cc1252ae1461032c57600080fd5b8063a610708a116100bd578063a610708a146102c2578063b5fd73f8146102cb578063b6b55f25146102fe57600080fd5b80637bb7bed11461028b5780638da5cb5b1461029e5780639ced7e76146102af57600080fd5b80633c97d5ae116101455780635fc0d9e01161011f5780635fc0d9e014610250578063632447c914610270578063715018a61461028357600080fd5b80633c97d5ae146102145780633d509c971461021d5780635dcea4d41461023057600080fd5b80632052eb77116101765780632052eb77146101d75780632d76e578146101ea5780632e1a7d4d1461020157600080fd5b80631266b1b9146101925780631c03e6cc146101c2575b600080fd5b6001546101a5906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101d56101d036600461188d565b6103a6565b005b6101d56101e53660046118aa565b61058c565b6101f360025481565b6040519081526020016101b9565b6101d561020f3660046118aa565b6106aa565b6101f3600a5481565b6101d561022b36600461188d565b6108ee565b6101f361023e36600461188d565b60096020526000908152604090205481565b6101f361025e36600461188d565b60056020526000908152604090205481565b6101d561027e36600461188d565b610b25565b6101d5610ce7565b6101a56102993660046118aa565b610d4d565b6000546001600160a01b03166101a5565b6101f36102bd3660046118c3565b610d77565b6101f360085481565b6102ee6102d936600461188d565b60046020526000908152604090205460ff1681565b60405190151581526020016101b9565b6101d561030c3660046118aa565b610f57565b6003546101f3565b6006546101a5906001600160a01b031681565b6101f360075481565b6101d5611169565b61037e61034b3660046118c3565b6001600160a01b038083166000908152600b60209081526040808320805494861684526001019091529020549250929050565b604080519283526020830191909152016101b9565b6101d56103a136600461188d565b61123c565b6000546001600160a01b031633146104055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811660009081526004602052604090205460ff1615801561043657506001600160a01b03811615155b6104825760405162461bcd60e51b815260206004820152601d60248201527f4561726e424c503a20746f6b656e2063616e277420626520616464656400000060448201526064016103fc565b6003546019116104d45760405162461bcd60e51b815260206004820152601e60248201527f4561726e424c503a206c697374206f6620746f6b656e20746f6f20626967000060448201526064016103fc565b6003805460018082019092557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091556000908152600460205260409020805460ff1916909117905561054d81610b25565b6040516001600160a01b03821681527ff3e4c2c64e71e6ba2eaab9a599bced62f9eb91d2cda610bf41aa8c80ff2cf8269060200160405180910390a150565b6000546001600160a01b031633146105e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fc565b6706f05b59d3b200008111156106645760405162461bcd60e51b815260206004820152602e60248201527f4561726e424c503a206465706f736974206665652063616e277420626520677260448201527f6561746572207468616e2035302500000000000000000000000000000000000060648201526084016103fc565b600780549082905560408051838152602081018390527f6be5411ea11f30380402ca68832d060d744cbc5f62d2344495c10256ba93904a91015b60405180910390a15050565b336000908152600b602052604090208054808311156107315760405162461bcd60e51b815260206004820152602860248201527f4561726e424c503a20776974686472617720616d6f756e74206578636565647360448201527f2062616c616e636500000000000000000000000000000000000000000000000060648201526084016103fc565b8154600090610740908561131e565b808455600354909150821561088b5760005b818110156108895760006003828154811061076f5761076f6118fc565b6000918252602090912001546001600160a01b0316905061078f81610b25565b6001600160a01b0381166000908152600187016020908152604080832054600a546009909352908320546107d8926107d2916107cc908b90611331565b9061133d565b9061131e565b600a546001600160a01b038416600090815260096020526040902054919250610806916107cc908890611331565b6001600160a01b038316600090815260018901602052604090205580156108745761083382335b83611349565b6040518181526001600160a01b0383169033907f7e77f685b38c861064cb08f2776eb5dfd3c82f652ed9f21221b8c53b75628e519060200160405180910390a35b5050808061088190611928565b915050610752565b505b600254610898908661131e565b6002556108b2336001546001600160a01b0316908761148d565b60405185815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a25050505050565b6000546001600160a01b031633146109485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fc565b6001600160a01b03811660009081526004602052604090205460ff166109b05760405162461bcd60e51b815260206004820152601f60248201527f4561726e424c503a20746f6b656e2063616e27742062652072656d6f7665640060448201526064016103fc565b6109b981610b25565b6001600160a01b0381166000908152600460205260408120805460ff19169055600354905b81811015610aeb57826001600160a01b031660038281548110610a0357610a036118fc565b6000918252602090912001546001600160a01b031603610ad9576003610a2a600184611941565b81548110610a3a57610a3a6118fc565b600091825260209091200154600380546001600160a01b039092169183908110610a6657610a666118fc565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506003805480610aa557610aa5611954565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff19169055019055610aeb565b80610ae381611928565b9150506109de565b506040516001600160a01b03831681527f66257bcef574219c04f7c05f7a1c78d599da10491294c92a5805c48b4cdf50099060200161069e565b6001600160a01b03811660009081526004602052604090205460ff16610b8d5760405162461bcd60e51b815260206004820152601b60248201527f4561726e424c503a2077726f6e672072657761726420746f6b656e000000000060448201526064016103fc565b6002546040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610bd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfb919061196a565b6001549091506000906001600160a01b03858116911614610c1c5781610c26565b610c26828461131e565b6001600160a01b038516600090815260056020526040902054909150811480610c4d575082155b15610c585750505050565b6001600160a01b038416600090815260056020526040812054610c7c90839061131e565b9050610cb9610c9a856107cc600a548561133190919063ffffffff16565b6001600160a01b0387166000908152600960205260409020549061153b565b6001600160a01b03909516600090815260096020908152604080832097909755600590529490942055505050565b6000546001600160a01b03163314610d415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fc565b610d4b6000611547565b565b60038181548110610d5d57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03811660009081526004602052604081205460ff16610ddf5760405162461bcd60e51b815260206004820152601b60248201527f4561726e424c503a2077726f6e672072657761726420746f6b656e000000000060448201526064016103fc565b6001600160a01b038381166000908152600b6020908152604080832060025494871680855260099093528184205491516370a0823160e01b81523060048201529094939192906370a0823190602401602060405180830381865afa158015610e4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6f919061196a565b6001549091506000906001600160a01b03888116911614610e905781610e9a565b610e9a828561131e565b6001600160a01b0388166000908152600560205260409020549091508114801590610ec457508315155b15610f16576001600160a01b038716600090815260056020526040812054610eed90839061131e565b9050610f12610f0b866107cc600a548561133190919063ffffffff16565b859061153b565b9350505b6001600160a01b0387166000908152600186016020526040902054600a548654610f4992916107d2916107cc9088611331565b955050505050505b92915050565b336000908152600b60205260408120600854600754919291610f7f91906107cc908690611331565b90506000610f8d848361131e565b83549091506000610f9e828461153b565b80865560035490915060005b818110156110de57600060038281548110610fc757610fc76118fc565b6000918252602090912001546001600160a01b03169050610fe781610b25565b6001600160a01b0381166000908152600189016020908152604080832054600a54600990935292205461102091906107cc908890611331565b6001600160a01b038316600090815260018b01602052604090205585156110c957600a546001600160a01b03831660009081526009602052604081205490916110749184916107d2916107cc908c90611331565b905080156110c757611086833361082d565b6040518181526001600160a01b0384169033907f7e77f685b38c861064cb08f2776eb5dfd3c82f652ed9f21221b8c53b75628e519060200160405180910390a35b505b505080806110d690611928565b915050610faa565b506002546110ec908561153b565b60025561110d336006546001546001600160a01b03908116929116886115a4565b611125336001546001600160a01b03169030876115a4565b604080518581526020810187905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15910160405180910390a250505050505050565b336000908152600b60205260408120805482825560035491929091905b818110156111da576000600382815481106111a3576111a36118fc565b60009182526020808320909101546001600160a01b03168252600187019052604081205550806111d281611928565b915050611186565b506002546111e8908361131e565b600255611202336001546001600160a01b0316908461148d565b60405182815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a2505050565b6000546001600160a01b031633146112965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fc565b6001600160a01b0381166113125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103fc565b61131b81611547565b50565b600061132a8284611941565b9392505050565b600061132a8284611983565b600061132a828461199a565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015611390573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b4919061196a565b6001549091506000906001600160a01b038681169116146113d557816113e3565b6002546113e390839061131e565b90508083111561143c576001600160a01b038516600090815260056020526040902054611410908261131e565b6001600160a01b03861660008181526005602052604090209190915561143790858361148d565b611486565b6001600160a01b03851660009081526005602052604090205461145f908461131e565b6001600160a01b03861660008181526005602052604090209190915561148690858561148d565b5050505050565b6040516001600160a01b0383166024820152604481018290526115369084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526115fb565b505050565b600061132a82846119bc565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526115f59085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016114d2565b50505050565b6000611650826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116e09092919063ffffffff16565b805190915015611536578080602001905181019061166e91906119cf565b6115365760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103fc565b60606116ef84846000856116f7565b949350505050565b60608247101561176f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103fc565b6001600160a01b0385163b6117c65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103fc565b600080866001600160a01b031685876040516117e29190611a15565b60006040518083038185875af1925050503d806000811461181f576040519150601f19603f3d011682016040523d82523d6000602084013e611824565b606091505b509150915061183482828661183f565b979650505050505050565b6060831561184e57508161132a565b82511561185e5782518084602001fd5b8160405162461bcd60e51b81526004016103fc9190611a31565b6001600160a01b038116811461131b57600080fd5b60006020828403121561189f57600080fd5b813561132a81611878565b6000602082840312156118bc57600080fd5b5035919050565b600080604083850312156118d657600080fd5b82356118e181611878565b915060208301356118f181611878565b809150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161193a5761193a611912565b5060010190565b81810381811115610f5157610f51611912565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561197c57600080fd5b5051919050565b8082028115828204841417610f5157610f51611912565b6000826119b757634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610f5157610f51611912565b6000602082840312156119e157600080fd5b8151801515811461132a57600080fd5b60005b83811015611a0c5781810151838201526020016119f4565b50506000910152565b60008251611a278184602087016119f1565b9190910192915050565b6020815260008251806020840152611a508160408501602087016119f1565b601f01601f1916919091016040019291505056fea264697066735822122099be2951961f3b9fac2c3f9a622b52304bfb6b3aebd0b3e1bacbe3cb6e01f0d264736f6c63430008130033000000000000000000000000acc15dc74880c9944775448304b263d191c6077f0000000000000000000000000e6580f2f84c8191d36043fb340ad9c0982dde920000000000000000000000000a68f81fe8c23cf19fd0f90be3734f68ff2ef4510000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018d5760003560e01c80637bb7bed1116100e3578063bf199e621161008c578063db2e21bc11610066578063db2e21bc14610335578063f2801fe71461033d578063f2fde38b1461039357600080fd5b8063bf199e6214610311578063c415b95c14610319578063cc1252ae1461032c57600080fd5b8063a610708a116100bd578063a610708a146102c2578063b5fd73f8146102cb578063b6b55f25146102fe57600080fd5b80637bb7bed11461028b5780638da5cb5b1461029e5780639ced7e76146102af57600080fd5b80633c97d5ae116101455780635fc0d9e01161011f5780635fc0d9e014610250578063632447c914610270578063715018a61461028357600080fd5b80633c97d5ae146102145780633d509c971461021d5780635dcea4d41461023057600080fd5b80632052eb77116101765780632052eb77146101d75780632d76e578146101ea5780632e1a7d4d1461020157600080fd5b80631266b1b9146101925780631c03e6cc146101c2575b600080fd5b6001546101a5906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101d56101d036600461188d565b6103a6565b005b6101d56101e53660046118aa565b61058c565b6101f360025481565b6040519081526020016101b9565b6101d561020f3660046118aa565b6106aa565b6101f3600a5481565b6101d561022b36600461188d565b6108ee565b6101f361023e36600461188d565b60096020526000908152604090205481565b6101f361025e36600461188d565b60056020526000908152604090205481565b6101d561027e36600461188d565b610b25565b6101d5610ce7565b6101a56102993660046118aa565b610d4d565b6000546001600160a01b03166101a5565b6101f36102bd3660046118c3565b610d77565b6101f360085481565b6102ee6102d936600461188d565b60046020526000908152604090205460ff1681565b60405190151581526020016101b9565b6101d561030c3660046118aa565b610f57565b6003546101f3565b6006546101a5906001600160a01b031681565b6101f360075481565b6101d5611169565b61037e61034b3660046118c3565b6001600160a01b038083166000908152600b60209081526040808320805494861684526001019091529020549250929050565b604080519283526020830191909152016101b9565b6101d56103a136600461188d565b61123c565b6000546001600160a01b031633146104055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811660009081526004602052604090205460ff1615801561043657506001600160a01b03811615155b6104825760405162461bcd60e51b815260206004820152601d60248201527f4561726e424c503a20746f6b656e2063616e277420626520616464656400000060448201526064016103fc565b6003546019116104d45760405162461bcd60e51b815260206004820152601e60248201527f4561726e424c503a206c697374206f6620746f6b656e20746f6f20626967000060448201526064016103fc565b6003805460018082019092557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091556000908152600460205260409020805460ff1916909117905561054d81610b25565b6040516001600160a01b03821681527ff3e4c2c64e71e6ba2eaab9a599bced62f9eb91d2cda610bf41aa8c80ff2cf8269060200160405180910390a150565b6000546001600160a01b031633146105e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fc565b6706f05b59d3b200008111156106645760405162461bcd60e51b815260206004820152602e60248201527f4561726e424c503a206465706f736974206665652063616e277420626520677260448201527f6561746572207468616e2035302500000000000000000000000000000000000060648201526084016103fc565b600780549082905560408051838152602081018390527f6be5411ea11f30380402ca68832d060d744cbc5f62d2344495c10256ba93904a91015b60405180910390a15050565b336000908152600b602052604090208054808311156107315760405162461bcd60e51b815260206004820152602860248201527f4561726e424c503a20776974686472617720616d6f756e74206578636565647360448201527f2062616c616e636500000000000000000000000000000000000000000000000060648201526084016103fc565b8154600090610740908561131e565b808455600354909150821561088b5760005b818110156108895760006003828154811061076f5761076f6118fc565b6000918252602090912001546001600160a01b0316905061078f81610b25565b6001600160a01b0381166000908152600187016020908152604080832054600a546009909352908320546107d8926107d2916107cc908b90611331565b9061133d565b9061131e565b600a546001600160a01b038416600090815260096020526040902054919250610806916107cc908890611331565b6001600160a01b038316600090815260018901602052604090205580156108745761083382335b83611349565b6040518181526001600160a01b0383169033907f7e77f685b38c861064cb08f2776eb5dfd3c82f652ed9f21221b8c53b75628e519060200160405180910390a35b5050808061088190611928565b915050610752565b505b600254610898908661131e565b6002556108b2336001546001600160a01b0316908761148d565b60405185815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a25050505050565b6000546001600160a01b031633146109485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fc565b6001600160a01b03811660009081526004602052604090205460ff166109b05760405162461bcd60e51b815260206004820152601f60248201527f4561726e424c503a20746f6b656e2063616e27742062652072656d6f7665640060448201526064016103fc565b6109b981610b25565b6001600160a01b0381166000908152600460205260408120805460ff19169055600354905b81811015610aeb57826001600160a01b031660038281548110610a0357610a036118fc565b6000918252602090912001546001600160a01b031603610ad9576003610a2a600184611941565b81548110610a3a57610a3a6118fc565b600091825260209091200154600380546001600160a01b039092169183908110610a6657610a666118fc565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506003805480610aa557610aa5611954565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff19169055019055610aeb565b80610ae381611928565b9150506109de565b506040516001600160a01b03831681527f66257bcef574219c04f7c05f7a1c78d599da10491294c92a5805c48b4cdf50099060200161069e565b6001600160a01b03811660009081526004602052604090205460ff16610b8d5760405162461bcd60e51b815260206004820152601b60248201527f4561726e424c503a2077726f6e672072657761726420746f6b656e000000000060448201526064016103fc565b6002546040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610bd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfb919061196a565b6001549091506000906001600160a01b03858116911614610c1c5781610c26565b610c26828461131e565b6001600160a01b038516600090815260056020526040902054909150811480610c4d575082155b15610c585750505050565b6001600160a01b038416600090815260056020526040812054610c7c90839061131e565b9050610cb9610c9a856107cc600a548561133190919063ffffffff16565b6001600160a01b0387166000908152600960205260409020549061153b565b6001600160a01b03909516600090815260096020908152604080832097909755600590529490942055505050565b6000546001600160a01b03163314610d415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fc565b610d4b6000611547565b565b60038181548110610d5d57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03811660009081526004602052604081205460ff16610ddf5760405162461bcd60e51b815260206004820152601b60248201527f4561726e424c503a2077726f6e672072657761726420746f6b656e000000000060448201526064016103fc565b6001600160a01b038381166000908152600b6020908152604080832060025494871680855260099093528184205491516370a0823160e01b81523060048201529094939192906370a0823190602401602060405180830381865afa158015610e4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6f919061196a565b6001549091506000906001600160a01b03888116911614610e905781610e9a565b610e9a828561131e565b6001600160a01b0388166000908152600560205260409020549091508114801590610ec457508315155b15610f16576001600160a01b038716600090815260056020526040812054610eed90839061131e565b9050610f12610f0b866107cc600a548561133190919063ffffffff16565b859061153b565b9350505b6001600160a01b0387166000908152600186016020526040902054600a548654610f4992916107d2916107cc9088611331565b955050505050505b92915050565b336000908152600b60205260408120600854600754919291610f7f91906107cc908690611331565b90506000610f8d848361131e565b83549091506000610f9e828461153b565b80865560035490915060005b818110156110de57600060038281548110610fc757610fc76118fc565b6000918252602090912001546001600160a01b03169050610fe781610b25565b6001600160a01b0381166000908152600189016020908152604080832054600a54600990935292205461102091906107cc908890611331565b6001600160a01b038316600090815260018b01602052604090205585156110c957600a546001600160a01b03831660009081526009602052604081205490916110749184916107d2916107cc908c90611331565b905080156110c757611086833361082d565b6040518181526001600160a01b0384169033907f7e77f685b38c861064cb08f2776eb5dfd3c82f652ed9f21221b8c53b75628e519060200160405180910390a35b505b505080806110d690611928565b915050610faa565b506002546110ec908561153b565b60025561110d336006546001546001600160a01b03908116929116886115a4565b611125336001546001600160a01b03169030876115a4565b604080518581526020810187905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15910160405180910390a250505050505050565b336000908152600b60205260408120805482825560035491929091905b818110156111da576000600382815481106111a3576111a36118fc565b60009182526020808320909101546001600160a01b03168252600187019052604081205550806111d281611928565b915050611186565b506002546111e8908361131e565b600255611202336001546001600160a01b0316908461148d565b60405182815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a2505050565b6000546001600160a01b031633146112965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fc565b6001600160a01b0381166113125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103fc565b61131b81611547565b50565b600061132a8284611941565b9392505050565b600061132a8284611983565b600061132a828461199a565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015611390573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b4919061196a565b6001549091506000906001600160a01b038681169116146113d557816113e3565b6002546113e390839061131e565b90508083111561143c576001600160a01b038516600090815260056020526040902054611410908261131e565b6001600160a01b03861660008181526005602052604090209190915561143790858361148d565b611486565b6001600160a01b03851660009081526005602052604090205461145f908461131e565b6001600160a01b03861660008181526005602052604090209190915561148690858561148d565b5050505050565b6040516001600160a01b0383166024820152604481018290526115369084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526115fb565b505050565b600061132a82846119bc565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526115f59085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016114d2565b50505050565b6000611650826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116e09092919063ffffffff16565b805190915015611536578080602001905181019061166e91906119cf565b6115365760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103fc565b60606116ef84846000856116f7565b949350505050565b60608247101561176f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103fc565b6001600160a01b0385163b6117c65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103fc565b600080866001600160a01b031685876040516117e29190611a15565b60006040518083038185875af1925050503d806000811461181f576040519150601f19603f3d011682016040523d82523d6000602084013e611824565b606091505b509150915061183482828661183f565b979650505050505050565b6060831561184e57508161132a565b82511561185e5782518084602001fd5b8160405162461bcd60e51b81526004016103fc9190611a31565b6001600160a01b038116811461131b57600080fd5b60006020828403121561189f57600080fd5b813561132a81611878565b6000602082840312156118bc57600080fd5b5035919050565b600080604083850312156118d657600080fd5b82356118e181611878565b915060208301356118f181611878565b809150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161193a5761193a611912565b5060010190565b81810381811115610f5157610f51611912565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561197c57600080fd5b5051919050565b8082028115828204841417610f5157610f51611912565b6000826119b757634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610f5157610f51611912565b6000602082840312156119e157600080fd5b8151801515811461132a57600080fd5b60005b83811015611a0c5781810151838201526020016119f4565b50506000910152565b60008251611a278184602087016119f1565b9190910192915050565b6020815260008251806020840152611a508160408501602087016119f1565b601f01601f1916919091016040019291505056fea264697066735822122099be2951961f3b9fac2c3f9a622b52304bfb6b3aebd0b3e1bacbe3cb6e01f0d264736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000acc15dc74880c9944775448304b263d191c6077f0000000000000000000000000e6580f2f84c8191d36043fb340ad9c0982dde920000000000000000000000000a68f81fe8c23cf19fd0f90be3734f68ff2ef4510000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _rewardToken (address): 0xAcc15dC74880C9944775448304B263D191c6077F
Arg [1] : _blp (address): 0x0e6580F2F84C8191d36043FB340AD9c0982DDe92
Arg [2] : _feeCollector (address): 0x0a68f81Fe8c23cF19FD0f90be3734F68FF2EF451
Arg [3] : _depositFeePercent (uint256): 0
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000acc15dc74880c9944775448304b263d191c6077f
Arg [1] : 0000000000000000000000000e6580f2f84c8191d36043fb340ad9c0982dde92
Arg [2] : 0000000000000000000000000a68f81fe8c23cf19fd0f90be3734f68ff2ef451
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$189.45
Net Worth in GLMR
Token Allocations
WGLMR
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| GLMR | 100.00% | $0.020633 | 9,181.9143 | $189.45 |
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.