Source Code
Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 14670178 | 1414 days ago | IN | 0.001 ETH | 0.00064551 |
Latest 11 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 14670185 | 1414 days ago | 0.001 ETH | ||||
| - | 9764822 | 2174 days ago | 0.00177196 ETH | ||||
| - | 9764822 | 2174 days ago | 0.00004816 ETH | ||||
| - | 9764822 | 2174 days ago | 0.00177199 ETH | ||||
| - | 9764822 | 2174 days ago | 0.00004813 ETH | ||||
| - | 9761358 | 2174 days ago | 0.00499999 ETH | ||||
| - | 9761358 | 2174 days ago | 0.00499999 ETH | ||||
| - | 9751767 | 2176 days ago | 0.0015404 ETH | ||||
| - | 9751767 | 2176 days ago | 0.00596817 ETH | ||||
| - | 9751767 | 2176 days ago | 0.00154398 ETH | ||||
| - | 9751767 | 2176 days ago | 0.00596459 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
KollateralLiquidator
Compiler Version
v0.5.10+commit.5a6ea5b1
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-03-28
*/
/*
Copyright 2020 Kollateral LLC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pragma solidity ^0.5.0;
contract ExternalCaller {
function externalTransfer(address _to, uint256 _value) internal {
require(address(this).balance >= _value, "ExternalCaller: insufficient ether balance");
externalCall(_to, _value, "");
}
function externalCall(address _to, uint256 _value, bytes memory _data) internal {
(bool success, bytes memory returndata) = _to.call.value(_value)(_data);
require(success, string(returndata));
}
}
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
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);
}
contract BalanceCarrier is ExternalCaller {
address private _ethTokenAddress;
constructor (address ethTokenAddress) internal {
_ethTokenAddress = ethTokenAddress;
}
function transfer(address tokenAddress, address to, uint256 amount) internal returns (bool) {
if (tokenAddress == _ethTokenAddress) {
externalTransfer(to, amount);
return true;
} else {
return IERC20(tokenAddress).transfer(to, amount);
}
}
function balanceOf(address tokenAddress) internal view returns (uint256) {
if (tokenAddress == _ethTokenAddress) {
return address(this).balance;
} else {
return IERC20(tokenAddress).balanceOf(address(this));
}
}
}
pragma solidity ^0.5.0;
contract IInvocationHook {
function currentSender() external view returns (address);
function currentTokenAddress() external view returns (address);
function currentTokenAmount() external view returns (uint256);
function currentRepaymentAmount() external view returns (uint256);
}
pragma solidity ^0.5.0;
contract IInvokable {
function execute(bytes calldata data) external payable;
}
/**
* @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.
*
* _Available since v2.4.0._
*/
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.
*
* _Available since v2.4.0._
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
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.
*
* _Available since v2.4.0._
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract KollateralInvokable is IInvokable, BalanceCarrier {
using SafeMath for uint256;
uint256 internal MAX_REWARD_BIPS = 100;
constructor () BalanceCarrier(address(1)) internal { }
function () external payable { }
function repay() internal repaymentSafeguard {
require(
transfer(currentTokenAddress(), msg.sender, currentRepaymentAmount()),
"KollateralInvokable: failed to repay");
}
function currentSender() internal view returns (address) {
return IInvocationHook(msg.sender).currentSender();
}
function currentTokenAddress() internal view returns (address) {
return IInvocationHook(msg.sender).currentTokenAddress();
}
function currentTokenAmount() internal view returns (uint256) {
return IInvocationHook(msg.sender).currentTokenAmount();
}
function currentRepaymentAmount() internal view returns (uint256) {
return IInvocationHook(msg.sender).currentRepaymentAmount();
}
function isCurrentTokenEther() internal view returns (bool) {
return currentTokenAddress() == address(1);
}
modifier repaymentSafeguard() {
uint256 effectiveReward = currentRepaymentAmount().sub(currentTokenAmount())
.mul(10000).div(currentTokenAmount());
require(effectiveReward <= MAX_REWARD_BIPS, "KollateralInvokable: repayment reward too high");
_;
}
}
contract OptionsContract {
function liquidate(address payable vaultOwner, uint256 oTokensToLiquidate)
public;
function optionsExchange() public returns (address);
function maxOTokensLiquidatable(address payable vaultOwner)
public
view
returns (uint256);
function isUnsafe(address payable vaultOwner) public view returns (bool);
function hasVault(address valtowner) public view returns (bool);
function openVault() public returns (bool);
function addETHCollateral(address payable vaultOwner)
public
payable
returns (uint256);
function maxOTokensIssuable(uint256 collateralAmt)
public
view
returns (uint256);
function getVault(address payable vaultOwner)
public
view
returns (uint256, uint256, uint256, bool);
function issueOTokens(uint256 oTokensToIssue, address receiver) public;
function approve(address spender, uint256 amount) public returns (bool);
}
contract OptionsExchange {
function buyOTokens(
address payable receiver,
address oTokenAddress,
address paymentTokenAddress,
uint256 oTokensToBuy
) public payable;
function premiumToPay(
address oTokenAddress,
address paymentTokenAddress,
uint256 oTokensToBuy
) public view returns (uint256);
}
// Solidity Interface
contract IUniswapExchange {
// Get Prices
function getEthToTokenInputPrice(uint256 eth_sold)
external
view
returns (uint256 tokens_bought);
// Trade ETH to ERC20
function ethToTokenSwapInput(uint256 min_tokens, uint256 deadline)
external
payable
returns (uint256 tokens_bought);
}
// Solidity Interface
contract IUniswapFactory {
// Public Variables
address public exchangeTemplate;
uint256 public tokenCount;
// Get Exchange and Token Info
function getExchange(address token)
external
view
returns (address exchange);
}
contract KollateralLiquidator is KollateralInvokable {
IUniswapFactory public factory;
constructor(IUniswapFactory _factory) public {
factory = _factory;
}
function execute(bytes calldata data) external payable {
(address vaultAddr, address oTokenAddr) = abi.decode(
data,
(address, address)
);
address payable vaultOwner = address(uint160(vaultAddr));
OptionsContract oToken = OptionsContract(oTokenAddr);
// 2. Buy oTokens on uniswap
uint256 oTokensToBuy = oToken.maxOTokensLiquidatable(vaultOwner);
require(oTokensToBuy > 0, "cannot liquidate a safe vault");
OptionsExchange exchange = OptionsExchange(oToken.optionsExchange());
address opynExchangePaymentToken = currentTokenAddress();
if (!isCurrentTokenEther()) {
IERC20(opynExchangePaymentToken).approve(
address(exchange),
currentTokenAmount()
);
} else {
opynExchangePaymentToken = address(0);
}
exchange.buyOTokens(
address(uint160(address(this))),
oTokenAddr,
opynExchangePaymentToken,
oTokensToBuy
);
// 3. Liquidate
oToken.liquidate(vaultOwner, oTokensToBuy);
// 4. Use eth to buy back _reserve
if (!isCurrentTokenEther()) {
IUniswapExchange uniswap = IUniswapExchange(
factory.getExchange(currentTokenAddress())
);
uint256 buyAmount = uniswap.getEthToTokenInputPrice(
address(this).balance
);
uniswap.ethToTokenSwapInput.value(address(this).balance)(
buyAmount,
now + 10 minutes
);
}
// // 5. pay back the $
repay();
// // 6. pay the user who liquidated
if (isCurrentTokenEther()) {
address(uint160(currentSender())).transfer(address(this).balance);
} else {
uint256 balance = IERC20(currentTokenAddress()).balanceOf(
address(this)
);
IERC20(currentTokenAddress()).transfer(currentSender(), balance);
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[{"name":"data","type":"bytes"}],"name":"execute","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_factory","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]Contract Creation Code
6080604052606460015534801561001557600080fd5b50604051610e67380380610e678339818101604052602081101561003857600080fd5b5051600080546001600160a01b0319908116600117909155600280546001600160a01b0390931692909116919091179055610def806100786000396000f3fe6080604052600436106100295760003560e01c806309c5eabe1461002b578063c45a01551461009b575b005b6100296004803603602081101561004157600080fd5b81019060208101813564010000000081111561005c57600080fd5b82018360208201111561006e57600080fd5b8035906020019184600183028401116401000000008311171561009057600080fd5b5090925090506100cc565b3480156100a757600080fd5b506100b06106f2565b604080516001600160a01b039092168252519081900360200190f35b600080838360408110156100df57600080fd5b506040805163dec44c0b60e01b81526001600160a01b038335811660048301819052925192955060209384013516935084928492600092849263dec44c0b92602480840193829003018186803b15801561013857600080fd5b505afa15801561014c573d6000803e3d6000fd5b505050506040513d602081101561016257600080fd5b50519050806101b8576040805162461bcd60e51b815260206004820152601d60248201527f63616e6e6f74206c697175696461746520612073616665207661756c74000000604482015290519081900360640190fd5b6000826001600160a01b0316633bd33f626040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156101f557600080fd5b505af1158015610209573d6000803e3d6000fd5b505050506040513d602081101561021f57600080fd5b50519050600061022d610701565b905061023761076d565b6102d457806001600160a01b031663095ea7b383610253610788565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156102a257600080fd5b505af11580156102b6573d6000803e3d6000fd5b505050506040513d60208110156102cc57600080fd5b506102d89050565b5060005b604080516390a21dbf60e01b81523060048201526001600160a01b0388811660248301528381166044830152606482018690529151918416916390a21dbf9160848082019260009290919082900301818387803b15801561033857600080fd5b505af115801561034c573d6000803e3d6000fd5b50505050836001600160a01b031663bcbaf48786856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156103b057600080fd5b505af11580156103c4573d6000803e3d6000fd5b505050506103d061076d565b610563576002546000906001600160a01b03166306f2bf626103f0610701565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561043657600080fd5b505afa15801561044a573d6000803e3d6000fd5b505050506040513d602081101561046057600080fd5b50516040805163cd7724c360e01b81523031600482015290519192506000916001600160a01b0384169163cd7724c3916024808301926020929190829003018186803b1580156104af57600080fd5b505afa1580156104c3573d6000803e3d6000fd5b505050506040513d60208110156104d957600080fd5b50516040805163f39b5b9b60e01b8152600481018390526102584201602482015290519192506001600160a01b0384169163f39b5b9b91303191604480830192602092919082900301818588803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b50505050506040513d602081101561055e57600080fd5b505050505b61056b6107c3565b61057361076d565b156105be576105806108a7565b6040516001600160a01b039190911690303180156108fc02916000818181858888f193505050501580156105b8573d6000803e3d6000fd5b506106e7565b60006105c8610701565b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561061d57600080fd5b505afa158015610631573d6000803e3d6000fd5b505050506040513d602081101561064757600080fd5b50519050610653610701565b6001600160a01b031663a9059cbb6106696108a7565b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156106b957600080fd5b505af11580156106cd573d6000803e3d6000fd5b505050506040513d60208110156106e357600080fd5b5050505b505050505050505050565b6002546001600160a01b031681565b6000336001600160a01b03166311eefd5d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561073c57600080fd5b505afa158015610750573d6000803e3d6000fd5b505050506040513d602081101561076657600080fd5b5051905090565b60006001610779610701565b6001600160a01b031614905090565b6000336001600160a01b031663ff69ac366040518163ffffffff1660e01b815260040160206040518083038186803b15801561073c57600080fd5b600061080d6107d0610788565b6108016127106107f56107e1610788565b6107e96108e2565b9063ffffffff61091d16565b9063ffffffff61096816565b9063ffffffff6109c116565b90506001548111156108505760405162461bcd60e51b815260040180806020018281038252602e815260200180610d6c602e913960400191505060405180910390fd5b61086961085b610701565b336108646108e2565b610a03565b6108a45760405162461bcd60e51b8152600401808060200182810382526024815260200180610d1e6024913960400191505060405180910390fd5b50565b6000336001600160a01b03166370348f3e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561073c57600080fd5b6000336001600160a01b0316636f27e9d86040518163ffffffff1660e01b815260040160206040518083038186803b15801561073c57600080fd5b600061095f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ac2565b90505b92915050565b60008261097757506000610962565b8282028284828161098457fe5b041461095f5760405162461bcd60e51b8152600401808060200182810382526021815260200180610d9a6021913960400191505060405180910390fd5b600061095f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610b59565b600080546001600160a01b0385811691161415610a2c57610a248383610bbe565b506001610abb565b836001600160a01b031663a9059cbb84846040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610a8c57600080fd5b505af1158015610aa0573d6000803e3d6000fd5b505050506040513d6020811015610ab657600080fd5b505190505b9392505050565b60008184841115610b515760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b16578181015183820152602001610afe565b50505050905090810190601f168015610b435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610ba85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610b16578181015183820152602001610afe565b506000838581610bb457fe5b0495945050505050565b3031811115610bfe5760405162461bcd60e51b815260040180806020018281038252602a815260200180610d42602a913960400191505060405180910390fd5b610c18828260405180602001604052806000815250610c1c565b5050565b60006060846001600160a01b031684846040518082805190602001908083835b60208310610c5b5780518252601f199092019160209182019101610c3c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cbd576040519150601f19603f3d011682016040523d82523d6000602084013e610cc2565b606091505b5091509150818190610d155760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610b16578181015183820152602001610afe565b50505050505056fe4b6f6c6c61746572616c496e766f6b61626c653a206661696c656420746f20726570617945787465726e616c43616c6c65723a20696e73756666696369656e742065746865722062616c616e63654b6f6c6c61746572616c496e766f6b61626c653a2072657061796d656e742072657761726420746f6f2068696768536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72305820d11c509605ee45e93f8ac6320568b93df7e2209d098b659587f2526ac6070e0164736f6c634300050a0032000000000000000000000000c0a47dfe034b400b47bdad5fecda2621de6c4d95
Deployed Bytecode
0x6080604052600436106100295760003560e01c806309c5eabe1461002b578063c45a01551461009b575b005b6100296004803603602081101561004157600080fd5b81019060208101813564010000000081111561005c57600080fd5b82018360208201111561006e57600080fd5b8035906020019184600183028401116401000000008311171561009057600080fd5b5090925090506100cc565b3480156100a757600080fd5b506100b06106f2565b604080516001600160a01b039092168252519081900360200190f35b600080838360408110156100df57600080fd5b506040805163dec44c0b60e01b81526001600160a01b038335811660048301819052925192955060209384013516935084928492600092849263dec44c0b92602480840193829003018186803b15801561013857600080fd5b505afa15801561014c573d6000803e3d6000fd5b505050506040513d602081101561016257600080fd5b50519050806101b8576040805162461bcd60e51b815260206004820152601d60248201527f63616e6e6f74206c697175696461746520612073616665207661756c74000000604482015290519081900360640190fd5b6000826001600160a01b0316633bd33f626040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156101f557600080fd5b505af1158015610209573d6000803e3d6000fd5b505050506040513d602081101561021f57600080fd5b50519050600061022d610701565b905061023761076d565b6102d457806001600160a01b031663095ea7b383610253610788565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156102a257600080fd5b505af11580156102b6573d6000803e3d6000fd5b505050506040513d60208110156102cc57600080fd5b506102d89050565b5060005b604080516390a21dbf60e01b81523060048201526001600160a01b0388811660248301528381166044830152606482018690529151918416916390a21dbf9160848082019260009290919082900301818387803b15801561033857600080fd5b505af115801561034c573d6000803e3d6000fd5b50505050836001600160a01b031663bcbaf48786856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156103b057600080fd5b505af11580156103c4573d6000803e3d6000fd5b505050506103d061076d565b610563576002546000906001600160a01b03166306f2bf626103f0610701565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561043657600080fd5b505afa15801561044a573d6000803e3d6000fd5b505050506040513d602081101561046057600080fd5b50516040805163cd7724c360e01b81523031600482015290519192506000916001600160a01b0384169163cd7724c3916024808301926020929190829003018186803b1580156104af57600080fd5b505afa1580156104c3573d6000803e3d6000fd5b505050506040513d60208110156104d957600080fd5b50516040805163f39b5b9b60e01b8152600481018390526102584201602482015290519192506001600160a01b0384169163f39b5b9b91303191604480830192602092919082900301818588803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b50505050506040513d602081101561055e57600080fd5b505050505b61056b6107c3565b61057361076d565b156105be576105806108a7565b6040516001600160a01b039190911690303180156108fc02916000818181858888f193505050501580156105b8573d6000803e3d6000fd5b506106e7565b60006105c8610701565b6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561061d57600080fd5b505afa158015610631573d6000803e3d6000fd5b505050506040513d602081101561064757600080fd5b50519050610653610701565b6001600160a01b031663a9059cbb6106696108a7565b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156106b957600080fd5b505af11580156106cd573d6000803e3d6000fd5b505050506040513d60208110156106e357600080fd5b5050505b505050505050505050565b6002546001600160a01b031681565b6000336001600160a01b03166311eefd5d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561073c57600080fd5b505afa158015610750573d6000803e3d6000fd5b505050506040513d602081101561076657600080fd5b5051905090565b60006001610779610701565b6001600160a01b031614905090565b6000336001600160a01b031663ff69ac366040518163ffffffff1660e01b815260040160206040518083038186803b15801561073c57600080fd5b600061080d6107d0610788565b6108016127106107f56107e1610788565b6107e96108e2565b9063ffffffff61091d16565b9063ffffffff61096816565b9063ffffffff6109c116565b90506001548111156108505760405162461bcd60e51b815260040180806020018281038252602e815260200180610d6c602e913960400191505060405180910390fd5b61086961085b610701565b336108646108e2565b610a03565b6108a45760405162461bcd60e51b8152600401808060200182810382526024815260200180610d1e6024913960400191505060405180910390fd5b50565b6000336001600160a01b03166370348f3e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561073c57600080fd5b6000336001600160a01b0316636f27e9d86040518163ffffffff1660e01b815260040160206040518083038186803b15801561073c57600080fd5b600061095f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ac2565b90505b92915050565b60008261097757506000610962565b8282028284828161098457fe5b041461095f5760405162461bcd60e51b8152600401808060200182810382526021815260200180610d9a6021913960400191505060405180910390fd5b600061095f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610b59565b600080546001600160a01b0385811691161415610a2c57610a248383610bbe565b506001610abb565b836001600160a01b031663a9059cbb84846040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610a8c57600080fd5b505af1158015610aa0573d6000803e3d6000fd5b505050506040513d6020811015610ab657600080fd5b505190505b9392505050565b60008184841115610b515760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b16578181015183820152602001610afe565b50505050905090810190601f168015610b435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610ba85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610b16578181015183820152602001610afe565b506000838581610bb457fe5b0495945050505050565b3031811115610bfe5760405162461bcd60e51b815260040180806020018281038252602a815260200180610d42602a913960400191505060405180910390fd5b610c18828260405180602001604052806000815250610c1c565b5050565b60006060846001600160a01b031684846040518082805190602001908083835b60208310610c5b5780518252601f199092019160209182019101610c3c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cbd576040519150601f19603f3d011682016040523d82523d6000602084013e610cc2565b606091505b5091509150818190610d155760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610b16578181015183820152602001610afe565b50505050505056fe4b6f6c6c61746572616c496e766f6b61626c653a206661696c656420746f20726570617945787465726e616c43616c6c65723a20696e73756666696369656e742065746865722062616c616e63654b6f6c6c61746572616c496e766f6b61626c653a2072657061796d656e742072657761726420746f6f2068696768536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72305820d11c509605ee45e93f8ac6320568b93df7e2209d098b659587f2526ac6070e0164736f6c634300050a0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c0a47dfe034b400b47bdad5fecda2621de6c4d95
-----Decoded View---------------
Arg [0] : _factory (address): 0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c0a47dfe034b400b47bdad5fecda2621de6c4d95
Deployed Bytecode Sourcemap
14222:2318:0:-;;;;;;;;;;;;;;;;;;;;;;;;14411:2126;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14411:2126:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;14411:2126:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;14411:2126:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;14411:2126:0;;-1:-1:-1;14411:2126:0;-1:-1:-1;14411:2126:0;:::i;14282:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14282:30:0;;;:::i;:::-;;;;-1:-1:-1;;;;;14282:30:0;;;;;;;;;;;;;;14411:2126;14478:17;14497:18;14544:4;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14519:73:0;14798:41;;-1:-1:-1;;;14798:41:0;;-1:-1:-1;;;;;14519:73:0;;;;14798:41;;;;;;;;14519:73;;-1:-1:-1;14519:73:0;;;;;;;-1:-1:-1;14519:73:0;;;;14605:26;;14519:73;;14798:29;;:41;;;;;;;;;;14519:73;14798:41;;;5:2:-1;;;;30:1;27;20:12;5:2;14798:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14798:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14798:41:0;;-1:-1:-1;14858:16:0;14850:58;;;;;-1:-1:-1;;;14850:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14921:24;14964:6;-1:-1:-1;;;;;14964:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14964:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14964:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14964:24:0;;-1:-1:-1;15002:32:0;15037:21;:19;:21::i;:::-;15002:56;;15076:21;:19;:21::i;:::-;15071:255;;15121:24;-1:-1:-1;;;;;15114:40:0;;15181:8;15209:20;:18;:20::i;:::-;15114:130;;;;;;;;;;;;;-1:-1:-1;;;;;15114:130:0;-1:-1:-1;;;;;15114:130:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15114:130:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15114:130:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15071:255:0;;-1:-1:-1;15071:255:0;;-1:-1:-1;15312:1:0;15071:255;15338:167;;;-1:-1:-1;;;15338:167:0;;15396:4;15338:167;;;;-1:-1:-1;;;;;15338:167:0;;;;;;;;;;;;;;;;;;;;;;:19;;;;;;:167;;;;;-1:-1:-1;;15338:167:0;;;;;;;;-1:-1:-1;15338:19:0;:167;;;5:2:-1;;;;30:1;27;20:12;5:2;15338:167:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15338:167:0;;;;15541:6;-1:-1:-1;;;;;15541:16:0;;15558:10;15570:12;15541:42;;;;;;;;;;;;;-1:-1:-1;;;;;15541:42:0;-1:-1:-1;;;;;15541:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15541:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15541:42:0;;;;15645:21;:19;:21::i;:::-;15640:444;;15745:7;;15683:24;;-1:-1:-1;;;;;15745:7:0;:19;15765:21;:19;:21::i;:::-;15745:42;;;;;;;;;;;;;-1:-1:-1;;;;;15745:42:0;-1:-1:-1;;;;;15745:42:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15745:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15745:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15745:42:0;15837:86;;;-1:-1:-1;;;15837:86:0;;15895:4;15887:21;15837:86;;;;;;15745:42;;-1:-1:-1;15817:17:0;;-1:-1:-1;;;;;15837:31:0;;;;;:86;;;;;15745:42;;15837:86;;;;;;;:31;:86;;;5:2:-1;;;;30:1;27;20:12;5:2;15837:86:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15837:86:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15837:86:0;15938:134;;;-1:-1:-1;;;15938:134:0;;;;;;;;16047:10;16041:3;:16;15938:134;;;;;;15837:86;;-1:-1:-1;;;;;;15938:27:0;;;;;15980:4;15972:21;;15938:134;;;;;15837:86;;15938:134;;;;;;;15972:21;15938:27;:134;;;5:2:-1;;;;30:1;27;20:12;5:2;15938:134:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15938:134:0;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;15640:444:0;16129:7;:5;:7::i;:::-;16199:21;:19;:21::i;:::-;16195:335;;;16253:15;:13;:15::i;:::-;16237:65;;-1:-1:-1;;;;;16237:42:0;;;;;16288:4;16280:21;16237:65;;;;;;;;;16280:21;16237:42;:65;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16237:65:0;16195:335;;;16335:15;16360:21;:19;:21::i;:::-;-1:-1:-1;;;;;16353:39:0;;16419:4;16353:86;;;;;;;;;;;;;-1:-1:-1;;;;;16353:86:0;-1:-1:-1;;;;;16353:86:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16353:86:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16353:86:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16353:86:0;;-1:-1:-1;16461:21:0;:19;:21::i;:::-;-1:-1:-1;;;;;16454:38:0;;16493:15;:13;:15::i;:::-;16510:7;16454:64;;;;;;;;;;;;;-1:-1:-1;;;;;16454:64:0;-1:-1:-1;;;;;16454:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16454:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16454:64:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;16195:335:0;14411:2126;;;;;;;;;:::o;14282:30::-;;;-1:-1:-1;;;;;14282:30:0;;:::o;11225:138::-;11279:7;11322:10;-1:-1:-1;;;;;11306:47:0;;:49;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11306:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11306:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11306:49:0;;-1:-1:-1;11225:138:0;:::o;11667:121::-;11721:4;11778:1;11745:21;:19;:21::i;:::-;-1:-1:-1;;;;;11745:35:0;;11738:42;;11667:121;:::o;11371:136::-;11424:7;11467:10;-1:-1:-1;;;;;11451:46:0;;:48;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;10870:213:0;11837:23;11863:97;11939:20;:18;:20::i;:::-;11863:71;11928:5;11863:50;11892:20;:18;:20::i;:::-;11863:24;:22;:24::i;:::-;:28;:50;:28;:50;:::i;:::-;:64;:71;:64;:71;:::i;:::-;:75;:97;:75;:97;:::i;:::-;11837:123;;12000:15;;11981;:34;;11973:93;;;;-1:-1:-1;;;11973:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10948:69;10957:21;:19;:21::i;:::-;10980:10;10992:24;:22;:24::i;:::-;10948:8;:69::i;:::-;10926:149;;;;-1:-1:-1;;;10926:149:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10870:213;:::o;11091:126::-;11139:7;11182:10;-1:-1:-1;;;;;11166:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;11515:144:0;11572:7;11615:10;-1:-1:-1;;;;;11599:50:0;;:52;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;6479:136:0;6537:7;6564:43;6568:1;6571;6564:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;6557:50;;6479:136;;;;;:::o;7395:471::-;7453:7;7698:6;7694:47;;-1:-1:-1;7728:1:0;7721:8;;7694:47;7765:5;;;7769:1;7765;:5;:1;7789:5;;;;;:10;7781:56;;;;-1:-1:-1;;;7781:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8334:132;8392:7;8419:39;8423:1;8426;8419:39;;;;;;;;;;;;;;;;;:3;:39::i;4137:310::-;4223:4;4260:16;;-1:-1:-1;;;;;4244:32:0;;;4260:16;;4244:32;4240:200;;;4293:28;4310:2;4314:6;4293:16;:28::i;:::-;-1:-1:-1;4343:4:0;4336:11;;4240:200;4394:12;-1:-1:-1;;;;;4387:29:0;;4417:2;4421:6;4387:41;;;;;;;;;;;;;-1:-1:-1;;;;;4387:41:0;-1:-1:-1;;;;;4387:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4387:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4387:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4387:41:0;;-1:-1:-1;4240:200:0;4137:310;;;;;:::o;6952:192::-;7038:7;7074:12;7066:6;;;;7058:29;;;;-1:-1:-1;;;7058:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;7058:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7110:5:0;;;6952:192::o;8996:345::-;9082:7;9184:12;9177:5;9169:28;;;;-1:-1:-1;;;9169:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;9169:28:0;;9208:9;9224:1;9220;:5;;;;;;;8996:345;-1:-1:-1;;;;;8996:345:0:o;677:209::-;768:4;760:21;:31;-1:-1:-1;760:31:0;752:86;;;;-1:-1:-1;;;752:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;849:29;862:3;867:6;849:29;;;;;;;;;;;;:12;:29::i;:::-;677:209;;:::o;894:217::-;986:12;1000:23;1027:3;-1:-1:-1;;;;;1027:8:0;1042:6;1050:5;1027:29;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1027:29:0;;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;985:71:0;;;;1075:7;1091:10;1067:36;;;;;-1:-1:-1;;;1067:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;1067:36:0;;894:217;;;;;:::o
Swarm Source
bzzr://d11c509605ee45e93f8ac6320568b93df7e2209d098b659587f2526ac6070e01
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.