Source Code
Overview
ETH Balance
0.001598400027289301 ETH
Eth Value
$3.48 (@ $2,179.04/ETH)Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xc7B6bf0e...65F608abA The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
X2ETHMarket
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "./libraries/math/SafeMath.sol";
import "./libraries/utils/ReentrancyGuard.sol";
import "./libraries/token/IERC20.sol";
import "./interfaces/IX2ETHFactory.sol";
import "./interfaces/IX2PriceFeed.sol";
import "./interfaces/IX2Token.sol";
import "./interfaces/IX2Market.sol";
contract X2ETHMarket is ReentrancyGuard, IX2Market {
using SafeMath for uint256;
// use a single storage slot
// max uint128 has 38 digits so it can support the INITIAL_REBASE_DIVISOR
// increasing by 10^28 times
uint128 public override cachedBullDivisor;
uint128 public override cachedBearDivisor;
uint256 public constant FEE_BASIS_POINTS = 20; // 0.2% fee
uint256 public constant MAX_APP_FEE_BASIS_POINTS = 20; // 0.2% max app fee
uint256 public constant BASIS_POINTS_DIVISOR = 10000;
// X2Token.balance uses uint128, max uint128 has 38 digits
// with an initial rebase divisor of 10^10
// and 18 decimals for ETH, collateral of up to 10 billion ETH
// can be supported
uint128 public constant INITIAL_REBASE_DIVISOR = 10**10;
uint256 public constant MAX_DIVISOR = uint128(-1);
uint256 public constant FUNDING_INTERVAL = 1 hours;
uint256 public constant MIN_FUNDING_DIVISOR = 500;
uint256 public constant MAX_FUNDING_DIVISOR = 1000000;
address public factory;
address public override bullToken;
address public override bearToken;
address public priceFeed;
uint256 public multiplierBasisPoints;
uint256 public maxProfitBasisPoints;
uint256 public feeReserve;
uint256 public appFeeBasisPoints;
uint256 public appFeeReserve;
uint256 public fundingDivisor;
uint256 public lastFundingTime;
uint256 public override lastPrice;
bool public isInitialized;
mapping (address => uint256) public appFees;
event DistributeFees(address feeReceiver, uint256 amount);
event DistributeInterest(address feeReceiver, uint256 amount);
event Rebase(uint256 price, uint128 bullDivisor, uint128 bearDivisor);
modifier onlyFactory() {
require(msg.sender == factory, "X2ETHMarket: forbidden");
_;
}
function initialize(
address _factory,
address _priceFeed,
uint256 _multiplierBasisPoints,
uint256 _maxProfitBasisPoints,
uint256 _fundingDivisor,
uint256 _appFeeBasisPoints
) public {
require(!isInitialized, "X2ETHMarket: already initialized");
require(_maxProfitBasisPoints <= BASIS_POINTS_DIVISOR, "X2ETHMarket: maxProfitBasisPoints limit exceeded");
isInitialized = true;
factory = _factory;
priceFeed = _priceFeed;
multiplierBasisPoints = _multiplierBasisPoints;
maxProfitBasisPoints = _maxProfitBasisPoints;
setFunding(_fundingDivisor);
setAppFee(_appFeeBasisPoints);
lastPrice = uint176(latestPrice());
require(lastPrice != 0, "X2ETHMarket: unsupported price feed");
_updateLastFundingTime();
}
function setAppFee(uint256 _appFeeBasisPoints) public override onlyFactory {
require(_appFeeBasisPoints <= MAX_APP_FEE_BASIS_POINTS, "X2ETHMarket: fee limit exceeded");
appFeeBasisPoints = _appFeeBasisPoints;
}
function setFunding(uint256 _fundingDivisor) public override onlyFactory {
require(_fundingDivisor >= MIN_FUNDING_DIVISOR && _fundingDivisor <= MAX_FUNDING_DIVISOR, "X2ETHMarket: funding range exceeded");
fundingDivisor = _fundingDivisor;
}
function setBullToken(address _bullToken) public onlyFactory {
require(bullToken == address(0), "X2ETHMarket: bullToken already set");
bullToken = _bullToken;
cachedBullDivisor = INITIAL_REBASE_DIVISOR;
}
function setBearToken(address _bearToken) public onlyFactory {
require(bearToken == address(0), "X2ETHMarket: bearToken already set");
bearToken = _bearToken;
cachedBearDivisor = INITIAL_REBASE_DIVISOR;
}
function buy(address _token, address _appFeeReceiver) public payable nonReentrant returns (uint256) {
return _buy(_token, msg.sender, _appFeeReceiver);
}
function sell(address _token, uint256 _sellPoints, address _receiver, address _appFeeReceiver) public nonReentrant returns (uint256) {
return _sell(_token, _sellPoints, _receiver, true, _appFeeReceiver);
}
// since an X2Token's distributor can be set by the factory's gov,
// the market should allow an option to sell the token without invoking
// the distributor
// this ensures that tokens can always be sold even if the distributor
// is set to an address that intentionally fails when `distribute` is called
function sellWithoutDistribution(address _token, uint256 _sellPoints, address _receiver) public nonReentrant returns (uint256) {
return _sell(_token, _sellPoints, _receiver, false, address(0));
}
function flip(address _token, uint256 _flipPoints, address _appFeeReceiver) public nonReentrant returns (uint256) {
return _flip(_token, _flipPoints, msg.sender, _appFeeReceiver);
}
function rebase() public returns (bool) {
uint256 _lastPrice = uint256(lastPrice);
uint256 nextPrice = latestPrice();
uint256 intervals = block.timestamp.sub(lastFundingTime).div(FUNDING_INTERVAL);
if (_lastPrice == nextPrice && intervals == 0) { return false; }
(uint256 nextBullDivisor, uint256 nextBearDivisor) = getDivisors(_lastPrice, nextPrice);
lastPrice = nextPrice;
cachedBullDivisor = uint128(nextBullDivisor);
cachedBearDivisor = uint128(nextBearDivisor);
if (intervals > 0) {
_updateLastFundingTime();
}
emit Rebase(nextPrice, uint128(nextBullDivisor), uint128(nextBearDivisor));
return true;
}
function distributeFees() public nonReentrant returns (uint256) {
address feeReceiver = IX2ETHFactory(factory).feeReceiver();
require(feeReceiver != address(0), "X2Market: empty feeReceiver");
uint256 fees = feeReserve;
feeReserve = 0;
(bool success,) = feeReceiver.call{value: fees}("");
require(success, "X2ETHMarket: transfer failed");
emit DistributeFees(feeReceiver, fees);
return fees;
}
function distributeAppFees(address _appFeeReceiver) public nonReentrant returns (uint256) {
require(_appFeeReceiver != address(0), "X2Market: empty feeReceiver");
uint256 fees = appFees[_appFeeReceiver];
if (fees == 0) { return 0; }
appFeeReserve = appFeeReserve.sub(fees);
appFees[_appFeeReceiver] = 0;
(bool success,) = _appFeeReceiver.call{value: fees}("");
require(success, "X2ETHMarket: transfer failed");
emit DistributeFees(_appFeeReceiver, fees);
return fees;
}
function distributeInterest() public nonReentrant returns (uint256) {
address interestReceiver = IX2ETHFactory(factory).interestReceiver();
require(interestReceiver != address(0), "X2Market: empty interestReceiver");
uint256 interest = interestReserve();
(bool success,) = interestReceiver.call{value: interest}("");
require(success, "X2ETHMarket: transfer failed");
emit DistributeInterest(interestReceiver, interest);
return interest;
}
function interestReserve() public view returns (uint256) {
uint256 bullRefSupply = IX2Token(bullToken)._totalSupply();
uint256 bearRefSupply = IX2Token(bearToken)._totalSupply();
// the actual underlying supplies
uint256 totalBulls = bullRefSupply.div(cachedBullDivisor);
uint256 totalBears = bearRefSupply.div(cachedBearDivisor);
uint256 balance = address(this).balance;
return balance.sub(totalBulls).sub(totalBears).sub(feeReserve).sub(appFeeReserve);
}
function getDivisor(address _token) public override view returns (uint256) {
bool isBull = _token == bullToken;
uint256 _lastPrice = uint256(lastPrice);
uint256 nextPrice = latestPrice();
uint256 intervals = block.timestamp.sub(lastFundingTime).div(FUNDING_INTERVAL);
if (_lastPrice == nextPrice && intervals == 0) {
return isBull ? cachedBullDivisor : cachedBearDivisor;
}
(uint256 nextBullDivisor, uint256 nextBearDivisor) = getDivisors(_lastPrice, nextPrice);
return isBull ? nextBullDivisor : nextBearDivisor;
}
function latestPrice() public override view returns (uint256) {
int256 answer = IX2PriceFeed(priceFeed).latestAnswer();
// avoid negative or zero values being returned
if (answer <= 0) {
return uint256(lastPrice);
}
return uint256(answer);
}
function getFunding() public override view returns (uint256, uint256) {
uint256 _lastPrice = uint256(lastPrice);
uint256 nextPrice = latestPrice();
(uint256 nextBullDivisor, uint256 nextBearDivisor) = getDivisors(_lastPrice, nextPrice);
uint256 totalBulls = IX2Token(bullToken)._totalSupply().div(nextBullDivisor);
uint256 totalBears = IX2Token(bearToken)._totalSupply().div(nextBearDivisor);
if (totalBulls > totalBears && totalBears > 0) {
uint256 funding = totalBulls.sub(totalBears).div(fundingDivisor);
return (funding, 0);
}
if (totalBears > totalBulls && totalBulls > 0) {
uint256 funding = totalBears.sub(totalBulls).div(fundingDivisor);
return (0, funding);
}
return (0, 0);
}
function getDivisors(uint256 _lastPrice, uint256 _nextPrice) public override view returns (uint256, uint256) {
uint256 bullRefSupply = IX2Token(bullToken)._totalSupply();
uint256 bearRefSupply = IX2Token(bearToken)._totalSupply();
// the actual underlying supplies
uint256 totalBulls = bullRefSupply.div(cachedBullDivisor);
uint256 totalBears = bearRefSupply.div(cachedBearDivisor);
// scope variables to avoid stack too deep errors
{
// refSupply is the smaller of the two supplies
uint256 refSupply = totalBulls < totalBears ? totalBulls : totalBears;
uint256 delta = _nextPrice > _lastPrice ? _nextPrice.sub(_lastPrice) : _lastPrice.sub(_nextPrice);
// profit is [(smaller supply) * (change in price) / (last price)] * multiplierBasisPoints
uint256 profit = refSupply.mul(delta).div(_lastPrice).mul(multiplierBasisPoints).div(BASIS_POINTS_DIVISOR);
// cap the profit to the (max profit percentage) of the smaller supply
uint256 maxProfit = refSupply.mul(maxProfitBasisPoints).div(BASIS_POINTS_DIVISOR);
if (profit > maxProfit) { profit = maxProfit; }
totalBulls = _nextPrice > _lastPrice ? totalBulls.add(profit) : totalBulls.sub(profit);
totalBears = _nextPrice > _lastPrice ? totalBears.sub(profit) : totalBears.add(profit);
}
{
uint256 intervals = block.timestamp.sub(lastFundingTime).div(FUNDING_INTERVAL);
if (intervals > 0) {
if (totalBulls > totalBears && totalBears > 0) {
uint256 funding = totalBulls.sub(totalBears).div(fundingDivisor).mul(intervals);
totalBulls = totalBulls.sub(funding);
totalBears = totalBears.add(funding);
}
if (totalBears > totalBulls && totalBulls > 0) {
uint256 funding = totalBears.sub(totalBulls).div(fundingDivisor).mul(intervals);
totalBears = totalBears.sub(funding);
totalBulls = totalBulls.add(funding);
}
}
}
return (_getNextDivisor(bullRefSupply, totalBulls, cachedBullDivisor), _getNextDivisor(bearRefSupply, totalBears, cachedBearDivisor));
}
function _updateLastFundingTime() private {
lastFundingTime = block.timestamp;
}
function _getNextDivisor(uint256 _refSupply, uint256 _nextSupply, uint256 _fallbackDivisor) private pure returns (uint256) {
if (_nextSupply == 0) {
return INITIAL_REBASE_DIVISOR;
}
// round up the divisor
uint256 divisor = _refSupply.mul(10).div(_nextSupply).add(9).div(10);
// prevent the cachedDivisor from overflowing or being set to 0
if (divisor == 0 || divisor > MAX_DIVISOR) { return _fallbackDivisor; }
return divisor;
}
function _collectFees(uint256 _amount) private returns (uint256) {
uint256 fee = _amount.mul(FEE_BASIS_POINTS).div(BASIS_POINTS_DIVISOR);
feeReserve = feeReserve.add(fee);
return fee;
}
function _collectAppFees(uint256 _amount, address _appFeeReceiver) private returns (uint256) {
if (appFeeBasisPoints == 0) {
return 0;
}
uint256 fee = _amount.mul(appFeeBasisPoints).div(BASIS_POINTS_DIVISOR);
appFees[_appFeeReceiver] = appFees[_appFeeReceiver].add(fee);
appFeeReserve = appFeeReserve.add(fee);
return fee;
}
function _buy(address _token, address _receiver, address _appFeeReceiver) private returns (uint256) {
bool isBull = _token == bullToken;
require(isBull || _token == bearToken, "X2ETHMarket: unsupported token");
uint256 amount = msg.value;
require(amount > 0, "X2ETHMarket: insufficient collateral sent");
rebase();
uint256 fee = _collectFees(amount);
uint256 appFee = _appFeeReceiver == address(0) ? 0 : _collectAppFees(amount, _appFeeReceiver);
uint256 depositAmount = amount.sub(fee).sub(appFee);
IX2Token(_token).mint(_receiver, depositAmount, isBull ? cachedBullDivisor : cachedBearDivisor);
return depositAmount;
}
function _sell(address _token, uint256 _sellPoints, address _receiver, bool _distribute, address _appFeeReceiver) private returns (uint256) {
require(_sellPoints > 0, "X2ETHMarket: insufficient amount");
require(_token == bullToken || _token == bearToken, "X2ETHMarket: unsupported token");
rebase();
uint256 amount = IX2Token(_token).burn(msg.sender, _sellPoints, _distribute);
uint256 fee = _collectFees(amount);
uint256 appFee = _appFeeReceiver == address(0) ? 0 : _collectAppFees(amount, _appFeeReceiver);
uint256 withdrawAmount = amount.sub(fee).sub(appFee);
(bool success,) = _receiver.call{value: withdrawAmount}("");
require(success, "X2ETHMarket: transfer failed");
return withdrawAmount;
}
function _flip(address _token, uint256 _flipPoints, address _receiver, address _appFeeReceiver) private returns (uint256) {
require(_flipPoints > 0, "X2ETHMarket: insufficient amount");
bool sellBull = _token == bullToken;
require(sellBull || _token == bearToken, "X2ETHMarket: unsupported token");
rebase();
uint256 amount = IX2Token(_token).burn(msg.sender, _flipPoints, true);
uint256 fee = _collectFees(amount);
uint256 appFee = _appFeeReceiver == address(0) ? 0 : _collectAppFees(amount, _appFeeReceiver);
uint256 flipAmount = amount.sub(fee).sub(appFee);
// if bull tokens were burnt then mint bear tokens
// if bear tokens were burnt then mint bull tokens
IX2Token(sellBull ? bearToken : bullToken).mint(
_receiver,
flipAmount,
sellBull ? cachedBearDivisor : cachedBullDivisor
);
return flipAmount;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
/**
* @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].
*/
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 () internal {
_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 make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IX2ETHFactory {
function feeReceiver() external view returns (address);
function interestReceiver() external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IX2PriceFeed {
function latestAnswer() external view returns (int256);
function latestRound() external view returns (uint80);
function getRoundData(uint80 roundId) external view returns (uint80, int256, uint256, uint256, uint80);
}// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IX2Token {
function cumulativeRewardPerToken() external view returns (uint256);
function lastBoughtAt(address account) external view returns (uint256);
function getPendingProfit(address account) external view returns (uint256);
function distributor() external view returns (address);
function rewardToken() external view returns (address);
function _totalSupply() external view returns (uint256);
function _balanceOf(address account) external view returns (uint256);
function market() external view returns (address);
function getDivisor() external view returns (uint256);
function getReward(address account) external view returns (uint256);
function costOf(address account) external view returns (uint256);
function mint(address account, uint256 amount, uint256 divisor) external;
function burn(address account, uint256 amount, bool distribute) external returns (uint256);
function setDistributor(address _distributor, address _rewardToken) external;
function setInfo(string memory name, string memory symbol) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IX2Market {
function bullToken() external view returns (address);
function bearToken() external view returns (address);
function latestPrice() external view returns (uint256);
function lastPrice() external view returns (uint256);
function getFunding() external view returns (uint256, uint256);
function getDivisor(address token) external view returns (uint256);
function getDivisors(uint256 _lastPrice, uint256 _nextPrice) external view returns (uint256, uint256);
function setAppFee(uint256 feeBasisPoints) external;
function setFunding(uint256 divisor) external;
function cachedBullDivisor() external view returns (uint128);
function cachedBearDivisor() external view returns (uint128);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DistributeFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DistributeInterest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"bullDivisor","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"bearDivisor","type":"uint128"}],"name":"Rebase","type":"event"},{"inputs":[],"name":"BASIS_POINTS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUNDING_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_REBASE_DIVISOR","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_APP_FEE_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FUNDING_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_FUNDING_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"appFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"appFeeReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"appFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bearToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bullToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_appFeeReceiver","type":"address"}],"name":"buy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cachedBearDivisor","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cachedBullDivisor","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_appFeeReceiver","type":"address"}],"name":"distributeAppFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_flipPoints","type":"uint256"},{"internalType":"address","name":"_appFeeReceiver","type":"address"}],"name":"flip","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundingDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lastPrice","type":"uint256"},{"internalType":"uint256","name":"_nextPrice","type":"uint256"}],"name":"getDivisors","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFunding","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"uint256","name":"_multiplierBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_maxProfitBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_fundingDivisor","type":"uint256"},{"internalType":"uint256","name":"_appFeeBasisPoints","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"interestReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastFundingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxProfitBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplierBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_sellPoints","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"address","name":"_appFeeReceiver","type":"address"}],"name":"sell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_sellPoints","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"sellWithoutDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_appFeeBasisPoints","type":"uint256"}],"name":"setAppFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bearToken","type":"address"}],"name":"setBearToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bullToken","type":"address"}],"name":"setBullToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fundingDivisor","type":"uint256"}],"name":"setFunding","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x608060405234801561001057600080fd5b50600160005561284b806100256000396000f3fe6080604052600436106102515760003560e01c806386489ba911610139578063af14052c116100b6578063c63b3a491161007a578063c63b3a4914610723578063c8d86e3514610738578063cc2471671461074d578063cf3860e814610762578063e2a24a3414610792578063f21f3539146107a757610251565b8063af14052c1461068c578063b0e885c1146106a1578063bb57ad20146106b6578063c4177a01146106cb578063c45a01551461070e57610251565b8063a33d652e116100fd578063a33d652e1461060a578063a3e6ba9414610634578063a525ad3c1461031b578063a67a6eab14610649578063ad7fadc51461065e57610251565b806386489ba91461050757806386aa0ae31461055c5780638b3651ad1461058f57806399ff26de146105a45780639d2873f3146105d757610251565b8063392e53cd116101d25780635aa2f64c116101965780635aa2f64c1461040a57806360bada0f1461041f5780636ac1ded114610454578063741bef1a14610497578063789ff0e1146104c85780637ea5482a146104dd57610251565b8063392e53cd1461036f5780633994c9cc146103985780633b09de21146103cb5780634f1a720a146103e057806355efb287146103f557610251565b806312c5dddc1161021957806312c5dddc146102ea5780631fc634c01461031b5780632305a4ae146103305780632b78f60714610345578063321d7fa91461035a57610251565b8063053f14da146102565780630a3465941461027d5780630ec4f25914610292578063126082cf146102a757806312af5f98146102bc575b600080fd5b34801561026257600080fd5b5061026b6107f0565b60408051918252519081900360200190f35b34801561028957600080fd5b5061026b6107f6565b34801561029e57600080fd5b5061026b6107fc565b3480156102b357600080fd5b5061026b610807565b3480156102c857600080fd5b506102d161080d565b6040805192835260208301919091528051918290030190f35b3480156102f657600080fd5b506102ff610992565b604080516001600160801b039092168252519081900360200190f35b34801561032757600080fd5b5061026b6109a8565b34801561033c57600080fd5b5061026b6109ad565b34801561035157600080fd5b5061026b6109b4565b34801561036657600080fd5b5061026b6109ba565b34801561037b57600080fd5b506103846109c0565b604080519115158252519081900360200190f35b3480156103a457600080fd5b5061026b600480360360208110156103bb57600080fd5b50356001600160a01b03166109c9565b3480156103d757600080fd5b5061026b6109db565b3480156103ec57600080fd5b5061026b6109e1565b34801561040157600080fd5b5061026b6109e7565b34801561041657600080fd5b506102ff6109ed565b34801561042b57600080fd5b506104526004803603602081101561044257600080fd5b50356001600160a01b03166109f6565b005b34801561046057600080fd5b5061026b6004803603606081101561047757600080fd5b506001600160a01b03813581169160208101359160409091013516610ad0565b3480156104a357600080fd5b506104ac610b3b565b604080516001600160a01b039092168252519081900360200190f35b3480156104d457600080fd5b5061026b610b4a565b3480156104e957600080fd5b506104526004803603602081101561050057600080fd5b5035610b50565b34801561051357600080fd5b50610452600480360360c081101561052a57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a00135610c03565b34801561056857600080fd5b5061026b6004803603602081101561057f57600080fd5b50356001600160a01b0316610d56565b34801561059b57600080fd5b5061026b610f2b565b3480156105b057600080fd5b5061026b600480360360208110156105c757600080fd5b50356001600160a01b0316611138565b3480156105e357600080fd5b50610452600480360360208110156105fa57600080fd5b50356001600160a01b03166111f6565b34801561061657600080fd5b506104526004803603602081101561062d57600080fd5b50356112cf565b34801561064057600080fd5b5061026b61137c565b34801561065557600080fd5b506104ac611413565b61026b6004803603604081101561067457600080fd5b506001600160a01b0381358116916020013516611422565b34801561069857600080fd5b50610384611486565b3480156106ad57600080fd5b5061026b61157a565b3480156106c257600080fd5b5061026b611580565b3480156106d757600080fd5b5061026b600480360360608110156106ee57600080fd5b506001600160a01b0381358116916020810135916040909101351661178a565b34801561071a57600080fd5b506104ac6117e3565b34801561072f57600080fd5b5061026b6117f2565b34801561074457600080fd5b506104ac611952565b34801561075957600080fd5b5061026b611961565b34801561076e57600080fd5b506102d16004803603604081101561078557600080fd5b5080359060200135611967565b34801561079e57600080fd5b506102ff611c80565b3480156107b357600080fd5b5061026b600480360360808110156107ca57600080fd5b506001600160a01b03813581169160208101359160408201358116916060013516611c8f565b600d5481565b60095481565b6001600160801b0381565b61271081565b600d5460009081908161081e61137c565b905060008061082d8484611967565b9150915060006108b783600360009054906101000a90046001600160a01b03166001600160a01b0316633eaaf86b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561088557600080fd5b505afa158015610899573d6000803e3d6000fd5b505050506040513d60208110156108af57600080fd5b505190611cf8565b6004805460408051633eaaf86b60e01b815290519394506000936109029387936001600160a01b031692633eaaf86b9281830192602092829003018186803b15801561088557600080fd5b905080821180156109135750600081115b1561094557600b546000906109329061092c8585611d43565b90611cf8565b98506000975061098e9650505050505050565b81811180156109545750600082115b1561098057600b5460009061096d9061092c8486611d43565b60009950975061098e9650505050505050565b600080975097505050505050505b9091565b600154600160801b90046001600160801b031681565b601481565b620f424081565b600a5481565b600c5481565b600e5460ff1681565b600f6020526000908152604090205481565b600b5481565b60075481565b610e1081565b6402540be40081565b6002546001600160a01b03163314610a4e576040805162461bcd60e51b81526020600482015260166024820152752c1922aa2426b0b935b2ba1d103337b93134b23232b760511b604482015290519081900360640190fd5b6003546001600160a01b031615610a965760405162461bcd60e51b81526004018080602001828103825260228152602001806127156022913960400191505060405180910390fd5b600380546001600160a01b039092166001600160a01b0319909216919091179055600180546001600160801b0319166402540be400179055565b600060026000541415610b18576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b6002600081905550610b2e848484600080611d85565b6001600055949350505050565b6005546001600160a01b031681565b60085481565b6002546001600160a01b03163314610ba8576040805162461bcd60e51b81526020600482015260166024820152752c1922aa2426b0b935b2ba1d103337b93134b23232b760511b604482015290519081900360640190fd5b6014811115610bfe576040805162461bcd60e51b815260206004820152601f60248201527f58324554484d61726b65743a20666565206c696d697420657863656564656400604482015290519081900360640190fd5b600955565b600e5460ff1615610c5b576040805162461bcd60e51b815260206004820181905260248201527f58324554484d61726b65743a20616c726561647920696e697469616c697a6564604482015290519081900360640190fd5b612710831115610c9c5760405162461bcd60e51b81526004018080602001828103825260308152602001806127e66030913960400191505060405180910390fd5b600e805460ff19166001179055600280546001600160a01b038089166001600160a01b031992831617909255600580549288169290911691909117905560068490556007839055610cec826112cf565b610cf581610b50565b610cfd61137c565b6001600160b01b0316600d819055610d465760405162461bcd60e51b81526004018080602001828103825260238152602001806126f26023913960400191505060405180910390fd5b610d4e611fcd565b505050505050565b600060026000541415610d9e576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b60026000556001600160a01b038216610dfe576040805162461bcd60e51b815260206004820152601b60248201527f58324d61726b65743a20656d7074792066656552656365697665720000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600f602052604090205480610e26576000915050610f21565b600a54610e339082611d43565b600a556001600160a01b0383166000818152600f60205260408082208290555190919083908381818185875af1925050503d8060008114610e90576040519150601f19603f3d011682016040523d82523d6000602084013e610e95565b606091505b5050905080610ed9576040805162461bcd60e51b815260206004820152601c6024820152600080516020612782833981519152604482015290519081900360640190fd5b604080516001600160a01b03861681526020810184905281517ffa7e62a609845954a9fb1d5db8e91ccca949db2f340a43e3604ae01cd752f6b5929181900390910190a15090505b6001600055919050565b600060026000541415610f73576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b6002600081815590546040805163c77cf61560e01b815290516001600160a01b039092169163c77cf61591600480820192602092909190829003018186803b158015610fbe57600080fd5b505afa158015610fd2573d6000803e3d6000fd5b505050506040513d6020811015610fe857600080fd5b505190506001600160a01b038116611047576040805162461bcd60e51b815260206004820181905260248201527f58324d61726b65743a20656d70747920696e7465726573745265636569766572604482015290519081900360640190fd5b60006110516117f2565b6040519091506000906001600160a01b0384169083908381818185875af1925050503d806000811461109f576040519150601f19603f3d011682016040523d82523d6000602084013e6110a4565b606091505b50509050806110e8576040805162461bcd60e51b815260206004820152601c6024820152600080516020612782833981519152604482015290519081900360640190fd5b604080516001600160a01b03851681526020810184905281517f4d9b38e828013f219ae251d6d1c468041068ed6f127175b755b225a17c3ff4b7929181900390910190a150915050600160005590565b600354600d546000916001600160a01b03848116911614908261115961137c565b90506000611178610e1061092c600c5442611d4390919063ffffffff16565b90508183148015611187575080155b156111ca57836111a957600154600160801b90046001600160801b03166111b6565b6001546001600160801b03165b6001600160801b03169450505050506111f1565b6000806111d78585611967565b91509150856111e657806111e8565b815b96505050505050505b919050565b6002546001600160a01b0316331461124e576040805162461bcd60e51b81526020600482015260166024820152752c1922aa2426b0b935b2ba1d103337b93134b23232b760511b604482015290519081900360640190fd5b6004546001600160a01b0316156112965760405162461bcd60e51b81526004018080602001828103825260228152602001806127606022913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055600180546001600160801b0316629502f9608a1b179055565b6002546001600160a01b03163314611327576040805162461bcd60e51b81526020600482015260166024820152752c1922aa2426b0b935b2ba1d103337b93134b23232b760511b604482015290519081900360640190fd5b6101f4811015801561133c5750620f42408111155b6113775760405162461bcd60e51b81526004018080602001828103825260238152602001806127a26023913960400191505060405180910390fd5b600b55565b600080600560009054906101000a90046001600160a01b03166001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113cd57600080fd5b505afa1580156113e1573d6000803e3d6000fd5b505050506040513d60208110156113f757600080fd5b505190506000811361140d575050600d54611410565b90505b90565b6004546001600160a01b031681565b60006002600054141561146a576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b600260005561147a833384611fd3565b60016000559392505050565b600d546000908161149561137c565b905060006114b4610e1061092c600c5442611d4390919063ffffffff16565b905081831480156114c3575080155b156114d45760009350505050611410565b6000806114e18585611967565b600d869055600180546001600160801b03808416600160801b028186166001600160801b031990931692909217161790559092509050821561152557611525611fcd565b604080518581526001600160801b03808516602083015283168183015290517f35381cecaaf54e5386f588f40564e37c6642c81d8c910efe06e828289729119c9181900360600190a160019550505050505090565b60065481565b6000600260005414156115c8576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b60026000818155905460408051632cfc019d60e21b815290516001600160a01b039092169163b3f0067491600480820192602092909190829003018186803b15801561161357600080fd5b505afa158015611627573d6000803e3d6000fd5b505050506040513d602081101561163d57600080fd5b505190506001600160a01b03811661169c576040805162461bcd60e51b815260206004820152601b60248201527f58324d61726b65743a20656d7074792066656552656365697665720000000000604482015290519081900360640190fd5b600880546000918290556040519091906001600160a01b0384169083908381818185875af1925050503d80600081146116f1576040519150601f19603f3d011682016040523d82523d6000602084013e6116f6565b606091505b505090508061173a576040805162461bcd60e51b815260206004820152601c6024820152600080516020612782833981519152604482015290519081900360640190fd5b604080516001600160a01b03851681526020810184905281517ffa7e62a609845954a9fb1d5db8e91ccca949db2f340a43e3604ae01cd752f6b5929181900390910190a150915050600160005590565b6000600260005414156117d2576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b6002600055610b2e84843385612193565b6002546001600160a01b031681565b600080600360009054906101000a90046001600160a01b03166001600160a01b0316633eaaf86b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561184357600080fd5b505afa158015611857573d6000803e3d6000fd5b505050506040513d602081101561186d57600080fd5b50516004805460408051633eaaf86b60e01b815290519394506000936001600160a01b0390921692633eaaf86b928282019260209290829003018186803b1580156118b757600080fd5b505afa1580156118cb573d6000803e3d6000fd5b505050506040513d60208110156118e157600080fd5b50516001549091506000906119009084906001600160801b0316611cf8565b600154909150600090611924908490600160801b90046001600160801b0316611cf8565b600a546008549192504791611948919061194290818681878a611d43565b90611d43565b9550505050505090565b6003546001600160a01b031681565b6101f481565b6000806000600360009054906101000a90046001600160a01b03166001600160a01b0316633eaaf86b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119ba57600080fd5b505afa1580156119ce573d6000803e3d6000fd5b505050506040513d60208110156119e457600080fd5b50516004805460408051633eaaf86b60e01b815290519394506000936001600160a01b0390921692633eaaf86b928282019260209290829003018186803b158015611a2e57600080fd5b505afa158015611a42573d6000803e3d6000fd5b505050506040513d6020811015611a5857600080fd5b5051600154909150600090611a779084906001600160801b0316611cf8565b600154909150600090611a9b908490600160801b90046001600160801b0316611cf8565b90506000818310611aac5781611aae565b825b90506000898911611ac857611ac38a8a611d43565b611ad2565b611ad2898b611d43565b90506000611aff61271061092c600654611af98f61092c888a61241190919063ffffffff16565b90612411565b90506000611b1e61271061092c6007548761241190919063ffffffff16565b905080821115611b2c578091505b8b8b11611b4257611b3d8683611d43565b611b4c565b611b4c868361246a565b95508b8b11611b6457611b5f858361246a565b611b6e565b611b6e8583611d43565b9450505050506000611b91610e1061092c600c5442611d4390919063ffffffff16565b90508015611c37578183118015611ba85750600082115b15611be8576000611bcc82611af9600b5461092c8789611d4390919063ffffffff16565b9050611bd88482611d43565b9350611be4838261246a565b9250505b8282118015611bf75750600083115b15611c37576000611c1b82611af9600b5461092c8888611d4390919063ffffffff16565b9050611c278382611d43565b9250611c33848261246a565b9350505b50600154611c5190859084906001600160801b03166124c4565b600154611c719085908490600160801b90046001600160801b03166124c4565b95509550505050509250929050565b6001546001600160801b031681565b600060026000541415611cd7576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b6002600055611cea858585600186611d85565b600160005595945050505050565b6000611d3a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612520565b90505b92915050565b6000611d3a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506125c2565b6000808511611ddb576040805162461bcd60e51b815260206004820181905260248201527f58324554484d61726b65743a20696e73756666696369656e7420616d6f756e74604482015290519081900360640190fd5b6003546001600160a01b0387811691161480611e0457506004546001600160a01b038781169116145b611e55576040805162461bcd60e51b815260206004820152601e60248201527f58324554484d61726b65743a20756e737570706f7274656420746f6b656e0000604482015290519081900360640190fd5b611e5d611486565b50604080516376fd4fdf60e01b815233600482015260248101879052841515604482015290516000916001600160a01b038916916376fd4fdf9160648082019260209290919082900301818787803b158015611eb857600080fd5b505af1158015611ecc573d6000803e3d6000fd5b505050506040513d6020811015611ee257600080fd5b505190506000611ef18261261c565b905060006001600160a01b03851615611f1357611f0e8386612649565b611f16565b60005b90506000611f28826119428686611d43565b6040519091506000906001600160a01b038a169083908381818185875af1925050503d8060008114611f76576040519150601f19603f3d011682016040523d82523d6000602084013e611f7b565b606091505b5050905080611fbf576040805162461bcd60e51b815260206004820152601c6024820152600080516020612782833981519152604482015290519081900360640190fd5b509998505050505050505050565b42600c55565b6003546000906001600160a01b03858116911614808061200057506004546001600160a01b038681169116145b612051576040805162461bcd60e51b815260206004820152601e60248201527f58324554484d61726b65743a20756e737570706f7274656420746f6b656e0000604482015290519081900360640190fd5b348061208e5760405162461bcd60e51b81526004018080602001828103825260298152602001806127376029913960400191505060405180910390fd5b612096611486565b5060006120a28261261c565b905060006001600160a01b038616156120c4576120bf8387612649565b6120c7565b60005b905060006120d9826119428686611d43565b9050886001600160a01b031663156e29f689838861210957600154600160801b90046001600160801b0316612116565b6001546001600160801b03165b6040518463ffffffff1660e01b815260040180846001600160a01b03168152602001838152602001826001600160801b031681526020019350505050600060405180830381600087803b15801561216c57600080fd5b505af1158015612180573d6000803e3d6000fd5b50929750505050505050505b9392505050565b60008084116121e9576040805162461bcd60e51b815260206004820181905260248201527f58324554484d61726b65743a20696e73756666696369656e7420616d6f756e74604482015290519081900360640190fd5b6003546001600160a01b03868116911614808061221357506004546001600160a01b038781169116145b612264576040805162461bcd60e51b815260206004820152601e60248201527f58324554484d61726b65743a20756e737570706f7274656420746f6b656e0000604482015290519081900360640190fd5b61226c611486565b50604080516376fd4fdf60e01b8152336004820152602481018790526001604482015290516000916001600160a01b038916916376fd4fdf9160648082019260209290919082900301818787803b1580156122c657600080fd5b505af11580156122da573d6000803e3d6000fd5b505050506040513d60208110156122f057600080fd5b5051905060006122ff8261261c565b905060006001600160a01b038616156123215761231c8387612649565b612324565b60005b90506000612336826119428686611d43565b90508461234e576003546001600160a01b031661235b565b6004546001600160a01b03165b6001600160a01b031663156e29f6898388612381576001546001600160801b0316612395565b600154600160801b90046001600160801b03165b6040518463ffffffff1660e01b815260040180846001600160a01b03168152602001838152602001826001600160801b031681526020019350505050600060405180830381600087803b1580156123eb57600080fd5b505af11580156123ff573d6000803e3d6000fd5b50929c9b505050505050505050505050565b60008261242057506000611d3d565b8282028284828161242d57fe5b0414611d3a5760405162461bcd60e51b81526004018080602001828103825260218152602001806127c56021913960400191505060405180910390fd5b600082820183811015611d3a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826124d757506402540be40061218c565b60006124f5600a61092c60096124ef88838b86612411565b9061246a565b905080158061250a57506001600160801b0381115b15612518578291505061218c565b949350505050565b600081836125ac5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612571578181015183820152602001612559565b50505050905090810190601f16801561259e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816125b857fe5b0495945050505050565b600081848411156126145760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612571578181015183820152602001612559565b505050900390565b60008061263061271061092c856014612411565b600854909150612640908261246a565b60085592915050565b60006009546000141561265e57506000611d3d565b600061267b61271061092c6009548761241190919063ffffffff16565b6001600160a01b0384166000908152600f60205260409020549091506126a1908261246a565b6001600160a01b0384166000908152600f6020526040902055600a546126c7908261246a565b600a55939250505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c0058324554484d61726b65743a20756e737570706f72746564207072696365206665656458324554484d61726b65743a2062756c6c546f6b656e20616c72656164792073657458324554484d61726b65743a20696e73756666696369656e7420636f6c6c61746572616c2073656e7458324554484d61726b65743a2062656172546f6b656e20616c72656164792073657458324554484d61726b65743a207472616e73666572206661696c65640000000058324554484d61726b65743a2066756e64696e672072616e6765206578636565646564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7758324554484d61726b65743a206d617850726f6669744261736973506f696e7473206c696d6974206578636565646564a2646970667358221220eebbe579754775a035a98736c114f39550136056a3a521d265c25561ef7e9bfe64736f6c634300060c0033
Deployed Bytecode
0x6080604052600436106102515760003560e01c806386489ba911610139578063af14052c116100b6578063c63b3a491161007a578063c63b3a4914610723578063c8d86e3514610738578063cc2471671461074d578063cf3860e814610762578063e2a24a3414610792578063f21f3539146107a757610251565b8063af14052c1461068c578063b0e885c1146106a1578063bb57ad20146106b6578063c4177a01146106cb578063c45a01551461070e57610251565b8063a33d652e116100fd578063a33d652e1461060a578063a3e6ba9414610634578063a525ad3c1461031b578063a67a6eab14610649578063ad7fadc51461065e57610251565b806386489ba91461050757806386aa0ae31461055c5780638b3651ad1461058f57806399ff26de146105a45780639d2873f3146105d757610251565b8063392e53cd116101d25780635aa2f64c116101965780635aa2f64c1461040a57806360bada0f1461041f5780636ac1ded114610454578063741bef1a14610497578063789ff0e1146104c85780637ea5482a146104dd57610251565b8063392e53cd1461036f5780633994c9cc146103985780633b09de21146103cb5780634f1a720a146103e057806355efb287146103f557610251565b806312c5dddc1161021957806312c5dddc146102ea5780631fc634c01461031b5780632305a4ae146103305780632b78f60714610345578063321d7fa91461035a57610251565b8063053f14da146102565780630a3465941461027d5780630ec4f25914610292578063126082cf146102a757806312af5f98146102bc575b600080fd5b34801561026257600080fd5b5061026b6107f0565b60408051918252519081900360200190f35b34801561028957600080fd5b5061026b6107f6565b34801561029e57600080fd5b5061026b6107fc565b3480156102b357600080fd5b5061026b610807565b3480156102c857600080fd5b506102d161080d565b6040805192835260208301919091528051918290030190f35b3480156102f657600080fd5b506102ff610992565b604080516001600160801b039092168252519081900360200190f35b34801561032757600080fd5b5061026b6109a8565b34801561033c57600080fd5b5061026b6109ad565b34801561035157600080fd5b5061026b6109b4565b34801561036657600080fd5b5061026b6109ba565b34801561037b57600080fd5b506103846109c0565b604080519115158252519081900360200190f35b3480156103a457600080fd5b5061026b600480360360208110156103bb57600080fd5b50356001600160a01b03166109c9565b3480156103d757600080fd5b5061026b6109db565b3480156103ec57600080fd5b5061026b6109e1565b34801561040157600080fd5b5061026b6109e7565b34801561041657600080fd5b506102ff6109ed565b34801561042b57600080fd5b506104526004803603602081101561044257600080fd5b50356001600160a01b03166109f6565b005b34801561046057600080fd5b5061026b6004803603606081101561047757600080fd5b506001600160a01b03813581169160208101359160409091013516610ad0565b3480156104a357600080fd5b506104ac610b3b565b604080516001600160a01b039092168252519081900360200190f35b3480156104d457600080fd5b5061026b610b4a565b3480156104e957600080fd5b506104526004803603602081101561050057600080fd5b5035610b50565b34801561051357600080fd5b50610452600480360360c081101561052a57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a00135610c03565b34801561056857600080fd5b5061026b6004803603602081101561057f57600080fd5b50356001600160a01b0316610d56565b34801561059b57600080fd5b5061026b610f2b565b3480156105b057600080fd5b5061026b600480360360208110156105c757600080fd5b50356001600160a01b0316611138565b3480156105e357600080fd5b50610452600480360360208110156105fa57600080fd5b50356001600160a01b03166111f6565b34801561061657600080fd5b506104526004803603602081101561062d57600080fd5b50356112cf565b34801561064057600080fd5b5061026b61137c565b34801561065557600080fd5b506104ac611413565b61026b6004803603604081101561067457600080fd5b506001600160a01b0381358116916020013516611422565b34801561069857600080fd5b50610384611486565b3480156106ad57600080fd5b5061026b61157a565b3480156106c257600080fd5b5061026b611580565b3480156106d757600080fd5b5061026b600480360360608110156106ee57600080fd5b506001600160a01b0381358116916020810135916040909101351661178a565b34801561071a57600080fd5b506104ac6117e3565b34801561072f57600080fd5b5061026b6117f2565b34801561074457600080fd5b506104ac611952565b34801561075957600080fd5b5061026b611961565b34801561076e57600080fd5b506102d16004803603604081101561078557600080fd5b5080359060200135611967565b34801561079e57600080fd5b506102ff611c80565b3480156107b357600080fd5b5061026b600480360360808110156107ca57600080fd5b506001600160a01b03813581169160208101359160408201358116916060013516611c8f565b600d5481565b60095481565b6001600160801b0381565b61271081565b600d5460009081908161081e61137c565b905060008061082d8484611967565b9150915060006108b783600360009054906101000a90046001600160a01b03166001600160a01b0316633eaaf86b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561088557600080fd5b505afa158015610899573d6000803e3d6000fd5b505050506040513d60208110156108af57600080fd5b505190611cf8565b6004805460408051633eaaf86b60e01b815290519394506000936109029387936001600160a01b031692633eaaf86b9281830192602092829003018186803b15801561088557600080fd5b905080821180156109135750600081115b1561094557600b546000906109329061092c8585611d43565b90611cf8565b98506000975061098e9650505050505050565b81811180156109545750600082115b1561098057600b5460009061096d9061092c8486611d43565b60009950975061098e9650505050505050565b600080975097505050505050505b9091565b600154600160801b90046001600160801b031681565b601481565b620f424081565b600a5481565b600c5481565b600e5460ff1681565b600f6020526000908152604090205481565b600b5481565b60075481565b610e1081565b6402540be40081565b6002546001600160a01b03163314610a4e576040805162461bcd60e51b81526020600482015260166024820152752c1922aa2426b0b935b2ba1d103337b93134b23232b760511b604482015290519081900360640190fd5b6003546001600160a01b031615610a965760405162461bcd60e51b81526004018080602001828103825260228152602001806127156022913960400191505060405180910390fd5b600380546001600160a01b039092166001600160a01b0319909216919091179055600180546001600160801b0319166402540be400179055565b600060026000541415610b18576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b6002600081905550610b2e848484600080611d85565b6001600055949350505050565b6005546001600160a01b031681565b60085481565b6002546001600160a01b03163314610ba8576040805162461bcd60e51b81526020600482015260166024820152752c1922aa2426b0b935b2ba1d103337b93134b23232b760511b604482015290519081900360640190fd5b6014811115610bfe576040805162461bcd60e51b815260206004820152601f60248201527f58324554484d61726b65743a20666565206c696d697420657863656564656400604482015290519081900360640190fd5b600955565b600e5460ff1615610c5b576040805162461bcd60e51b815260206004820181905260248201527f58324554484d61726b65743a20616c726561647920696e697469616c697a6564604482015290519081900360640190fd5b612710831115610c9c5760405162461bcd60e51b81526004018080602001828103825260308152602001806127e66030913960400191505060405180910390fd5b600e805460ff19166001179055600280546001600160a01b038089166001600160a01b031992831617909255600580549288169290911691909117905560068490556007839055610cec826112cf565b610cf581610b50565b610cfd61137c565b6001600160b01b0316600d819055610d465760405162461bcd60e51b81526004018080602001828103825260238152602001806126f26023913960400191505060405180910390fd5b610d4e611fcd565b505050505050565b600060026000541415610d9e576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b60026000556001600160a01b038216610dfe576040805162461bcd60e51b815260206004820152601b60248201527f58324d61726b65743a20656d7074792066656552656365697665720000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600f602052604090205480610e26576000915050610f21565b600a54610e339082611d43565b600a556001600160a01b0383166000818152600f60205260408082208290555190919083908381818185875af1925050503d8060008114610e90576040519150601f19603f3d011682016040523d82523d6000602084013e610e95565b606091505b5050905080610ed9576040805162461bcd60e51b815260206004820152601c6024820152600080516020612782833981519152604482015290519081900360640190fd5b604080516001600160a01b03861681526020810184905281517ffa7e62a609845954a9fb1d5db8e91ccca949db2f340a43e3604ae01cd752f6b5929181900390910190a15090505b6001600055919050565b600060026000541415610f73576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b6002600081815590546040805163c77cf61560e01b815290516001600160a01b039092169163c77cf61591600480820192602092909190829003018186803b158015610fbe57600080fd5b505afa158015610fd2573d6000803e3d6000fd5b505050506040513d6020811015610fe857600080fd5b505190506001600160a01b038116611047576040805162461bcd60e51b815260206004820181905260248201527f58324d61726b65743a20656d70747920696e7465726573745265636569766572604482015290519081900360640190fd5b60006110516117f2565b6040519091506000906001600160a01b0384169083908381818185875af1925050503d806000811461109f576040519150601f19603f3d011682016040523d82523d6000602084013e6110a4565b606091505b50509050806110e8576040805162461bcd60e51b815260206004820152601c6024820152600080516020612782833981519152604482015290519081900360640190fd5b604080516001600160a01b03851681526020810184905281517f4d9b38e828013f219ae251d6d1c468041068ed6f127175b755b225a17c3ff4b7929181900390910190a150915050600160005590565b600354600d546000916001600160a01b03848116911614908261115961137c565b90506000611178610e1061092c600c5442611d4390919063ffffffff16565b90508183148015611187575080155b156111ca57836111a957600154600160801b90046001600160801b03166111b6565b6001546001600160801b03165b6001600160801b03169450505050506111f1565b6000806111d78585611967565b91509150856111e657806111e8565b815b96505050505050505b919050565b6002546001600160a01b0316331461124e576040805162461bcd60e51b81526020600482015260166024820152752c1922aa2426b0b935b2ba1d103337b93134b23232b760511b604482015290519081900360640190fd5b6004546001600160a01b0316156112965760405162461bcd60e51b81526004018080602001828103825260228152602001806127606022913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055600180546001600160801b0316629502f9608a1b179055565b6002546001600160a01b03163314611327576040805162461bcd60e51b81526020600482015260166024820152752c1922aa2426b0b935b2ba1d103337b93134b23232b760511b604482015290519081900360640190fd5b6101f4811015801561133c5750620f42408111155b6113775760405162461bcd60e51b81526004018080602001828103825260238152602001806127a26023913960400191505060405180910390fd5b600b55565b600080600560009054906101000a90046001600160a01b03166001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113cd57600080fd5b505afa1580156113e1573d6000803e3d6000fd5b505050506040513d60208110156113f757600080fd5b505190506000811361140d575050600d54611410565b90505b90565b6004546001600160a01b031681565b60006002600054141561146a576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b600260005561147a833384611fd3565b60016000559392505050565b600d546000908161149561137c565b905060006114b4610e1061092c600c5442611d4390919063ffffffff16565b905081831480156114c3575080155b156114d45760009350505050611410565b6000806114e18585611967565b600d869055600180546001600160801b03808416600160801b028186166001600160801b031990931692909217161790559092509050821561152557611525611fcd565b604080518581526001600160801b03808516602083015283168183015290517f35381cecaaf54e5386f588f40564e37c6642c81d8c910efe06e828289729119c9181900360600190a160019550505050505090565b60065481565b6000600260005414156115c8576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b60026000818155905460408051632cfc019d60e21b815290516001600160a01b039092169163b3f0067491600480820192602092909190829003018186803b15801561161357600080fd5b505afa158015611627573d6000803e3d6000fd5b505050506040513d602081101561163d57600080fd5b505190506001600160a01b03811661169c576040805162461bcd60e51b815260206004820152601b60248201527f58324d61726b65743a20656d7074792066656552656365697665720000000000604482015290519081900360640190fd5b600880546000918290556040519091906001600160a01b0384169083908381818185875af1925050503d80600081146116f1576040519150601f19603f3d011682016040523d82523d6000602084013e6116f6565b606091505b505090508061173a576040805162461bcd60e51b815260206004820152601c6024820152600080516020612782833981519152604482015290519081900360640190fd5b604080516001600160a01b03851681526020810184905281517ffa7e62a609845954a9fb1d5db8e91ccca949db2f340a43e3604ae01cd752f6b5929181900390910190a150915050600160005590565b6000600260005414156117d2576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b6002600055610b2e84843385612193565b6002546001600160a01b031681565b600080600360009054906101000a90046001600160a01b03166001600160a01b0316633eaaf86b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561184357600080fd5b505afa158015611857573d6000803e3d6000fd5b505050506040513d602081101561186d57600080fd5b50516004805460408051633eaaf86b60e01b815290519394506000936001600160a01b0390921692633eaaf86b928282019260209290829003018186803b1580156118b757600080fd5b505afa1580156118cb573d6000803e3d6000fd5b505050506040513d60208110156118e157600080fd5b50516001549091506000906119009084906001600160801b0316611cf8565b600154909150600090611924908490600160801b90046001600160801b0316611cf8565b600a546008549192504791611948919061194290818681878a611d43565b90611d43565b9550505050505090565b6003546001600160a01b031681565b6101f481565b6000806000600360009054906101000a90046001600160a01b03166001600160a01b0316633eaaf86b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119ba57600080fd5b505afa1580156119ce573d6000803e3d6000fd5b505050506040513d60208110156119e457600080fd5b50516004805460408051633eaaf86b60e01b815290519394506000936001600160a01b0390921692633eaaf86b928282019260209290829003018186803b158015611a2e57600080fd5b505afa158015611a42573d6000803e3d6000fd5b505050506040513d6020811015611a5857600080fd5b5051600154909150600090611a779084906001600160801b0316611cf8565b600154909150600090611a9b908490600160801b90046001600160801b0316611cf8565b90506000818310611aac5781611aae565b825b90506000898911611ac857611ac38a8a611d43565b611ad2565b611ad2898b611d43565b90506000611aff61271061092c600654611af98f61092c888a61241190919063ffffffff16565b90612411565b90506000611b1e61271061092c6007548761241190919063ffffffff16565b905080821115611b2c578091505b8b8b11611b4257611b3d8683611d43565b611b4c565b611b4c868361246a565b95508b8b11611b6457611b5f858361246a565b611b6e565b611b6e8583611d43565b9450505050506000611b91610e1061092c600c5442611d4390919063ffffffff16565b90508015611c37578183118015611ba85750600082115b15611be8576000611bcc82611af9600b5461092c8789611d4390919063ffffffff16565b9050611bd88482611d43565b9350611be4838261246a565b9250505b8282118015611bf75750600083115b15611c37576000611c1b82611af9600b5461092c8888611d4390919063ffffffff16565b9050611c278382611d43565b9250611c33848261246a565b9350505b50600154611c5190859084906001600160801b03166124c4565b600154611c719085908490600160801b90046001600160801b03166124c4565b95509550505050509250929050565b6001546001600160801b031681565b600060026000541415611cd7576040805162461bcd60e51b815260206004820152601f60248201526000805160206126d2833981519152604482015290519081900360640190fd5b6002600055611cea858585600186611d85565b600160005595945050505050565b6000611d3a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612520565b90505b92915050565b6000611d3a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506125c2565b6000808511611ddb576040805162461bcd60e51b815260206004820181905260248201527f58324554484d61726b65743a20696e73756666696369656e7420616d6f756e74604482015290519081900360640190fd5b6003546001600160a01b0387811691161480611e0457506004546001600160a01b038781169116145b611e55576040805162461bcd60e51b815260206004820152601e60248201527f58324554484d61726b65743a20756e737570706f7274656420746f6b656e0000604482015290519081900360640190fd5b611e5d611486565b50604080516376fd4fdf60e01b815233600482015260248101879052841515604482015290516000916001600160a01b038916916376fd4fdf9160648082019260209290919082900301818787803b158015611eb857600080fd5b505af1158015611ecc573d6000803e3d6000fd5b505050506040513d6020811015611ee257600080fd5b505190506000611ef18261261c565b905060006001600160a01b03851615611f1357611f0e8386612649565b611f16565b60005b90506000611f28826119428686611d43565b6040519091506000906001600160a01b038a169083908381818185875af1925050503d8060008114611f76576040519150601f19603f3d011682016040523d82523d6000602084013e611f7b565b606091505b5050905080611fbf576040805162461bcd60e51b815260206004820152601c6024820152600080516020612782833981519152604482015290519081900360640190fd5b509998505050505050505050565b42600c55565b6003546000906001600160a01b03858116911614808061200057506004546001600160a01b038681169116145b612051576040805162461bcd60e51b815260206004820152601e60248201527f58324554484d61726b65743a20756e737570706f7274656420746f6b656e0000604482015290519081900360640190fd5b348061208e5760405162461bcd60e51b81526004018080602001828103825260298152602001806127376029913960400191505060405180910390fd5b612096611486565b5060006120a28261261c565b905060006001600160a01b038616156120c4576120bf8387612649565b6120c7565b60005b905060006120d9826119428686611d43565b9050886001600160a01b031663156e29f689838861210957600154600160801b90046001600160801b0316612116565b6001546001600160801b03165b6040518463ffffffff1660e01b815260040180846001600160a01b03168152602001838152602001826001600160801b031681526020019350505050600060405180830381600087803b15801561216c57600080fd5b505af1158015612180573d6000803e3d6000fd5b50929750505050505050505b9392505050565b60008084116121e9576040805162461bcd60e51b815260206004820181905260248201527f58324554484d61726b65743a20696e73756666696369656e7420616d6f756e74604482015290519081900360640190fd5b6003546001600160a01b03868116911614808061221357506004546001600160a01b038781169116145b612264576040805162461bcd60e51b815260206004820152601e60248201527f58324554484d61726b65743a20756e737570706f7274656420746f6b656e0000604482015290519081900360640190fd5b61226c611486565b50604080516376fd4fdf60e01b8152336004820152602481018790526001604482015290516000916001600160a01b038916916376fd4fdf9160648082019260209290919082900301818787803b1580156122c657600080fd5b505af11580156122da573d6000803e3d6000fd5b505050506040513d60208110156122f057600080fd5b5051905060006122ff8261261c565b905060006001600160a01b038616156123215761231c8387612649565b612324565b60005b90506000612336826119428686611d43565b90508461234e576003546001600160a01b031661235b565b6004546001600160a01b03165b6001600160a01b031663156e29f6898388612381576001546001600160801b0316612395565b600154600160801b90046001600160801b03165b6040518463ffffffff1660e01b815260040180846001600160a01b03168152602001838152602001826001600160801b031681526020019350505050600060405180830381600087803b1580156123eb57600080fd5b505af11580156123ff573d6000803e3d6000fd5b50929c9b505050505050505050505050565b60008261242057506000611d3d565b8282028284828161242d57fe5b0414611d3a5760405162461bcd60e51b81526004018080602001828103825260218152602001806127c56021913960400191505060405180910390fd5b600082820183811015611d3a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826124d757506402540be40061218c565b60006124f5600a61092c60096124ef88838b86612411565b9061246a565b905080158061250a57506001600160801b0381115b15612518578291505061218c565b949350505050565b600081836125ac5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612571578181015183820152602001612559565b50505050905090810190601f16801561259e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816125b857fe5b0495945050505050565b600081848411156126145760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612571578181015183820152602001612559565b505050900390565b60008061263061271061092c856014612411565b600854909150612640908261246a565b60085592915050565b60006009546000141561265e57506000611d3d565b600061267b61271061092c6009548761241190919063ffffffff16565b6001600160a01b0384166000908152600f60205260409020549091506126a1908261246a565b6001600160a01b0384166000908152600f6020526040902055600a546126c7908261246a565b600a55939250505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c0058324554484d61726b65743a20756e737570706f72746564207072696365206665656458324554484d61726b65743a2062756c6c546f6b656e20616c72656164792073657458324554484d61726b65743a20696e73756666696369656e7420636f6c6c61746572616c2073656e7458324554484d61726b65743a2062656172546f6b656e20616c72656164792073657458324554484d61726b65743a207472616e73666572206661696c65640000000058324554484d61726b65743a2066756e64696e672072616e6765206578636565646564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7758324554484d61726b65743a206d617850726f6669744261736973506f696e7473206c696d6974206578636565646564a2646970667358221220eebbe579754775a035a98736c114f39550136056a3a521d265c25561ef7e9bfe64736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$3.48
Net Worth in ETH
0.001598
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,179.04 | 0.0015984 | $3.48 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.