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-10-11T03:55:44.875234Z
Constructor Arguments
0x0000000000000000000000006f7903dbc2bf99a46104d8cc0d9bb54639570e4a0000000000000000000000006f7903dbc2bf99a46104d8cc0d9bb54639570e4a0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a2000000000000000000000000cc78a0acdf847a2c1714d2a925bb4477df5d48a6000000000000000000000000d6c31ba0754c4383a41c0e9df042c62b5e918f6d000000000000000000000000eb2ceed77147893ba8b250c796c2d4ef02a72b680000000000000000000000008bf45680485b2ac15e452a9599e87b94c5a077920000000000000000000000006982508145454ce325ddbe47a25d4ec3d231193300000000000000000000000094534eeee131840b1c0f61847c572228bdfdde9300000000000000000000000009e64c2b61a5f1690ee6fbed9baf5d6990f8dfd00000000000000000000000000000000000000000000000000000000000000000
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 = 2;
uint256 constant N = 7;
// 4WMM 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; // 4WMM staked
uint256 burned; // pGRO burned
uint256[M] drip; // 4WMM/pDAI from drip pool accumulated but not claimed
uint256[M] boost; // 4WMM/pDAI from boost accumulated but not claimed
uint256[M] accDripDebt; // 4WMM/pDAI reward debt from PCS distribution algorithm
uint256[M] accBoostDebt; // 4WMM/pDAI reward debt from PCS distribution algorithm
uint256[N] reward; // PLS/pWBTC/pDAI/pGRO reward sent accumulated but not claimed
uint256[N] accRewardDebt; // PLS/pWBTC/pDAI/pGRO reward debt from PCS distribution algorithm
bool whitelisted; // flag indicating whether or not account pays withdraw penalties
bool exists; // flag to index account
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;
uint256 constant DEFAULT_LAUNCH_TIME = 1730296800; // Thu Oct 31 2024 14:00:00 GMT+0000
uint256 constant DEFAULT_DRIP_RATE_PER_DAY = 1e16; // 1% per day
uint256 constant DEFAULT_DRIP_BOOST_RATE_PER_DAY = 0.5e16; // 0.5% per day
uint256 constant DAY = 1 days;
uint256 constant TZ_OFFSET = 16 hours; // UTC-8
address public reserveToken; // WMM Token
address public boostToken; // pGRO
address[M] public dripToken; // WMM and pDAI
address[N] public rewardToken; // Reward Tokens
address public wrappedToken; // WPLS
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; // cumulative drip pool 4WMM/pDAI per 4WMM staked from PCS distribution algorithm
uint256[M] public accBoostPerShare; // cumulative boost 4WMM/pDAI per pGRO burned from PCS distribution algorithm
uint256[N] public totalReward; // total reward balance
uint256[N] public accRewardPerShare; // cumulative reward for all token positions per WMM staked from PCS distribution algorithm
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++) {
if(_i != _j){
require(_dripToken[_i] != _dripToken[_j], "invalid drip token");
}
}
}
for (uint256 _i = 0; _i < N; _i++) {
for (uint256 _j = 0; _j < _i; _j++) {
if(_i != _j){
require(_rewardToken[_i] != _rewardToken[_j], "invalid reward token");
}
}
}
require(_dripToken[0] == _reserveToken, "1st drip token must be reserve 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, "Drip token cannot be a reward token");
}
for (uint256 _i = 0; _i < N; _i++) {
require(_rewardToken[_i] != _reserveToken, "Reserve token cannot be a reward token");
}
require(_wrappedToken != _reserveToken, "WPLS cannot be the reserve 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, FURNACE, _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);
}
@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;
}
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 = 7;
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 = 1728309600; // Oct 7th 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+1] public pairs; // 7 pairs liquidity pool adddresses on PulseX V1
address[][N] public paths; // routes from 7WMM to reward tokens
uint256 public launchTime = DEFAULT_LAUNCH_TIME; // timestamp when the trading starts
uint256 public totalActiveSupply = 0; // sum of active balances for all 7WMM holders
address[N] public rewardTokens; // 7 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]; // 7 reward balance
uint256[N] public accRewardPerShare = [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 7WMM
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;
pairs[N] = IUniswapV2Factory(_factory).createPair(wrappedToken, address(this));
silo = LibSilo.createSilo(_rewardTokens);
_approve(address(this), _router, type(uint256).max);
_mint(_owner, _supply);
}
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];
_accountInfo.unclaimedReward = [0, 0, 0, 0, 0, 0, 0];
_accountInfo.minimumRewardBalanceToClaim = [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+1; _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);
}
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[2]","name":"_dripToken","internalType":"address[2]"},{"type":"address[7]","name":"_rewardToken","internalType":"address[7]"},{"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[2]","name":"_dripAmount","internalType":"uint256[2]"},{"type":"uint256[2]","name":"_boostAmount","internalType":"uint256[2]"},{"type":"uint256[7]","name":"_rewardAmount","internalType":"uint256[7]"}],"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[2]","name":"drip","internalType":"uint256[2]"},{"type":"uint256[2]","name":"boost","internalType":"uint256[2]"},{"type":"uint256[2]","name":"accDripDebt","internalType":"uint256[2]"},{"type":"uint256[2]","name":"accBoostDebt","internalType":"uint256[2]"},{"type":"uint256[7]","name":"reward","internalType":"uint256[7]"},{"type":"uint256[7]","name":"accRewardDebt","internalType":"uint256[7]"},{"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[2]","name":"_dripToken","internalType":"address[2]"},{"type":"address[7]","name":"_rewardToken","internalType":"address[7]"},{"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
0x60806040523480156200001157600080fd5b5060405162005bbd38038062005bbd8339810160408190526200003491620009cf565b6200003f336200005e565b6001805562000053338686868686620000b9565b505050505062000b25565b600080546001600160a01b038381166201000081810262010000600160b01b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600054610100900460ff1680620000d3575060005460ff16155b6200013c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff161580156200015f576000805461ffff19166101011790555b6200016a876200005e565b6367223be0600e5560005b6002811015620001d457662386f26fc10000600f82600281106200019d576200019d62000a9d565b01556611c37937e0800060118260028110620001bd57620001bd62000a9d565b015580620001cb8162000ac9565b91505062000175565b506013805460ff191690556000601481905560158190555b60028110156200028d576000601682600281106200020e576200020e62000a9d565b015560006018826002811062000228576200022862000a9d565b01556000601a826002811062000242576200024262000a9d565b01556000601c82600281106200025c576200025c62000a9d565b01556000601e826002811062000276576200027662000a9d565b015580620002848162000ac9565b915050620001ec565b5060005b6007811015620002e457600060208260078110620002b357620002b362000a9d565b0155600060278260078110620002cd57620002cd62000a9d565b015580620002db8162000ac9565b91505062000291565b50620002ef62000820565b602e80546001600160401b0319166001600160401b039290921691909117905560005b6002811015620003e65760005b81811015620003d057808214620003bb5786816002811062000345576200034562000a9d565b60200201516001600160a01b031687836002811062000368576200036862000a9d565b60200201516001600160a01b03161415620003bb5760405162461bcd60e51b815260206004820152601260248201527134b73b30b634b210323934b8103a37b5b2b760711b604482015260640162000133565b80620003c78162000ac9565b9150506200031f565b5080620003dd8162000ac9565b91505062000312565b5060005b6007811015620004c95760005b81811015620004b3578082146200049e578581600781106200041d576200041d62000a9d565b60200201516001600160a01b031686836007811062000440576200044062000a9d565b60200201516001600160a01b031614156200049e5760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642072657761726420746f6b656e000000000000000000000000604482015260640162000133565b80620004aa8162000ac9565b915050620003f7565b5080620004c08162000ac9565b915050620003ea565b5084516001600160a01b03878116911614620005345760405162461bcd60e51b8152602060048201526024808201527f317374206472697020746f6b656e206d7573742062652072657365727665207460448201526337b5b2b760e11b606482015260840162000133565b60015b60028110156200062e576000805b6007811015620005bb5786816007811062000564576200056462000a9d565b60200201516001600160a01b031688846002811062000587576200058762000a9d565b60200201516001600160a01b03161415620005a65760019150620005bb565b80620005b28162000ac9565b91505062000545565b508015620006185760405162461bcd60e51b815260206004820152602360248201527f4472697020746f6b656e2063616e6e6f7420626520612072657761726420746f60448201526235b2b760e91b606482015260840162000133565b5080620006258162000ac9565b91505062000537565b5060005b6007811015620006dd57866001600160a01b03168582600781106200065b576200065b62000a9d565b60200201516001600160a01b03161415620006c85760405162461bcd60e51b815260206004820152602660248201527f5265736572766520746f6b656e2063616e6e6f74206265206120726577617264604482015265103a37b5b2b760d11b606482015260840162000133565b80620006d48162000ac9565b91505062000632565b50856001600160a01b0316826001600160a01b03161415620007425760405162461bcd60e51b815260206004820181905260248201527f57504c532063616e6e6f7420626520746865207265736572766520746f6b656e604482015260640162000133565b600280546001600160a01b038089166001600160a01b031992831617835560038054918716919092161790556200077e90600490879062000845565b506200078e6006856007620008a2565b50600d80546001600160a01b0319166001600160a01b0384811691909117909155604051633d0c1b3360e01b81526000600482015290871690633d0c1b3390602401600060405180830381600087803b158015620007eb57600080fd5b505af115801562000800573d6000803e3d6000fd5b50505050801562000817576000805461ff00191690555b50505050505050565b6000620151806200083461e1004262000ae7565b62000840919062000b02565b905090565b826002810192821562000890579160200282015b828111156200089057825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000859565b506200089e929150620008ec565b5090565b82600781019282156200089057916020028201828111156200089057825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000859565b5b808211156200089e5760008155600101620008ed565b80516001600160a01b03811681146200091b57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156200095b576200095b62000920565b60405290565b60405160009060e081016001600160401b038111828210171562000989576200098962000920565b60405290508060e0830184811115620009a157600080fd5b835b81811015620009c657620009b78162000903565b835260209283019201620009a3565b50505092915050565b60008060008060006101808688031215620009e957600080fd5b620009f48662000903565b9450602087603f88011262000a0857600080fd5b62000a1262000936565b80606089018a81111562000a2557600080fd5b838a015b8181101562000a4b5762000a3d8162000903565b845292840192840162000a29565b508197508a607f8b011262000a5f57600080fd5b62000a6b8b8262000961565b96505050505062000a80610140870162000903565b915062000a91610160870162000903565b90509295509295909350565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141562000ae05762000ae062000ab3565b5060010190565b6000821982111562000afd5762000afd62000ab3565b500190565b60008262000b2057634e487b7160e01b600052601260045260246000fd5b500490565b6150888062000b356000396000f3fe6080604052600436106103175760003560e01c80638cbba57a1161019a578063c89ebaec116100e1578063e72f6e301161008a578063f2fde38b11610064578063f2fde38b1461098a578063f4325d67146109aa578063f6d4277a146109ca57600080fd5b8063e72f6e301461091d578063edc017521461093d578063f1ddf8401461096a57600080fd5b8063d89135cd116100bb578063d89135cd146108c7578063e33702d7146108dd578063e4879b88146108fd57600080fd5b8063c89ebaec14610863578063d1058e5914610883578063d5eae1d5146108a757600080fd5b8063ae169a5011610143578063b74e452b1161011d578063b74e452b146107ee578063be80701614610803578063c194efbf1461084357600080fd5b8063ae169a501461078e578063aff177ca146107ae578063b6b55f25146107ce57600080fd5b8063996c6cc311610174578063996c6cc3146106b85780639ff46e74146106d8578063a7310b58146106f857600080fd5b80638cbba57a146106545780638da5cb5b1461067457806392a526131461069857600080fd5b8063509b6c3f1161025e578063790ca413116102075780637b76ac91116101e15780637b76ac91146105cf578063817b1cd214610609578063895ff41d1461061f57600080fd5b8063790ca413146105795780637b460b2a1461058f5780637b58389e146105af57600080fd5b80636d9873c5116102385780636d9873c51461052f5780636f55184b14610544578063715018a61461056457600080fd5b8063509b6c3f146104c55780635d54e612146104e557806368c958ee1461050f57600080fd5b806336f9825f116102c057806341632d331161029a57806341632d331461047057806342966c68146104855780634ccc895b146104a557600080fd5b806336f9825f146103f85780633738daa4146104305780633a589b971461045057600080fd5b806323a6f46e116102f157806323a6f46e146103985780632b653797146103b85780632e1a7d4d146103d857600080fd5b80630b9166de146103235780630f392ad01461035657806322ac7b8f1461037657600080fd5b3661031e57005b600080fd5b34801561032f57600080fd5b5061034361033e366004614a5c565b6109ea565b6040519081526020015b60405180910390f35b34801561036257600080fd5b50610343610371366004614a5c565b610a01565b34801561038257600080fd5b50610396610391366004614a83565b610a11565b005b3480156103a457600080fd5b506103436103b3366004614a5c565b610a8a565b3480156103c457600080fd5b506103436103d3366004614a5c565b610a9a565b3480156103e457600080fd5b506103966103f3366004614a5c565b610aaa565b34801561040457600080fd5b50610418610413366004614a5c565b610db8565b6040516001600160a01b03909116815260200161034d565b34801561043c57600080fd5b5061039661044b366004614b61565b610de2565b34801561045c57600080fd5b50600354610418906001600160a01b031681565b34801561047c57600080fd5b50602f54610343565b34801561049157600080fd5b506103966104a0366004614a5c565b611501565b3480156104b157600080fd5b506103966104c0366004614c2c565b61150e565b3480156104d157600080fd5b506104186104e0366004614a5c565b6118fb565b3480156104f157600080fd5b506013546104ff9060ff1681565b604051901515815260200161034d565b34801561051b57600080fd5b5061039661052a366004614c4e565b61191b565b34801561053b57600080fd5b50610396611a66565b34801561055057600080fd5b5061034361055f366004614a5c565b611aba565b34801561057057600080fd5b50610396611aca565b34801561058557600080fd5b50610343600e5481565b34801561059b57600080fd5b506103436105aa366004614a5c565b611b37565b3480156105bb57600080fd5b506103436105ca366004614a5c565b611b47565b3480156105db57600080fd5b50602e546105f09067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161034d565b34801561061557600080fd5b5061034360145481565b34801561062b57600080fd5b5061063f61063a366004614a5c565b611b57565b6040805192835260208301919091520161034d565b34801561066057600080fd5b5061063f61066f366004614c7a565b611e34565b34801561068057600080fd5b506000546201000090046001600160a01b0316610418565b3480156106a457600080fd5b506103966106b3366004614c2c565b611e88565b3480156106c457600080fd5b50600d54610418906001600160a01b031681565b3480156106e457600080fd5b506103966106f3366004614a5c565b6121bc565b34801561070457600080fd5b50610753610713366004614ca4565b60306020526000908152604090208054600182015460188301546019840154601a850154601b909501549394929360ff8084169461010090940416929087565b604080519788526020880196909652931515948601949094529015156060850152608084015260a083019190915260c082015260e00161034d565b34801561079a57600080fd5b506103436107a9366004614a5c565b6122b1565b3480156107ba57600080fd5b506103966107c9366004614cbf565b61244c565b3480156107da57600080fd5b506103966107e9366004614a5c565b612527565b3480156107fa57600080fd5b506105f0612603565b34801561080f57600080fd5b5061082361081e366004614c7a565b612624565b60408051948552602085019390935291830152606082015260800161034d565b34801561084f57600080fd5b5061034361085e366004614a5c565b6126b0565b34801561086f57600080fd5b5061041861087e366004614a5c565b6126c0565b34801561088f57600080fd5b506108986126d0565b60405161034d93929190614d8b565b3480156108b357600080fd5b506103966108c2366004614c2c565b612c98565b3480156108d357600080fd5b5061034360155481565b3480156108e957600080fd5b506103966108f8366004614c2c565b612db8565b34801561090957600080fd5b50610343610918366004614a5c565b612ed3565b34801561092957600080fd5b50610396610938366004614ca4565b612ee3565b34801561094957600080fd5b5061095d610958366004614a5c565b613132565b60405161034d9190614db4565b34801561097657600080fd5b50610396610985366004614c4e565b613322565b34801561099657600080fd5b506103966109a5366004614ca4565b6133f5565b3480156109b657600080fd5b50600254610418906001600160a01b031681565b3480156109d657600080fd5b5061063f6109e5366004614a5c565b6134db565b600f81600281106109fa57600080fd5b0154905081565b601e81600281106109fa57600080fd5b6000546001600160a01b0362010000909104163314610a775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6013805460ff1916911515919091179055565b602081600781106109fa57600080fd5b601c81600281106109fa57600080fd5b60026001541415610aeb5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b600260015580610b2e5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b336000908152603060205260409020805480831115610b8f5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610a6e565b610b97613749565b610bab33610ba485614e9a565b6000613bbf565b8260146000828254610bbd9190614eb7565b9091555050601882015460ff1680610bd7575060135460ff165b15610bf857600254610bf3906001600160a01b03163385613fc6565b610d6b565b6000670de0b6b3a7640000610c1485662386f26fc10000614ece565b610c1e9190614eed565b90506000610c2d826009614ece565b90506000610c3c83600b614ece565b610c469087614eb7565b90508160166000016000828254610c5d9190614f25565b909155505060145415610cd657601454610c78846002614ece565b610c91906ec097ce7bc90715b34b9f1000000000614ece565b610c9b9190614eed565b601c8054600090610cad908490614f25565b90915550610cbe9050836002614ece565b60188054600090610cd0908490614f25565b90915550505b60155415610d3757601554610cfa846ec097ce7bc90715b34b9f1000000000614ece565b610d049190614eed565b601e8054600090610d16908490614f25565b90915550839050601a6000016000828254610d319190614f25565b90915550505b600254610d50906001600160a01b031661dead85613fc6565b600254610d67906001600160a01b03163383613fc6565b5050505b6002546040518481526001600160a01b039091169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a350506001805550565b602f8181548110610dc857600080fd5b6000918252602090912001546001600160a01b0316905081565b600054610100900460ff1680610dfb575060005460ff16155b610e6d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610a6e565b600054610100900460ff16158015610e8f576000805461ffff19166101011790555b610e988761405b565b6367223be0600e5560005b6002811015610ef857662386f26fc10000600f8260028110610ec757610ec7614f0f565b01556611c37937e0800060118260028110610ee457610ee4614f0f565b015580610ef081614f3d565b915050610ea3565b506013805460ff191690556000601481905560158190555b6002811015610f9e57600060168260028110610f2e57610f2e614f0f565b0155600060188260028110610f4557610f45614f0f565b01556000601a8260028110610f5c57610f5c614f0f565b01556000601c8260028110610f7357610f73614f0f565b01556000601e8260028110610f8a57610f8a614f0f565b015580610f9681614f3d565b915050610f10565b5060005b6007811015610feb57600060208260078110610fc057610fc0614f0f565b0155600060278260078110610fd757610fd7614f0f565b015580610fe381614f3d565b915050610fa2565b50610ff4612603565b602e805467ffffffffffffffff191667ffffffffffffffff9290921691909117905560005b60028110156110e75760005b818110156110d4578082146110c25786816002811061104657611046614f0f565b60200201516001600160a01b031687836002811061106657611066614f0f565b60200201516001600160a01b031614156110c25760405162461bcd60e51b815260206004820152601260248201527f696e76616c6964206472697020746f6b656e00000000000000000000000000006044820152606401610a6e565b806110cc81614f3d565b915050611025565b50806110df81614f3d565b915050611019565b5060005b60078110156111b95760005b818110156111a6578082146111945785816007811061111857611118614f0f565b60200201516001600160a01b031686836007811061113857611138614f0f565b60200201516001600160a01b031614156111945760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642072657761726420746f6b656e0000000000000000000000006044820152606401610a6e565b8061119e81614f3d565b9150506110f7565b50806111b181614f3d565b9150506110eb565b5084516001600160a01b038781169116146112225760405162461bcd60e51b8152602060048201526024808201527f317374206472697020746f6b656e206d7573742062652072657365727665207460448201526337b5b2b760e11b6064820152608401610a6e565b60015b600281101561130a576000805b600781101561129c5786816007811061124d5761124d614f0f565b60200201516001600160a01b031688846002811061126d5761126d614f0f565b60200201516001600160a01b0316141561128a576001915061129c565b8061129481614f3d565b915050611232565b5080156112f75760405162461bcd60e51b815260206004820152602360248201527f4472697020746f6b656e2063616e6e6f7420626520612072657761726420746f60448201526235b2b760e91b6064820152608401610a6e565b508061130281614f3d565b915050611225565b5060005b60078110156113c757866001600160a01b031685826007811061133357611333614f0f565b60200201516001600160a01b031614156113b55760405162461bcd60e51b815260206004820152602660248201527f5265736572766520746f6b656e2063616e6e6f7420626520612072657761726460448201527f20746f6b656e00000000000000000000000000000000000000000000000000006064820152608401610a6e565b806113bf81614f3d565b91505061130e565b50856001600160a01b0316826001600160a01b0316141561142a5760405162461bcd60e51b815260206004820181905260248201527f57504c532063616e6e6f7420626520746865207265736572766520746f6b656e6044820152606401610a6e565b600280546001600160a01b038089166001600160a01b031992831617835560038054918716919092161790556114649060049087906148dc565b506114726006856007614934565b50600d80546001600160a01b0319166001600160a01b0384811691909117909155604051633d0c1b3360e01b81526000600482015290871690633d0c1b3390602401600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b5050505080156114f8576000805461ff00191690555b50505050505050565b61150b813361191b565b50565b6002600154141561154f5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155600782106115945760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b600081116115d55760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6115dd613749565b60006014541161162f5760405162461bcd60e51b815260206004820152600b60248201527f6e6f206465706f736974730000000000000000000000000000000000000000006044820152606401610a6e565b60006006836007811061164457611644614f0f565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561168657600080fd5b505afa15801561169a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116be9190614f58565b90506116ec333084600687600781106116d9576116d9614f0f565b01546001600160a01b03169291906140cc565b806006846007811061170057611700614f0f565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561174257600080fd5b505afa158015611756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177a9190614f58565b6117849190614eb7565b600d549092506001600160a01b03169050600683600781106117a8576117a8614f0f565b01546001600160a01b0316141561182a57600682600781106117cc576117cc614f0f565b0154604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561181157600080fd5b505af1158015611825573d6000803e3d6000fd5b505050505b60145461183f82670de0b6b3a7640000614ece565b6118499190614eed565b6027836007811061185c5761185c614f0f565b01600082825461186c9190614f25565b909155508190506020836007811061188657611886614f0f565b0160008282546118969190614f25565b909155506006905082600781106118af576118af614f0f565b01546040518281526001600160a01b039091169033907f9ed97645fb5853abbbe66e94ac8ed13dac4d3ff7afe85b05c0e2b323b4014193906020015b60405180910390a3505060018055565b6006816007811061190b57600080fd5b01546001600160a01b0316905081565b600e5442101561195b5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b6002600154141561199c5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155816119df5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6119e7613749565b6119f381600084613bbf565b8160156000828254611a059190614f25565b9091555050600354611a24906001600160a01b03163361dead856140cc565b6003546040518381526001600160a01b03918216918316907fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b9453906020016118eb565b60026001541415611aa75760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155611ab4613749565b60018055565b601681600281106109fa57600080fd5b6000546001600160a01b0362010000909104163314611b2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b611b35600061405b565b565b601881600281106109fa57600080fd5b601a81600281106109fa57600080fd5b60008060026001541415611b9b5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b600260018190558310611be05760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b600280546001600160a01b03169060049085908110611c0157611c01614f0f565b01546001600160a01b031614611c495760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b611c51613749565b611c5d33600080613bbf565b33600090815260306020526040902060028082019085908110611c8257611c82614f0f565b01549250806004018460028110611c9b57611c9b614f0f565b015491508215611d12576000816002018560028110611cbc57611cbc614f0f565b01558260168560028110611cd257611cd2614f0f565b016000828254611ce29190614eb7565b9091555083905060188560028110611cfc57611cfc614f0f565b016000828254611d0c9190614eb7565b90915550505b8115611d5b576000816004018560028110611d2f57611d2f614f0f565b015581601a8560028110611d4557611d45614f0f565b016000828254611d559190614eb7565b90915550505b6000611d678385614f25565b90508015611d7a57611d7a308233614104565b60048560028110611d8d57611d8d614f0f565b01546040518581526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc639060200160405180910390a360048560028110611de357611de3614f0f565b01546040518481526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc63906020015b60405180910390a35050600180559092909150565b6001600160a01b03821660009081526030602052604081208190600a81018460078110611e6357611e63614f0f565b0154816011018560078110611e7a57611e7a614f0f565b015492509250509250929050565b60026001541415611ec95760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b600260018190558210611f0e5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b60008111611f4f5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b611f57613749565b600060048360028110611f6c57611f6c614f0f565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611fae57600080fd5b505afa158015611fc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe69190614f58565b9050612001333084600487600281106116d9576116d9614f0f565b806004846002811061201557612015614f0f565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561205757600080fd5b505afa15801561206b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208f9190614f58565b6120999190614eb7565b600d549092506001600160a01b03169050600483600281106120bd576120bd614f0f565b01546001600160a01b0316141561213f57600482600281106120e1576120e1614f0f565b0154604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561212657600080fd5b505af115801561213a573d6000803e3d6000fd5b505050505b806016836002811061215357612153614f0f565b0160008282546121639190614f25565b9091555060049050826002811061217c5761217c614f0f565b01546040518281526001600160a01b039091169033907f88923243846ae6dc2129c36897f0c50381bac23792669a4ab5bc456dd9976177906020016118eb565b6000546001600160a01b036201000090910416331461221d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b600e54421061225c5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b428110156122ac5760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642074696d6500000000000000000000000000000000000000006044820152606401610a6e565b600e55565b6000600260015414156122f45760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155600782106123395760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b612341613749565b61234d33600080613bbf565b336000908152603060205260409020600a8101836007811061237157612371614f0f565b0154915081156123be57600081600a01846007811061239257612392614f0f565b015581602084600781106123a8576123a8614f0f565b0160008282546123b89190614eb7565b90915550505b81156123ec576123ec600684600781106123da576123da614f0f565b01546001600160a01b03163384614400565b600683600781106123ff576123ff614f0f565b01546040518381526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a35060018055919050565b6000546001600160a01b03620100009091041633146124ad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60005b828110156125215781603060008686858181106124cf576124cf614f0f565b90506020020160208101906124e49190614ca4565b6001600160a01b031681526020810191909152604001600020601801805460ff19169115159190911790558061251981614f3d565b9150506124b0565b50505050565b600e544210156125675760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b600260015414156125a85760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b60026001556125b8338281614104565b6002546040518281526001600160a01b039091169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a35060018055565b60006201518061261561e10042614f25565b61261f9190614eed565b905090565b6001600160a01b03821660009081526030602052604081208190819081906002808201908790811061265857612658614f0f565b015481600401876002811061266f5761266f614f0f565b015482600601886002811061268657612686614f0f565b015483600801896002811061269d5761269d614f0f565b0154929a91995097509095509350505050565b602781600781106109fa57600080fd5b6004816002811061190b57600080fd5b6126d861497b565b6126e061497b565b6126e8614999565b600260015414156127295760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155612736613749565b61274233600080613bbf565b336000908152603060205260408120905b60028110156127ca5781600201816002811061277157612771614f0f565b015485826002811061278557612785614f0f565b602002015260048201816002811061279f5761279f614f0f565b01548482600281106127b3576127b3614f0f565b6020020152806127c281614f3d565b915050612753565b5060005b60078110156128175781600a0181600781106127ec576127ec614f0f565b015483826007811061280057612800614f0f565b60200201528061280f81614f3d565b9150506127ce565b5060005b600281101561296657600085826002811061283857612838614f0f565b602002015111156128dc57600082600201826002811061285a5761285a614f0f565b015584816002811061286e5761286e614f0f565b60200201516016826002811061288657612886614f0f565b0160008282546128969190614eb7565b9091555085905081600281106128ae576128ae614f0f565b6020020151601882600281106128c6576128c6614f0f565b0160008282546128d69190614eb7565b90915550505b60008482600281106128f0576128f0614f0f565b6020020151111561295457600082600401826002811061291257612912614f0f565b015583816002811061292657612926614f0f565b6020020151601a826002811061293e5761293e614f0f565b01600082825461294e9190614eb7565b90915550505b8061295e81614f3d565b91505061281b565b5060005b60078110156129fd57600083826007811061298757612987614f0f565b602002015111156129eb57600082600a0182600781106129a9576129a9614f0f565b01558281600781106129bd576129bd614f0f565b6020020151602082600781106129d5576129d5614f0f565b0160008282546129e59190614eb7565b90915550505b806129f581614f3d565b91505061296a565b5060005b6002811015612a87576000848260028110612a1e57612a1e614f0f565b6020020151868360028110612a3557612a35614f0f565b6020020151612a449190614f25565b90508015612a7457612a7460048360028110612a6257612a62614f0f565b01546001600160a01b03163383614400565b5080612a7f81614f3d565b915050612a01565b5060005b6007811015612b03576000838260078110612aa857612aa8614f0f565b60200201511115612af157612af160068260078110612ac957612ac9614f0f565b01546001600160a01b031633858460078110612ae757612ae7614f0f565b6020020151614400565b80612afb81614f3d565b915050612a8b565b5060005b6002811015612bfe5760048160028110612b2357612b23614f0f565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068878460028110612b6257612b62614f0f565b6020020151604051612b7691815260200190565b60405180910390a360048160028110612b9157612b91614f0f565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068868460028110612bd057612bd0614f0f565b6020020151604051612be491815260200190565b60405180910390a380612bf681614f3d565b915050612b07565b5060005b6007811015612c8b5760068160078110612c1e57612c1e614f0f565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068858460078110612c5d57612c5d614f0f565b6020020151604051612c7191815260200190565b60405180910390a380612c8381614f3d565b915050612c02565b5050600180559192909190565b6000546001600160a01b0362010000909104163314612cf95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60028210612d395760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b670de0b6b3a764000060118360028110612d5557612d55614f0f565b0154612d619083614f25565b1115612d9e5760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610a6e565b80600f8360028110612db257612db2614f0f565b01555050565b6000546001600160a01b0362010000909104163314612e195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60028210612e595760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b670de0b6b3a764000081600f8460028110612e7657612e76614f0f565b0154612e829190614f25565b1115612ebf5760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610a6e565b8060118360028110612db257612db2614f0f565b601181600281106109fa57600080fd5b6000546001600160a01b0362010000909104163314612f445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60026001541415612f855760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b600260015560005b60078110156130085760068160078110612fa957612fa9614f0f565b01546001600160a01b0383811691161415612ff65760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b8061300081614f3d565b915050612f8d565b506040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561304b57600080fd5b505afa15801561305f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130839190614f58565b6002549091506001600160a01b03838116911614156130c657601a546016546014546130af9190614f25565b6130b99190614f25565b6130c39082614eb7565b90505b600081116131165760405162461bcd60e51b815260206004820152600a60248201527f6e6f2062616c616e6365000000000000000000000000000000000000000000006044820152606401610a6e565b61312a6001600160a01b0383163383613fc6565b505060018055565b61313a6149b7565b60306000602f848154811061315157613151614f0f565b6000918252602080832091909101546001600160a01b03168352828101939093526040918201902081516101a081018352815481526001820154938101939093528151808301808452919284019160028085019182845b8154815260200190600101908083116131a8575050509183525050604080518082019182905260209092019190600484019060029082845b8154815260200190600101908083116131e0575050509183525050604080518082019182905260209092019190600684019060029082845b815481526020019060010190808311613218575050509183525050604080518082019182905260209092019190600884019060029082845b8154815260200190600101908083116132505750505091835250506040805160e081019182905260209092019190600a84019060079082845b8154815260200190600101908083116132895750505091835250506040805160e081019182905260209092019190601184019060079082845b8154815260200190600101908083116132c2575050509183525050601882015460ff80821615156020840152610100909104161515604082015260198201546060820152601a8201546080820152601b9091015460a09091015292915050565b600e544210156133625760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b600260015414156133a35760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b60026001556133b3338383614104565b6002546040518381526001600160a01b03918216918316907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62906020016118eb565b6000546001600160a01b03620100009091041633146134565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b6001600160a01b0381166134d25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a6e565b61150b8161405b565b6000806002600154141561351f5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600181905583106135645760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b61356c613749565b61357833600080613bbf565b3360009081526030602052604090206002808201908590811061359d5761359d614f0f565b015492508060040184600281106135b6576135b6614f0f565b01549150821561362d5760008160020185600281106135d7576135d7614f0f565b015582601685600281106135ed576135ed614f0f565b0160008282546135fd9190614eb7565b909155508390506018856002811061361757613617614f0f565b0160008282546136279190614eb7565b90915550505b811561367657600081600401856002811061364a5761364a614f0f565b015581601a856002811061366057613660614f0f565b0160008282546136709190614eb7565b90915550505b60006136828385614f25565b905080156136a0576136a060048660028110612a6257612a62614f0f565b600485600281106136b3576136b3614f0f565b01546040518581526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a36004856002811061370957613709614f0f565b01546040518481526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706890602001611e1f565b6000613753612603565b602e5490915067ffffffffffffffff808316911614156137705750565b60005b60028110156139ea5760006011826002811061379157613791614f0f565b0154600f83600281106137a6576137a6614f0f565b01546137b29190614f25565b905080156139d757602e546000906137d49067ffffffffffffffff1685614f71565b905060006137fd6137ed84670de0b6b3a7640000614eb7565b8367ffffffffffffffff1661443c565b61380f90670de0b6b3a7640000614eb7565b90506000670de0b6b3a7640000826018876002811061383057613830614f0f565b01546016886002811061384557613845614f0f565b01546138519190614eb7565b61385b9190614ece565b6138659190614eed565b9050600084600f876002811061387d5761387d614f0f565b01546138899084614ece565b6138939190614eed565b60145490915015613917576014546138ba826ec097ce7bc90715b34b9f1000000000614ece565b6138c49190614eed565b601c87600281106138d7576138d7614f0f565b0160008282546138e79190614f25565b909155508190506018876002811061390157613901614f0f565b0160008282546139119190614f25565b90915550505b60006139238284614eb7565b601554909150156139d15760155461394a826ec097ce7bc90715b34b9f1000000000614ece565b6139549190614eed565b601e886002811061396757613967614f0f565b0160008282546139779190614f25565b909155508190506016886002811061399157613991614f0f565b0160008282546139a19190614eb7565b90915550819050601a88600281106139bb576139bb614f0f565b0160008282546139cb9190614f25565b90915550505b50505050505b50806139e281614f3d565b915050613773565b5060145415613b9b57600254613a0b906001600160a01b0316306000613fc6565b60005b6007811015613b9957600060208260078110613a2c57613a2c614f0f565b0154613a5560068460078110613a4457613a44614f0f565b01546001600160a01b0316306144a6565b613a5f9190614eb7565b905060015b6002811015613b065760068360078110613a8057613a80614f0f565b01546001600160a01b031660048260028110613a9e57613a9e614f0f565b01546001600160a01b03161415613af457601a8160028110613ac257613ac2614f0f565b015460168260028110613ad757613ad7614f0f565b0154613ae39190614f25565b613aed9083614eb7565b9150613b06565b80613afe81614f3d565b915050613a64565b508015613b8657601454613b29826ec097ce7bc90715b34b9f1000000000614ece565b613b339190614eed565b60278360078110613b4657613b46614f0f565b016000828254613b569190614f25565b9091555081905060208360078110613b7057613b70614f0f565b016000828254613b809190614f25565b90915550505b5080613b9181614f3d565b915050613a0e565b505b602e805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b6001600160a01b03831660009081526030602052604090206018810154610100900460ff16613c475760188101805461ff001916610100179055602f80546001810182556000919091527fa813484aef6fb598f9f753daf162068ff39ccea4075cb95e1a30f86995b5b7ee0180546001600160a01b0386166001600160a01b03199091161790555b60005b6002811015613d7557816006018160028110613c6857613c68614f0f565b01546ec097ce7bc90715b34b9f1000000000601c8360028110613c8d57613c8d614f0f565b01548454613c9b9190614ece565b613ca59190614eed565b613caf9190614eb7565b826002018260028110613cc457613cc4614f0f565b016000828254613cd49190614f25565b9091555050600882018160028110613cee57613cee614f0f565b01546ec097ce7bc90715b34b9f1000000000601e8360028110613d1357613d13614f0f565b01548460010154613d249190614ece565b613d2e9190614eed565b613d389190614eb7565b826004018260028110613d4d57613d4d614f0f565b016000828254613d5d9190614f25565b90915550819050613d6d81614f3d565b915050613c4a565b5060005b6007811015613e1b57816011018160078110613d9757613d97614f0f565b01546ec097ce7bc90715b34b9f100000000060278360078110613dbc57613dbc614f0f565b01548454613dca9190614ece565b613dd49190614eed565b613dde9190614eb7565b82600a018260078110613df357613df3614f0f565b016000828254613e039190614f25565b90915550819050613e1381614f3d565b915050613d79565b506000831315613e445782816000016000828254613e399190614f25565b90915550613e6f9050565b6000831215613e6f57613e5683614e9a565b816000016000828254613e699190614eb7565b90915550505b81816001016000828254613e839190614f25565b90915550600090505b6002811015613f4e576ec097ce7bc90715b34b9f1000000000601c8260028110613eb857613eb8614f0f565b01548354613ec69190614ece565b613ed09190614eed565b826006018260028110613ee557613ee5614f0f565b01556ec097ce7bc90715b34b9f1000000000601e8260028110613f0a57613f0a614f0f565b01548360010154613f1b9190614ece565b613f259190614eed565b826008018260028110613f3a57613f3a614f0f565b015580613f4681614f3d565b915050613e8c565b5060005b6007811015613fbf576ec097ce7bc90715b34b9f100000000060278260078110613f7e57613f7e614f0f565b01548354613f8c9190614ece565b613f969190614eed565b826011018260078110613fab57613fab614f0f565b015580613fb781614f3d565b915050613f52565b5050505050565b6040516001600160a01b03831660248201526044810182905261405690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261454f565b505050565b600080546001600160a01b03838116620100008181027fffffffffffffffffffff0000000000000000000000000000000000000000ffff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526125219085906323b872dd60e01b90608401613ff2565b600082116141455760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b61414d613749565b6001600160a01b038316301461427d576002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156141a157600080fd5b505afa1580156141b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d99190614f58565b6002549091506141f4906001600160a01b03168530866140cc565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561423757600080fd5b505afa15801561424b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061426f9190614f58565b6142799190614eb7565b9250505b6000670de0b6b3a764000061429984662386f26fc10000614ece565b6142a39190614eed565b905060006142b2826009614ece565b905060006142c183600b614ece565b6142cb9086614eb7565b905081601660000160008282546142e29190614f25565b90915550506014541561435b576014546142fd846002614ece565b614316906ec097ce7bc90715b34b9f1000000000614ece565b6143209190614eed565b601c8054600090614332908490614f25565b909155506143439050836002614ece565b60188054600090614355908490614f25565b90915550505b601554156143bc5760155461437f846ec097ce7bc90715b34b9f1000000000614ece565b6143899190614eed565b601e805460009061439b908490614f25565b90915550839050601a60000160008282546143b69190614f25565b90915550505b6143c884826000613bbf565b80601460008282546143da9190614f25565b90915550506002546143f8906001600160a01b031661dead85613fc6565b505050505050565b600d546001600160a01b03848116911614614429576140566001600160a01b0384168383613fc6565b6140566001600160a01b03831682614634565b670de0b6b3a76400005b81156144a057600182161561447557670de0b6b3a76400006144688483614ece565b6144729190614eed565b90505b60019190911c90670de0b6b3a764000061448f8480614ece565b6144999190614eed565b9250614446565b92915050565b600d546000906001600160a01b0384811691161461453c576040516370a0823160e01b81526001600160a01b0383811660048301528416906370a082319060240160206040518083038186803b1580156144ff57600080fd5b505afa158015614513573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145379190614f58565b614548565b816001600160a01b0316315b9392505050565b60006145a4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661474d9092919063ffffffff16565b80519091501561405657808060200190518101906145c29190614f9a565b6140565760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a6e565b804710156146845760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a6e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146146d1576040519150601f19603f3d011682016040523d82523d6000602084013e6146d6565b606091505b50509050806140565760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a6e565b606061475c8484600085614764565b949350505050565b6060824710156147dc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a6e565b843b61482a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a6e565b600080866001600160a01b031685876040516148469190614fe3565b60006040518083038185875af1925050503d8060008114614883576040519150601f19603f3d011682016040523d82523d6000602084013e614888565b606091505b50915091506148988282866148a3565b979650505050505050565b606083156148b2575081614548565b8251156148c25782518084602001fd5b8160405162461bcd60e51b8152600401610a6e9190614fff565b8260028101928215614924579160200282015b8281111561492457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906148ef565b50614930929150614a47565b5090565b8260078101928215614924579160200282018281111561492457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906148ef565b60405180604001604052806002906020820280368337509192915050565b6040518060e001604052806007906020820280368337509192915050565b604051806101a0016040528060008152602001600081526020016149d961497b565b81526020016149e661497b565b81526020016149f361497b565b8152602001614a0061497b565b8152602001614a0d614999565b8152602001614a1a614999565b81526020016000151581526020016000151581526020016000815260200160008152602001600081525090565b5b808211156149305760008155600101614a48565b600060208284031215614a6e57600080fd5b5035919050565b801515811461150b57600080fd5b600060208284031215614a9557600080fd5b813561454881614a75565b80356001600160a01b0381168114614ab757600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715614af557614af5614abc565b60405290565b600060405160e0810181811067ffffffffffffffff82111715614b2057614b20614abc565b60405290508060e0830184811115614b3757600080fd5b835b81811015614b5857614b4a81614aa0565b835260209283019201614b39565b50505092915050565b6000806000806000806101a08789031215614b7b57600080fd5b614b8487614aa0565b95506020614b93818901614aa0565b955088605f890112614ba457600080fd5b614bac614ad2565b8060808a018b811115614bbe57600080fd5b60408b015b81811015614be157614bd481614aa0565b8452928401928401614bc3565b508197508b609f8c0112614bf457600080fd5b614bfe8c82614afb565b965050505050614c116101608801614aa0565b9150614c206101808801614aa0565b90509295509295509295565b60008060408385031215614c3f57600080fd5b50508035926020909101359150565b60008060408385031215614c6157600080fd5b82359150614c7160208401614aa0565b90509250929050565b60008060408385031215614c8d57600080fd5b614c9683614aa0565b946020939093013593505050565b600060208284031215614cb657600080fd5b61454882614aa0565b600080600060408486031215614cd457600080fd5b833567ffffffffffffffff80821115614cec57600080fd5b818601915086601f830112614d0057600080fd5b813581811115614d0f57600080fd5b8760208260051b8501011115614d2457600080fd5b60209283019550935050840135614d3a81614a75565b809150509250925092565b8060005b6002811015612521578151845260209384019390910190600101614d49565b8060005b6007811015612521578151845260209384019390910190600101614d6c565b6101608101614d9a8286614d45565b614da76040830185614d45565b61475c6080830184614d68565b60006103a08201905082518252602083015160208301526040830151614ddd6040840182614d45565b506060830151614df06080840182614d45565b506080830151614e0360c0840182614d45565b5060a0830151610100614e1881850183614d45565b60c08501519150610140614e2e81860184614d68565b60e08601519250614e43610220860184614d68565b908501511515610300850152610120850151151561032085015284015161034084015250610160830151610360830152610180909201516103809091015290565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b821415614eb057614eb0614e84565b5060000390565b600082821015614ec957614ec9614e84565b500390565b6000816000190483118215151615614ee857614ee8614e84565b500290565b600082614f0a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60008219821115614f3857614f38614e84565b500190565b6000600019821415614f5157614f51614e84565b5060010190565b600060208284031215614f6a57600080fd5b5051919050565b600067ffffffffffffffff83811690831681811015614f9257614f92614e84565b039392505050565b600060208284031215614fac57600080fd5b815161454881614a75565b60005b83811015614fd2578181015183820152602001614fba565b838111156125215750506000910152565b60008251614ff5818460208701614fb7565b9190910192915050565b602081526000825180602084015261501e816040850160208701614fb7565b601f01601f1916919091016040019291505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a26469706673582212201226bbb2479158b2067168858577c653bb0942d7d01ab8a057414c9eb576676564736f6c634300080900330000000000000000000000006f7903dbc2bf99a46104d8cc0d9bb54639570e4a0000000000000000000000006f7903dbc2bf99a46104d8cc0d9bb54639570e4a0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a2000000000000000000000000cc78a0acdf847a2c1714d2a925bb4477df5d48a6000000000000000000000000d6c31ba0754c4383a41c0e9df042c62b5e918f6d000000000000000000000000eb2ceed77147893ba8b250c796c2d4ef02a72b680000000000000000000000008bf45680485b2ac15e452a9599e87b94c5a077920000000000000000000000006982508145454ce325ddbe47a25d4ec3d231193300000000000000000000000094534eeee131840b1c0f61847c572228bdfdde9300000000000000000000000009e64c2b61a5f1690ee6fbed9baf5d6990f8dfd00000000000000000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x6080604052600436106103175760003560e01c80638cbba57a1161019a578063c89ebaec116100e1578063e72f6e301161008a578063f2fde38b11610064578063f2fde38b1461098a578063f4325d67146109aa578063f6d4277a146109ca57600080fd5b8063e72f6e301461091d578063edc017521461093d578063f1ddf8401461096a57600080fd5b8063d89135cd116100bb578063d89135cd146108c7578063e33702d7146108dd578063e4879b88146108fd57600080fd5b8063c89ebaec14610863578063d1058e5914610883578063d5eae1d5146108a757600080fd5b8063ae169a5011610143578063b74e452b1161011d578063b74e452b146107ee578063be80701614610803578063c194efbf1461084357600080fd5b8063ae169a501461078e578063aff177ca146107ae578063b6b55f25146107ce57600080fd5b8063996c6cc311610174578063996c6cc3146106b85780639ff46e74146106d8578063a7310b58146106f857600080fd5b80638cbba57a146106545780638da5cb5b1461067457806392a526131461069857600080fd5b8063509b6c3f1161025e578063790ca413116102075780637b76ac91116101e15780637b76ac91146105cf578063817b1cd214610609578063895ff41d1461061f57600080fd5b8063790ca413146105795780637b460b2a1461058f5780637b58389e146105af57600080fd5b80636d9873c5116102385780636d9873c51461052f5780636f55184b14610544578063715018a61461056457600080fd5b8063509b6c3f146104c55780635d54e612146104e557806368c958ee1461050f57600080fd5b806336f9825f116102c057806341632d331161029a57806341632d331461047057806342966c68146104855780634ccc895b146104a557600080fd5b806336f9825f146103f85780633738daa4146104305780633a589b971461045057600080fd5b806323a6f46e116102f157806323a6f46e146103985780632b653797146103b85780632e1a7d4d146103d857600080fd5b80630b9166de146103235780630f392ad01461035657806322ac7b8f1461037657600080fd5b3661031e57005b600080fd5b34801561032f57600080fd5b5061034361033e366004614a5c565b6109ea565b6040519081526020015b60405180910390f35b34801561036257600080fd5b50610343610371366004614a5c565b610a01565b34801561038257600080fd5b50610396610391366004614a83565b610a11565b005b3480156103a457600080fd5b506103436103b3366004614a5c565b610a8a565b3480156103c457600080fd5b506103436103d3366004614a5c565b610a9a565b3480156103e457600080fd5b506103966103f3366004614a5c565b610aaa565b34801561040457600080fd5b50610418610413366004614a5c565b610db8565b6040516001600160a01b03909116815260200161034d565b34801561043c57600080fd5b5061039661044b366004614b61565b610de2565b34801561045c57600080fd5b50600354610418906001600160a01b031681565b34801561047c57600080fd5b50602f54610343565b34801561049157600080fd5b506103966104a0366004614a5c565b611501565b3480156104b157600080fd5b506103966104c0366004614c2c565b61150e565b3480156104d157600080fd5b506104186104e0366004614a5c565b6118fb565b3480156104f157600080fd5b506013546104ff9060ff1681565b604051901515815260200161034d565b34801561051b57600080fd5b5061039661052a366004614c4e565b61191b565b34801561053b57600080fd5b50610396611a66565b34801561055057600080fd5b5061034361055f366004614a5c565b611aba565b34801561057057600080fd5b50610396611aca565b34801561058557600080fd5b50610343600e5481565b34801561059b57600080fd5b506103436105aa366004614a5c565b611b37565b3480156105bb57600080fd5b506103436105ca366004614a5c565b611b47565b3480156105db57600080fd5b50602e546105f09067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161034d565b34801561061557600080fd5b5061034360145481565b34801561062b57600080fd5b5061063f61063a366004614a5c565b611b57565b6040805192835260208301919091520161034d565b34801561066057600080fd5b5061063f61066f366004614c7a565b611e34565b34801561068057600080fd5b506000546201000090046001600160a01b0316610418565b3480156106a457600080fd5b506103966106b3366004614c2c565b611e88565b3480156106c457600080fd5b50600d54610418906001600160a01b031681565b3480156106e457600080fd5b506103966106f3366004614a5c565b6121bc565b34801561070457600080fd5b50610753610713366004614ca4565b60306020526000908152604090208054600182015460188301546019840154601a850154601b909501549394929360ff8084169461010090940416929087565b604080519788526020880196909652931515948601949094529015156060850152608084015260a083019190915260c082015260e00161034d565b34801561079a57600080fd5b506103436107a9366004614a5c565b6122b1565b3480156107ba57600080fd5b506103966107c9366004614cbf565b61244c565b3480156107da57600080fd5b506103966107e9366004614a5c565b612527565b3480156107fa57600080fd5b506105f0612603565b34801561080f57600080fd5b5061082361081e366004614c7a565b612624565b60408051948552602085019390935291830152606082015260800161034d565b34801561084f57600080fd5b5061034361085e366004614a5c565b6126b0565b34801561086f57600080fd5b5061041861087e366004614a5c565b6126c0565b34801561088f57600080fd5b506108986126d0565b60405161034d93929190614d8b565b3480156108b357600080fd5b506103966108c2366004614c2c565b612c98565b3480156108d357600080fd5b5061034360155481565b3480156108e957600080fd5b506103966108f8366004614c2c565b612db8565b34801561090957600080fd5b50610343610918366004614a5c565b612ed3565b34801561092957600080fd5b50610396610938366004614ca4565b612ee3565b34801561094957600080fd5b5061095d610958366004614a5c565b613132565b60405161034d9190614db4565b34801561097657600080fd5b50610396610985366004614c4e565b613322565b34801561099657600080fd5b506103966109a5366004614ca4565b6133f5565b3480156109b657600080fd5b50600254610418906001600160a01b031681565b3480156109d657600080fd5b5061063f6109e5366004614a5c565b6134db565b600f81600281106109fa57600080fd5b0154905081565b601e81600281106109fa57600080fd5b6000546001600160a01b0362010000909104163314610a775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6013805460ff1916911515919091179055565b602081600781106109fa57600080fd5b601c81600281106109fa57600080fd5b60026001541415610aeb5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b600260015580610b2e5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b336000908152603060205260409020805480831115610b8f5760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610a6e565b610b97613749565b610bab33610ba485614e9a565b6000613bbf565b8260146000828254610bbd9190614eb7565b9091555050601882015460ff1680610bd7575060135460ff165b15610bf857600254610bf3906001600160a01b03163385613fc6565b610d6b565b6000670de0b6b3a7640000610c1485662386f26fc10000614ece565b610c1e9190614eed565b90506000610c2d826009614ece565b90506000610c3c83600b614ece565b610c469087614eb7565b90508160166000016000828254610c5d9190614f25565b909155505060145415610cd657601454610c78846002614ece565b610c91906ec097ce7bc90715b34b9f1000000000614ece565b610c9b9190614eed565b601c8054600090610cad908490614f25565b90915550610cbe9050836002614ece565b60188054600090610cd0908490614f25565b90915550505b60155415610d3757601554610cfa846ec097ce7bc90715b34b9f1000000000614ece565b610d049190614eed565b601e8054600090610d16908490614f25565b90915550839050601a6000016000828254610d319190614f25565b90915550505b600254610d50906001600160a01b031661dead85613fc6565b600254610d67906001600160a01b03163383613fc6565b5050505b6002546040518481526001600160a01b039091169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a350506001805550565b602f8181548110610dc857600080fd5b6000918252602090912001546001600160a01b0316905081565b600054610100900460ff1680610dfb575060005460ff16155b610e6d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610a6e565b600054610100900460ff16158015610e8f576000805461ffff19166101011790555b610e988761405b565b6367223be0600e5560005b6002811015610ef857662386f26fc10000600f8260028110610ec757610ec7614f0f565b01556611c37937e0800060118260028110610ee457610ee4614f0f565b015580610ef081614f3d565b915050610ea3565b506013805460ff191690556000601481905560158190555b6002811015610f9e57600060168260028110610f2e57610f2e614f0f565b0155600060188260028110610f4557610f45614f0f565b01556000601a8260028110610f5c57610f5c614f0f565b01556000601c8260028110610f7357610f73614f0f565b01556000601e8260028110610f8a57610f8a614f0f565b015580610f9681614f3d565b915050610f10565b5060005b6007811015610feb57600060208260078110610fc057610fc0614f0f565b0155600060278260078110610fd757610fd7614f0f565b015580610fe381614f3d565b915050610fa2565b50610ff4612603565b602e805467ffffffffffffffff191667ffffffffffffffff9290921691909117905560005b60028110156110e75760005b818110156110d4578082146110c25786816002811061104657611046614f0f565b60200201516001600160a01b031687836002811061106657611066614f0f565b60200201516001600160a01b031614156110c25760405162461bcd60e51b815260206004820152601260248201527f696e76616c6964206472697020746f6b656e00000000000000000000000000006044820152606401610a6e565b806110cc81614f3d565b915050611025565b50806110df81614f3d565b915050611019565b5060005b60078110156111b95760005b818110156111a6578082146111945785816007811061111857611118614f0f565b60200201516001600160a01b031686836007811061113857611138614f0f565b60200201516001600160a01b031614156111945760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642072657761726420746f6b656e0000000000000000000000006044820152606401610a6e565b8061119e81614f3d565b9150506110f7565b50806111b181614f3d565b9150506110eb565b5084516001600160a01b038781169116146112225760405162461bcd60e51b8152602060048201526024808201527f317374206472697020746f6b656e206d7573742062652072657365727665207460448201526337b5b2b760e11b6064820152608401610a6e565b60015b600281101561130a576000805b600781101561129c5786816007811061124d5761124d614f0f565b60200201516001600160a01b031688846002811061126d5761126d614f0f565b60200201516001600160a01b0316141561128a576001915061129c565b8061129481614f3d565b915050611232565b5080156112f75760405162461bcd60e51b815260206004820152602360248201527f4472697020746f6b656e2063616e6e6f7420626520612072657761726420746f60448201526235b2b760e91b6064820152608401610a6e565b508061130281614f3d565b915050611225565b5060005b60078110156113c757866001600160a01b031685826007811061133357611333614f0f565b60200201516001600160a01b031614156113b55760405162461bcd60e51b815260206004820152602660248201527f5265736572766520746f6b656e2063616e6e6f7420626520612072657761726460448201527f20746f6b656e00000000000000000000000000000000000000000000000000006064820152608401610a6e565b806113bf81614f3d565b91505061130e565b50856001600160a01b0316826001600160a01b0316141561142a5760405162461bcd60e51b815260206004820181905260248201527f57504c532063616e6e6f7420626520746865207265736572766520746f6b656e6044820152606401610a6e565b600280546001600160a01b038089166001600160a01b031992831617835560038054918716919092161790556114649060049087906148dc565b506114726006856007614934565b50600d80546001600160a01b0319166001600160a01b0384811691909117909155604051633d0c1b3360e01b81526000600482015290871690633d0c1b3390602401600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b5050505080156114f8576000805461ff00191690555b50505050505050565b61150b813361191b565b50565b6002600154141561154f5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155600782106115945760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b600081116115d55760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6115dd613749565b60006014541161162f5760405162461bcd60e51b815260206004820152600b60248201527f6e6f206465706f736974730000000000000000000000000000000000000000006044820152606401610a6e565b60006006836007811061164457611644614f0f565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561168657600080fd5b505afa15801561169a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116be9190614f58565b90506116ec333084600687600781106116d9576116d9614f0f565b01546001600160a01b03169291906140cc565b806006846007811061170057611700614f0f565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561174257600080fd5b505afa158015611756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177a9190614f58565b6117849190614eb7565b600d549092506001600160a01b03169050600683600781106117a8576117a8614f0f565b01546001600160a01b0316141561182a57600682600781106117cc576117cc614f0f565b0154604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561181157600080fd5b505af1158015611825573d6000803e3d6000fd5b505050505b60145461183f82670de0b6b3a7640000614ece565b6118499190614eed565b6027836007811061185c5761185c614f0f565b01600082825461186c9190614f25565b909155508190506020836007811061188657611886614f0f565b0160008282546118969190614f25565b909155506006905082600781106118af576118af614f0f565b01546040518281526001600160a01b039091169033907f9ed97645fb5853abbbe66e94ac8ed13dac4d3ff7afe85b05c0e2b323b4014193906020015b60405180910390a3505060018055565b6006816007811061190b57600080fd5b01546001600160a01b0316905081565b600e5442101561195b5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b6002600154141561199c5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155816119df5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b6119e7613749565b6119f381600084613bbf565b8160156000828254611a059190614f25565b9091555050600354611a24906001600160a01b03163361dead856140cc565b6003546040518381526001600160a01b03918216918316907fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b9453906020016118eb565b60026001541415611aa75760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155611ab4613749565b60018055565b601681600281106109fa57600080fd5b6000546001600160a01b0362010000909104163314611b2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b611b35600061405b565b565b601881600281106109fa57600080fd5b601a81600281106109fa57600080fd5b60008060026001541415611b9b5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b600260018190558310611be05760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b600280546001600160a01b03169060049085908110611c0157611c01614f0f565b01546001600160a01b031614611c495760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b611c51613749565b611c5d33600080613bbf565b33600090815260306020526040902060028082019085908110611c8257611c82614f0f565b01549250806004018460028110611c9b57611c9b614f0f565b015491508215611d12576000816002018560028110611cbc57611cbc614f0f565b01558260168560028110611cd257611cd2614f0f565b016000828254611ce29190614eb7565b9091555083905060188560028110611cfc57611cfc614f0f565b016000828254611d0c9190614eb7565b90915550505b8115611d5b576000816004018560028110611d2f57611d2f614f0f565b015581601a8560028110611d4557611d45614f0f565b016000828254611d559190614eb7565b90915550505b6000611d678385614f25565b90508015611d7a57611d7a308233614104565b60048560028110611d8d57611d8d614f0f565b01546040518581526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc639060200160405180910390a360048560028110611de357611de3614f0f565b01546040518481526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc63906020015b60405180910390a35050600180559092909150565b6001600160a01b03821660009081526030602052604081208190600a81018460078110611e6357611e63614f0f565b0154816011018560078110611e7a57611e7a614f0f565b015492509250509250929050565b60026001541415611ec95760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b600260018190558210611f0e5760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b60008111611f4f5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b611f57613749565b600060048360028110611f6c57611f6c614f0f565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611fae57600080fd5b505afa158015611fc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe69190614f58565b9050612001333084600487600281106116d9576116d9614f0f565b806004846002811061201557612015614f0f565b01546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561205757600080fd5b505afa15801561206b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208f9190614f58565b6120999190614eb7565b600d549092506001600160a01b03169050600483600281106120bd576120bd614f0f565b01546001600160a01b0316141561213f57600482600281106120e1576120e1614f0f565b0154604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561212657600080fd5b505af115801561213a573d6000803e3d6000fd5b505050505b806016836002811061215357612153614f0f565b0160008282546121639190614f25565b9091555060049050826002811061217c5761217c614f0f565b01546040518281526001600160a01b039091169033907f88923243846ae6dc2129c36897f0c50381bac23792669a4ab5bc456dd9976177906020016118eb565b6000546001600160a01b036201000090910416331461221d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b600e54421061225c5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b428110156122ac5760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642074696d6500000000000000000000000000000000000000006044820152606401610a6e565b600e55565b6000600260015414156122f45760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155600782106123395760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b612341613749565b61234d33600080613bbf565b336000908152603060205260409020600a8101836007811061237157612371614f0f565b0154915081156123be57600081600a01846007811061239257612392614f0f565b015581602084600781106123a8576123a8614f0f565b0160008282546123b89190614eb7565b90915550505b81156123ec576123ec600684600781106123da576123da614f0f565b01546001600160a01b03163384614400565b600683600781106123ff576123ff614f0f565b01546040518381526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a35060018055919050565b6000546001600160a01b03620100009091041633146124ad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60005b828110156125215781603060008686858181106124cf576124cf614f0f565b90506020020160208101906124e49190614ca4565b6001600160a01b031681526020810191909152604001600020601801805460ff19169115159190911790558061251981614f3d565b9150506124b0565b50505050565b600e544210156125675760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b600260015414156125a85760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b60026001556125b8338281614104565b6002546040518281526001600160a01b039091169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a35060018055565b60006201518061261561e10042614f25565b61261f9190614eed565b905090565b6001600160a01b03821660009081526030602052604081208190819081906002808201908790811061265857612658614f0f565b015481600401876002811061266f5761266f614f0f565b015482600601886002811061268657612686614f0f565b015483600801896002811061269d5761269d614f0f565b0154929a91995097509095509350505050565b602781600781106109fa57600080fd5b6004816002811061190b57600080fd5b6126d861497b565b6126e061497b565b6126e8614999565b600260015414156127295760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600155612736613749565b61274233600080613bbf565b336000908152603060205260408120905b60028110156127ca5781600201816002811061277157612771614f0f565b015485826002811061278557612785614f0f565b602002015260048201816002811061279f5761279f614f0f565b01548482600281106127b3576127b3614f0f565b6020020152806127c281614f3d565b915050612753565b5060005b60078110156128175781600a0181600781106127ec576127ec614f0f565b015483826007811061280057612800614f0f565b60200201528061280f81614f3d565b9150506127ce565b5060005b600281101561296657600085826002811061283857612838614f0f565b602002015111156128dc57600082600201826002811061285a5761285a614f0f565b015584816002811061286e5761286e614f0f565b60200201516016826002811061288657612886614f0f565b0160008282546128969190614eb7565b9091555085905081600281106128ae576128ae614f0f565b6020020151601882600281106128c6576128c6614f0f565b0160008282546128d69190614eb7565b90915550505b60008482600281106128f0576128f0614f0f565b6020020151111561295457600082600401826002811061291257612912614f0f565b015583816002811061292657612926614f0f565b6020020151601a826002811061293e5761293e614f0f565b01600082825461294e9190614eb7565b90915550505b8061295e81614f3d565b91505061281b565b5060005b60078110156129fd57600083826007811061298757612987614f0f565b602002015111156129eb57600082600a0182600781106129a9576129a9614f0f565b01558281600781106129bd576129bd614f0f565b6020020151602082600781106129d5576129d5614f0f565b0160008282546129e59190614eb7565b90915550505b806129f581614f3d565b91505061296a565b5060005b6002811015612a87576000848260028110612a1e57612a1e614f0f565b6020020151868360028110612a3557612a35614f0f565b6020020151612a449190614f25565b90508015612a7457612a7460048360028110612a6257612a62614f0f565b01546001600160a01b03163383614400565b5080612a7f81614f3d565b915050612a01565b5060005b6007811015612b03576000838260078110612aa857612aa8614f0f565b60200201511115612af157612af160068260078110612ac957612ac9614f0f565b01546001600160a01b031633858460078110612ae757612ae7614f0f565b6020020151614400565b80612afb81614f3d565b915050612a8b565b5060005b6002811015612bfe5760048160028110612b2357612b23614f0f565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068878460028110612b6257612b62614f0f565b6020020151604051612b7691815260200190565b60405180910390a360048160028110612b9157612b91614f0f565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068868460028110612bd057612bd0614f0f565b6020020151604051612be491815260200190565b60405180910390a380612bf681614f3d565b915050612b07565b5060005b6007811015612c8b5760068160078110612c1e57612c1e614f0f565b01546001600160a01b0316337f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd987068858460078110612c5d57612c5d614f0f565b6020020151604051612c7191815260200190565b60405180910390a380612c8381614f3d565b915050612c02565b5050600180559192909190565b6000546001600160a01b0362010000909104163314612cf95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60028210612d395760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b670de0b6b3a764000060118360028110612d5557612d55614f0f565b0154612d619083614f25565b1115612d9e5760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610a6e565b80600f8360028110612db257612db2614f0f565b01555050565b6000546001600160a01b0362010000909104163314612e195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60028210612e595760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b670de0b6b3a764000081600f8460028110612e7657612e76614f0f565b0154612e829190614f25565b1115612ebf5760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610a6e565b8060118360028110612db257612db2614f0f565b601181600281106109fa57600080fd5b6000546001600160a01b0362010000909104163314612f445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b60026001541415612f855760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b600260015560005b60078110156130085760068160078110612fa957612fa9614f0f565b01546001600160a01b0383811691161415612ff65760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610a6e565b8061300081614f3d565b915050612f8d565b506040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561304b57600080fd5b505afa15801561305f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130839190614f58565b6002549091506001600160a01b03838116911614156130c657601a546016546014546130af9190614f25565b6130b99190614f25565b6130c39082614eb7565b90505b600081116131165760405162461bcd60e51b815260206004820152600a60248201527f6e6f2062616c616e6365000000000000000000000000000000000000000000006044820152606401610a6e565b61312a6001600160a01b0383163383613fc6565b505060018055565b61313a6149b7565b60306000602f848154811061315157613151614f0f565b6000918252602080832091909101546001600160a01b03168352828101939093526040918201902081516101a081018352815481526001820154938101939093528151808301808452919284019160028085019182845b8154815260200190600101908083116131a8575050509183525050604080518082019182905260209092019190600484019060029082845b8154815260200190600101908083116131e0575050509183525050604080518082019182905260209092019190600684019060029082845b815481526020019060010190808311613218575050509183525050604080518082019182905260209092019190600884019060029082845b8154815260200190600101908083116132505750505091835250506040805160e081019182905260209092019190600a84019060079082845b8154815260200190600101908083116132895750505091835250506040805160e081019182905260209092019190601184019060079082845b8154815260200190600101908083116132c2575050509183525050601882015460ff80821615156020840152610100909104161515604082015260198201546060820152601a8201546080820152601b9091015460a09091015292915050565b600e544210156133625760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610a6e565b600260015414156133a35760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b60026001556133b3338383614104565b6002546040518381526001600160a01b03918216918316907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62906020016118eb565b6000546001600160a01b03620100009091041633146134565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6e565b6001600160a01b0381166134d25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a6e565b61150b8161405b565b6000806002600154141561351f5760405162461bcd60e51b815260206004820152601f60248201526000805160206150338339815191526044820152606401610a6e565b6002600181905583106135645760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610a6e565b61356c613749565b61357833600080613bbf565b3360009081526030602052604090206002808201908590811061359d5761359d614f0f565b015492508060040184600281106135b6576135b6614f0f565b01549150821561362d5760008160020185600281106135d7576135d7614f0f565b015582601685600281106135ed576135ed614f0f565b0160008282546135fd9190614eb7565b909155508390506018856002811061361757613617614f0f565b0160008282546136279190614eb7565b90915550505b811561367657600081600401856002811061364a5761364a614f0f565b015581601a856002811061366057613660614f0f565b0160008282546136709190614eb7565b90915550505b60006136828385614f25565b905080156136a0576136a060048660028110612a6257612a62614f0f565b600485600281106136b3576136b3614f0f565b01546040518581526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a36004856002811061370957613709614f0f565b01546040518481526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706890602001611e1f565b6000613753612603565b602e5490915067ffffffffffffffff808316911614156137705750565b60005b60028110156139ea5760006011826002811061379157613791614f0f565b0154600f83600281106137a6576137a6614f0f565b01546137b29190614f25565b905080156139d757602e546000906137d49067ffffffffffffffff1685614f71565b905060006137fd6137ed84670de0b6b3a7640000614eb7565b8367ffffffffffffffff1661443c565b61380f90670de0b6b3a7640000614eb7565b90506000670de0b6b3a7640000826018876002811061383057613830614f0f565b01546016886002811061384557613845614f0f565b01546138519190614eb7565b61385b9190614ece565b6138659190614eed565b9050600084600f876002811061387d5761387d614f0f565b01546138899084614ece565b6138939190614eed565b60145490915015613917576014546138ba826ec097ce7bc90715b34b9f1000000000614ece565b6138c49190614eed565b601c87600281106138d7576138d7614f0f565b0160008282546138e79190614f25565b909155508190506018876002811061390157613901614f0f565b0160008282546139119190614f25565b90915550505b60006139238284614eb7565b601554909150156139d15760155461394a826ec097ce7bc90715b34b9f1000000000614ece565b6139549190614eed565b601e886002811061396757613967614f0f565b0160008282546139779190614f25565b909155508190506016886002811061399157613991614f0f565b0160008282546139a19190614eb7565b90915550819050601a88600281106139bb576139bb614f0f565b0160008282546139cb9190614f25565b90915550505b50505050505b50806139e281614f3d565b915050613773565b5060145415613b9b57600254613a0b906001600160a01b0316306000613fc6565b60005b6007811015613b9957600060208260078110613a2c57613a2c614f0f565b0154613a5560068460078110613a4457613a44614f0f565b01546001600160a01b0316306144a6565b613a5f9190614eb7565b905060015b6002811015613b065760068360078110613a8057613a80614f0f565b01546001600160a01b031660048260028110613a9e57613a9e614f0f565b01546001600160a01b03161415613af457601a8160028110613ac257613ac2614f0f565b015460168260028110613ad757613ad7614f0f565b0154613ae39190614f25565b613aed9083614eb7565b9150613b06565b80613afe81614f3d565b915050613a64565b508015613b8657601454613b29826ec097ce7bc90715b34b9f1000000000614ece565b613b339190614eed565b60278360078110613b4657613b46614f0f565b016000828254613b569190614f25565b9091555081905060208360078110613b7057613b70614f0f565b016000828254613b809190614f25565b90915550505b5080613b9181614f3d565b915050613a0e565b505b602e805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b6001600160a01b03831660009081526030602052604090206018810154610100900460ff16613c475760188101805461ff001916610100179055602f80546001810182556000919091527fa813484aef6fb598f9f753daf162068ff39ccea4075cb95e1a30f86995b5b7ee0180546001600160a01b0386166001600160a01b03199091161790555b60005b6002811015613d7557816006018160028110613c6857613c68614f0f565b01546ec097ce7bc90715b34b9f1000000000601c8360028110613c8d57613c8d614f0f565b01548454613c9b9190614ece565b613ca59190614eed565b613caf9190614eb7565b826002018260028110613cc457613cc4614f0f565b016000828254613cd49190614f25565b9091555050600882018160028110613cee57613cee614f0f565b01546ec097ce7bc90715b34b9f1000000000601e8360028110613d1357613d13614f0f565b01548460010154613d249190614ece565b613d2e9190614eed565b613d389190614eb7565b826004018260028110613d4d57613d4d614f0f565b016000828254613d5d9190614f25565b90915550819050613d6d81614f3d565b915050613c4a565b5060005b6007811015613e1b57816011018160078110613d9757613d97614f0f565b01546ec097ce7bc90715b34b9f100000000060278360078110613dbc57613dbc614f0f565b01548454613dca9190614ece565b613dd49190614eed565b613dde9190614eb7565b82600a018260078110613df357613df3614f0f565b016000828254613e039190614f25565b90915550819050613e1381614f3d565b915050613d79565b506000831315613e445782816000016000828254613e399190614f25565b90915550613e6f9050565b6000831215613e6f57613e5683614e9a565b816000016000828254613e699190614eb7565b90915550505b81816001016000828254613e839190614f25565b90915550600090505b6002811015613f4e576ec097ce7bc90715b34b9f1000000000601c8260028110613eb857613eb8614f0f565b01548354613ec69190614ece565b613ed09190614eed565b826006018260028110613ee557613ee5614f0f565b01556ec097ce7bc90715b34b9f1000000000601e8260028110613f0a57613f0a614f0f565b01548360010154613f1b9190614ece565b613f259190614eed565b826008018260028110613f3a57613f3a614f0f565b015580613f4681614f3d565b915050613e8c565b5060005b6007811015613fbf576ec097ce7bc90715b34b9f100000000060278260078110613f7e57613f7e614f0f565b01548354613f8c9190614ece565b613f969190614eed565b826011018260078110613fab57613fab614f0f565b015580613fb781614f3d565b915050613f52565b5050505050565b6040516001600160a01b03831660248201526044810182905261405690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261454f565b505050565b600080546001600160a01b03838116620100008181027fffffffffffffffffffff0000000000000000000000000000000000000000ffff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526125219085906323b872dd60e01b90608401613ff2565b600082116141455760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a6e565b61414d613749565b6001600160a01b038316301461427d576002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156141a157600080fd5b505afa1580156141b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d99190614f58565b6002549091506141f4906001600160a01b03168530866140cc565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561423757600080fd5b505afa15801561424b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061426f9190614f58565b6142799190614eb7565b9250505b6000670de0b6b3a764000061429984662386f26fc10000614ece565b6142a39190614eed565b905060006142b2826009614ece565b905060006142c183600b614ece565b6142cb9086614eb7565b905081601660000160008282546142e29190614f25565b90915550506014541561435b576014546142fd846002614ece565b614316906ec097ce7bc90715b34b9f1000000000614ece565b6143209190614eed565b601c8054600090614332908490614f25565b909155506143439050836002614ece565b60188054600090614355908490614f25565b90915550505b601554156143bc5760155461437f846ec097ce7bc90715b34b9f1000000000614ece565b6143899190614eed565b601e805460009061439b908490614f25565b90915550839050601a60000160008282546143b69190614f25565b90915550505b6143c884826000613bbf565b80601460008282546143da9190614f25565b90915550506002546143f8906001600160a01b031661dead85613fc6565b505050505050565b600d546001600160a01b03848116911614614429576140566001600160a01b0384168383613fc6565b6140566001600160a01b03831682614634565b670de0b6b3a76400005b81156144a057600182161561447557670de0b6b3a76400006144688483614ece565b6144729190614eed565b90505b60019190911c90670de0b6b3a764000061448f8480614ece565b6144999190614eed565b9250614446565b92915050565b600d546000906001600160a01b0384811691161461453c576040516370a0823160e01b81526001600160a01b0383811660048301528416906370a082319060240160206040518083038186803b1580156144ff57600080fd5b505afa158015614513573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145379190614f58565b614548565b816001600160a01b0316315b9392505050565b60006145a4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661474d9092919063ffffffff16565b80519091501561405657808060200190518101906145c29190614f9a565b6140565760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a6e565b804710156146845760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a6e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146146d1576040519150601f19603f3d011682016040523d82523d6000602084013e6146d6565b606091505b50509050806140565760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a6e565b606061475c8484600085614764565b949350505050565b6060824710156147dc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a6e565b843b61482a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a6e565b600080866001600160a01b031685876040516148469190614fe3565b60006040518083038185875af1925050503d8060008114614883576040519150601f19603f3d011682016040523d82523d6000602084013e614888565b606091505b50915091506148988282866148a3565b979650505050505050565b606083156148b2575081614548565b8251156148c25782518084602001fd5b8160405162461bcd60e51b8152600401610a6e9190614fff565b8260028101928215614924579160200282015b8281111561492457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906148ef565b50614930929150614a47565b5090565b8260078101928215614924579160200282018281111561492457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906148ef565b60405180604001604052806002906020820280368337509192915050565b6040518060e001604052806007906020820280368337509192915050565b604051806101a0016040528060008152602001600081526020016149d961497b565b81526020016149e661497b565b81526020016149f361497b565b8152602001614a0061497b565b8152602001614a0d614999565b8152602001614a1a614999565b81526020016000151581526020016000151581526020016000815260200160008152602001600081525090565b5b808211156149305760008155600101614a48565b600060208284031215614a6e57600080fd5b5035919050565b801515811461150b57600080fd5b600060208284031215614a9557600080fd5b813561454881614a75565b80356001600160a01b0381168114614ab757600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715614af557614af5614abc565b60405290565b600060405160e0810181811067ffffffffffffffff82111715614b2057614b20614abc565b60405290508060e0830184811115614b3757600080fd5b835b81811015614b5857614b4a81614aa0565b835260209283019201614b39565b50505092915050565b6000806000806000806101a08789031215614b7b57600080fd5b614b8487614aa0565b95506020614b93818901614aa0565b955088605f890112614ba457600080fd5b614bac614ad2565b8060808a018b811115614bbe57600080fd5b60408b015b81811015614be157614bd481614aa0565b8452928401928401614bc3565b508197508b609f8c0112614bf457600080fd5b614bfe8c82614afb565b965050505050614c116101608801614aa0565b9150614c206101808801614aa0565b90509295509295509295565b60008060408385031215614c3f57600080fd5b50508035926020909101359150565b60008060408385031215614c6157600080fd5b82359150614c7160208401614aa0565b90509250929050565b60008060408385031215614c8d57600080fd5b614c9683614aa0565b946020939093013593505050565b600060208284031215614cb657600080fd5b61454882614aa0565b600080600060408486031215614cd457600080fd5b833567ffffffffffffffff80821115614cec57600080fd5b818601915086601f830112614d0057600080fd5b813581811115614d0f57600080fd5b8760208260051b8501011115614d2457600080fd5b60209283019550935050840135614d3a81614a75565b809150509250925092565b8060005b6002811015612521578151845260209384019390910190600101614d49565b8060005b6007811015612521578151845260209384019390910190600101614d6c565b6101608101614d9a8286614d45565b614da76040830185614d45565b61475c6080830184614d68565b60006103a08201905082518252602083015160208301526040830151614ddd6040840182614d45565b506060830151614df06080840182614d45565b506080830151614e0360c0840182614d45565b5060a0830151610100614e1881850183614d45565b60c08501519150610140614e2e81860184614d68565b60e08601519250614e43610220860184614d68565b908501511515610300850152610120850151151561032085015284015161034084015250610160830151610360830152610180909201516103809091015290565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b821415614eb057614eb0614e84565b5060000390565b600082821015614ec957614ec9614e84565b500390565b6000816000190483118215151615614ee857614ee8614e84565b500290565b600082614f0a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60008219821115614f3857614f38614e84565b500190565b6000600019821415614f5157614f51614e84565b5060010190565b600060208284031215614f6a57600080fd5b5051919050565b600067ffffffffffffffff83811690831681811015614f9257614f92614e84565b039392505050565b600060208284031215614fac57600080fd5b815161454881614a75565b60005b83811015614fd2578181015183820152602001614fba565b838111156125215750506000910152565b60008251614ff5818460208701614fb7565b9190910192915050565b602081526000825180602084015261501e816040850160208701614fb7565b601f01601f1916919091016040019291505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a26469706673582212201226bbb2479158b2067168858577c653bb0942d7d01ab8a057414c9eb576676564736f6c63430008090033