Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- RewardDrippingVault
- Optimization enabled
- true
- Compiler version
- v0.8.9+commit.e5eed63a
- Optimization runs
- 777
- EVM Version
- default
- Verified at
- 2024-12-11T04:02:11.147737Z
Constructor Arguments
0x0000000000000000000000003f881236c3e8fa27a87f1c122f938d4c31d153940000000000000000000000003f881236c3e8fa27a87f1c122f938d4c31d153940000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000002fa878ab3f87cc1c9737fc071108f904c0b0c95d00000000000000000000000095b303987a60c71504d99aa1b13b4da07b0790ab0000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb390000000000000000000000007fc66500c84a76ad7e9c93437bfc5ac33e2ddae900000000000000000000000000febf86e8f0673f0feadac14b5ea1a05e744cb7000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a2700000000000000000000000009e64c2b61a5f1690ee6fbed9baf5d6990f8dfd0000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a27
contracts/RewardDrippingVault.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Initializable } from "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { IWrappedToken } from "./IWrappedToken.sol";
import { RebasingReflectionToken } from "./RebasingReflectionToken.sol";
uint256 constant M = 1;
uint256 constant N = 8;
// virtual deposit contract with PLS/pWBTC/pDAI/pGRO rewards, with 11% in and out fees, 1% burned, 7% to drip pool, 1% to boosted stakers (boost by depositing pGRO) 2% instant divs
contract RewardDrippingVault is Initializable, Ownable, ReentrancyGuard
{
using Address for address payable;
using SafeERC20 for IERC20;
struct AccountInfo {
uint256 amount;
uint256 burned;
uint256[M] drip;
uint256[M] boost;
uint256[M] accDripDebt;
uint256[M] accBoostDebt;
uint256[N] reward;
uint256[N] accRewardDebt;
bool whitelisted;
bool exists;
uint256 reserved0;
uint256 reserved1;
uint256 reserved2;
}
function accountInfoDrip(address _account, uint256 _i) external view returns (uint256 _drip, uint256 _boost, uint256 _accDripDebt, uint256 _accBoostDebt)
{
AccountInfo storage _accountInfo = accountInfo[_account];
return (_accountInfo.drip[_i], _accountInfo.boost[_i], _accountInfo.accDripDebt[_i], _accountInfo.accBoostDebt[_i]);
}
function accountInfoReward(address _account, uint256 _i) external view returns (uint256 _reward, uint256 _accRewardDebt)
{
AccountInfo storage _accountInfo = accountInfo[_account];
return (_accountInfo.reward[_i], _accountInfo.accRewardDebt[_i]);
}
address constant FURNACE = 0x000000000000000000000000000000000000dEaD;
address constant BOOST_ADDRESS = 0xcD8dDeE99C0c4Be4cD699661AE9c00C69D1Eb4A8;
uint256 constant DEFAULT_LAUNCH_TIME = 1729519200; // Thu Jun 06 2024 16:00:00 GMT+0000
uint256 constant DEFAULT_DRIP_RATE_PER_DAY = 1e16; // 1% per day
uint256 constant DEFAULT_DRIP_BOOST_RATE_PER_DAY = 1e16; // 0.5% per day
uint256 constant DAY = 1 days;
uint256 constant TZ_OFFSET = 16 hours; // UTC-8
address public reserveToken; // WMM
address public boostToken; // BoostToken
address[M] public dripToken;
address[N] public rewardToken;
address public wrappedToken;
uint256 public launchTime;
uint256[M] public dripRatePerDay;
uint256[M] public dripBoostRatePerDay;
bool public whitelistAll;
uint256 public totalStaked; // total staked balance
uint256 public totalBurned; // total burned balance
uint256[M] public totalDrip; // total drip pool balance
uint256[M] public allocDrip; // total drip pool balance allocated
uint256[M] public totalBoost; // total boost balance
uint256[M] public accDripPerShare;
uint256[M] public accBoostPerShare;
uint256[N] public totalReward;
uint256[N] public accRewardPerShare;
uint64 public day;
address[] public accountIndex;
mapping(address => AccountInfo) public accountInfo;
function accountIndexLength() external view returns (uint256 _length)
{
return accountIndex.length;
}
function getAccountByIndex(uint256 _index) external view returns (AccountInfo memory _accountInfo)
{
return accountInfo[accountIndex[_index]];
}
function today() public view returns (uint64 _today)
{
return uint64((block.timestamp + TZ_OFFSET) / DAY);
}
modifier hasLaunched()
{
require(block.timestamp >= launchTime, "unavailable");
_;
}
constructor(address _reserveToken, address[M] memory _dripToken, address[N] memory _rewardToken, address _boostToken, address _wrappedToken)
{
initialize(msg.sender, _reserveToken, _dripToken, _rewardToken, _boostToken, _wrappedToken);
}
function initialize(address _owner, address _reserveToken, address[M] memory _dripToken, address[N] memory _rewardToken, address _boostToken, address _wrappedToken) public initializer
{
_transferOwnership(_owner);
launchTime = DEFAULT_LAUNCH_TIME;
for (uint256 _i = 0; _i < M; _i++) {
dripRatePerDay[_i] = DEFAULT_DRIP_RATE_PER_DAY;
dripBoostRatePerDay[_i] = DEFAULT_DRIP_BOOST_RATE_PER_DAY;
}
whitelistAll = false;
totalStaked = 0;
totalBurned = 0;
for (uint256 _i = 0; _i < M; _i++) {
totalDrip[_i] = 0;
allocDrip[_i] = 0;
totalBoost[_i] = 0;
accDripPerShare[_i] = 0;
accBoostPerShare[_i] = 0;
}
for (uint256 _i = 0; _i < N; _i++) {
totalReward[_i] = 0;
accRewardPerShare[_i] = 0;
}
day = today();
for (uint256 _i = 0; _i < M; _i++) {
for (uint256 _j = 0; _j < _i; _j++) {
require(_dripToken[_i] != _dripToken[_j], "invalid token");
}
}
for (uint256 _i = 0; _i < N; _i++) {
for (uint256 _j = 0; _j < _i; _j++) {
require(_rewardToken[_i] != _rewardToken[_j], "invalid token");
}
}
require(_dripToken[0] == _reserveToken, "invalid token");
for (uint256 _i = 1; _i < M; _i++) {
bool _found = false;
for (uint256 _j = 0; _j < N; _j++) {
if (_dripToken[_i] == _rewardToken[_j]) {
_found = true;
break;
}
}
require(_found, "invalid token");
}
for (uint256 _i = 0; _i < N; _i++) {
require(_rewardToken[_i] != _reserveToken, "invalid token");
}
require(_wrappedToken != _reserveToken, "invalid token");
reserveToken = _reserveToken;
boostToken = _boostToken;
dripToken = _dripToken;
rewardToken = _rewardToken;
wrappedToken = _wrappedToken;
RebasingReflectionToken(payable(_reserveToken)).updateExcludeFromRewards(false);
}
// updates the launch time
function setLaunchTime(uint256 _launchTime) external onlyOwner
{
require(block.timestamp < launchTime, "unavailable");
require(_launchTime >= block.timestamp, "invalid time");
launchTime = _launchTime;
}
// updates the percentual rate of distribution from the drip pool
function setDripRatePerDay(uint256 _i, uint256 _dripRatePerDay) external onlyOwner
{
require(_i < M, "invalid index");
require(_dripRatePerDay + dripBoostRatePerDay[_i] <= 100e16, "invalid rate");
dripRatePerDay[_i] = _dripRatePerDay;
}
// updates the percentual rate of distribution from the drip pool
function setDripBoostRatePerDay(uint256 _i, uint256 _dripBoostRatePerDay) external onlyOwner
{
require(_i < M, "invalid index");
require(dripRatePerDay[_i] + _dripBoostRatePerDay <= 100e16, "invalid rate");
dripBoostRatePerDay[_i] = _dripBoostRatePerDay;
}
// flags all accounts for withdrawing without penalty (useful for migration)
function updateWhitelistAll(bool _whitelistAll) external onlyOwner
{
whitelistAll = _whitelistAll;
}
// flags multiple accounts for withdrawing without penalty
function updateWhitelist(address[] calldata _accounts, bool _whitelisted) external onlyOwner
{
for (uint256 _i; _i < _accounts.length; _i++) {
accountInfo[_accounts[_i]].whitelisted = _whitelisted;
}
}
// this is a safety net method for recovering funds that are not being used
function recoverFunds(address _token) external onlyOwner nonReentrant
{
for (uint256 _i = 0; _i < N; _i++) {
require(_token != rewardToken[_i], "invalid token");
}
uint256 _amount = IERC20(_token).balanceOf(address(this));
if (_token == reserveToken) _amount -= totalStaked + totalDrip[0] + totalBoost[0];
require(_amount > 0, "no balance");
IERC20(_token).safeTransfer(msg.sender, _amount);
}
// burns pGRO
function burn(uint256 _amount) external
{
burnOnBehalfOf(_amount, msg.sender);
}
// burns pGRO on behalf of another account
function burnOnBehalfOf(uint256 _amount, address _account) public hasLaunched nonReentrant
{
require(_amount > 0, "invalid amount");
_updateDay();
_updateAccount(_account, 0, _amount);
totalBurned += _amount;
IERC20(boostToken).safeTransferFrom(msg.sender, BOOST_ADDRESS, _amount);
emit Burn(_account, boostToken, _amount);
}
// stakes 4WMM
function deposit(uint256 _amount) external hasLaunched nonReentrant
{
_deposit(msg.sender, _amount, msg.sender);
emit Deposit(msg.sender, reserveToken, _amount);
}
// stakes 4WMM on behalf of another account
function depositOnBehalfOf(uint256 _amount, address _account) external hasLaunched nonReentrant
{
_deposit(msg.sender, _amount, _account);
emit Deposit(_account, reserveToken, _amount);
}
function _deposit(address _sender, uint256 _amount, address _account) internal
{
require(_amount > 0, "invalid amount");
_updateDay();
if (_sender != address(this)) {
uint256 _balance = IERC20(reserveToken).balanceOf(address(this));
IERC20(reserveToken).safeTransferFrom(_sender, address(this), _amount);
_amount = IERC20(reserveToken).balanceOf(address(this)) - _balance;
}
uint256 _1percent = _amount * 1e16 / 100e16;
uint256 _dripAmount = 9 * _1percent;
uint256 _netAmount = _amount - (11 * _1percent);
// 9% accounted for the drip pool
totalDrip[0] += _dripAmount;
// 2% instant rewards (only 7% actually go to the drip pool)
if (totalStaked > 0) {
accDripPerShare[0] += (2 * _1percent) * 1e36 / totalStaked;
allocDrip[0] += 2 * _1percent;
}
// rewards users for pGRO burned
if (totalBurned > 0) {
accBoostPerShare[0] += _1percent * 1e36 / totalBurned;
totalBoost[0] += _1percent;
}
_updateAccount(_account, int256(_netAmount), 0);
totalStaked += _netAmount;
IERC20(reserveToken).safeTransfer(FURNACE, _1percent);
}
// unstakes 4WMM
function withdraw(uint256 _amount) external nonReentrant
{
require(_amount > 0, "invalid amount");
AccountInfo storage _accountInfo = accountInfo[msg.sender];
uint256 _available = _accountInfo.amount;
require(_amount <= _available, "insufficient balance");
_updateDay();
_updateAccount(msg.sender, -int256(_amount), 0);
totalStaked -= _amount;
if (_accountInfo.whitelisted || whitelistAll) {
IERC20(reserveToken).safeTransfer(msg.sender, _amount);
} else {
uint256 _1percent = _amount * 1e16 / 100e16;
uint256 _dripAmount = 9 * _1percent;
uint256 _netAmount = _amount - (11 * _1percent);
// 9% accounted for the drip pool
totalDrip[0] += _dripAmount;
// 2% instant rewards (only 7% actually go to the drip pool)
if (totalStaked > 0) {
accDripPerShare[0] += (2 * _1percent) * 1e36 / totalStaked;
allocDrip[0] += 2 * _1percent;
}
// rewards users for pGRO burned
if (totalBurned > 0) {
accBoostPerShare[0] += _1percent * 1e36 / totalBurned;
totalBoost[0] += _1percent;
}
IERC20(reserveToken).safeTransfer(FURNACE, _1percent);
IERC20(reserveToken).safeTransfer(msg.sender, _netAmount);
}
emit Withdraw(msg.sender, reserveToken, _amount);
}
// claims 4WMM/pDAI
function claimDrip(uint256 _i) external nonReentrant returns (uint256 _dripAmount, uint256 _boostAmount)
{
require(_i < M, "invalid index");
_updateDay();
_updateAccount(msg.sender, 0, 0);
AccountInfo storage _accountInfo = accountInfo[msg.sender];
_dripAmount = _accountInfo.drip[_i];
_boostAmount = _accountInfo.boost[_i];
if (_dripAmount > 0) {
_accountInfo.drip[_i] = 0;
totalDrip[_i] -= _dripAmount;
allocDrip[_i] -= _dripAmount;
}
if (_boostAmount > 0) {
_accountInfo.boost[_i] = 0;
totalBoost[_i] -= _boostAmount;
}
uint256 _dripPlusBoostAmount = _dripAmount + _boostAmount;
if (_dripPlusBoostAmount > 0) {
_safeTransfer(dripToken[_i], msg.sender, _dripPlusBoostAmount);
}
emit Claim(msg.sender, dripToken[_i], _dripAmount);
emit Claim(msg.sender, dripToken[_i], _boostAmount);
return (_dripAmount, _boostAmount);
}
// claims PLS/pWBTC/pDAI/pGRO
function claimReward(uint256 _i) external nonReentrant returns (uint256 _rewardAmount)
{
require(_i < N, "invalid index");
_updateDay();
_updateAccount(msg.sender, 0, 0);
AccountInfo storage _accountInfo = accountInfo[msg.sender];
_rewardAmount = _accountInfo.reward[_i];
if (_rewardAmount > 0) {
_accountInfo.reward[_i] = 0;
totalReward[_i] -= _rewardAmount;
}
if (_rewardAmount > 0) {
_safeTransfer(rewardToken[_i], msg.sender, _rewardAmount);
}
emit Claim(msg.sender, rewardToken[_i], _rewardAmount);
return _rewardAmount;
}
// claims all (w4MM/pDAI and PLS/pWBTC/pDAI/pGRO)
function claimAll() external nonReentrant returns (uint256[M] memory _dripAmount, uint256[M] memory _boostAmount, uint256[N] memory _rewardAmount)
{
_updateDay();
_updateAccount(msg.sender, 0, 0);
AccountInfo storage _accountInfo = accountInfo[msg.sender];
for (uint256 _i = 0; _i < M; _i++) {
_dripAmount[_i] = _accountInfo.drip[_i];
_boostAmount[_i] = _accountInfo.boost[_i];
}
for (uint256 _i = 0; _i < N; _i++) {
_rewardAmount[_i] = _accountInfo.reward[_i];
}
for (uint256 _i = 0; _i < M; _i++) {
if (_dripAmount[_i] > 0) {
_accountInfo.drip[_i] = 0;
totalDrip[_i] -= _dripAmount[_i];
allocDrip[_i] -= _dripAmount[_i];
}
if (_boostAmount[_i] > 0) {
_accountInfo.boost[_i] = 0;
totalBoost[_i] -= _boostAmount[_i];
}
}
for (uint256 _i = 0; _i < N; _i++) {
if (_rewardAmount[_i] > 0) {
_accountInfo.reward[_i] = 0;
totalReward[_i] -= _rewardAmount[_i];
}
}
for (uint256 _i = 0; _i < M; _i++) {
uint256 _dripPlusBoostAmount = _dripAmount[_i] + _boostAmount[_i];
if (_dripPlusBoostAmount > 0) {
_safeTransfer(dripToken[_i], msg.sender, _dripPlusBoostAmount);
}
}
for (uint256 _i = 0; _i < N; _i++) {
if (_rewardAmount[_i] > 0) {
_safeTransfer(rewardToken[_i], msg.sender, _rewardAmount[_i]);
}
}
for (uint256 _i = 0; _i < M; _i++) {
emit Claim(msg.sender, dripToken[_i], _dripAmount[_i]);
emit Claim(msg.sender, dripToken[_i], _boostAmount[_i]);
}
for (uint256 _i = 0; _i < N; _i++) {
emit Claim(msg.sender, rewardToken[_i], _rewardAmount[_i]);
}
return (_dripAmount, _boostAmount, _rewardAmount);
}
// compounds 4WMM
function compoundDrip(uint256 _i) external nonReentrant returns (uint256 _dripAmount, uint256 _boostAmount)
{
require(_i < M, "invalid index");
require(dripToken[_i] == reserveToken, "invalid token");
_updateDay();
_updateAccount(msg.sender, 0, 0);
AccountInfo storage _accountInfo = accountInfo[msg.sender];
_dripAmount = _accountInfo.drip[_i];
_boostAmount = _accountInfo.boost[_i];
if (_dripAmount > 0) {
_accountInfo.drip[_i] = 0;
totalDrip[_i] -= _dripAmount;
allocDrip[_i] -= _dripAmount;
}
if (_boostAmount > 0) {
_accountInfo.boost[_i] = 0;
totalBoost[_i] -= _boostAmount;
}
uint256 _dripPlusBoostAmount = _dripAmount + _boostAmount;
if (_dripPlusBoostAmount > 0) {
_deposit(address(this), _dripPlusBoostAmount, msg.sender);
}
emit Compound(msg.sender, dripToken[_i], _dripAmount);
emit Compound(msg.sender, dripToken[_i], _boostAmount);
return (_dripAmount, _boostAmount);
}
// sends 4WMM/pDAI to the drip pool
function donateDrip(uint256 _i, uint256 _amount) external nonReentrant
{
require(_i < M, "invalid index");
require(_amount > 0, "invalid amount");
_updateDay();
{
uint256 _balance = IERC20(dripToken[_i]).balanceOf(address(this));
IERC20(dripToken[_i]).safeTransferFrom(msg.sender, address(this), _amount);
_amount = IERC20(dripToken[_i]).balanceOf(address(this)) - _balance;
}
if (dripToken[_i] == wrappedToken) {
IWrappedToken(dripToken[_i]).withdraw(_amount);
}
totalDrip[_i] += _amount;
emit DonateDrip(msg.sender, dripToken[_i], _amount);
}
// sends PLS/pWBTC/pDAI/pGRO to all stakers
function rewardAll(uint256 _i, uint256 _amount) external nonReentrant
{
require(_i < N, "invalid index");
require(_amount > 0, "invalid amount");
_updateDay();
require (totalStaked > 0, "no deposits");
{
uint256 _balance = IERC20(rewardToken[_i]).balanceOf(address(this));
IERC20(rewardToken[_i]).safeTransferFrom(msg.sender, address(this), _amount);
_amount = IERC20(rewardToken[_i]).balanceOf(address(this)) - _balance;
}
if (rewardToken[_i] == wrappedToken) {
IWrappedToken(rewardToken[_i]).withdraw(_amount);
}
accRewardPerShare[_i] += _amount * 1e18 / totalStaked;
totalReward[_i] += _amount;
emit RewardAll(msg.sender, rewardToken[_i], _amount);
}
// performs the daily distribution from the drip pool (GRO)
function updateDay() external nonReentrant
{
_updateDay();
}
function _updateDay() internal
{
uint64 _today = today();
if (day == _today) return;
for (uint256 _i = 0; _i < M; _i++) {
uint256 _ratePerDay = dripRatePerDay[_i] + dripBoostRatePerDay[_i];
if (_ratePerDay > 0) {
// calculates the percentage of the drip pool and distributes
{
// formula: drip_reward = drip_pool_balance * (1 - (1 - drip_rate_per_day) ^ days_ellapsed)
uint64 _days = _today - day;
uint256 _rate = 100e16 - _exp(100e16 - _ratePerDay, _days);
uint256 _amount = (totalDrip[_i] - allocDrip[_i]) * _rate / 100e16;
uint256 _amountDrip = _amount * dripRatePerDay[_i] / _ratePerDay;
if (totalStaked > 0) {
accDripPerShare[_i] += _amountDrip * 1e36 / totalStaked;
allocDrip[_i] += _amountDrip;
}
uint256 _amountBoost = _amount - _amountDrip;
if (totalBurned > 0) {
accBoostPerShare[_i] += _amountBoost * 1e36 / totalBurned;
totalDrip[_i] -= _amountBoost;
totalBoost[_i] += _amountBoost;
}
}
}
}
if (totalStaked > 0) {
// claims rewards
IERC20(reserveToken).safeTransfer(address(this), 0);
for (uint256 _i = 0; _i < N; _i++) {
uint256 _amount = _balanceOf(rewardToken[_i], address(this)) - totalReward[_i];
for (uint256 _j = 1; _j < M; _j++) {
if (dripToken[_j] == rewardToken[_i]) {
_amount -= totalDrip[_j] + totalBoost[_j];
break;
}
}
if (_amount > 0) {
accRewardPerShare[_i] += _amount * 1e36 / totalStaked;
totalReward[_i] += _amount;
}
}
}
day = _today;
}
// updates the account balances while accumulating reward/drip/boost using PCS distribution algorithm
function _updateAccount(address _account, int256 _amount, uint256 _burned) internal
{
AccountInfo storage _accountInfo = accountInfo[_account];
if (!_accountInfo.exists) {
// adds account to index
_accountInfo.exists = true;
accountIndex.push(_account);
}
for (uint256 _i = 0; _i < M; _i++) {
_accountInfo.drip[_i] += _accountInfo.amount * accDripPerShare[_i] / 1e36 - _accountInfo.accDripDebt[_i];
_accountInfo.boost[_i] += _accountInfo.burned * accBoostPerShare[_i] / 1e36 - _accountInfo.accBoostDebt[_i];
}
for (uint256 _i = 0; _i < N; _i++) {
_accountInfo.reward[_i] += _accountInfo.amount * accRewardPerShare[_i] / 1e36 - _accountInfo.accRewardDebt[_i];
}
if (_amount > 0) {
_accountInfo.amount += uint256(_amount);
}
else
if (_amount < 0) {
_accountInfo.amount -= uint256(-_amount);
}
_accountInfo.burned += _burned;
for (uint256 _i = 0; _i < M; _i++) {
_accountInfo.accDripDebt[_i] = _accountInfo.amount * accDripPerShare[_i] / 1e36;
_accountInfo.accBoostDebt[_i] = _accountInfo.burned * accBoostPerShare[_i] / 1e36;
}
for (uint256 _i = 0; _i < N; _i++) {
_accountInfo.accRewardDebt[_i] = _accountInfo.amount * accRewardPerShare[_i] / 1e36;
}
}
function _balanceOf(address _token, address _account) internal view returns (uint256 _balance)
{
return _token == wrappedToken ? payable(_account).balance : IERC20(_token).balanceOf(_account);
}
function _safeTransfer(address _token, address _account, uint256 _amount) internal
{
_token == wrappedToken ? payable(_account).sendValue(_amount) : IERC20(_token).safeTransfer(_account, _amount);
}
// exponentiation with integer exponent
function _exp(uint256 _x, uint256 _n) internal pure returns (uint256 _y)
{
_y = 1e18;
while (_n > 0) {
if (_n & 1 != 0) _y = _y * _x / 1e18;
_n >>= 1;
_x = _x * _x / 1e18;
}
return _y;
}
receive() external payable {}
event Burn(address indexed _account, address indexed _boostToken, uint256 _amount);
event Deposit(address indexed _account, address indexed _reserveToken, uint256 _amount);
event Withdraw(address indexed _account, address indexed _reserveToken, uint256 _amount);
event Claim(address indexed _account, address indexed _reserveToken, uint256 _amount);
event Compound(address indexed _account, address indexed _reserveToken, uint256 _amount);
event RewardAll(address indexed _account, address indexed _rewardToken, uint256 _amount);
event DonateDrip(address indexed _account, address indexed _reserveToken, uint256 _amount);
}
contracts/IUniswapV2Router.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
interface IUniswapV2Router
{
function factory() external view returns (address _factory);
function addLiquidity(address _tokenA, address _tokenB, uint256 _amountADesired, uint256 _amountBDesired, uint256 _amountAMin, uint256 _amountBMin, address _to, uint256 _deadline) external returns (uint256 _amountA, uint256 _amountB, uint256 _liquidity);
function swapExactTokensForTokens(uint256 _amountIn, uint256 _amountOutMin, address[] calldata _path, address _to, uint256 _deadline) external returns (uint256[] memory _amounts);
}
contracts/IWrappedToken.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
interface IWrappedToken
{
function withdraw(uint256 _amount) external;
}
contracts/RebasingReflectionToken.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { IUniswapV2Router } from "./IUniswapV2Router.sol";
import { IUniswapV2Factory } from "./IUniswapV2Factory.sol";
import { IUniswapV2Pair } from "./IUniswapV2Pair.sol";
import { IWrappedToken } from "./IWrappedToken.sol";
uint256 constant N = 8;
contract Silo
{
using SafeERC20 for IERC20;
constructor(address[N] memory _rewardTokens)
{
for (uint256 _i = 0; _i < N; _i++) {
IERC20(_rewardTokens[_i]).safeApprove(msg.sender, type(uint256).max);
}
}
}
library LibSilo
{
function createSilo(address[N] memory _rewardTokens) public returns (address _silo)
{
return address(new Silo(_rewardTokens));
}
}
contract RebasingReflectionToken is Ownable, ERC20
{
using Address for address;
using Address for address payable;
using SafeERC20 for IERC20;
struct AccountInfo {
bool exists; // existence flag
bool excludeFromRewards; // whether or not receive rewards
uint256 activeBalance; // 0 or user's balance
uint256[N] rewardDebt; // base for reward distribution
uint256[N] unclaimedReward; // reward balance available for claim
uint256[N] minimumRewardBalanceToClaim; // minimum unclaimed balance to auto claim
}
address constant FURNACE = 0x000000000000000000000000000000000000dEaD;
address constant INTERNAL_ADDRESS = address(1); // used internally to record pending rebase balances
uint256 constant BUY_FEE = 6e16; // 6%
uint256 constant SELL_FEE = 9e16; // 9%
uint256 constant DEFAULT_LAUNCH_TIME = 1733756400; // Oct 8th 2PM UTC
bool private bypass_ = false; // internal flag to bypass all token logic
bool private inswap_ = false; // internal flag to bypass additional token transfer logic
address public router; // PulseX router V1
address[N] public pairs; // N pairs liquidity pool adddresses on PulseX V1
address[][N] public paths; // routes from WMM to reward tokens
uint256 public launchTime = DEFAULT_LAUNCH_TIME; // timestamp when the trading starts
uint256 public totalActiveSupply = 0; // sum of active balances for all 8WMM holders
address[N] public rewardTokens; // 8 reward tokens
uint256[N] public buybackPercents; // buyback percentage of each token
address public wrappedToken; // WPLS
uint256[N] public rewardBalance = [0, 0, 0, 0, 0, 0, 0, 0]; // 8 reward balance
uint256[N] public accRewardPerShare = [0, 0, 0, 0, 0, 0, 0, 0]; // accumulated reward per share (double precision)
uint256 public minimumFeeBalanceToBuyback = N * 1000 * 10 / 8; // need to be more than just dust
address public silo; // holds reward balances
address[] public accountIndex; // list of all accounts that ever received 8WMM
mapping(address => AccountInfo) public accountInfo; // account attributes
function accountIndexLength() external view returns (uint256 _length)
{
return accountIndex.length;
}
function accountRewardInfo(address _account, uint256 _i) external view returns (uint256 _rewardDebt, uint256 _unclaimedReward, uint256 _minimumRewardBalanceToClaim)
{
AccountInfo storage _accountInfo = accountInfo[_account];
return (_accountInfo.rewardDebt[_i], _accountInfo.unclaimedReward[_i], _accountInfo.minimumRewardBalanceToClaim[_i]);
}
constructor(string memory _name, string memory _symbol)
ERC20(_name, _symbol)
{
}
function initialize(uint256 _supply, address[N] memory _rewardTokens, address _router, address _wrappedToken, uint256[N] memory _buybackPercents, address _owner) external
{
require(router == address(0), "already initialized");
router = _router;
address _factory = IUniswapV2Router(_router).factory();
uint256 _totalBuybackPercent = 0;
for (uint256 _i = 0; _i < N; _i++) {
address _rewardToken = _rewardTokens[_i];
uint256 _buybackPercent = _buybackPercents[_i];
address _pair = IUniswapV2Factory(_factory).createPair(_rewardToken, address(this));
address[] memory _path = new address[](2);
_path[0] = address(this);
_path[1] = _rewardToken;
pairs[_i] = _pair;
paths[_i] = _path;
rewardTokens[_i] = _rewardToken;
buybackPercents[_i] = _buybackPercent;
_totalBuybackPercent += _buybackPercent;
}
require(_totalBuybackPercent <= 100e16, "invalid percentages");
wrappedToken = _wrappedToken;
silo = LibSilo.createSilo(_rewardTokens);
_approve(address(this), _router, type(uint256).max);
_mint(_owner, _supply);
transferOwnership(_owner);
}
function updateLaunchTime(uint256 _launchTime) external onlyOwner
{
require(_launchTime > block.timestamp, "invalid time");
launchTime = _launchTime;
emit UpdateLaunchTime(_launchTime);
}
function updateMinimumFeeBalanceToBuyback(uint256 _minimumFeeBalanceToBuyback) external onlyOwner
{
minimumFeeBalanceToBuyback = _minimumFeeBalanceToBuyback;
emit UpdateMinimumFeeBalanceToBuyback(_minimumFeeBalanceToBuyback);
}
function updateMinimumRewardBalanceToClaim(uint256[N] memory _minimumRewardBalanceToClaim) external
{
AccountInfo storage _accountInfo = accountInfo[msg.sender];
_accountInfo.minimumRewardBalanceToClaim = _minimumRewardBalanceToClaim;
emit UpdateMinimumRewardBalanceToClaim(_minimumRewardBalanceToClaim);
}
function updateExcludeFromRewards(address _account, bool _excludeFromRewards) external onlyOwner
{
_updateAccount(_account);
AccountInfo storage _accountInfo = accountInfo[_account];
_accountInfo.excludeFromRewards = _excludeFromRewards;
_postUpdateAccount(_account);
emit UpdateExcludeFromRewards(_account, _excludeFromRewards);
}
function updateExcludeFromRewards(bool _excludeFromRewards) external
{
_updateAccount(msg.sender);
AccountInfo storage _accountInfo = accountInfo[msg.sender];
_accountInfo.excludeFromRewards = _excludeFromRewards;
_postUpdateAccount(msg.sender);
emit UpdateExcludeFromRewards(msg.sender, _excludeFromRewards);
}
function _updateAccount(address _account) internal
{
AccountInfo storage _accountInfo = accountInfo[_account];
if (!_accountInfo.exists) {
accountIndex.push(_account);
_accountInfo.exists = true;
_accountInfo.excludeFromRewards = _account == FURNACE || _account.isContract();
_accountInfo.activeBalance = 0;
_accountInfo.rewardDebt = [0, 0, 0, 0, 0, 0, 0, 0];
_accountInfo.unclaimedReward = [0, 0, 0, 0, 0, 0, 0, 0];
_accountInfo.minimumRewardBalanceToClaim = [1, 1, 1, 1, 1, 1, 1, 1];
return;
}
uint256 _activeBalance = _accountInfo.activeBalance;
if (_activeBalance > 0) {
for (uint256 _i = 0; _i < N; _i++) {
uint256 _rewardDebt = _activeBalance * accRewardPerShare[_i] / 1e36;
if (_rewardDebt > _accountInfo.rewardDebt[_i]) {
uint256 _rewardAmount = _rewardDebt - _accountInfo.rewardDebt[_i];
_accountInfo.unclaimedReward[_i] += _rewardAmount;
_accountInfo.rewardDebt[_i] = _rewardDebt;
}
}
}
for (uint256 _i = 0; _i < N; _i++) {
uint256 _unclaimedReward = _accountInfo.unclaimedReward[_i];
if (_unclaimedReward >= _accountInfo.minimumRewardBalanceToClaim[_i]) {
_accountInfo.unclaimedReward[_i] = 0;
rewardBalance[_i] -= _unclaimedReward;
address _rewardToken = rewardTokens[_i];
if (_rewardToken != wrappedToken) {
IERC20(_rewardToken).safeTransferFrom(silo, _account, _unclaimedReward);
} else {
IERC20(_rewardToken).safeTransferFrom(silo, address(this), _unclaimedReward);
IWrappedToken(_rewardToken).withdraw(_unclaimedReward);
payable(_account).sendValue(_unclaimedReward);
}
}
}
}
function _postUpdateAccount(address _account) internal
{
AccountInfo storage _accountInfo = accountInfo[_account];
uint256 _oldActiveBalance = _accountInfo.activeBalance;
uint256 _newActiveBalance = _accountInfo.excludeFromRewards ? 0 : balanceOf(_account);
if (_newActiveBalance != _oldActiveBalance) {
_accountInfo.activeBalance = _newActiveBalance;
for (uint256 _i = 0; _i < N; _i++) {
_accountInfo.rewardDebt[_i] = _newActiveBalance * accRewardPerShare[_i] / 1e36;
}
totalActiveSupply -= _oldActiveBalance;
totalActiveSupply += _newActiveBalance;
}
}
function _transfer(address _from, address _to, uint256 _amount) internal override
{
if (bypass_) {
// internal transfer
super._transfer(_from, _to, _amount);
return;
}
if (inswap_) {
// fee selling transfer
super._transfer(_from, _to, _amount);
return;
}
bool _buying = false;
bool _selling = false;
for (uint256 _i = 0; _i < N; _i++) {
_buying = _buying || _from == pairs[_i];
_selling = _selling || _to == pairs[_i];
}
if (_buying || _selling) {
// buy/sell
bool _restricted = block.timestamp < launchTime && (_buying ? _to : _from) != owner();
require(!_restricted, "unavailable");
// If the sender is not the owner then fee applies
uint256 _feeAmount = (_buying ? _to : _from) != owner() ? _amount * (_buying ? BUY_FEE : SELL_FEE) / 100e16 : 0;
super._transfer(_from, _to, _amount - _feeAmount);
super._transfer(_from, address(this), _feeAmount);
return;
}
// regular transfer
super._transfer(_from, _to, _amount);
// piggyback buyback operation
uint256 _balance = balanceOf(address(this));
if (_balance >= minimumFeeBalanceToBuyback) {
inswap_ = true;
for (uint256 _i = 0; _i < N; _i ++) {
uint256 _swapAmount = _balance * buybackPercents[_i] / 100e16;
IUniswapV2Router(router).swapExactTokensForTokens(_swapAmount, 0, paths[_i], silo, block.timestamp);
IUniswapV2Pair(pairs[_i]).sync();
}
inswap_ = false;
if (totalActiveSupply > 0) {
for (uint256 _i = 0; _i < N; _i++) {
uint256 _rewardBalance = IERC20(rewardTokens[_i]).balanceOf(silo);
uint256 _rewardAmount = _rewardBalance - rewardBalance[_i];
if (_rewardAmount > 0) {
rewardBalance[_i] = _rewardBalance;
accRewardPerShare[_i] += _rewardAmount * 1e36 / totalActiveSupply;
}
}
}
}
}
function _beforeTokenTransfer(address _from, address _to, uint256 _amount) internal override
{
if (bypass_) return;
if (_from != address(0)) {
_updateAccount(_from);
}
if (_to != address(0)) {
require(_to != INTERNAL_ADDRESS, "invalid address");
_updateAccount(_to);
}
_amount; // silences warning
}
function _afterTokenTransfer(address _from, address _to, uint256 _amount) internal override
{
if (bypass_) return;
if (_from != address(0)) {
_postUpdateAccount(_from);
}
if (_to != address(0)) {
_postUpdateAccount(_to);
}
_amount; // silences warning
}
receive() external payable {}
event UpdateLaunchTime(uint256 _launchTime);
event UpdateMinimumFeeBalanceToBuyback(uint256 _minimumFeeBalanceToBuyback);
event UpdateMinimumRewardBalanceToClaim(uint256[N] _minimumRewardBalanceToClaim);
event UpdateExcludeFromRewards(address indexed _account, bool indexed _excludeFromRewards);
}
@openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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);
}
}
@openzeppelin/contracts/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)
pragma solidity ^0.8.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
* initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() initializer {}
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Modifier to protect an initializer function from being invoked twice.
*/
modifier initializer() {
require(_initializing || !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
}
@openzeppelin/contracts/security/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
@openzeppelin/contracts/token/ERC20/ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
@openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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;
}
}
contracts/IUniswapV2Factory.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
interface IUniswapV2Factory
{
function getPair(address _tokenA, address _tokenB) external view returns (address _pair);
function createPair(address _tokenA, address _tokenB) external returns (address _pair);
}
contracts/IUniswapV2Pair.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
interface IUniswapV2Pair
{
function sync() external;
}
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}},"optimizer":{"runs":777,"enabled":true},"libraries":{}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_reserveToken","internalType":"address"},{"type":"address[1]","name":"_dripToken","internalType":"address[1]"},{"type":"address[8]","name":"_rewardToken","internalType":"address[8]"},{"type":"address","name":"_boostToken","internalType":"address"},{"type":"address","name":"_wrappedToken","internalType":"address"}]},{"type":"event","name":"Burn","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"address","name":"_boostToken","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Claim","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"address","name":"_reserveToken","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Compound","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"address","name":"_reserveToken","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"address","name":"_reserveToken","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DonateDrip","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"address","name":"_reserveToken","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RewardAll","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"address","name":"_rewardToken","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"address","name":"_reserveToken","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"accBoostPerShare","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"accDripPerShare","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"accRewardPerShare","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"accountIndex","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"_length","internalType":"uint256"}],"name":"accountIndexLength","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"burned","internalType":"uint256"},{"type":"bool","name":"whitelisted","internalType":"bool"},{"type":"bool","name":"exists","internalType":"bool"},{"type":"uint256","name":"reserved0","internalType":"uint256"},{"type":"uint256","name":"reserved1","internalType":"uint256"},{"type":"uint256","name":"reserved2","internalType":"uint256"}],"name":"accountInfo","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"_drip","internalType":"uint256"},{"type":"uint256","name":"_boost","internalType":"uint256"},{"type":"uint256","name":"_accDripDebt","internalType":"uint256"},{"type":"uint256","name":"_accBoostDebt","internalType":"uint256"}],"name":"accountInfoDrip","inputs":[{"type":"address","name":"_account","internalType":"address"},{"type":"uint256","name":"_i","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"_reward","internalType":"uint256"},{"type":"uint256","name":"_accRewardDebt","internalType":"uint256"}],"name":"accountInfoReward","inputs":[{"type":"address","name":"_account","internalType":"address"},{"type":"uint256","name":"_i","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allocDrip","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"boostToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burnOnBehalfOf","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"address","name":"_account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[1]","name":"_dripAmount","internalType":"uint256[1]"},{"type":"uint256[1]","name":"_boostAmount","internalType":"uint256[1]"},{"type":"uint256[8]","name":"_rewardAmount","internalType":"uint256[8]"}],"name":"claimAll","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"_dripAmount","internalType":"uint256"},{"type":"uint256","name":"_boostAmount","internalType":"uint256"}],"name":"claimDrip","inputs":[{"type":"uint256","name":"_i","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"_rewardAmount","internalType":"uint256"}],"name":"claimReward","inputs":[{"type":"uint256","name":"_i","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"_dripAmount","internalType":"uint256"},{"type":"uint256","name":"_boostAmount","internalType":"uint256"}],"name":"compoundDrip","inputs":[{"type":"uint256","name":"_i","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"day","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"depositOnBehalfOf","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"address","name":"_account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"donateDrip","inputs":[{"type":"uint256","name":"_i","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dripBoostRatePerDay","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dripRatePerDay","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"dripToken","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"_accountInfo","internalType":"struct RewardDrippingVault.AccountInfo","components":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"burned","internalType":"uint256"},{"type":"uint256[1]","name":"drip","internalType":"uint256[1]"},{"type":"uint256[1]","name":"boost","internalType":"uint256[1]"},{"type":"uint256[1]","name":"accDripDebt","internalType":"uint256[1]"},{"type":"uint256[1]","name":"accBoostDebt","internalType":"uint256[1]"},{"type":"uint256[8]","name":"reward","internalType":"uint256[8]"},{"type":"uint256[8]","name":"accRewardDebt","internalType":"uint256[8]"},{"type":"bool","name":"whitelisted","internalType":"bool"},{"type":"bool","name":"exists","internalType":"bool"},{"type":"uint256","name":"reserved0","internalType":"uint256"},{"type":"uint256","name":"reserved1","internalType":"uint256"},{"type":"uint256","name":"reserved2","internalType":"uint256"}]}],"name":"getAccountByIndex","inputs":[{"type":"uint256","name":"_index","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_owner","internalType":"address"},{"type":"address","name":"_reserveToken","internalType":"address"},{"type":"address[1]","name":"_dripToken","internalType":"address[1]"},{"type":"address[8]","name":"_rewardToken","internalType":"address[8]"},{"type":"address","name":"_boostToken","internalType":"address"},{"type":"address","name":"_wrappedToken","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"launchTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverFunds","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"reserveToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rewardAll","inputs":[{"type":"uint256","name":"_i","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"rewardToken","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDripBoostRatePerDay","inputs":[{"type":"uint256","name":"_i","internalType":"uint256"},{"type":"uint256","name":"_dripBoostRatePerDay","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDripRatePerDay","inputs":[{"type":"uint256","name":"_i","internalType":"uint256"},{"type":"uint256","name":"_dripRatePerDay","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLaunchTime","inputs":[{"type":"uint256","name":"_launchTime","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"_today","internalType":"uint64"}],"name":"today","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBoost","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBurned","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalDrip","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalReward","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalStaked","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateDay","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateWhitelist","inputs":[{"type":"address[]","name":"_accounts","internalType":"address[]"},{"type":"bool","name":"_whitelisted","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateWhitelistAll","inputs":[{"type":"bool","name":"_whitelistAll","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"whitelistAll","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"wrappedToken","inputs":[]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x60806040523480156200001157600080fd5b5060405162005aa338038062005aa383398101604081905262000034916200094d565b6200003f336200005e565b6001805562000053338686868686620000b9565b505050505062000aa3565b600080546001600160a01b038381166201000081810262010000600160b01b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600054610100900460ff1680620000d3575060005460ff16155b6200013c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff161580156200015f576000805461ffff19166101011790555b6200016a876200005e565b6367165e60600e5560005b6001811015620001d457662386f26fc10000600f82600181106200019d576200019d62000a1b565b0155662386f26fc1000060108260018110620001bd57620001bd62000a1b565b015580620001cb8162000a47565b91505062000175565b506011805460ff191690556000601281905560138190555b60018110156200028d576000601482600181106200020e576200020e62000a1b565b015560006015826001811062000228576200022862000a1b565b015560006016826001811062000242576200024262000a1b565b01556000601782600181106200025c576200025c62000a1b565b015560006018826001811062000276576200027662000a1b565b015580620002848162000a47565b915050620001ec565b5060005b6008811015620002e457600060198260088110620002b357620002b362000a1b565b0155600060218260088110620002cd57620002cd62000a1b565b015580620002db8162000a47565b91505062000291565b50620002ef62000796565b602980546001600160401b0319166001600160401b039290921691909117905560005b6001811015620003d95760005b81811015620003c3578681600181106200033d576200033d62000a1b565b60200201516001600160a01b031687836001811062000360576200036062000a1b565b60200201516001600160a01b03161415620003ae5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b604482015260640162000133565b80620003ba8162000a47565b9150506200031f565b5080620003d08162000a47565b91505062000312565b5060005b6008811015620004a45760005b818110156200048e5785816008811062000408576200040862000a1b565b60200201516001600160a01b03168683600881106200042b576200042b62000a1b565b60200201516001600160a01b03161415620004795760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b604482015260640162000133565b80620004858162000a47565b915050620003ea565b50806200049b8162000a47565b915050620003dd565b5084516001600160a01b03878116911614620004f35760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b604482015260640162000133565b60015b6001811015620005d0576000805b60088110156200057a5786816008811062000523576200052362000a1b565b60200201516001600160a01b031688846001811062000546576200054662000a1b565b60200201516001600160a01b031614156200056557600191506200057a565b80620005718162000a47565b91505062000504565b5080620005ba5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b604482015260640162000133565b5080620005c78162000a47565b915050620004f6565b5060005b60088110156200066057866001600160a01b0316858260088110620005fd57620005fd62000a1b565b60200201516001600160a01b031614156200064b5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b604482015260640162000133565b80620006578162000a47565b915050620005d4565b50856001600160a01b0316826001600160a01b03161415620006b55760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b604482015260640162000133565b600280546001600160a01b038089166001600160a01b0319928316179092556003805492861692909116919091179055620006f46004866001620007bb565b5062000704600585600862000818565b50600d80546001600160a01b0319166001600160a01b0384811691909117909155604051633d0c1b3360e01b81526000600482015290871690633d0c1b3390602401600060405180830381600087803b1580156200076157600080fd5b505af115801562000776573d6000803e3d6000fd5b5050505080156200078d576000805461ff00191690555b50505050505050565b600062015180620007aa61e1004262000a65565b620007b6919062000a80565b905090565b826001810192821562000806579160200282015b828111156200080657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620007cf565b506200081492915062000862565b5090565b82600881019282156200080657916020028201828111156200080657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620007cf565b5b8082111562000814576000815560010162000863565b80516001600160a01b03811681146200089157600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60405161010081016001600160401b0381118282101715620008d257620008d262000896565b60405290565b604051602081016001600160401b0381118282101715620008d257620008d262000896565b600062000909620008ac565b9050806101008301848111156200091f57600080fd5b835b818110156200094457620009358162000879565b83526020928301920162000921565b50505092915050565b600080600080600061018086880312156200096757600080fd5b620009728662000879565b9450602087603f8801126200098657600080fd5b62000990620008d8565b80604089018a811115620009a357600080fd5b838a015b81811015620009c957620009bb8162000879565b8452928401928401620009a7565b508197508a605f8b0112620009dd57600080fd5b620009e98b82620008fd565b965050505050620009fe610140870162000879565b915062000a0f610160870162000879565b90509295509295909350565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141562000a5e5762000a5e62000a31565b5060010190565b6000821982111562000a7b5762000a7b62000a31565b500190565b60008262000a9e57634e487b7160e01b600052601260045260246000fd5b500490565b614ff08062000ab36000396000f3fe6080604052600436106103175760003560e01c80638da5cb5b1161019a578063c89ebaec116100e1578063e72f6e301161008a578063f2fde38b11610064578063f2fde38b1461098a578063f4325d67146109aa578063f6d4277a146109ca57600080fd5b8063e72f6e301461091d578063edc017521461093d578063f1ddf8401461096a57600080fd5b8063d89135cd116100bb578063d89135cd146108c7578063e33702d7146108dd578063e4879b88146108fd57600080fd5b8063c89ebaec14610863578063d1058e5914610883578063d5eae1d5146108a757600080fd5b8063aff177ca11610143578063b82e74eb1161011d578063b82e74eb146107e3578063be80701614610803578063c194efbf1461084357600080fd5b8063aff177ca1461078e578063b6b55f25146107ae578063b74e452b146107ce57600080fd5b80639ff46e74116101745780639ff46e74146106b8578063a7310b58146106d8578063ae169a501461076e57600080fd5b80638da5cb5b1461065457806392a5261314610678578063996c6cc31461069857600080fd5b80635d54e6121161025e5780637b460b2a11610207578063817b1cd2116101e1578063817b1cd2146105e9578063895ff41d146105ff5780638cbba57a1461063457600080fd5b80637b460b2a1461056f5780637b58389e1461058f5780637b76ac91146105af57600080fd5b80636f55184b116102385780636f55184b14610524578063715018a614610544578063790ca4131461055957600080fd5b80635d54e612146104c557806368c958ee146104ef5780636d9873c51461050f57600080fd5b806336f9825f116102c057806342966c681161029a57806342966c68146104655780634ccc895b14610485578063509b6c3f146104a557600080fd5b806336f9825f146103f85780633a589b971461043057806341632d331461045057600080fd5b806323a6f46e116102f157806323a6f46e146103985780632b653797146103b85780632e1a7d4d146103d857600080fd5b80630b9166de146103235780630f392ad01461035657806322ac7b8f1461037657600080fd5b3661031e57005b600080fd5b34801561032f57600080fd5b5061034361033e3660046149c3565b6109ea565b6040519081526020015b60405180910390f35b34801561036257600080fd5b506103436103713660046149c3565b610a01565b34801561038257600080fd5b506103966103913660046149ea565b610a11565b005b3480156103a457600080fd5b506103436103b33660046149c3565b610a8a565b3480156103c457600080fd5b506103436103d33660046149c3565b610a9a565b3480156103e457600080fd5b506103966103f33660046149c3565b610aaa565b34801561040457600080fd5b506104186104133660046149c3565b610db8565b6040516001600160a01b03909116815260200161034d565b34801561043c57600080fd5b50600354610418906001600160a01b031681565b34801561045c57600080fd5b50602a54610343565b34801561047157600080fd5b506103966104803660046149c3565b610de2565b34801561049157600080fd5b506103966104a0366004614a07565b610def565b3480156104b157600080fd5b506104186104c03660046149c3565b6111dc565b3480156104d157600080fd5b506011546104df9060ff1681565b604051901515815260200161034d565b3480156104fb57600080fd5b5061039661050a366004614a45565b6111fc565b34801561051b57600080fd5b50610396611359565b34801561053057600080fd5b5061034361053f3660046149c3565b6113ad565b34801561055057600080fd5b506103966113bd565b34801561056557600080fd5b50610343600e5481565b34801561057b57600080fd5b5061034361058a3660046149c3565b61142a565b34801561059b57600080fd5b506103436105aa3660046149c3565b61143a565b3480156105bb57600080fd5b506029546105d09067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161034d565b3480156105f557600080fd5b5061034360125481565b34801561060b57600080fd5b5061061f61061a3660046149c3565b61144a565b6040805192835260208301919091520161034d565b34801561064057600080fd5b5061061f61064f366004614a71565b611724565b34801561066057600080fd5b506000546201000090046001600160a01b0316610418565b34801561068457600080fd5b50610396610693366004614a07565b611778565b3480156106a457600080fd5b50600d54610418906001600160a01b031681565b3480156106c457600080fd5b506103966106d33660046149c3565b611aac565b3480156106e457600080fd5b506107336106f3366004614a9b565b602b602052600090815260409020805460018201546016830154601784015460188501546019909501549394929360ff8084169461010090940416929087565b604080519788526020880196909652931515948601949094529015156060850152608084015260a083019190915260c082015260e00161034d565b34801561077a57600080fd5b506103436107893660046149c3565b611ba1565b34801561079a57600080fd5b506103966107a9366004614ab6565b611d3c565b3480156107ba57600080fd5b506103966107c93660046149c3565b611e17565b3480156107da57600080fd5b506105d0611ef3565b3480156107ef57600080fd5b506103966107fe366004614be3565b611f14565b34801561080f57600080fd5b5061082361081e366004614a71565b612589565b60408051948552602085019390935291830152606082015260800161034d565b34801561084f57600080fd5b5061034361085e3660046149c3565b612614565b34801561086f57600080fd5b5061041861087e3660046149c3565b612624565b34801561088f57600080fd5b50610898612634565b60405161034d93929190614cf4565b3480156108b357600080fd5b506103966108c2366004614a07565b612bfc565b3480156108d357600080fd5b5061034360135481565b3480156108e957600080fd5b506103966108f8366004614a07565b612d1c565b34801561090957600080fd5b506103436109183660046149c3565b612e37565b34801561092957600080fd5b50610396610938366004614a9b565b612e47565b34801561094957600080fd5b5061095d6109583660046149c3565b613096565b60405161034d9190614d1d565b34801561097657600080fd5b50610396610985366004614a45565b613289565b34801561099657600080fd5b506103966109a5366004614a9b565b61335c565b3480156109b657600080fd5b50600254610418906001600160a01b031681565b3480156109d657600080fd5b5061061f6109e53660046149c3565b613442565b600f81600181106109fa57600080fd5b0154905081565b601881600181106109fa57600080fd5b6000546001600160a01b0362010000909104163314610a775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6011805460ff1916911515919091179055565b601981600881106109fa57600080fd5b601781600181106109fa57600080fd5b60026001541415610aeb5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015580610b2e5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b336000908152602b60205260409020805480831115610b8f5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610a6e565b610b976136af565b610bab33610ba485614e02565b6000613b25565b8260126000828254610bbd9190614e1f565b9091555050601682015460ff1680610bd7575060115460ff165b15610bf857600254610bf3906001600160a01b03163385613f2c565b610d6b565b6000670de0b6b3a7640000610c1485662386f26fc10000614e36565b610c1e9190614e55565b90506000610c2d826009614e36565b90506000610c3c83600b614e36565b610c469087614e1f565b90508160146000016000828254610c5d9190614e8d565b909155505060125415610cd657601254610c78846002614e36565b610c91906ec097ce7bc90715b34b9f1000000000614e36565b610c9b9190614e55565b60178054600090610cad908490614e8d565b90915550610cbe9050836002614e36565b60158054600090610cd0908490614e8d565b90915550505b60135415610d3757601354610cfa846ec097ce7bc90715b34b9f1000000000614e36565b610d049190614e55565b60188054600090610d16908490614e8d565b9091555083905060166000016000828254610d319190614e8d565b90915550505b600254610d50906001600160a01b031661dead85613f2c565b600254610d67906001600160a01b03163383613f2c565b5050505b6002546040518481526001600160a01b039091169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a350506001805550565b602a8181548110610dc857600080fd5b6000918252602090912001546001600160a01b0316905081565b610dec81336111fc565b50565b60026001541415610e305760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015560088210610e755760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b60008111610eb65760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b610ebe6136af565b600060125411610f105760405162461bcd60e51b815260206004820152600b60248201527f6e6f206465706f736974730000000000000000000000000000000000000000006044820152606401610a6e565b600060058360088110610f2557610f25614e77565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610f6757600080fd5b505afa158015610f7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9f9190614ea5565b9050610fcd33308460058760088110610fba57610fba614e77565b01546001600160a01b0316929190613fc1565b8060058460088110610fe157610fe1614e77565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561102357600080fd5b505afa158015611037573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105b9190614ea5565b6110659190614e1f565b600d549092506001600160a01b031690506005836008811061108957611089614e77565b01546001600160a01b0316141561110b57600582600881106110ad576110ad614e77565b0154604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156110f257600080fd5b505af1158015611106573d6000803e3d6000fd5b505050505b60125461112082670de0b6b3a7640000614e36565b61112a9190614e55565b6021836008811061113d5761113d614e77565b01600082825461114d9190614e8d565b909155508190506019836008811061116757611167614e77565b0160008282546111779190614e8d565b9091555060059050826008811061119057611190614e77565b01546040518281526001600160a01b039091169033907f9ed97645fb5853abbbe66e94ac8ed13dac4d3ff7afe85b05c0e2b323b4014193906020015b60405180910390a3505060018055565b600581600881106111ec57600080fd5b01546001600160a01b0316905081565b600e5442101561123c5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b6002600154141561127d5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600155816112c05760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6112c86136af565b6112d481600084613b25565b81601360008282546112e69190614e8d565b9091555050600354611317906001600160a01b03163373cd8ddee99c0c4be4cd699661ae9c00c69d1eb4a885613fc1565b6003546040518381526001600160a01b03918216918316907fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b9453906020016111cc565b6002600154141561139a5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b60026001556113a76136af565b60018055565b601481600181106109fa57600080fd5b6000546001600160a01b036201000090910416331461141e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b6114286000613ff9565b565b601581600181106109fa57600080fd5b601681600181106109fa57600080fd5b6000806002600154141561148e5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600190815583106114d35760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b6002546001600160a01b0316600484600181106114f2576114f2614e77565b01546001600160a01b03161461153a5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b6115426136af565b61154e33600080613b25565b336000908152602b6020526040902060028101846001811061157257611572614e77565b0154925080600301846001811061158b5761158b614e77565b0154915082156116025760008160020185600181106115ac576115ac614e77565b015582601485600181106115c2576115c2614e77565b0160008282546115d29190614e1f565b90915550839050601585600181106115ec576115ec614e77565b0160008282546115fc9190614e1f565b90915550505b811561164b57600081600301856001811061161f5761161f614e77565b0155816016856001811061163557611635614e77565b0160008282546116459190614e1f565b90915550505b60006116578385614e8d565b9050801561166a5761166a30823361406a565b6004856001811061167d5761167d614e77565b01546040518581526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc639060200160405180910390a3600485600181106116d3576116d3614e77565b01546040518481526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc63906020015b60405180910390a35050600180559092909150565b6001600160a01b0382166000908152602b60205260408120819060068101846008811061175357611753614e77565b015481600e01856008811061176a5761176a614e77565b015492509250509250929050565b600260015414156117b95760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600190815582106117fe5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b6000811161183f5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6118476136af565b60006004836001811061185c5761185c614e77565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561189e57600080fd5b505afa1580156118b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d69190614ea5565b90506118f133308460048760018110610fba57610fba614e77565b806004846001811061190557611905614e77565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561194757600080fd5b505afa15801561195b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197f9190614ea5565b6119899190614e1f565b600d549092506001600160a01b03169050600483600181106119ad576119ad614e77565b01546001600160a01b03161415611a2f57600482600181106119d1576119d1614e77565b0154604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015611a1657600080fd5b505af1158015611a2a573d6000803e3d6000fd5b505050505b8060148360018110611a4357611a43614e77565b016000828254611a539190614e8d565b90915550600490508260018110611a6c57611a6c614e77565b01546040518281526001600160a01b039091169033907f88923243846ae6dc2129c36897f0c50381bac23792669a4ab5bc456dd9976177906020016111cc565b6000546001600160a01b0362010000909104163314611b0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b600e544210611b4c5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b42811015611b9c5760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642074696d6500000000000000000000000000000000000000006044820152606401610a6e565b600e55565b600060026001541415611be45760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015560088210611c295760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b611c316136af565b611c3d33600080613b25565b336000908152602b60205260409020600681018360088110611c6157611c61614e77565b015491508115611cae576000816006018460088110611c8257611c82614e77565b01558160198460088110611c9857611c98614e77565b016000828254611ca89190614e1f565b90915550505b8115611cdc57611cdc60058460088110611cca57611cca614e77565b01546001600160a01b03163384614366565b60058360088110611cef57611cef614e77565b01546040518381526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a35060018055919050565b6000546001600160a01b0362010000909104163314611d9d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60005b82811015611e115781602b6000868685818110611dbf57611dbf614e77565b9050602002016020810190611dd49190614a9b565b6001600160a01b031681526020810191909152604001600020601601805460ff191691151591909117905580611e0981614ebe565b915050611da0565b50505050565b600e54421015611e575760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b60026001541415611e985760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600155611ea833828161406a565b6002546040518281526001600160a01b039091169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a35060018055565b600062015180611f0561e10042614e8d565b611f0f9190614e55565b905090565b600054610100900460ff1680611f2d575060005460ff16155b611f9f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610a6e565b600054610100900460ff16158015611fc1576000805461ffff19166101011790555b611fca87613ff9565b6367165e60600e5560005b600181101561202a57662386f26fc10000600f8260018110611ff957611ff9614e77565b0155662386f26fc100006010826001811061201657612016614e77565b01558061202281614ebe565b915050611fd5565b506011805460ff191690556000601281905560138190555b60018110156120d05760006014826001811061206057612060614e77565b015560006015826001811061207757612077614e77565b015560006016826001811061208e5761208e614e77565b01556000601782600181106120a5576120a5614e77565b01556000601882600181106120bc576120bc614e77565b0155806120c881614ebe565b915050612042565b5060005b600881101561211d576000601982600881106120f2576120f2614e77565b015560006021826008811061210957612109614e77565b01558061211581614ebe565b9150506120d4565b50612126611ef3565b6029805467ffffffffffffffff191667ffffffffffffffff9290921691909117905560005b60018110156122025760005b818110156121ef5786816001811061217157612171614e77565b60200201516001600160a01b031687836001811061219157612191614e77565b60200201516001600160a01b031614156121dd5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b806121e781614ebe565b915050612157565b50806121fa81614ebe565b91505061214b565b5060005b60088110156122bd5760005b818110156122aa5785816008811061222c5761222c614e77565b60200201516001600160a01b031686836008811061224c5761224c614e77565b60200201516001600160a01b031614156122985760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b806122a281614ebe565b915050612212565b50806122b581614ebe565b915050612206565b5084516001600160a01b0387811691161461230a5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b60015b60018110156123d5576000805b60088110156123845786816008811061233557612335614e77565b60200201516001600160a01b031688846001811061235557612355614e77565b60200201516001600160a01b031614156123725760019150612384565b8061237c81614ebe565b91505061231a565b50806123c25760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b50806123cd81614ebe565b91505061230d565b5060005b600881101561245c57866001600160a01b03168582600881106123fe576123fe614e77565b60200201516001600160a01b0316141561244a5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b8061245481614ebe565b9150506123d9565b50856001600160a01b0316826001600160a01b031614156124af5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b600280546001600160a01b038089166001600160a01b03199283161790925560038054928616929091169190911790556124ec6004866001614842565b506124fa600585600861489a565b50600d80546001600160a01b0319166001600160a01b0384811691909117909155604051633d0c1b3360e01b81526000600482015290871690633d0c1b3390602401600060405180830381600087803b15801561255657600080fd5b505af115801561256a573d6000803e3d6000fd5b505050508015612580576000805461ff00191690555b50505050505050565b6001600160a01b0382166000908152602b602052604081208190819081906002810186600181106125bc576125bc614e77565b01548160030187600181106125d3576125d3614e77565b01548260040188600181106125ea576125ea614e77565b015483600501896001811061260157612601614e77565b0154929a91995097509095509350505050565b602181600881106109fa57600080fd5b600481600181106111ec57600080fd5b61263c6148e1565b6126446148e1565b61264c6148ff565b6002600154141561268d5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015561269a6136af565b6126a633600080613b25565b336000908152602b60205260408120905b600181101561272e578160020181600181106126d5576126d5614e77565b01548582600181106126e9576126e9614e77565b602002015260038201816001811061270357612703614e77565b015484826001811061271757612717614e77565b60200201528061272681614ebe565b9150506126b7565b5060005b600881101561277b5781600601816008811061275057612750614e77565b015483826008811061276457612764614e77565b60200201528061277381614ebe565b915050612732565b5060005b60018110156128ca57600085826001811061279c5761279c614e77565b602002015111156128405760008260020182600181106127be576127be614e77565b01558481600181106127d2576127d2614e77565b6020020151601482600181106127ea576127ea614e77565b0160008282546127fa9190614e1f565b90915550859050816001811061281257612812614e77565b60200201516015826001811061282a5761282a614e77565b01600082825461283a9190614e1f565b90915550505b600084826001811061285457612854614e77565b602002015111156128b857600082600301826001811061287657612876614e77565b015583816001811061288a5761288a614e77565b6020020151601682600181106128a2576128a2614e77565b0160008282546128b29190614e1f565b90915550505b806128c281614ebe565b91505061277f565b5060005b60088110156129615760008382600881106128eb576128eb614e77565b6020020151111561294f57600082600601826008811061290d5761290d614e77565b015582816008811061292157612921614e77565b60200201516019826008811061293957612939614e77565b0160008282546129499190614e1f565b90915550505b8061295981614ebe565b9150506128ce565b5060005b60018110156129eb57600084826001811061298257612982614e77565b602002015186836001811061299957612999614e77565b60200201516129a89190614e8d565b905080156129d8576129d8600483600181106129c6576129c6614e77565b01546001600160a01b03163383614366565b50806129e381614ebe565b915050612965565b5060005b6008811015612a67576000838260088110612a0c57612a0c614e77565b60200201511115612a5557612a5560058260088110612a2d57612a2d614e77565b01546001600160a01b031633858460088110612a4b57612a4b614e77565b6020020151614366565b80612a5f81614ebe565b9150506129ef565b5060005b6001811015612b625760048160018110612a8757612a87614e77565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068878460018110612ac657612ac6614e77565b6020020151604051612ada91815260200190565b60405180910390a360048160018110612af557612af5614e77565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068868460018110612b3457612b34614e77565b6020020151604051612b4891815260200190565b60405180910390a380612b5a81614ebe565b915050612a6b565b5060005b6008811015612bef5760058160088110612b8257612b82614e77565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068858460088110612bc157612bc1614e77565b6020020151604051612bd591815260200190565b60405180910390a380612be781614ebe565b915050612b66565b5050600180559192909190565b6000546001600160a01b0362010000909104163314612c5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60018210612c9d5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b670de0b6b3a764000060108360018110612cb957612cb9614e77565b0154612cc59083614e8d565b1115612d025760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610a6e565b80600f8360018110612d1657612d16614e77565b01555050565b6000546001600160a01b0362010000909104163314612d7d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60018210612dbd5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b670de0b6b3a764000081600f8460018110612dda57612dda614e77565b0154612de69190614e8d565b1115612e235760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610a6e565b8060108360018110612d1657612d16614e77565b601081600181106109fa57600080fd5b6000546001600160a01b0362010000909104163314612ea85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60026001541415612ee95760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015560005b6008811015612f6c5760058160088110612f0d57612f0d614e77565b01546001600160a01b0383811691161415612f5a5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b80612f6481614ebe565b915050612ef1565b506040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015612faf57600080fd5b505afa158015612fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fe79190614ea5565b6002549091506001600160a01b038381169116141561302a576016546014546012546130139190614e8d565b61301d9190614e8d565b6130279082614e1f565b90505b6000811161307a5760405162461bcd60e51b815260206004820152600a60248201527f6e6f2062616c616e6365000000000000000000000000000000000000000000006044820152606401610a6e565b61308e6001600160a01b0383163383613f2c565b505060018055565b61309e61491e565b602b6000602a84815481106130b5576130b5614e77565b6000918252602080832091909101546001600160a01b03168352828101939093526040918201902081516101a08101835281548152600180830154828601528351948501808552919492938501929160028501919082845b81548152602001906001019080831161310d575050509183525050604080516020808201928390529092019190600384019060019082845b815481526020019060010190808311613145575050509183525050604080516020808201928390529092019190600484019060019082845b81548152602001906001019080831161317d575050509183525050604080516020808201928390529092019190600584019060019082845b8154815260200190600101908083116131b55750505091835250506040805161010081019182905260209092019190600684019060089082845b8154815260200190600101908083116131ef5750505091835250506040805161010081019182905260209092019190600e84019060089082845b815481526020019060010190808311613229575050509183525050601682015460ff808216151560208401526101009091041615156040820152601782015460608201526018820154608082015260199091015460a09091015292915050565b600e544210156132c95760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b6002600154141561330a5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015561331a33838361406a565b6002546040518381526001600160a01b03918216918316907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62906020016111cc565b6000546001600160a01b03620100009091041633146133bd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b6001600160a01b0381166134395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a6e565b610dec81613ff9565b600080600260015414156134865760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600190815583106134cb5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b6134d36136af565b6134df33600080613b25565b336000908152602b6020526040902060028101846001811061350357613503614e77565b0154925080600301846001811061351c5761351c614e77565b01549150821561359357600081600201856001811061353d5761353d614e77565b0155826014856001811061355357613553614e77565b0160008282546135639190614e1f565b909155508390506015856001811061357d5761357d614e77565b01600082825461358d9190614e1f565b90915550505b81156135dc5760008160030185600181106135b0576135b0614e77565b015581601685600181106135c6576135c6614e77565b0160008282546135d69190614e1f565b90915550505b60006135e88385614e8d565b9050801561360657613606600486600181106129c6576129c6614e77565b6004856001811061361957613619614e77565b01546040518581526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a36004856001811061366f5761366f614e77565b01546040518481526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200161170f565b60006136b9611ef3565b60295490915067ffffffffffffffff808316911614156136d65750565b60005b6001811015613950576000601082600181106136f7576136f7614e77565b0154600f836001811061370c5761370c614e77565b01546137189190614e8d565b9050801561393d5760295460009061373a9067ffffffffffffffff1685614ed9565b9050600061376361375384670de0b6b3a7640000614e1f565b8367ffffffffffffffff166143a2565b61377590670de0b6b3a7640000614e1f565b90506000670de0b6b3a7640000826015876001811061379657613796614e77565b0154601488600181106137ab576137ab614e77565b01546137b79190614e1f565b6137c19190614e36565b6137cb9190614e55565b9050600084600f87600181106137e3576137e3614e77565b01546137ef9084614e36565b6137f99190614e55565b6012549091501561387d57601254613820826ec097ce7bc90715b34b9f1000000000614e36565b61382a9190614e55565b6017876001811061383d5761383d614e77565b01600082825461384d9190614e8d565b909155508190506015876001811061386757613867614e77565b0160008282546138779190614e8d565b90915550505b60006138898284614e1f565b60135490915015613937576013546138b0826ec097ce7bc90715b34b9f1000000000614e36565b6138ba9190614e55565b601888600181106138cd576138cd614e77565b0160008282546138dd9190614e8d565b90915550819050601488600181106138f7576138f7614e77565b0160008282546139079190614e1f565b909155508190506016886001811061392157613921614e77565b0160008282546139319190614e8d565b90915550505b50505050505b508061394881614ebe565b9150506136d9565b5060125415613b0157600254613971906001600160a01b0316306000613f2c565b60005b6008811015613aff5760006019826008811061399257613992614e77565b01546139bb600584600881106139aa576139aa614e77565b01546001600160a01b03163061440c565b6139c59190614e1f565b905060015b6001811015613a6c57600583600881106139e6576139e6614e77565b01546001600160a01b031660048260018110613a0457613a04614e77565b01546001600160a01b03161415613a5a5760168160018110613a2857613a28614e77565b015460148260018110613a3d57613a3d614e77565b0154613a499190614e8d565b613a539083614e1f565b9150613a6c565b80613a6481614ebe565b9150506139ca565b508015613aec57601254613a8f826ec097ce7bc90715b34b9f1000000000614e36565b613a999190614e55565b60218360088110613aac57613aac614e77565b016000828254613abc9190614e8d565b9091555081905060198360088110613ad657613ad6614e77565b016000828254613ae69190614e8d565b90915550505b5080613af781614ebe565b915050613974565b505b6029805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b6001600160a01b0383166000908152602b602052604090206016810154610100900460ff16613bad5760168101805461ff001916610100179055602a80546001810182556000919091527fbeced09521047d05b8960b7e7bcc1d1292cf3e4b2a6b63f48335cbde5f7545d20180546001600160a01b0386166001600160a01b03199091161790555b60005b6001811015613cdb57816004018160018110613bce57613bce614e77565b01546ec097ce7bc90715b34b9f100000000060178360018110613bf357613bf3614e77565b01548454613c019190614e36565b613c0b9190614e55565b613c159190614e1f565b826002018260018110613c2a57613c2a614e77565b016000828254613c3a9190614e8d565b9091555050600582018160018110613c5457613c54614e77565b01546ec097ce7bc90715b34b9f100000000060188360018110613c7957613c79614e77565b01548460010154613c8a9190614e36565b613c949190614e55565b613c9e9190614e1f565b826003018260018110613cb357613cb3614e77565b016000828254613cc39190614e8d565b90915550819050613cd381614ebe565b915050613bb0565b5060005b6008811015613d815781600e018160088110613cfd57613cfd614e77565b01546ec097ce7bc90715b34b9f100000000060218360088110613d2257613d22614e77565b01548454613d309190614e36565b613d3a9190614e55565b613d449190614e1f565b826006018260088110613d5957613d59614e77565b016000828254613d699190614e8d565b90915550819050613d7981614ebe565b915050613cdf565b506000831315613daa5782816000016000828254613d9f9190614e8d565b90915550613dd59050565b6000831215613dd557613dbc83614e02565b816000016000828254613dcf9190614e1f565b90915550505b81816001016000828254613de99190614e8d565b90915550600090505b6001811015613eb4576ec097ce7bc90715b34b9f100000000060178260018110613e1e57613e1e614e77565b01548354613e2c9190614e36565b613e369190614e55565b826004018260018110613e4b57613e4b614e77565b01556ec097ce7bc90715b34b9f100000000060188260018110613e7057613e70614e77565b01548360010154613e819190614e36565b613e8b9190614e55565b826005018260018110613ea057613ea0614e77565b015580613eac81614ebe565b915050613df2565b5060005b6008811015613f25576ec097ce7bc90715b34b9f100000000060218260088110613ee457613ee4614e77565b01548354613ef29190614e36565b613efc9190614e55565b82600e018260088110613f1157613f11614e77565b015580613f1d81614ebe565b915050613eb8565b5050505050565b6040516001600160a01b038316602482015260448101829052613fbc90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526144b5565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611e119085906323b872dd60e01b90608401613f58565b600080546001600160a01b03838116620100008181027fffffffffffffffffffff0000000000000000000000000000000000000000ffff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600082116140ab5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6140b36136af565b6001600160a01b03831630146141e3576002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561410757600080fd5b505afa15801561411b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061413f9190614ea5565b60025490915061415a906001600160a01b0316853086613fc1565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561419d57600080fd5b505afa1580156141b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d59190614ea5565b6141df9190614e1f565b9250505b6000670de0b6b3a76400006141ff84662386f26fc10000614e36565b6142099190614e55565b90506000614218826009614e36565b9050600061422783600b614e36565b6142319086614e1f565b905081601460000160008282546142489190614e8d565b9091555050601254156142c157601254614263846002614e36565b61427c906ec097ce7bc90715b34b9f1000000000614e36565b6142869190614e55565b60178054600090614298908490614e8d565b909155506142a99050836002614e36565b601580546000906142bb908490614e8d565b90915550505b60135415614322576013546142e5846ec097ce7bc90715b34b9f1000000000614e36565b6142ef9190614e55565b60188054600090614301908490614e8d565b909155508390506016600001600082825461431c9190614e8d565b90915550505b61432e84826000613b25565b80601260008282546143409190614e8d565b909155505060025461435e906001600160a01b031661dead85613f2c565b505050505050565b600d546001600160a01b0384811691161461438f57613fbc6001600160a01b0384168383613f2c565b613fbc6001600160a01b0383168261459a565b670de0b6b3a76400005b81156144065760018216156143db57670de0b6b3a76400006143ce8483614e36565b6143d89190614e55565b90505b60019190911c90670de0b6b3a76400006143f58480614e36565b6143ff9190614e55565b92506143ac565b92915050565b600d546000906001600160a01b038481169116146144a2576040516370a0823160e01b81526001600160a01b0383811660048301528416906370a082319060240160206040518083038186803b15801561446557600080fd5b505afa158015614479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061449d9190614ea5565b6144ae565b816001600160a01b0316315b9392505050565b600061450a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166146b39092919063ffffffff16565b805190915015613fbc57808060200190518101906145289190614f02565b613fbc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a6e565b804710156145ea5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a6e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614637576040519150601f19603f3d011682016040523d82523d6000602084013e61463c565b606091505b5050905080613fbc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a6e565b60606146c284846000856146ca565b949350505050565b6060824710156147425760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a6e565b843b6147905760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a6e565b600080866001600160a01b031685876040516147ac9190614f4b565b60006040518083038185875af1925050503d80600081146147e9576040519150601f19603f3d011682016040523d82523d6000602084013e6147ee565b606091505b50915091506147fe828286614809565b979650505050505050565b606083156148185750816144ae565b8251156148285782518084602001fd5b8160405162461bcd60e51b8152600401610a6e9190614f67565b826001810192821561488a579160200282015b8281111561488a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614855565b506148969291506149ae565b5090565b826008810192821561488a579160200282018281111561488a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614855565b60405180602001604052806001906020820280368337509192915050565b6040518061010001604052806008906020820280368337509192915050565b604051806101a0016040528060008152602001600081526020016149406148e1565b815260200161494d6148e1565b815260200161495a6148e1565b81526020016149676148e1565b81526020016149746148ff565b81526020016149816148ff565b81526020016000151581526020016000151581526020016000815260200160008152602001600081525090565b5b8082111561489657600081556001016149af565b6000602082840312156149d557600080fd5b5035919050565b8015158114610dec57600080fd5b6000602082840312156149fc57600080fd5b81356144ae816149dc565b60008060408385031215614a1a57600080fd5b50508035926020909101359150565b80356001600160a01b0381168114614a4057600080fd5b919050565b60008060408385031215614a5857600080fd5b82359150614a6860208401614a29565b90509250929050565b60008060408385031215614a8457600080fd5b614a8d83614a29565b946020939093013593505050565b600060208284031215614aad57600080fd5b6144ae82614a29565b600080600060408486031215614acb57600080fd5b833567ffffffffffffffff80821115614ae357600080fd5b818601915086601f830112614af757600080fd5b813581811115614b0657600080fd5b8760208260051b8501011115614b1b57600080fd5b60209283019550935050840135614b31816149dc565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b6040516020810167ffffffffffffffff81118282101715614b7557614b75614b3c565b60405290565b600060405161010080820182811067ffffffffffffffff82111715614ba257614ba2614b3c565b6040529091508190830184811115614bb957600080fd5b835b81811015614bda57614bcc81614a29565b835260209283019201614bbb565b50505092915050565b6000806000806000806101a08789031215614bfd57600080fd5b614c0687614a29565b95506020614c15818901614a29565b955088605f890112614c2657600080fd5b614c2e614b52565b8060608a018b811115614c4057600080fd5b60408b015b81811015614c6357614c5681614a29565b8452928401928401614c45565b508197508b607f8c0112614c7657600080fd5b614c808c82614b7b565b965050505050614c936101608801614a29565b9150614ca26101808801614a29565b90509295509295509295565b8060005b6001811015611e11578151845260209384019390910190600101614cb2565b8060005b6008811015611e11578151845260209384019390910190600101614cd5565b6101408101614d038286614cae565b614d106020830185614cae565b6146c26040830184614cd1565b60006103608201905082518252602083015160208301526040830151614d466040840182614cae565b506060830151614d596060840182614cae565b506080830151614d6c6080840182614cae565b5060a0830151614d7f60a0840182614cae565b5060c0830151614d9260c0840182614cd1565b5060e0830151614da66101c0840182614cd1565b5061010083015115156102c083015261012083015115156102e0830152610140830151610300830152610160830151610320830152610180909201516103409091015290565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b821415614e1857614e18614dec565b5060000390565b600082821015614e3157614e31614dec565b500390565b6000816000190483118215151615614e5057614e50614dec565b500290565b600082614e7257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60008219821115614ea057614ea0614dec565b500190565b600060208284031215614eb757600080fd5b5051919050565b6000600019821415614ed257614ed2614dec565b5060010190565b600067ffffffffffffffff83811690831681811015614efa57614efa614dec565b039392505050565b600060208284031215614f1457600080fd5b81516144ae816149dc565b60005b83811015614f3a578181015183820152602001614f22565b83811115611e115750506000910152565b60008251614f5d818460208701614f1f565b9190910192915050565b6020815260008251806020840152614f86816040850160208701614f1f565b601f01601f1916919091016040019291505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a2646970667358221220f57f1d944f801de66a0c0518f3fa2abc303d27cf8674f26694ecc4daf750e24a64736f6c634300080900330000000000000000000000003f881236c3e8fa27a87f1c122f938d4c31d153940000000000000000000000003f881236c3e8fa27a87f1c122f938d4c31d153940000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000002fa878ab3f87cc1c9737fc071108f904c0b0c95d00000000000000000000000095b303987a60c71504d99aa1b13b4da07b0790ab0000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb390000000000000000000000007fc66500c84a76ad7e9c93437bfc5ac33e2ddae900000000000000000000000000febf86e8f0673f0feadac14b5ea1a05e744cb7000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a2700000000000000000000000009e64c2b61a5f1690ee6fbed9baf5d6990f8dfd0000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a27
Deployed ByteCode
0x6080604052600436106103175760003560e01c80638da5cb5b1161019a578063c89ebaec116100e1578063e72f6e301161008a578063f2fde38b11610064578063f2fde38b1461098a578063f4325d67146109aa578063f6d4277a146109ca57600080fd5b8063e72f6e301461091d578063edc017521461093d578063f1ddf8401461096a57600080fd5b8063d89135cd116100bb578063d89135cd146108c7578063e33702d7146108dd578063e4879b88146108fd57600080fd5b8063c89ebaec14610863578063d1058e5914610883578063d5eae1d5146108a757600080fd5b8063aff177ca11610143578063b82e74eb1161011d578063b82e74eb146107e3578063be80701614610803578063c194efbf1461084357600080fd5b8063aff177ca1461078e578063b6b55f25146107ae578063b74e452b146107ce57600080fd5b80639ff46e74116101745780639ff46e74146106b8578063a7310b58146106d8578063ae169a501461076e57600080fd5b80638da5cb5b1461065457806392a5261314610678578063996c6cc31461069857600080fd5b80635d54e6121161025e5780637b460b2a11610207578063817b1cd2116101e1578063817b1cd2146105e9578063895ff41d146105ff5780638cbba57a1461063457600080fd5b80637b460b2a1461056f5780637b58389e1461058f5780637b76ac91146105af57600080fd5b80636f55184b116102385780636f55184b14610524578063715018a614610544578063790ca4131461055957600080fd5b80635d54e612146104c557806368c958ee146104ef5780636d9873c51461050f57600080fd5b806336f9825f116102c057806342966c681161029a57806342966c68146104655780634ccc895b14610485578063509b6c3f146104a557600080fd5b806336f9825f146103f85780633a589b971461043057806341632d331461045057600080fd5b806323a6f46e116102f157806323a6f46e146103985780632b653797146103b85780632e1a7d4d146103d857600080fd5b80630b9166de146103235780630f392ad01461035657806322ac7b8f1461037657600080fd5b3661031e57005b600080fd5b34801561032f57600080fd5b5061034361033e3660046149c3565b6109ea565b6040519081526020015b60405180910390f35b34801561036257600080fd5b506103436103713660046149c3565b610a01565b34801561038257600080fd5b506103966103913660046149ea565b610a11565b005b3480156103a457600080fd5b506103436103b33660046149c3565b610a8a565b3480156103c457600080fd5b506103436103d33660046149c3565b610a9a565b3480156103e457600080fd5b506103966103f33660046149c3565b610aaa565b34801561040457600080fd5b506104186104133660046149c3565b610db8565b6040516001600160a01b03909116815260200161034d565b34801561043c57600080fd5b50600354610418906001600160a01b031681565b34801561045c57600080fd5b50602a54610343565b34801561047157600080fd5b506103966104803660046149c3565b610de2565b34801561049157600080fd5b506103966104a0366004614a07565b610def565b3480156104b157600080fd5b506104186104c03660046149c3565b6111dc565b3480156104d157600080fd5b506011546104df9060ff1681565b604051901515815260200161034d565b3480156104fb57600080fd5b5061039661050a366004614a45565b6111fc565b34801561051b57600080fd5b50610396611359565b34801561053057600080fd5b5061034361053f3660046149c3565b6113ad565b34801561055057600080fd5b506103966113bd565b34801561056557600080fd5b50610343600e5481565b34801561057b57600080fd5b5061034361058a3660046149c3565b61142a565b34801561059b57600080fd5b506103436105aa3660046149c3565b61143a565b3480156105bb57600080fd5b506029546105d09067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161034d565b3480156105f557600080fd5b5061034360125481565b34801561060b57600080fd5b5061061f61061a3660046149c3565b61144a565b6040805192835260208301919091520161034d565b34801561064057600080fd5b5061061f61064f366004614a71565b611724565b34801561066057600080fd5b506000546201000090046001600160a01b0316610418565b34801561068457600080fd5b50610396610693366004614a07565b611778565b3480156106a457600080fd5b50600d54610418906001600160a01b031681565b3480156106c457600080fd5b506103966106d33660046149c3565b611aac565b3480156106e457600080fd5b506107336106f3366004614a9b565b602b602052600090815260409020805460018201546016830154601784015460188501546019909501549394929360ff8084169461010090940416929087565b604080519788526020880196909652931515948601949094529015156060850152608084015260a083019190915260c082015260e00161034d565b34801561077a57600080fd5b506103436107893660046149c3565b611ba1565b34801561079a57600080fd5b506103966107a9366004614ab6565b611d3c565b3480156107ba57600080fd5b506103966107c93660046149c3565b611e17565b3480156107da57600080fd5b506105d0611ef3565b3480156107ef57600080fd5b506103966107fe366004614be3565b611f14565b34801561080f57600080fd5b5061082361081e366004614a71565b612589565b60408051948552602085019390935291830152606082015260800161034d565b34801561084f57600080fd5b5061034361085e3660046149c3565b612614565b34801561086f57600080fd5b5061041861087e3660046149c3565b612624565b34801561088f57600080fd5b50610898612634565b60405161034d93929190614cf4565b3480156108b357600080fd5b506103966108c2366004614a07565b612bfc565b3480156108d357600080fd5b5061034360135481565b3480156108e957600080fd5b506103966108f8366004614a07565b612d1c565b34801561090957600080fd5b506103436109183660046149c3565b612e37565b34801561092957600080fd5b50610396610938366004614a9b565b612e47565b34801561094957600080fd5b5061095d6109583660046149c3565b613096565b60405161034d9190614d1d565b34801561097657600080fd5b50610396610985366004614a45565b613289565b34801561099657600080fd5b506103966109a5366004614a9b565b61335c565b3480156109b657600080fd5b50600254610418906001600160a01b031681565b3480156109d657600080fd5b5061061f6109e53660046149c3565b613442565b600f81600181106109fa57600080fd5b0154905081565b601881600181106109fa57600080fd5b6000546001600160a01b0362010000909104163314610a775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6011805460ff1916911515919091179055565b601981600881106109fa57600080fd5b601781600181106109fa57600080fd5b60026001541415610aeb5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015580610b2e5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b336000908152602b60205260409020805480831115610b8f5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610a6e565b610b976136af565b610bab33610ba485614e02565b6000613b25565b8260126000828254610bbd9190614e1f565b9091555050601682015460ff1680610bd7575060115460ff165b15610bf857600254610bf3906001600160a01b03163385613f2c565b610d6b565b6000670de0b6b3a7640000610c1485662386f26fc10000614e36565b610c1e9190614e55565b90506000610c2d826009614e36565b90506000610c3c83600b614e36565b610c469087614e1f565b90508160146000016000828254610c5d9190614e8d565b909155505060125415610cd657601254610c78846002614e36565b610c91906ec097ce7bc90715b34b9f1000000000614e36565b610c9b9190614e55565b60178054600090610cad908490614e8d565b90915550610cbe9050836002614e36565b60158054600090610cd0908490614e8d565b90915550505b60135415610d3757601354610cfa846ec097ce7bc90715b34b9f1000000000614e36565b610d049190614e55565b60188054600090610d16908490614e8d565b9091555083905060166000016000828254610d319190614e8d565b90915550505b600254610d50906001600160a01b031661dead85613f2c565b600254610d67906001600160a01b03163383613f2c565b5050505b6002546040518481526001600160a01b039091169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a350506001805550565b602a8181548110610dc857600080fd5b6000918252602090912001546001600160a01b0316905081565b610dec81336111fc565b50565b60026001541415610e305760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015560088210610e755760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b60008111610eb65760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b610ebe6136af565b600060125411610f105760405162461bcd60e51b815260206004820152600b60248201527f6e6f206465706f736974730000000000000000000000000000000000000000006044820152606401610a6e565b600060058360088110610f2557610f25614e77565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610f6757600080fd5b505afa158015610f7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9f9190614ea5565b9050610fcd33308460058760088110610fba57610fba614e77565b01546001600160a01b0316929190613fc1565b8060058460088110610fe157610fe1614e77565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561102357600080fd5b505afa158015611037573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105b9190614ea5565b6110659190614e1f565b600d549092506001600160a01b031690506005836008811061108957611089614e77565b01546001600160a01b0316141561110b57600582600881106110ad576110ad614e77565b0154604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156110f257600080fd5b505af1158015611106573d6000803e3d6000fd5b505050505b60125461112082670de0b6b3a7640000614e36565b61112a9190614e55565b6021836008811061113d5761113d614e77565b01600082825461114d9190614e8d565b909155508190506019836008811061116757611167614e77565b0160008282546111779190614e8d565b9091555060059050826008811061119057611190614e77565b01546040518281526001600160a01b039091169033907f9ed97645fb5853abbbe66e94ac8ed13dac4d3ff7afe85b05c0e2b323b4014193906020015b60405180910390a3505060018055565b600581600881106111ec57600080fd5b01546001600160a01b0316905081565b600e5442101561123c5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b6002600154141561127d5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600155816112c05760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6112c86136af565b6112d481600084613b25565b81601360008282546112e69190614e8d565b9091555050600354611317906001600160a01b03163373cd8ddee99c0c4be4cd699661ae9c00c69d1eb4a885613fc1565b6003546040518381526001600160a01b03918216918316907fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b9453906020016111cc565b6002600154141561139a5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b60026001556113a76136af565b60018055565b601481600181106109fa57600080fd5b6000546001600160a01b036201000090910416331461141e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b6114286000613ff9565b565b601581600181106109fa57600080fd5b601681600181106109fa57600080fd5b6000806002600154141561148e5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600190815583106114d35760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b6002546001600160a01b0316600484600181106114f2576114f2614e77565b01546001600160a01b03161461153a5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b6115426136af565b61154e33600080613b25565b336000908152602b6020526040902060028101846001811061157257611572614e77565b0154925080600301846001811061158b5761158b614e77565b0154915082156116025760008160020185600181106115ac576115ac614e77565b015582601485600181106115c2576115c2614e77565b0160008282546115d29190614e1f565b90915550839050601585600181106115ec576115ec614e77565b0160008282546115fc9190614e1f565b90915550505b811561164b57600081600301856001811061161f5761161f614e77565b0155816016856001811061163557611635614e77565b0160008282546116459190614e1f565b90915550505b60006116578385614e8d565b9050801561166a5761166a30823361406a565b6004856001811061167d5761167d614e77565b01546040518581526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc639060200160405180910390a3600485600181106116d3576116d3614e77565b01546040518481526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc63906020015b60405180910390a35050600180559092909150565b6001600160a01b0382166000908152602b60205260408120819060068101846008811061175357611753614e77565b015481600e01856008811061176a5761176a614e77565b015492509250509250929050565b600260015414156117b95760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600190815582106117fe5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b6000811161183f5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6118476136af565b60006004836001811061185c5761185c614e77565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561189e57600080fd5b505afa1580156118b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d69190614ea5565b90506118f133308460048760018110610fba57610fba614e77565b806004846001811061190557611905614e77565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561194757600080fd5b505afa15801561195b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197f9190614ea5565b6119899190614e1f565b600d549092506001600160a01b03169050600483600181106119ad576119ad614e77565b01546001600160a01b03161415611a2f57600482600181106119d1576119d1614e77565b0154604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015611a1657600080fd5b505af1158015611a2a573d6000803e3d6000fd5b505050505b8060148360018110611a4357611a43614e77565b016000828254611a539190614e8d565b90915550600490508260018110611a6c57611a6c614e77565b01546040518281526001600160a01b039091169033907f88923243846ae6dc2129c36897f0c50381bac23792669a4ab5bc456dd9976177906020016111cc565b6000546001600160a01b0362010000909104163314611b0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b600e544210611b4c5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b42811015611b9c5760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642074696d6500000000000000000000000000000000000000006044820152606401610a6e565b600e55565b600060026001541415611be45760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015560088210611c295760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b611c316136af565b611c3d33600080613b25565b336000908152602b60205260409020600681018360088110611c6157611c61614e77565b015491508115611cae576000816006018460088110611c8257611c82614e77565b01558160198460088110611c9857611c98614e77565b016000828254611ca89190614e1f565b90915550505b8115611cdc57611cdc60058460088110611cca57611cca614e77565b01546001600160a01b03163384614366565b60058360088110611cef57611cef614e77565b01546040518381526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a35060018055919050565b6000546001600160a01b0362010000909104163314611d9d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60005b82811015611e115781602b6000868685818110611dbf57611dbf614e77565b9050602002016020810190611dd49190614a9b565b6001600160a01b031681526020810191909152604001600020601601805460ff191691151591909117905580611e0981614ebe565b915050611da0565b50505050565b600e54421015611e575760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b60026001541415611e985760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600155611ea833828161406a565b6002546040518281526001600160a01b039091169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a35060018055565b600062015180611f0561e10042614e8d565b611f0f9190614e55565b905090565b600054610100900460ff1680611f2d575060005460ff16155b611f9f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610a6e565b600054610100900460ff16158015611fc1576000805461ffff19166101011790555b611fca87613ff9565b6367165e60600e5560005b600181101561202a57662386f26fc10000600f8260018110611ff957611ff9614e77565b0155662386f26fc100006010826001811061201657612016614e77565b01558061202281614ebe565b915050611fd5565b506011805460ff191690556000601281905560138190555b60018110156120d05760006014826001811061206057612060614e77565b015560006015826001811061207757612077614e77565b015560006016826001811061208e5761208e614e77565b01556000601782600181106120a5576120a5614e77565b01556000601882600181106120bc576120bc614e77565b0155806120c881614ebe565b915050612042565b5060005b600881101561211d576000601982600881106120f2576120f2614e77565b015560006021826008811061210957612109614e77565b01558061211581614ebe565b9150506120d4565b50612126611ef3565b6029805467ffffffffffffffff191667ffffffffffffffff9290921691909117905560005b60018110156122025760005b818110156121ef5786816001811061217157612171614e77565b60200201516001600160a01b031687836001811061219157612191614e77565b60200201516001600160a01b031614156121dd5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b806121e781614ebe565b915050612157565b50806121fa81614ebe565b91505061214b565b5060005b60088110156122bd5760005b818110156122aa5785816008811061222c5761222c614e77565b60200201516001600160a01b031686836008811061224c5761224c614e77565b60200201516001600160a01b031614156122985760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b806122a281614ebe565b915050612212565b50806122b581614ebe565b915050612206565b5084516001600160a01b0387811691161461230a5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b60015b60018110156123d5576000805b60088110156123845786816008811061233557612335614e77565b60200201516001600160a01b031688846001811061235557612355614e77565b60200201516001600160a01b031614156123725760019150612384565b8061237c81614ebe565b91505061231a565b50806123c25760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b50806123cd81614ebe565b91505061230d565b5060005b600881101561245c57866001600160a01b03168582600881106123fe576123fe614e77565b60200201516001600160a01b0316141561244a5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b8061245481614ebe565b9150506123d9565b50856001600160a01b0316826001600160a01b031614156124af5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b600280546001600160a01b038089166001600160a01b03199283161790925560038054928616929091169190911790556124ec6004866001614842565b506124fa600585600861489a565b50600d80546001600160a01b0319166001600160a01b0384811691909117909155604051633d0c1b3360e01b81526000600482015290871690633d0c1b3390602401600060405180830381600087803b15801561255657600080fd5b505af115801561256a573d6000803e3d6000fd5b505050508015612580576000805461ff00191690555b50505050505050565b6001600160a01b0382166000908152602b602052604081208190819081906002810186600181106125bc576125bc614e77565b01548160030187600181106125d3576125d3614e77565b01548260040188600181106125ea576125ea614e77565b015483600501896001811061260157612601614e77565b0154929a91995097509095509350505050565b602181600881106109fa57600080fd5b600481600181106111ec57600080fd5b61263c6148e1565b6126446148e1565b61264c6148ff565b6002600154141561268d5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015561269a6136af565b6126a633600080613b25565b336000908152602b60205260408120905b600181101561272e578160020181600181106126d5576126d5614e77565b01548582600181106126e9576126e9614e77565b602002015260038201816001811061270357612703614e77565b015484826001811061271757612717614e77565b60200201528061272681614ebe565b9150506126b7565b5060005b600881101561277b5781600601816008811061275057612750614e77565b015483826008811061276457612764614e77565b60200201528061277381614ebe565b915050612732565b5060005b60018110156128ca57600085826001811061279c5761279c614e77565b602002015111156128405760008260020182600181106127be576127be614e77565b01558481600181106127d2576127d2614e77565b6020020151601482600181106127ea576127ea614e77565b0160008282546127fa9190614e1f565b90915550859050816001811061281257612812614e77565b60200201516015826001811061282a5761282a614e77565b01600082825461283a9190614e1f565b90915550505b600084826001811061285457612854614e77565b602002015111156128b857600082600301826001811061287657612876614e77565b015583816001811061288a5761288a614e77565b6020020151601682600181106128a2576128a2614e77565b0160008282546128b29190614e1f565b90915550505b806128c281614ebe565b91505061277f565b5060005b60088110156129615760008382600881106128eb576128eb614e77565b6020020151111561294f57600082600601826008811061290d5761290d614e77565b015582816008811061292157612921614e77565b60200201516019826008811061293957612939614e77565b0160008282546129499190614e1f565b90915550505b8061295981614ebe565b9150506128ce565b5060005b60018110156129eb57600084826001811061298257612982614e77565b602002015186836001811061299957612999614e77565b60200201516129a89190614e8d565b905080156129d8576129d8600483600181106129c6576129c6614e77565b01546001600160a01b03163383614366565b50806129e381614ebe565b915050612965565b5060005b6008811015612a67576000838260088110612a0c57612a0c614e77565b60200201511115612a5557612a5560058260088110612a2d57612a2d614e77565b01546001600160a01b031633858460088110612a4b57612a4b614e77565b6020020151614366565b80612a5f81614ebe565b9150506129ef565b5060005b6001811015612b625760048160018110612a8757612a87614e77565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068878460018110612ac657612ac6614e77565b6020020151604051612ada91815260200190565b60405180910390a360048160018110612af557612af5614e77565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068868460018110612b3457612b34614e77565b6020020151604051612b4891815260200190565b60405180910390a380612b5a81614ebe565b915050612a6b565b5060005b6008811015612bef5760058160088110612b8257612b82614e77565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068858460088110612bc157612bc1614e77565b6020020151604051612bd591815260200190565b60405180910390a380612be781614ebe565b915050612b66565b5050600180559192909190565b6000546001600160a01b0362010000909104163314612c5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60018210612c9d5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b670de0b6b3a764000060108360018110612cb957612cb9614e77565b0154612cc59083614e8d565b1115612d025760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610a6e565b80600f8360018110612d1657612d16614e77565b01555050565b6000546001600160a01b0362010000909104163314612d7d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60018210612dbd5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b670de0b6b3a764000081600f8460018110612dda57612dda614e77565b0154612de69190614e8d565b1115612e235760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610a6e565b8060108360018110612d1657612d16614e77565b601081600181106109fa57600080fd5b6000546001600160a01b0362010000909104163314612ea85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60026001541415612ee95760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015560005b6008811015612f6c5760058160088110612f0d57612f0d614e77565b01546001600160a01b0383811691161415612f5a5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b80612f6481614ebe565b915050612ef1565b506040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015612faf57600080fd5b505afa158015612fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fe79190614ea5565b6002549091506001600160a01b038381169116141561302a576016546014546012546130139190614e8d565b61301d9190614e8d565b6130279082614e1f565b90505b6000811161307a5760405162461bcd60e51b815260206004820152600a60248201527f6e6f2062616c616e6365000000000000000000000000000000000000000000006044820152606401610a6e565b61308e6001600160a01b0383163383613f2c565b505060018055565b61309e61491e565b602b6000602a84815481106130b5576130b5614e77565b6000918252602080832091909101546001600160a01b03168352828101939093526040918201902081516101a08101835281548152600180830154828601528351948501808552919492938501929160028501919082845b81548152602001906001019080831161310d575050509183525050604080516020808201928390529092019190600384019060019082845b815481526020019060010190808311613145575050509183525050604080516020808201928390529092019190600484019060019082845b81548152602001906001019080831161317d575050509183525050604080516020808201928390529092019190600584019060019082845b8154815260200190600101908083116131b55750505091835250506040805161010081019182905260209092019190600684019060089082845b8154815260200190600101908083116131ef5750505091835250506040805161010081019182905260209092019190600e84019060089082845b815481526020019060010190808311613229575050509183525050601682015460ff808216151560208401526101009091041615156040820152601782015460608201526018820154608082015260199091015460a09091015292915050565b600e544210156132c95760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b6002600154141561330a5760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b600260015561331a33838361406a565b6002546040518381526001600160a01b03918216918316907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62906020016111cc565b6000546001600160a01b03620100009091041633146133bd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b6001600160a01b0381166134395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a6e565b610dec81613ff9565b600080600260015414156134865760405162461bcd60e51b815260206004820152601f6024820152600080516020614f9b8339815191526044820152606401610a6e565b6002600190815583106134cb5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b6134d36136af565b6134df33600080613b25565b336000908152602b6020526040902060028101846001811061350357613503614e77565b0154925080600301846001811061351c5761351c614e77565b01549150821561359357600081600201856001811061353d5761353d614e77565b0155826014856001811061355357613553614e77565b0160008282546135639190614e1f565b909155508390506015856001811061357d5761357d614e77565b01600082825461358d9190614e1f565b90915550505b81156135dc5760008160030185600181106135b0576135b0614e77565b015581601685600181106135c6576135c6614e77565b0160008282546135d69190614e1f565b90915550505b60006135e88385614e8d565b9050801561360657613606600486600181106129c6576129c6614e77565b6004856001811061361957613619614e77565b01546040518581526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a36004856001811061366f5761366f614e77565b01546040518481526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200161170f565b60006136b9611ef3565b60295490915067ffffffffffffffff808316911614156136d65750565b60005b6001811015613950576000601082600181106136f7576136f7614e77565b0154600f836001811061370c5761370c614e77565b01546137189190614e8d565b9050801561393d5760295460009061373a9067ffffffffffffffff1685614ed9565b9050600061376361375384670de0b6b3a7640000614e1f565b8367ffffffffffffffff166143a2565b61377590670de0b6b3a7640000614e1f565b90506000670de0b6b3a7640000826015876001811061379657613796614e77565b0154601488600181106137ab576137ab614e77565b01546137b79190614e1f565b6137c19190614e36565b6137cb9190614e55565b9050600084600f87600181106137e3576137e3614e77565b01546137ef9084614e36565b6137f99190614e55565b6012549091501561387d57601254613820826ec097ce7bc90715b34b9f1000000000614e36565b61382a9190614e55565b6017876001811061383d5761383d614e77565b01600082825461384d9190614e8d565b909155508190506015876001811061386757613867614e77565b0160008282546138779190614e8d565b90915550505b60006138898284614e1f565b60135490915015613937576013546138b0826ec097ce7bc90715b34b9f1000000000614e36565b6138ba9190614e55565b601888600181106138cd576138cd614e77565b0160008282546138dd9190614e8d565b90915550819050601488600181106138f7576138f7614e77565b0160008282546139079190614e1f565b909155508190506016886001811061392157613921614e77565b0160008282546139319190614e8d565b90915550505b50505050505b508061394881614ebe565b9150506136d9565b5060125415613b0157600254613971906001600160a01b0316306000613f2c565b60005b6008811015613aff5760006019826008811061399257613992614e77565b01546139bb600584600881106139aa576139aa614e77565b01546001600160a01b03163061440c565b6139c59190614e1f565b905060015b6001811015613a6c57600583600881106139e6576139e6614e77565b01546001600160a01b031660048260018110613a0457613a04614e77565b01546001600160a01b03161415613a5a5760168160018110613a2857613a28614e77565b015460148260018110613a3d57613a3d614e77565b0154613a499190614e8d565b613a539083614e1f565b9150613a6c565b80613a6481614ebe565b9150506139ca565b508015613aec57601254613a8f826ec097ce7bc90715b34b9f1000000000614e36565b613a999190614e55565b60218360088110613aac57613aac614e77565b016000828254613abc9190614e8d565b9091555081905060198360088110613ad657613ad6614e77565b016000828254613ae69190614e8d565b90915550505b5080613af781614ebe565b915050613974565b505b6029805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b6001600160a01b0383166000908152602b602052604090206016810154610100900460ff16613bad5760168101805461ff001916610100179055602a80546001810182556000919091527fbeced09521047d05b8960b7e7bcc1d1292cf3e4b2a6b63f48335cbde5f7545d20180546001600160a01b0386166001600160a01b03199091161790555b60005b6001811015613cdb57816004018160018110613bce57613bce614e77565b01546ec097ce7bc90715b34b9f100000000060178360018110613bf357613bf3614e77565b01548454613c019190614e36565b613c0b9190614e55565b613c159190614e1f565b826002018260018110613c2a57613c2a614e77565b016000828254613c3a9190614e8d565b9091555050600582018160018110613c5457613c54614e77565b01546ec097ce7bc90715b34b9f100000000060188360018110613c7957613c79614e77565b01548460010154613c8a9190614e36565b613c949190614e55565b613c9e9190614e1f565b826003018260018110613cb357613cb3614e77565b016000828254613cc39190614e8d565b90915550819050613cd381614ebe565b915050613bb0565b5060005b6008811015613d815781600e018160088110613cfd57613cfd614e77565b01546ec097ce7bc90715b34b9f100000000060218360088110613d2257613d22614e77565b01548454613d309190614e36565b613d3a9190614e55565b613d449190614e1f565b826006018260088110613d5957613d59614e77565b016000828254613d699190614e8d565b90915550819050613d7981614ebe565b915050613cdf565b506000831315613daa5782816000016000828254613d9f9190614e8d565b90915550613dd59050565b6000831215613dd557613dbc83614e02565b816000016000828254613dcf9190614e1f565b90915550505b81816001016000828254613de99190614e8d565b90915550600090505b6001811015613eb4576ec097ce7bc90715b34b9f100000000060178260018110613e1e57613e1e614e77565b01548354613e2c9190614e36565b613e369190614e55565b826004018260018110613e4b57613e4b614e77565b01556ec097ce7bc90715b34b9f100000000060188260018110613e7057613e70614e77565b01548360010154613e819190614e36565b613e8b9190614e55565b826005018260018110613ea057613ea0614e77565b015580613eac81614ebe565b915050613df2565b5060005b6008811015613f25576ec097ce7bc90715b34b9f100000000060218260088110613ee457613ee4614e77565b01548354613ef29190614e36565b613efc9190614e55565b82600e018260088110613f1157613f11614e77565b015580613f1d81614ebe565b915050613eb8565b5050505050565b6040516001600160a01b038316602482015260448101829052613fbc90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526144b5565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611e119085906323b872dd60e01b90608401613f58565b600080546001600160a01b03838116620100008181027fffffffffffffffffffff0000000000000000000000000000000000000000ffff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600082116140ab5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6140b36136af565b6001600160a01b03831630146141e3576002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561410757600080fd5b505afa15801561411b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061413f9190614ea5565b60025490915061415a906001600160a01b0316853086613fc1565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561419d57600080fd5b505afa1580156141b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d59190614ea5565b6141df9190614e1f565b9250505b6000670de0b6b3a76400006141ff84662386f26fc10000614e36565b6142099190614e55565b90506000614218826009614e36565b9050600061422783600b614e36565b6142319086614e1f565b905081601460000160008282546142489190614e8d565b9091555050601254156142c157601254614263846002614e36565b61427c906ec097ce7bc90715b34b9f1000000000614e36565b6142869190614e55565b60178054600090614298908490614e8d565b909155506142a99050836002614e36565b601580546000906142bb908490614e8d565b90915550505b60135415614322576013546142e5846ec097ce7bc90715b34b9f1000000000614e36565b6142ef9190614e55565b60188054600090614301908490614e8d565b909155508390506016600001600082825461431c9190614e8d565b90915550505b61432e84826000613b25565b80601260008282546143409190614e8d565b909155505060025461435e906001600160a01b031661dead85613f2c565b505050505050565b600d546001600160a01b0384811691161461438f57613fbc6001600160a01b0384168383613f2c565b613fbc6001600160a01b0383168261459a565b670de0b6b3a76400005b81156144065760018216156143db57670de0b6b3a76400006143ce8483614e36565b6143d89190614e55565b90505b60019190911c90670de0b6b3a76400006143f58480614e36565b6143ff9190614e55565b92506143ac565b92915050565b600d546000906001600160a01b038481169116146144a2576040516370a0823160e01b81526001600160a01b0383811660048301528416906370a082319060240160206040518083038186803b15801561446557600080fd5b505afa158015614479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061449d9190614ea5565b6144ae565b816001600160a01b0316315b9392505050565b600061450a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166146b39092919063ffffffff16565b805190915015613fbc57808060200190518101906145289190614f02565b613fbc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a6e565b804710156145ea5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a6e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614637576040519150601f19603f3d011682016040523d82523d6000602084013e61463c565b606091505b5050905080613fbc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a6e565b60606146c284846000856146ca565b949350505050565b6060824710156147425760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a6e565b843b6147905760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a6e565b600080866001600160a01b031685876040516147ac9190614f4b565b60006040518083038185875af1925050503d80600081146147e9576040519150601f19603f3d011682016040523d82523d6000602084013e6147ee565b606091505b50915091506147fe828286614809565b979650505050505050565b606083156148185750816144ae565b8251156148285782518084602001fd5b8160405162461bcd60e51b8152600401610a6e9190614f67565b826001810192821561488a579160200282015b8281111561488a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614855565b506148969291506149ae565b5090565b826008810192821561488a579160200282018281111561488a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614855565b60405180602001604052806001906020820280368337509192915050565b6040518061010001604052806008906020820280368337509192915050565b604051806101a0016040528060008152602001600081526020016149406148e1565b815260200161494d6148e1565b815260200161495a6148e1565b81526020016149676148e1565b81526020016149746148ff565b81526020016149816148ff565b81526020016000151581526020016000151581526020016000815260200160008152602001600081525090565b5b8082111561489657600081556001016149af565b6000602082840312156149d557600080fd5b5035919050565b8015158114610dec57600080fd5b6000602082840312156149fc57600080fd5b81356144ae816149dc565b60008060408385031215614a1a57600080fd5b50508035926020909101359150565b80356001600160a01b0381168114614a4057600080fd5b919050565b60008060408385031215614a5857600080fd5b82359150614a6860208401614a29565b90509250929050565b60008060408385031215614a8457600080fd5b614a8d83614a29565b946020939093013593505050565b600060208284031215614aad57600080fd5b6144ae82614a29565b600080600060408486031215614acb57600080fd5b833567ffffffffffffffff80821115614ae357600080fd5b818601915086601f830112614af757600080fd5b813581811115614b0657600080fd5b8760208260051b8501011115614b1b57600080fd5b60209283019550935050840135614b31816149dc565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b6040516020810167ffffffffffffffff81118282101715614b7557614b75614b3c565b60405290565b600060405161010080820182811067ffffffffffffffff82111715614ba257614ba2614b3c565b6040529091508190830184811115614bb957600080fd5b835b81811015614bda57614bcc81614a29565b835260209283019201614bbb565b50505092915050565b6000806000806000806101a08789031215614bfd57600080fd5b614c0687614a29565b95506020614c15818901614a29565b955088605f890112614c2657600080fd5b614c2e614b52565b8060608a018b811115614c4057600080fd5b60408b015b81811015614c6357614c5681614a29565b8452928401928401614c45565b508197508b607f8c0112614c7657600080fd5b614c808c82614b7b565b965050505050614c936101608801614a29565b9150614ca26101808801614a29565b90509295509295509295565b8060005b6001811015611e11578151845260209384019390910190600101614cb2565b8060005b6008811015611e11578151845260209384019390910190600101614cd5565b6101408101614d038286614cae565b614d106020830185614cae565b6146c26040830184614cd1565b60006103608201905082518252602083015160208301526040830151614d466040840182614cae565b506060830151614d596060840182614cae565b506080830151614d6c6080840182614cae565b5060a0830151614d7f60a0840182614cae565b5060c0830151614d9260c0840182614cd1565b5060e0830151614da66101c0840182614cd1565b5061010083015115156102c083015261012083015115156102e0830152610140830151610300830152610160830151610320830152610180909201516103409091015290565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b821415614e1857614e18614dec565b5060000390565b600082821015614e3157614e31614dec565b500390565b6000816000190483118215151615614e5057614e50614dec565b500290565b600082614e7257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60008219821115614ea057614ea0614dec565b500190565b600060208284031215614eb757600080fd5b5051919050565b6000600019821415614ed257614ed2614dec565b5060010190565b600067ffffffffffffffff83811690831681811015614efa57614efa614dec565b039392505050565b600060208284031215614f1457600080fd5b81516144ae816149dc565b60005b83811015614f3a578181015183820152602001614f22565b83811115611e115750506000910152565b60008251614f5d818460208701614f1f565b9190910192915050565b6020815260008251806020840152614f86816040850160208701614f1f565b601f01601f1916919091016040019291505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a2646970667358221220f57f1d944f801de66a0c0518f3fa2abc303d27cf8674f26694ecc4daf750e24a64736f6c63430008090033