Source Code
Latest 25 from a total of 12,910 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim All Profit... | 58129344 | 587 days ago | IN | 0 POL | 0.00372423 | ||||
| Claim All Profit... | 56011242 | 643 days ago | IN | 0 POL | 0.01369083 | ||||
| Add Claimable To... | 55942308 | 644 days ago | IN | 0 POL | 0.00213767 | ||||
| Claim All Profit... | 53994919 | 695 days ago | IN | 0 POL | 0.00225547 | ||||
| Claim All Profit... | 45840003 | 903 days ago | IN | 0 POL | 0.00399285 | ||||
| Unstake | 40984213 | 1028 days ago | IN | 0 POL | 0.01088311 | ||||
| Claim All Profit... | 40984136 | 1028 days ago | IN | 0 POL | 0.019907 | ||||
| Unstake | 40034772 | 1053 days ago | IN | 0 POL | 0.00977364 | ||||
| Claim All Profit... | 38592778 | 1091 days ago | IN | 0 POL | 0.01214085 | ||||
| Unstake | 38592756 | 1091 days ago | IN | 0 POL | 0.0120928 | ||||
| Unstake | 35902278 | 1157 days ago | IN | 0 POL | 0.00280078 | ||||
| Claim All Profit... | 35337134 | 1171 days ago | IN | 0 POL | 0.01981916 | ||||
| Unstake | 32729443 | 1235 days ago | IN | 0 POL | 0.00280077 | ||||
| Claim All Profit... | 32729382 | 1235 days ago | IN | 0 POL | 0.00403059 | ||||
| Claim All Profit... | 30802825 | 1285 days ago | IN | 0 POL | 0.00300243 | ||||
| Unstake | 30365012 | 1297 days ago | IN | 0 POL | 0.00399771 | ||||
| Unstake | 29001338 | 1332 days ago | IN | 0 POL | 0.00229539 | ||||
| Claim All Profit... | 29001325 | 1332 days ago | IN | 0 POL | 0.00425134 | ||||
| Claim All Profit... | 28922440 | 1334 days ago | IN | 0 POL | 0.00325524 | ||||
| Claim All Profit... | 28122706 | 1353 days ago | IN | 0 POL | 0.03568916 | ||||
| Unstake | 28122184 | 1353 days ago | IN | 0 POL | 0.13662621 | ||||
| Unstake | 27426214 | 1371 days ago | IN | 0 POL | 0.0023844 | ||||
| Claim All Profit... | 27426177 | 1371 days ago | IN | 0 POL | 0.00441643 | ||||
| Unstake | 26850561 | 1386 days ago | IN | 0 POL | 0.00281817 | ||||
| Claim All Profit... | 26785171 | 1387 days ago | IN | 0 POL | 0.02855932 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
StakingV2
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.7.6;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IStakingV2.sol";
import "./../v1/interfaces/IFeesCollector.sol";
import "./../v1/interfaces/IWETH.sol";
contract StakingV2 is IStakingV2, IFeesCollector, Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
uint256 public constant PRECISION_DECIMALS = 1e18;
uint256 public totalStaked;
IERC20[] private claimableTokens;
IERC20[] private otherTokens;
mapping(IERC20 => bool) private claimableTokensSupported;
mapping(IERC20 => bool) private otherTokensSupported;
mapping(IERC20 => uint256) public totalProfits;
mapping(address => mapping(IERC20 => uint256)) private lastProfits;
mapping(address => mapping(IERC20 => uint256)) private savedProfits;
mapping(address => uint256) public stakes;
mapping(address => uint256) public stakeTimestamps;
IERC20 private immutable goviToken;
IWETH private immutable wethToken;
address public immutable fallbackRecipient;
ISwapper private swapper;
uint256 public stakeLockupTime = 1 hours;
uint256 public creationTimestamp;
constructor(IERC20 _goviToken, IWETH _wethToken, ISwapper _swapper) {
goviToken = _goviToken;
wethToken = _wethToken;
swapper = _swapper;
fallbackRecipient = msg.sender;
creationTimestamp = block.timestamp;
}
receive() external payable override {
}
function sendProfit(uint256 _amount, IERC20 _token) external override {
bool isClaimableToken = claimableTokensSupported[_token];
bool isOtherToken = otherTokensSupported[_token];
require(isClaimableToken || isOtherToken, "Token not supported");
if (totalStaked > 0) {
if (isClaimableToken) {
addProfit(_amount, _token);
}
_token.safeTransferFrom(msg.sender, address(this), _amount);
} else {
_token.safeTransferFrom(msg.sender, fallbackRecipient, _amount);
}
}
function stake(uint256 _amount) external override {
require(_amount > 0, "Amount must be positive");
if (stakes[msg.sender] > 0) {
saveProfit(claimableTokens, msg.sender, stakes[msg.sender]);
}
stakes[msg.sender] = stakes[msg.sender].add(_amount);
stakeTimestamps[msg.sender] = block.timestamp;
totalStaked = totalStaked.add(_amount);
for (uint256 tokenIndex = 0; tokenIndex < claimableTokens.length; tokenIndex = tokenIndex.add(1)) {
IERC20 token = claimableTokens[tokenIndex];
lastProfits[msg.sender][token] = totalProfits[token];
}
goviToken.safeTransferFrom(msg.sender, address(this), _amount);
}
function unstake(uint256 _amount) external override {
require(_amount > 0, "Amount must be positive");
require(_amount <= stakes[msg.sender], "Not enough staked");
require(stakeTimestamps[msg.sender].add(stakeLockupTime) <= block.timestamp, "Funds locked");
totalStaked = totalStaked.sub(_amount);
stakes[msg.sender] = stakes[msg.sender].sub(_amount);
saveProfit(claimableTokens, msg.sender, _amount);
goviToken.safeTransfer(msg.sender, _amount);
}
function claimProfit(IERC20 token) external override returns (uint256 profit) {
_saveProfit(token, msg.sender, stakes[msg.sender]);
profit = _claimProfit(token);
require(profit > 0, "No profit for token");
}
function claimAllProfits() external override returns (uint256[] memory) {
uint256[] memory profits = new uint256[](claimableTokens.length);
saveProfit(claimableTokens, msg.sender, stakes[msg.sender]);
uint256 totalProfit = 0;
for (uint256 tokenIndex = 0; tokenIndex < claimableTokens.length; tokenIndex++) {
uint256 currProfit = _claimProfit(claimableTokens[tokenIndex]);
profits[tokenIndex] = currProfit;
totalProfit = totalProfit.add(currProfit);
}
require(totalProfit > 0, "No profit");
return profits;
}
function addClaimableToken(IERC20 _newClaimableToken) external override onlyOwner {
_addToken(claimableTokens, claimableTokensSupported, _newClaimableToken);
}
function removeClaimableToken(IERC20 _removedClaimableToken) external override onlyOwner {
_removeToken(claimableTokens, claimableTokensSupported, _removedClaimableToken);
}
function addToken(IERC20 _newToken) external override onlyOwner {
_addToken(otherTokens, otherTokensSupported, _newToken);
_newToken.safeApprove(address(swapper), uint256(-1));
swapper.tokenAdded(_newToken);
}
function removeToken(IERC20 _removedToken) external override onlyOwner {
_removeToken(otherTokens, otherTokensSupported, _removedToken);
_removedToken.safeApprove(address(swapper), 0);
swapper.tokenRemoved(_removedToken);
}
function convertFunds() external override {
bool didConvert = false;
for (uint256 tokenIndex = 0; tokenIndex < otherTokens.length; tokenIndex++) {
IERC20 token = otherTokens[tokenIndex];
uint256 balance = token.balanceOf(address(this));
if (balance > 0) {
didConvert = true;
uint256 amountSwapped = swapper.swapToWETH(token, token.balanceOf(address(this)));
addProfit(amountSwapped, IERC20(address(wethToken)));
}
}
require(didConvert, "No funds to convert");
}
function setSwapper(ISwapper _newSwapper) external override onlyOwner {
for (uint256 tokenIndex = 0; tokenIndex < otherTokens.length; tokenIndex++) {
otherTokens[tokenIndex].safeApprove(address(swapper), 0);
}
swapper = _newSwapper;
for (uint256 tokenIndex = 0; tokenIndex < otherTokens.length; tokenIndex++) {
otherTokens[tokenIndex].safeApprove(address(_newSwapper), uint256(-1));
}
}
function setStakingLockupTime(uint256 _newLockupTime) external override onlyOwner {
stakeLockupTime = _newLockupTime;
}
function profitOf(address _account, IERC20 _token) external view override returns (uint256) {
return savedProfits[_account][_token].add(unsavedProfit(_account, stakes[_account], _token));
}
function getClaimableTokens() external view override returns (IERC20[] memory) {
return claimableTokens;
}
function getOtherTokens() external view override returns (IERC20[] memory) {
return otherTokens;
}
function _claimProfit(IERC20 _token) private returns (uint256 profit) {
require(claimableTokensSupported[_token], "Token not supported");
profit = savedProfits[msg.sender][_token];
if (profit > 0) {
savedProfits[msg.sender][_token] = 0;
lastProfits[msg.sender][_token] = totalProfits[_token];
if (address(_token) == address(wethToken)) {
wethToken.withdraw(profit);
msg.sender.transfer(profit);
} else {
_token.safeTransfer(msg.sender, profit);
}
}
}
function _addToken(IERC20[] storage _tokens, mapping(IERC20 => bool) storage _supportedTokens, IERC20 _newToken) private {
require(!_supportedTokens[_newToken], "Token already added");
_supportedTokens[_newToken] = true;
_tokens.push(_newToken);
}
function _removeToken(IERC20[] storage _tokens, mapping(IERC20 => bool) storage _supportedTokens, IERC20 _removedTokenAddress) private {
require(_supportedTokens[_removedTokenAddress], "Token not supported");
bool isFound = false;
for (uint256 tokenIndex = 0; tokenIndex < _tokens.length; tokenIndex = tokenIndex.add(1)) {
if (_tokens[tokenIndex] == _removedTokenAddress) {
isFound = true;
_tokens[tokenIndex] = _tokens[_tokens.length.sub(1)];
_tokens.pop();
break;
}
}
require(isFound, "Token not found");
_supportedTokens[_removedTokenAddress] = false;
}
function addProfit(uint256 _amount, IERC20 _token) private {
totalProfits[_token] = totalProfits[_token].add(_amount.mul(PRECISION_DECIMALS).div(totalStaked));
}
function saveProfit(IERC20[] storage _claimableTokens, address _account, uint256 _amount) private {
for (uint256 tokenIndex = 0; tokenIndex < _claimableTokens.length; tokenIndex = tokenIndex.add(1)) {
IERC20 token = _claimableTokens[tokenIndex];
_saveProfit(token, _account, _amount);
}
}
function _saveProfit(IERC20 _token, address _account, uint256 _amount) private {
savedProfits[_account][_token] =
savedProfits[_account][_token].add(unsavedProfit(_account, _amount, _token));
}
function unsavedProfit(address _account, uint256 _amount, IERC20 _token) private view returns (uint256) {
return totalProfits[_token].sub(lastProfits[_account][_token]).mul(_amount).div(PRECISION_DECIMALS);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b > a) return (false, 0);
return (true, a - b);
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a / b);
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
return a - b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line max-line-length
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).add(value);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) { // Return data is optional
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IFeesCollector {
function sendProfit(uint256 amount, IERC20 token) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
interface IWETH {
function deposit() external payable;
function withdraw(uint256) external;
}// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./ISwapper.sol";
interface IStakingV2 {
function stake(uint256 amount) external;
function unstake(uint256 amount) external;
function claimProfit(IERC20 token) external returns (uint256);
function claimAllProfits() external returns (uint256[] memory profits);
function addClaimableToken(IERC20 newClaimableToken) external;
function removeClaimableToken(IERC20 removedClaimableToken) external;
function addToken(IERC20 newToken) external;
function removeToken(IERC20 removedToken) external;
function convertFunds() external;
function setSwapper(ISwapper newSwapper) external;
function setStakingLockupTime(uint256 newLockupTime) external;
function profitOf(address account, IERC20 token) external view returns (uint256);
function getClaimableTokens() external view returns (IERC20[] memory);
function getOtherTokens() external view returns (IERC20[] memory);
receive() external payable;
}// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface ISwapper {
function tokenAdded(IERC20 addedToken) external;
function tokenRemoved(IERC20 removedToken) external;
function swapToWETH(IERC20 token, uint256 tokenAmount) external returns (uint256 wethAmount);
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 100
},
"evmVersion": "istanbul",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_goviToken","type":"address"},{"internalType":"contract IWETH","name":"_wethToken","type":"address"},{"internalType":"contract ISwapper","name":"_swapper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"PRECISION_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_newClaimableToken","type":"address"}],"name":"addClaimableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_newToken","type":"address"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAllProfits","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"claimProfit","outputs":[{"internalType":"uint256","name":"profit","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"convertFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creationTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fallbackRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimableTokens","outputs":[{"internalType":"contract IERC20[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOtherTokens","outputs":[{"internalType":"contract IERC20[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"profitOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_removedClaimableToken","type":"address"}],"name":"removeClaimableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_removedToken","type":"address"}],"name":"removeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"sendProfit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLockupTime","type":"uint256"}],"name":"setStakingLockupTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISwapper","name":"_newSwapper","type":"address"}],"name":"setSwapper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeLockupTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakeTimestamps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"totalProfits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60e0604052610e10600c5534801561001657600080fd5b5060405161225a38038061225a8339818101604052606081101561003957600080fd5b508051602082015160409092015190919060006100546100e9565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350606092831b6001600160601b031990811660805291831b90911660a052600b80546001600160a01b0319166001600160a01b0390921691909117905533901b60c05242600d556100ed565b3390565b60805160601c60a05160601c60c05160601c612124610136600039806108805280610e80525080610a5152806116f3528061171d525080610739528061110752506121246000f3fe6080604052600436106101655760003560e01c8063887a074b116100c1578063b33110861161007a578063b3311086146104a8578063b51c1165146104bd578063c03daea8146104f0578063c0ab44f61461051a578063c194ee2d1461054d578063d48bfca714610562578063f2fde38b146105955761016c565b8063887a074b146103b55780638b0f154d146103ca5780638da5cb5b1461040357806399f853a5146104185780639c82f2a41461044b578063a694fc3a1461047e5761016c565b806356b1e8121161011e57806356b1e812146102c85780635fa7b584146102fb57806360ebfee61461032e5780636950e93a146103435780636a3d1d2c14610358578063715018a61461038b578063817b1cd2146103a05761016c565b806316934fc4146101715780632e17de78146101b6578063325f2355146101e2578063452f3ce0146102475780634dbeeb7a14610278578063548ab23c1461028d5761016c565b3661016c57005b600080fd5b34801561017d57600080fd5b506101a46004803603602081101561019457600080fd5b50356001600160a01b03166105c8565b60408051918252519081900360200190f35b3480156101c257600080fd5b506101e0600480360360208110156101d957600080fd5b50356105da565b005b3480156101ee57600080fd5b506101f7610763565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561023357818101518382015260200161021b565b505050509050019250505060405180910390f35b34801561025357600080fd5b5061025c61087e565b604080516001600160a01b039092168252519081900360200190f35b34801561028457600080fd5b506101e06108a2565b34801561029957600080fd5b506101a4600480360360408110156102b057600080fd5b506001600160a01b0381358116916020013516610aca565b3480156102d457600080fd5b506101a4600480360360208110156102eb57600080fd5b50356001600160a01b0316610b28565b34801561030757600080fd5b506101e06004803603602081101561031e57600080fd5b50356001600160a01b0316610b3a565b34801561033a57600080fd5b506101a4610c2d565b34801561034f57600080fd5b506101f7610c39565b34801561036457600080fd5b506101e06004803603602081101561037b57600080fd5b50356001600160a01b0316610c9b565b34801561039757600080fd5b506101e0610d0a565b3480156103ac57600080fd5b506101a4610db6565b3480156103c157600080fd5b506101a4610dbc565b3480156103d657600080fd5b506101e0600480360360408110156103ed57600080fd5b50803590602001356001600160a01b0316610dc2565b34801561040f57600080fd5b5061025c610eab565b34801561042457600080fd5b506101a46004803603602081101561043b57600080fd5b50356001600160a01b0316610eba565b34801561045757600080fd5b506101e06004803603602081101561046e57600080fd5b50356001600160a01b0316610ecc565b34801561048a57600080fd5b506101e0600480360360208110156104a157600080fd5b5035610fca565b3480156104b457600080fd5b506101a461112f565b3480156104c957600080fd5b506101e0600480360360208110156104e057600080fd5b50356001600160a01b0316611135565b3480156104fc57600080fd5b506101e06004803603602081101561051357600080fd5b50356111a4565b34801561052657600080fd5b506101a46004803603602081101561053d57600080fd5b50356001600160a01b031661120b565b34801561055957600080fd5b506101f7611284565b34801561056e57600080fd5b506101e06004803603602081101561058557600080fd5b50356001600160a01b03166112e4565b3480156105a157600080fd5b506101e0600480360360208110156105b857600080fd5b50356001600160a01b03166113bd565b60096020526000908152604090205481565b60008111610629576040805162461bcd60e51b8152602060048201526017602482015276416d6f756e74206d75737420626520706f73697469766560481b604482015290519081900360640190fd5b33600090815260096020526040902054811115610681576040805162461bcd60e51b8152602060048201526011602482015270139bdd08195b9bdd59da081cdd185ad959607a1b604482015290519081900360640190fd5b600c54336000908152600a602052604090205442916106a091906114bf565b11156106e2576040805162461bcd60e51b815260206004820152600c60248201526b119d5b991cc81b1bd8dad95960a21b604482015290519081900360640190fd5b6001546106ef9082611519565b6001553360009081526009602052604090205461070c9082611519565b3360008181526009602052604090209190915561072c9060029083611576565b6107606001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836115c5565b50565b60025460609060009067ffffffffffffffff8111801561078257600080fd5b506040519080825280602002602001820160405280156107ac578160200160208202803683370190505b50336000818152600960205260409020549192506107cd9160029190611576565b6000805b600254811015610836576000610807600283815481106107ed57fe5b6000918252602090912001546001600160a01b031661161c565b90508084838151811061081657fe5b602090810291909101015261082b83826114bf565b9250506001016107d1565b5060008111610878576040805162461bcd60e51b8152602060048201526009602482015268139bc81c1c9bd99a5d60ba1b604482015290519081900360640190fd5b50905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000805b600354811015610a81576000600382815481106108bf57fe5b6000918252602080832090910154604080516370a0823160e01b815230600482015290516001600160a01b03909216945084926370a0823192602480840193829003018186803b15801561091257600080fd5b505afa158015610926573d6000803e3d6000fd5b505050506040513d602081101561093c57600080fd5b505190508015610a7757600b54604080516370a0823160e01b81523060048201529051600196506000926001600160a01b03908116926326af79819287928316916370a08231916024808301926020929190829003018186803b1580156109a257600080fd5b505afa1580156109b6573d6000803e3d6000fd5b505050506040513d60208110156109cc57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015610a1d57600080fd5b505af1158015610a31573d6000803e3d6000fd5b505050506040513d6020811015610a4757600080fd5b50519050610a75817f00000000000000000000000000000000000000000000000000000000000000006117e0565b505b50506001016108a6565b5080610760576040805162461bcd60e51b8152602060048201526013602482015272139bc8199d5b991cc81d1bc818dbdb9d995c9d606a1b604482015290519081900360640190fd5b6001600160a01b038216600090815260096020526040812054610b1f90610af39085908561183f565b6001600160a01b03808616600090815260086020908152604080832093881683529290522054906114bf565b90505b92915050565b60066020526000908152604090205481565b610b426118a0565b6001600160a01b0316610b53610eab565b6001600160a01b031614610b9c576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b610ba960036005836118a4565b600b54610bc4906001600160a01b0383811691166000611a65565b600b54604080516369388e2160e11b81526001600160a01b0384811660048301529151919092169163d2711c4291602480830192600092919082900301818387803b158015610c1257600080fd5b505af1158015610c26573d6000803e3d6000fd5b5050505050565b670de0b6b3a764000081565b60606003805480602002602001604051908101604052809291908181526020018280548015610c9157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610c73575b5050505050905090565b610ca36118a0565b6001600160a01b0316610cb4610eab565b6001600160a01b031614610cfd576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b6107606002600483611b78565b610d126118a0565b6001600160a01b0316610d23610eab565b6001600160a01b031614610d6c576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60015481565b600c5481565b6001600160a01b03811660009081526004602090815260408083205460059092529091205460ff91821691168180610df75750805b610e3e576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b881b9bdd081cdd5c1c1bdc9d1959606a1b604482015290519081900360640190fd5b60015415610e70578115610e5657610e5684846117e0565b610e6b6001600160a01b038416333087611c25565b610ea5565b610ea56001600160a01b038416337f000000000000000000000000000000000000000000000000000000000000000087611c25565b50505050565b6000546001600160a01b031690565b600a6020526000908152604090205481565b610ed46118a0565b6001600160a01b0316610ee5610eab565b6001600160a01b031614610f2e576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b60005b600354811015610f8157600b5460038054610f79926001600160a01b03169160009185908110610f5d57fe5b6000918252602090912001546001600160a01b03169190611a65565b600101610f31565b50600b80546001600160a01b0319166001600160a01b03831617905560005b600354811015610fc657610fbe8260001960038481548110610f5d57fe5b600101610fa0565b5050565b60008111611019576040805162461bcd60e51b8152602060048201526017602482015276416d6f756e74206d75737420626520706f73697469766560481b604482015290519081900360640190fd5b336000908152600960205260409020541561104a573360008181526009602052604090205461104a91600291611576565b3360009081526009602052604090205461106490826114bf565b33600090815260096020908152604080832093909355600a90522042905560015461108f90826114bf565b60015560005b6002548110156110f9576000600282815481106110ae57fe5b60009182526020808320909101546001600160a01b0316808352600682526040808420543385526007845281852092855291909252912055506110f28160016114bf565b9050611095565b506107606001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611c25565b600d5481565b61113d6118a0565b6001600160a01b031661114e610eab565b6001600160a01b031614611197576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b61076060026004836118a4565b6111ac6118a0565b6001600160a01b03166111bd610eab565b6001600160a01b031614611206576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b600c55565b33600081815260096020526040812054909161122991849190611c7f565b6112328261161c565b90506000811161127f576040805162461bcd60e51b8152602060048201526013602482015272273790383937b334ba103337b9103a37b5b2b760691b604482015290519081900360640190fd5b919050565b60606002805480602002602001604051908101604052809291908181526020018280548015610c91576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311610c73575050505050905090565b6112ec6118a0565b6001600160a01b03166112fd610eab565b6001600160a01b031614611346576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b6113536003600583611b78565b600b5461136f906001600160a01b038381169116600019611a65565b600b5460408051636dfeb12f60e01b81526001600160a01b03848116600483015291519190921691636dfeb12f91602480830192600092919082900301818387803b158015610c1257600080fd5b6113c56118a0565b6001600160a01b03166113d6610eab565b6001600160a01b03161461141f576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b6001600160a01b0381166114645760405162461bcd60e51b81526004018080602001828103825260268152602001806120286026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015610b1f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115611570576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60005b8354811015610ea557600084828154811061159057fe5b6000918252602090912001546001600160a01b031690506115b2818585611c7f565b506115be8160016114bf565b9050611579565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611617908490611ce7565b505050565b6001600160a01b03811660009081526004602052604081205460ff1661167f576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b881b9bdd081cdd5c1c1bdc9d1959606a1b604482015290519081900360640190fd5b503360009081526008602090815260408083206001600160a01b0385168452909152902054801561127f573360008181526008602090815260408083206001600160a01b038781168086529184528285208590556006845282852054958552600784528285208286529093529220929092557f000000000000000000000000000000000000000000000000000000000000000090911614156117cc577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561178157600080fd5b505af1158015611795573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f193505050501580156117c6573d6000803e3d6000fd5b5061127f565b61127f6001600160a01b03831633836115c5565b60015461182290611803906117fd85670de0b6b3a7640000611d98565b90611df1565b6001600160a01b038316600090815260066020526040902054906114bf565b6001600160a01b0390911660009081526006602052604090205550565b6001600160a01b038084166000908152600760209081526040808320938516835292815282822054600690915291812054909161189691670de0b6b3a7640000916117fd9187916118909190611519565b90611d98565b90505b9392505050565b3390565b6001600160a01b03811660009081526020839052604090205460ff16611907576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b881b9bdd081cdd5c1c1bdc9d1959606a1b604482015290519081900360640190fd5b6000805b84548110156119fc57826001600160a01b031685828154811061192a57fe5b6000918252602090912001546001600160a01b031614156119ea5784546001925085906119579084611519565b8154811061196157fe5b9060005260206000200160009054906101000a90046001600160a01b031685828154811061198b57fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550848054806119c357fe5b600082815260209020810160001990810180546001600160a01b03191690550190556119fc565b6119f58160016114bf565b905061190b565b5080611a41576040805162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd08199bdd5b99608a1b604482015290519081900360640190fd5b506001600160a01b0316600090815260209190915260409020805460ff1916905550565b801580611aeb575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611abd57600080fd5b505afa158015611ad1573d6000803e3d6000fd5b505050506040513d6020811015611ae757600080fd5b5051155b611b265760405162461bcd60e51b81526004018080602001828103825260368152602001806120b96036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611617908490611ce7565b6001600160a01b03811660009081526020839052604090205460ff1615611bdc576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b88185b1c9958591e481859191959606a1b604482015290519081900360640190fd5b6001600160a01b03166000818152602092835260408120805460ff19166001908117909155845490810185559381529190912090910180546001600160a01b0319169091179055565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610ea5908590611ce7565b611cb9611c8d83838661183f565b6001600160a01b03808516600090815260086020908152604080832093891683529290522054906114bf565b6001600160a01b03928316600090815260086020908152604080832096909516825294909452919092205550565b6000611d3c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e589092919063ffffffff16565b80519091501561161757808060200190516020811015611d5b57600080fd5b50516116175760405162461bcd60e51b815260040180806020018281038252602a81526020018061208f602a913960400191505060405180910390fd5b600082611da757506000610b22565b82820282848281611db457fe5b0414610b1f5760405162461bcd60e51b815260040180806020018281038252602181526020018061204e6021913960400191505060405180910390fd5b6000808211611e47576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611e5057fe5b049392505050565b6060611896848460008585611e6c85611f7d565b611ebd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611efb5780518252601f199092019160209182019101611edc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611f5d576040519150601f19603f3d011682016040523d82523d6000602084013e611f62565b606091505b5091509150611f72828286611f83565b979650505050505050565b3b151590565b60608315611f92575081611899565b825115611fa25782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fec578181015183820152602001611fd4565b50505050905090810190601f1680156120195780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220329f095318445f128675ad1272e0e3cf9af91a25e13dc6fbeed1fac0fb8db5bc64736f6c6343000706003300000000000000000000000043df9c0a1156c96cea98737b511ac89d0e2a1f460000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000003c719eeab6bdbf152be9f6d5d18afbb365dbaf1f
Deployed Bytecode
0x6080604052600436106101655760003560e01c8063887a074b116100c1578063b33110861161007a578063b3311086146104a8578063b51c1165146104bd578063c03daea8146104f0578063c0ab44f61461051a578063c194ee2d1461054d578063d48bfca714610562578063f2fde38b146105955761016c565b8063887a074b146103b55780638b0f154d146103ca5780638da5cb5b1461040357806399f853a5146104185780639c82f2a41461044b578063a694fc3a1461047e5761016c565b806356b1e8121161011e57806356b1e812146102c85780635fa7b584146102fb57806360ebfee61461032e5780636950e93a146103435780636a3d1d2c14610358578063715018a61461038b578063817b1cd2146103a05761016c565b806316934fc4146101715780632e17de78146101b6578063325f2355146101e2578063452f3ce0146102475780634dbeeb7a14610278578063548ab23c1461028d5761016c565b3661016c57005b600080fd5b34801561017d57600080fd5b506101a46004803603602081101561019457600080fd5b50356001600160a01b03166105c8565b60408051918252519081900360200190f35b3480156101c257600080fd5b506101e0600480360360208110156101d957600080fd5b50356105da565b005b3480156101ee57600080fd5b506101f7610763565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561023357818101518382015260200161021b565b505050509050019250505060405180910390f35b34801561025357600080fd5b5061025c61087e565b604080516001600160a01b039092168252519081900360200190f35b34801561028457600080fd5b506101e06108a2565b34801561029957600080fd5b506101a4600480360360408110156102b057600080fd5b506001600160a01b0381358116916020013516610aca565b3480156102d457600080fd5b506101a4600480360360208110156102eb57600080fd5b50356001600160a01b0316610b28565b34801561030757600080fd5b506101e06004803603602081101561031e57600080fd5b50356001600160a01b0316610b3a565b34801561033a57600080fd5b506101a4610c2d565b34801561034f57600080fd5b506101f7610c39565b34801561036457600080fd5b506101e06004803603602081101561037b57600080fd5b50356001600160a01b0316610c9b565b34801561039757600080fd5b506101e0610d0a565b3480156103ac57600080fd5b506101a4610db6565b3480156103c157600080fd5b506101a4610dbc565b3480156103d657600080fd5b506101e0600480360360408110156103ed57600080fd5b50803590602001356001600160a01b0316610dc2565b34801561040f57600080fd5b5061025c610eab565b34801561042457600080fd5b506101a46004803603602081101561043b57600080fd5b50356001600160a01b0316610eba565b34801561045757600080fd5b506101e06004803603602081101561046e57600080fd5b50356001600160a01b0316610ecc565b34801561048a57600080fd5b506101e0600480360360208110156104a157600080fd5b5035610fca565b3480156104b457600080fd5b506101a461112f565b3480156104c957600080fd5b506101e0600480360360208110156104e057600080fd5b50356001600160a01b0316611135565b3480156104fc57600080fd5b506101e06004803603602081101561051357600080fd5b50356111a4565b34801561052657600080fd5b506101a46004803603602081101561053d57600080fd5b50356001600160a01b031661120b565b34801561055957600080fd5b506101f7611284565b34801561056e57600080fd5b506101e06004803603602081101561058557600080fd5b50356001600160a01b03166112e4565b3480156105a157600080fd5b506101e0600480360360208110156105b857600080fd5b50356001600160a01b03166113bd565b60096020526000908152604090205481565b60008111610629576040805162461bcd60e51b8152602060048201526017602482015276416d6f756e74206d75737420626520706f73697469766560481b604482015290519081900360640190fd5b33600090815260096020526040902054811115610681576040805162461bcd60e51b8152602060048201526011602482015270139bdd08195b9bdd59da081cdd185ad959607a1b604482015290519081900360640190fd5b600c54336000908152600a602052604090205442916106a091906114bf565b11156106e2576040805162461bcd60e51b815260206004820152600c60248201526b119d5b991cc81b1bd8dad95960a21b604482015290519081900360640190fd5b6001546106ef9082611519565b6001553360009081526009602052604090205461070c9082611519565b3360008181526009602052604090209190915561072c9060029083611576565b6107606001600160a01b037f00000000000000000000000043df9c0a1156c96cea98737b511ac89d0e2a1f461633836115c5565b50565b60025460609060009067ffffffffffffffff8111801561078257600080fd5b506040519080825280602002602001820160405280156107ac578160200160208202803683370190505b50336000818152600960205260409020549192506107cd9160029190611576565b6000805b600254811015610836576000610807600283815481106107ed57fe5b6000918252602090912001546001600160a01b031661161c565b90508084838151811061081657fe5b602090810291909101015261082b83826114bf565b9250506001016107d1565b5060008111610878576040805162461bcd60e51b8152602060048201526009602482015268139bc81c1c9bd99a5d60ba1b604482015290519081900360640190fd5b50905090565b7f00000000000000000000000070ba42b4594ffff9e843275019fe99fbe0a9a0ff81565b6000805b600354811015610a81576000600382815481106108bf57fe5b6000918252602080832090910154604080516370a0823160e01b815230600482015290516001600160a01b03909216945084926370a0823192602480840193829003018186803b15801561091257600080fd5b505afa158015610926573d6000803e3d6000fd5b505050506040513d602081101561093c57600080fd5b505190508015610a7757600b54604080516370a0823160e01b81523060048201529051600196506000926001600160a01b03908116926326af79819287928316916370a08231916024808301926020929190829003018186803b1580156109a257600080fd5b505afa1580156109b6573d6000803e3d6000fd5b505050506040513d60208110156109cc57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015610a1d57600080fd5b505af1158015610a31573d6000803e3d6000fd5b505050506040513d6020811015610a4757600080fd5b50519050610a75817f0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12706117e0565b505b50506001016108a6565b5080610760576040805162461bcd60e51b8152602060048201526013602482015272139bc8199d5b991cc81d1bc818dbdb9d995c9d606a1b604482015290519081900360640190fd5b6001600160a01b038216600090815260096020526040812054610b1f90610af39085908561183f565b6001600160a01b03808616600090815260086020908152604080832093881683529290522054906114bf565b90505b92915050565b60066020526000908152604090205481565b610b426118a0565b6001600160a01b0316610b53610eab565b6001600160a01b031614610b9c576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b610ba960036005836118a4565b600b54610bc4906001600160a01b0383811691166000611a65565b600b54604080516369388e2160e11b81526001600160a01b0384811660048301529151919092169163d2711c4291602480830192600092919082900301818387803b158015610c1257600080fd5b505af1158015610c26573d6000803e3d6000fd5b5050505050565b670de0b6b3a764000081565b60606003805480602002602001604051908101604052809291908181526020018280548015610c9157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610c73575b5050505050905090565b610ca36118a0565b6001600160a01b0316610cb4610eab565b6001600160a01b031614610cfd576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b6107606002600483611b78565b610d126118a0565b6001600160a01b0316610d23610eab565b6001600160a01b031614610d6c576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60015481565b600c5481565b6001600160a01b03811660009081526004602090815260408083205460059092529091205460ff91821691168180610df75750805b610e3e576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b881b9bdd081cdd5c1c1bdc9d1959606a1b604482015290519081900360640190fd5b60015415610e70578115610e5657610e5684846117e0565b610e6b6001600160a01b038416333087611c25565b610ea5565b610ea56001600160a01b038416337f00000000000000000000000070ba42b4594ffff9e843275019fe99fbe0a9a0ff87611c25565b50505050565b6000546001600160a01b031690565b600a6020526000908152604090205481565b610ed46118a0565b6001600160a01b0316610ee5610eab565b6001600160a01b031614610f2e576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b60005b600354811015610f8157600b5460038054610f79926001600160a01b03169160009185908110610f5d57fe5b6000918252602090912001546001600160a01b03169190611a65565b600101610f31565b50600b80546001600160a01b0319166001600160a01b03831617905560005b600354811015610fc657610fbe8260001960038481548110610f5d57fe5b600101610fa0565b5050565b60008111611019576040805162461bcd60e51b8152602060048201526017602482015276416d6f756e74206d75737420626520706f73697469766560481b604482015290519081900360640190fd5b336000908152600960205260409020541561104a573360008181526009602052604090205461104a91600291611576565b3360009081526009602052604090205461106490826114bf565b33600090815260096020908152604080832093909355600a90522042905560015461108f90826114bf565b60015560005b6002548110156110f9576000600282815481106110ae57fe5b60009182526020808320909101546001600160a01b0316808352600682526040808420543385526007845281852092855291909252912055506110f28160016114bf565b9050611095565b506107606001600160a01b037f00000000000000000000000043df9c0a1156c96cea98737b511ac89d0e2a1f4616333084611c25565b600d5481565b61113d6118a0565b6001600160a01b031661114e610eab565b6001600160a01b031614611197576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b61076060026004836118a4565b6111ac6118a0565b6001600160a01b03166111bd610eab565b6001600160a01b031614611206576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b600c55565b33600081815260096020526040812054909161122991849190611c7f565b6112328261161c565b90506000811161127f576040805162461bcd60e51b8152602060048201526013602482015272273790383937b334ba103337b9103a37b5b2b760691b604482015290519081900360640190fd5b919050565b60606002805480602002602001604051908101604052809291908181526020018280548015610c91576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311610c73575050505050905090565b6112ec6118a0565b6001600160a01b03166112fd610eab565b6001600160a01b031614611346576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b6113536003600583611b78565b600b5461136f906001600160a01b038381169116600019611a65565b600b5460408051636dfeb12f60e01b81526001600160a01b03848116600483015291519190921691636dfeb12f91602480830192600092919082900301818387803b158015610c1257600080fd5b6113c56118a0565b6001600160a01b03166113d6610eab565b6001600160a01b03161461141f576040805162461bcd60e51b8152602060048201819052602482015260008051602061206f833981519152604482015290519081900360640190fd5b6001600160a01b0381166114645760405162461bcd60e51b81526004018080602001828103825260268152602001806120286026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015610b1f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115611570576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60005b8354811015610ea557600084828154811061159057fe5b6000918252602090912001546001600160a01b031690506115b2818585611c7f565b506115be8160016114bf565b9050611579565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611617908490611ce7565b505050565b6001600160a01b03811660009081526004602052604081205460ff1661167f576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b881b9bdd081cdd5c1c1bdc9d1959606a1b604482015290519081900360640190fd5b503360009081526008602090815260408083206001600160a01b0385168452909152902054801561127f573360008181526008602090815260408083206001600160a01b038781168086529184528285208590556006845282852054958552600784528285208286529093529220929092557f0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127090911614156117cc577f0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12706001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561178157600080fd5b505af1158015611795573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f193505050501580156117c6573d6000803e3d6000fd5b5061127f565b61127f6001600160a01b03831633836115c5565b60015461182290611803906117fd85670de0b6b3a7640000611d98565b90611df1565b6001600160a01b038316600090815260066020526040902054906114bf565b6001600160a01b0390911660009081526006602052604090205550565b6001600160a01b038084166000908152600760209081526040808320938516835292815282822054600690915291812054909161189691670de0b6b3a7640000916117fd9187916118909190611519565b90611d98565b90505b9392505050565b3390565b6001600160a01b03811660009081526020839052604090205460ff16611907576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b881b9bdd081cdd5c1c1bdc9d1959606a1b604482015290519081900360640190fd5b6000805b84548110156119fc57826001600160a01b031685828154811061192a57fe5b6000918252602090912001546001600160a01b031614156119ea5784546001925085906119579084611519565b8154811061196157fe5b9060005260206000200160009054906101000a90046001600160a01b031685828154811061198b57fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550848054806119c357fe5b600082815260209020810160001990810180546001600160a01b03191690550190556119fc565b6119f58160016114bf565b905061190b565b5080611a41576040805162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd08199bdd5b99608a1b604482015290519081900360640190fd5b506001600160a01b0316600090815260209190915260409020805460ff1916905550565b801580611aeb575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611abd57600080fd5b505afa158015611ad1573d6000803e3d6000fd5b505050506040513d6020811015611ae757600080fd5b5051155b611b265760405162461bcd60e51b81526004018080602001828103825260368152602001806120b96036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611617908490611ce7565b6001600160a01b03811660009081526020839052604090205460ff1615611bdc576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b88185b1c9958591e481859191959606a1b604482015290519081900360640190fd5b6001600160a01b03166000818152602092835260408120805460ff19166001908117909155845490810185559381529190912090910180546001600160a01b0319169091179055565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610ea5908590611ce7565b611cb9611c8d83838661183f565b6001600160a01b03808516600090815260086020908152604080832093891683529290522054906114bf565b6001600160a01b03928316600090815260086020908152604080832096909516825294909452919092205550565b6000611d3c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e589092919063ffffffff16565b80519091501561161757808060200190516020811015611d5b57600080fd5b50516116175760405162461bcd60e51b815260040180806020018281038252602a81526020018061208f602a913960400191505060405180910390fd5b600082611da757506000610b22565b82820282848281611db457fe5b0414610b1f5760405162461bcd60e51b815260040180806020018281038252602181526020018061204e6021913960400191505060405180910390fd5b6000808211611e47576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611e5057fe5b049392505050565b6060611896848460008585611e6c85611f7d565b611ebd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611efb5780518252601f199092019160209182019101611edc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611f5d576040519150601f19603f3d011682016040523d82523d6000602084013e611f62565b606091505b5091509150611f72828286611f83565b979650505050505050565b3b151590565b60608315611f92575081611899565b825115611fa25782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fec578181015183820152602001611fd4565b50505050905090810190601f1680156120195780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220329f095318445f128675ad1272e0e3cf9af91a25e13dc6fbeed1fac0fb8db5bc64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000043df9c0a1156c96cea98737b511ac89d0e2a1f460000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000003c719eeab6bdbf152be9f6d5d18afbb365dbaf1f
-----Decoded View---------------
Arg [0] : _goviToken (address): 0x43Df9c0a1156c96cEa98737b511ac89D0e2A1F46
Arg [1] : _wethToken (address): 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
Arg [2] : _swapper (address): 0x3C719eEab6bDBf152bE9F6d5D18AfbB365dBAF1F
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000043df9c0a1156c96cea98737b511ac89d0e2a1f46
Arg [1] : 0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Arg [2] : 0000000000000000000000003c719eeab6bdbf152be9f6d5d18afbb365dbaf1f
Loading...
Loading
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.