Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 111 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Multi Trade | 13481205 | 1169 days ago | IN | 0 ETH | 0.01486257 | ||||
Multi Trade | 13460385 | 1172 days ago | IN | 0 ETH | 0.03635013 | ||||
Multi Trade | 13459858 | 1172 days ago | IN | 0.1 ETH | 0.0226213 | ||||
Multi Trade | 13459540 | 1172 days ago | IN | 0 ETH | 0.02459402 | ||||
Multi Trade | 13459453 | 1172 days ago | IN | 0 ETH | 0.02087244 | ||||
Multi Trade | 13455226 | 1173 days ago | IN | 0 ETH | 0.030747 | ||||
Multi Trade | 13455027 | 1173 days ago | IN | 0 ETH | 0.02216021 | ||||
Multi Trade | 13454058 | 1173 days ago | IN | 0 ETH | 0.01882251 | ||||
Multi Trade | 13454029 | 1173 days ago | IN | 0 ETH | 0.01021436 | ||||
Multi Trade | 13453944 | 1173 days ago | IN | 0 ETH | 0.01045105 | ||||
Multi Trade | 13452422 | 1173 days ago | IN | 1 ETH | 0.0111901 | ||||
Multi Trade | 13448437 | 1174 days ago | IN | 0 ETH | 0.01506784 | ||||
Multi Trade | 13447794 | 1174 days ago | IN | 0.5 ETH | 0.0073186 | ||||
Multi Trade | 13444478 | 1174 days ago | IN | 0 ETH | 0.016653 | ||||
Multi Trade | 13442999 | 1175 days ago | IN | 0 ETH | 0.03336206 | ||||
Multi Trade | 13442943 | 1175 days ago | IN | 0 ETH | 0.02802354 | ||||
Multi Trade | 13440278 | 1175 days ago | IN | 0 ETH | 0.01029649 | ||||
Multi Trade | 13434980 | 1176 days ago | IN | 0 ETH | 0.02169266 | ||||
Multi Trade | 13432682 | 1176 days ago | IN | 0 ETH | 0.01307547 | ||||
Multi Trade | 13423120 | 1178 days ago | IN | 2 ETH | 0.01885231 | ||||
Multi Trade | 13423104 | 1178 days ago | IN | 1.8 ETH | 0.01933499 | ||||
Multi Trade | 13423037 | 1178 days ago | IN | 0 ETH | 0.02460586 | ||||
Multi Trade | 13421904 | 1178 days ago | IN | 1 ETH | 0.01641008 | ||||
Multi Trade | 13421737 | 1178 days ago | IN | 1 ETH | 0.02824406 | ||||
Multi Trade | 13418600 | 1179 days ago | IN | 0 ETH | 0.03426774 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13481205 | 1169 days ago | 0.40176611 ETH | ||||
13481205 | 1169 days ago | 0.00040216 ETH | ||||
13481205 | 1169 days ago | 0.40216828 ETH | ||||
13460385 | 1172 days ago | 2.48677412 ETH | ||||
13460385 | 1172 days ago | 0.00248926 ETH | ||||
13460385 | 1172 days ago | 2.48926338 ETH | ||||
13459858 | 1172 days ago | 0.1 ETH | ||||
13459540 | 1172 days ago | 3.25057915 ETH | ||||
13459540 | 1172 days ago | 2.51563159 ETH | ||||
13459540 | 1172 days ago | 0.73494756 ETH | ||||
13459453 | 1172 days ago | 1.18181858 ETH | ||||
13459453 | 1172 days ago | 1.18181858 ETH | ||||
13454058 | 1173 days ago | 0.00051697 ETH | ||||
13454058 | 1173 days ago | 0.51697641 ETH | ||||
13454029 | 1173 days ago | 0.57583697 ETH | ||||
13454029 | 1173 days ago | 0.00057641 ETH | ||||
13454029 | 1173 days ago | 0.57641338 ETH | ||||
13452422 | 1173 days ago | 1 ETH | ||||
13448437 | 1174 days ago | 0.59326681 ETH | ||||
13448437 | 1174 days ago | 0.59326681 ETH | ||||
13447794 | 1174 days ago | 0.5 ETH | ||||
13444478 | 1174 days ago | 0.22308086 ETH | ||||
13444478 | 1174 days ago | 0.0002233 ETH | ||||
13444478 | 1174 days ago | 0.22330416 ETH | ||||
13442999 | 1175 days ago | 5.3549851 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xfFA4D6cD...60b6cBd19 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ArkenDex
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-26 */ // SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.5.0 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @openzeppelin/contracts/utils/math/[email protected] pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @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 a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * 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). * * 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File contracts/interfaces/UniswapRouterV2.sol pragma solidity ^0.8.0; interface IUniswapV2Router { function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); } // File contracts/interfaces/BakeryRouterV2.sol pragma solidity ^0.8.0; interface IBakeryV2Router { function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactBNBForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactTokensForBNB( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); } // File contracts/interfaces/DODOV2Proxy.sol pragma solidity ^0.8.0; interface IDODOV2Proxy { function dodoSwapV2ETHToToken( address toToken, uint256 minReturnAmount, address[] memory dodoPairs, uint256 directions, bool isIncentive, uint256 deadLine ) external payable returns (uint256 returnAmount); function dodoSwapV2TokenToETH( address fromToken, uint256 fromTokenAmount, uint256 minReturnAmount, address[] memory dodoPairs, uint256 directions, bool isIncentive, uint256 deadLine ) external returns (uint256 returnAmount); function dodoSwapV2TokenToToken( address fromToken, address toToken, uint256 fromTokenAmount, uint256 minReturnAmount, address[] memory dodoPairs, uint256 directions, bool isIncentive, uint256 deadLine ) external returns (uint256 returnAmount); function dodoSwapV1( address fromToken, address toToken, uint256 fromTokenAmount, uint256 minReturnAmount, address[] memory dodoPairs, uint256 directions, bool isIncentive, uint256 deadLine ) external payable returns (uint256 returnAmount); } // File contracts/interfaces/VyperSwap.sol pragma solidity ^0.8.0; interface IVyperSwap { function exchange( int128 tokenIndexFrom, int128 tokenIndexTo, uint256 dx, uint256 minDy ) external; } // File contracts/interfaces/VyperUnderlyingSwap.sol pragma solidity ^0.8.0; interface IVyperUnderlyingSwap { function exchange( int128 tokenIndexFrom, int128 tokenIndexTo, uint256 dx, uint256 minDy ) external; function exchange_underlying( int128 tokenIndexFrom, int128 tokenIndexTo, uint256 dx, uint256 minDy ) external; } // File contracts/interfaces/DoppleSwap.sol pragma solidity ^0.8.0; interface IDoppleSwap { function getTokenIndex(address tokenAddress) external view returns (uint8); function swap( uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline ) external returns (uint256); } // File contracts/ArkenDex.sol pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; // import 'hardhat/console.sol'; contract ArkenDex { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 public constant DEADLINE = 2**256 - 1; IERC20 constant ETHER_ERC20 = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE); enum RouterInterface { UNISWAP, BAKERY, VYPER, VYPER_UNDERLYING, DOPPLE, DODO_V2, DODO_V1, DFYN } struct Result { bool success; bytes returnData; } struct TradeRoute { address[] paths; address[] dodoPairs; uint256 dodoDirection; address dexAddr; RouterInterface dexInterface; uint256 part; } struct MultiSwapDesctiption { IERC20 srcToken; IERC20 dstToken; TradeRoute[] routes; uint256 amountIn; uint256 amountOutMin; address payable to; } event Swapped( address srcToken, address dstToken, uint256 amountIn, uint256 returnAmount ); event UpdateVyper(address dexAddr, address[] tokens); event Received(address sender, uint256 amount); receive() external payable { emit Received(msg.sender, msg.value); } address public ownerAddress; address payable public feeWalletAddress; struct Config { address dodoApproveAddress; IERC20 wrapperEtherERC20; IERC20 wrapperEtherERC20Dfyn; mapping(address => mapping(address => int128)) vyperCoinsMap; } Config config; modifier onlyOwner() { require(msg.sender == ownerAddress, 'Not owner'); _; } struct VyperConstructor { address[] dexAddress; address[][] tokenAddress; } struct ConstructorParams { address payable _feeWalletAddress; address _owner; IERC20 _wrappedEther; IERC20 _wrappedEtherDfyn; address _dodoApproveAddress; VyperConstructor _vyperParams; } constructor(ConstructorParams memory params) { ownerAddress = params._owner; feeWalletAddress = params._feeWalletAddress; config.wrapperEtherERC20 = params._wrappedEther; config.wrapperEtherERC20Dfyn = params._wrappedEtherDfyn; config.dodoApproveAddress = params._dodoApproveAddress; _initializeVyper(params._vyperParams); } function _initializeVyper(VyperConstructor memory params) private { address[] memory dexAddrs = params.dexAddress; address[][] memory tokenAddrs = params.tokenAddress; require( dexAddrs.length == tokenAddrs.length, 'vyper params dexAddress and tokenAddress and tokenIndex has to be the same length' ); for (uint32 i = 0; i < dexAddrs.length; i++) { for (int128 j = 0; uint128(j) < tokenAddrs[i].length; j++) { config.vyperCoinsMap[dexAddrs[i]][ tokenAddrs[i][uint128(j)] ] = j; } } } /** * External Functions */ function updateVyper(address dexAddress, address[] calldata tokens) external onlyOwner { for (int128 j = 0; uint128(j) < tokens.length; j++) { config.vyperCoinsMap[dexAddress][tokens[uint128(j)]] = j; } emit UpdateVyper(dexAddress, tokens); } function multiTrade(MultiSwapDesctiption memory desc) external payable returns (uint256 returnAmount, uint256 blockNumber) { IERC20 dstToken = desc.dstToken; IERC20 srcToken = desc.srcToken; (returnAmount, blockNumber) = _trade(desc); if (ETHER_ERC20 == desc.dstToken) { (bool sent, ) = desc.to.call{value: returnAmount}(''); require(sent, 'Failed to send Ether'); } else { dstToken.safeTransfer(msg.sender, returnAmount); } emit Swapped( address(srcToken), address(dstToken), desc.amountIn, returnAmount ); } function testTransfer(MultiSwapDesctiption memory desc) external payable returns (uint256 returnAmount, uint256 blockNumber) { IERC20 dstToken = desc.dstToken; (returnAmount, blockNumber) = _trade(desc); uint256 beforeAmount = dstToken.balanceOf(msg.sender); dstToken.safeTransfer(msg.sender, returnAmount); uint256 afterAmount = dstToken.balanceOf(msg.sender); uint256 got = afterAmount - beforeAmount; require(got == returnAmount, 'ArkenTester: Has Tax'); } function getVyperData(address dexAddress, address token) external view returns (int128) { return config.vyperCoinsMap[dexAddress][token]; } /** * Trade Logic */ function _trade(MultiSwapDesctiption memory desc) internal returns (uint256 returnAmount, uint256 blockNumber) { require(desc.amountIn > 0, 'Amount-in needs to be more than zero'); blockNumber = block.number; IERC20 srcToken = desc.srcToken; if (ETHER_ERC20 == desc.srcToken) { require(msg.value == desc.amountIn, 'Value not match amountIn'); } else { uint256 allowance = srcToken.allowance(msg.sender, address(this)); require(allowance >= desc.amountIn, 'Allowance not enough'); srcToken.safeTransferFrom(msg.sender, address(this), desc.amountIn); } TradeRoute[] memory routes = desc.routes; uint256 srcTokenAmount; for (uint256 i = 0; i < routes.length; i++) { TradeRoute memory route = routes[i]; IERC20 startToken = ERC20(route.paths[0]); IERC20 endToken = ERC20(route.paths[route.paths.length - 1]); if (ETHER_ERC20 == startToken) { srcTokenAmount = address(this).balance; } else { srcTokenAmount = startToken.balanceOf(address(this)); } uint256 inputAmount = srcTokenAmount.mul(route.part).div(100000000); // 1% = 10^6 require( route.part <= 100000000, 'Route percentage can not exceed 100000000' ); // uint256[] memory amounts; if (route.dexInterface == RouterInterface.BAKERY) { // amounts = _tradeIBakery( startToken, endToken, inputAmount, 0, route.paths, address(this), route.dexAddr ); } else if (route.dexInterface == RouterInterface.VYPER) { // amounts = _tradeVyper( startToken, endToken, inputAmount, 0, route.dexAddr ); } else if (route.dexInterface == RouterInterface.VYPER_UNDERLYING) { // amounts = _tradeVyperUnderlying( startToken, endToken, inputAmount, 0, route.dexAddr ); } else if (route.dexInterface == RouterInterface.DOPPLE) { // amounts = _tradeDopple( startToken, endToken, inputAmount, 0, route.dexAddr ); } else if (route.dexInterface == RouterInterface.DODO_V2) { // DODO doesn't allow zero min amount // amount = _tradeIDODOV2( startToken, endToken, inputAmount, 1, route.dodoPairs, route.dodoDirection, route.dexAddr ); } else if (route.dexInterface == RouterInterface.DODO_V1) { // DODO doesn't allow zero min amount // amount = _tradeIDODOV1( startToken, endToken, inputAmount, 1, route.dodoPairs, route.dodoDirection, route.dexAddr ); } else if (route.dexInterface == RouterInterface.DFYN) { // amounts = _tradeIDfyn( startToken, endToken, inputAmount, 0, route.paths, address(this), route.dexAddr ); } else { // amounts = _tradeIUniswap( startToken, endToken, inputAmount, 0, route.paths, address(this), route.dexAddr ); } // for (uint256 idx = 0; idx < amounts.length; idx++) { // console.log('\tamount[%d]: %d', idx, amounts[idx]); // } } if (ETHER_ERC20 == desc.dstToken) { returnAmount = address(this).balance; } else { returnAmount = desc.dstToken.balanceOf(address(this)); } returnAmount = _collectFee(returnAmount, desc.dstToken); // console.log( // 'after fee: %d ,, out min: %d', // returnAmount, // desc.amountOutMin // ); require( returnAmount >= desc.amountOutMin, 'Return amount is not enough' ); } /** * Internal Functions */ function _collectFee(uint256 amount, IERC20 token) private returns ( uint256 // remaining amount to swap ) { uint256 fee = amount.div(1000); // 0.1% // console.log('fee: %s from %s on %s', fee, amount, address(token)); require(fee < amount, 'Fee exceeds amount'); if (ETHER_ERC20 == token) { feeWalletAddress.transfer(fee); } else { token.safeTransfer(feeWalletAddress, fee); } return amount.sub(fee); } function _tradeIUniswap( IERC20 _src, IERC20 _dest, uint256 inputAmount, uint256 minOutputAmount, address[] memory paths, address to, address dexAddr ) private returns (uint256[] memory amounts) { IUniswapV2Router uniRouter = IUniswapV2Router(dexAddr); if (_src == ETHER_ERC20) { // ETH => TOKEN if (paths[0] == address(ETHER_ERC20)) { paths[0] = address(config.wrapperEtherERC20); } amounts = uniRouter.swapExactETHForTokens{value: inputAmount}( minOutputAmount, paths, to, DEADLINE ); } else if (_dest == ETHER_ERC20) { // TOKEN => ETH if (paths[paths.length - 1] == address(ETHER_ERC20)) { paths[paths.length - 1] = address(config.wrapperEtherERC20); } _src.safeApprove(dexAddr, inputAmount); amounts = uniRouter.swapExactTokensForETH( inputAmount, minOutputAmount, paths, to, DEADLINE ); } else { // TOKEN => TOKEN _src.safeApprove(dexAddr, inputAmount); amounts = uniRouter.swapExactTokensForTokens( inputAmount, minOutputAmount, paths, to, DEADLINE ); } } function _tradeIDfyn( IERC20 _src, IERC20 _dest, uint256 inputAmount, uint256 minOutputAmount, address[] memory paths, address to, address dexAddr ) private returns (uint256[] memory amounts) { IUniswapV2Router uniRouter = IUniswapV2Router(dexAddr); if (_src == ETHER_ERC20) { // ETH => TOKEN if (paths[0] == address(ETHER_ERC20)) { paths[0] = address(config.wrapperEtherERC20Dfyn); } amounts = uniRouter.swapExactETHForTokens{value: inputAmount}( minOutputAmount, paths, to, DEADLINE ); } else if (_dest == ETHER_ERC20) { // TOKEN => ETH if (paths[paths.length - 1] == address(ETHER_ERC20)) { paths[paths.length - 1] = address(config.wrapperEtherERC20Dfyn); } _src.safeApprove(dexAddr, inputAmount); amounts = uniRouter.swapExactTokensForETH( inputAmount, minOutputAmount, paths, to, DEADLINE ); } else { // TOKEN => TOKEN _src.safeApprove(dexAddr, inputAmount); amounts = uniRouter.swapExactTokensForTokens( inputAmount, minOutputAmount, paths, to, DEADLINE ); } } function _tradeIDODOV2( IERC20 _src, IERC20 _dest, uint256 inputAmount, uint256 minOutputAmount, address[] memory dodoPairs, uint256 direction, address dexAddr ) private returns (uint256 amount) { IDODOV2Proxy dodoProxy = IDODOV2Proxy(dexAddr); if (_src == ETHER_ERC20) { // ETH => TOKEN amount = dodoProxy.dodoSwapV2ETHToToken{value: inputAmount}( address(_dest), minOutputAmount, dodoPairs, direction, false, DEADLINE ); } else if (_dest == ETHER_ERC20) { // TOKEN => ETH _src.safeApprove(config.dodoApproveAddress, inputAmount); amount = dodoProxy.dodoSwapV2TokenToETH( address(_src), inputAmount, minOutputAmount, dodoPairs, direction, false, DEADLINE ); } else { // TOKEN => TOKEN _src.safeApprove(config.dodoApproveAddress, inputAmount); amount = dodoProxy.dodoSwapV2TokenToToken( address(_src), address(_dest), inputAmount, minOutputAmount, dodoPairs, direction, false, DEADLINE ); } } function _tradeIDODOV1( IERC20 _src, IERC20 _dest, uint256 inputAmount, uint256 minOutputAmount, address[] memory dodoPairs, uint256 direction, address dexAddr ) private returns (uint256 amount) { IDODOV2Proxy dodoProxy = IDODOV2Proxy(dexAddr); IERC20 src = _src; IERC20 dest = _dest; if (_src != ETHER_ERC20) { _src.safeApprove(config.dodoApproveAddress, inputAmount); } // console.log('dodo v1 addr: %s , %s', address(src), address(dest)); // console.log('dodo v1 amt: %d , %d', inputAmount, minOutputAmount); amount = dodoProxy.dodoSwapV1( address(src), address(dest), inputAmount, minOutputAmount, dodoPairs, direction, false, DEADLINE ); // console.log('dodo v1 amount: %d', amount); } function _tradeIBakery( IERC20 _src, IERC20 _dest, uint256 inputAmount, uint256 minOutputAmount, address[] memory paths, address to, address dexAddr ) private returns (uint256[] memory amounts) { IBakeryV2Router bakeryRouter = IBakeryV2Router(dexAddr); if (_src == ETHER_ERC20) { // ETH => TOKEN if (paths[0] == address(ETHER_ERC20)) { paths[0] = address(config.wrapperEtherERC20); } amounts = bakeryRouter.swapExactBNBForTokens{value: inputAmount}( minOutputAmount, paths, to, DEADLINE ); } else if (_dest == ETHER_ERC20) { // TOKEN => ETH if (paths[paths.length - 1] == address(ETHER_ERC20)) { paths[paths.length - 1] = address(config.wrapperEtherERC20); } _src.safeApprove(dexAddr, inputAmount); amounts = bakeryRouter.swapExactTokensForBNB( inputAmount, minOutputAmount, paths, to, DEADLINE ); } else { // TOKEN => TOKEN _src.safeApprove(dexAddr, inputAmount); amounts = bakeryRouter.swapExactTokensForTokens( inputAmount, minOutputAmount, paths, to, DEADLINE ); } } function _tradeVyper( IERC20 _src, IERC20 _dest, uint256 inputAmount, uint256 minOutputAmount, address dexAddr ) private { IVyperSwap vyperSwap = IVyperSwap(dexAddr); _src.safeApprove(dexAddr, inputAmount); int128 tokenIndexFrom = config.vyperCoinsMap[dexAddr][address(_src)]; // console.log('tokenIndexFrom: %d', uint128(tokenIndexFrom)); int128 tokenIndexTo = config.vyperCoinsMap[dexAddr][address(_dest)]; // console.log('tokenIndexTo: %d', uint128(tokenIndexTo)); vyperSwap.exchange( tokenIndexFrom, tokenIndexTo, inputAmount, minOutputAmount ); } function _tradeVyperUnderlying( IERC20 _src, IERC20 _dest, uint256 inputAmount, uint256 minOutputAmount, address dexAddr ) private { IVyperUnderlyingSwap vyperSwap = IVyperUnderlyingSwap(dexAddr); _src.safeApprove(dexAddr, inputAmount); int128 tokenIndexFrom = config.vyperCoinsMap[dexAddr][address(_src)]; // console.log('tokenIndexFrom: %d', uint128(tokenIndexFrom)); int128 tokenIndexTo = config.vyperCoinsMap[dexAddr][address(_dest)]; // console.log('tokenIndexTo: %d', uint128(tokenIndexTo)); vyperSwap.exchange_underlying( tokenIndexFrom, tokenIndexTo, inputAmount, minOutputAmount ); } function _tradeDopple( IERC20 _src, IERC20 _dest, uint256 inputAmount, uint256 minOutputAmount, address dexAddr ) private returns (uint256 amount) { IDoppleSwap doppleSwap = IDoppleSwap(dexAddr); _src.safeApprove(dexAddr, inputAmount); // console.log('getTokenIndex: %s %s', address(_src), address(_dest)); uint8 tokenIndexFrom = doppleSwap.getTokenIndex(address(_src)); // console.log('tokenIndexFrom: %d', uint128(tokenIndexFrom)); uint8 tokenIndexTo = doppleSwap.getTokenIndex(address(_dest)); // console.log('tokenIndexTo: %d', uint128(tokenIndexTo)); amount = doppleSwap.swap( tokenIndexFrom, tokenIndexTo, inputAmount, minOutputAmount, DEADLINE ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"address payable","name":"_feeWalletAddress","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"contract IERC20","name":"_wrappedEther","type":"address"},{"internalType":"contract IERC20","name":"_wrappedEtherDfyn","type":"address"},{"internalType":"address","name":"_dodoApproveAddress","type":"address"},{"components":[{"internalType":"address[]","name":"dexAddress","type":"address[]"},{"internalType":"address[][]","name":"tokenAddress","type":"address[][]"}],"internalType":"struct ArkenDex.VyperConstructor","name":"_vyperParams","type":"tuple"}],"internalType":"struct ArkenDex.ConstructorParams","name":"params","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"srcToken","type":"address"},{"indexed":false,"internalType":"address","name":"dstToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"}],"name":"Swapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"dexAddr","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"UpdateVyper","type":"event"},{"inputs":[],"name":"DEADLINE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeWalletAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dexAddress","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"getVyperData","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"components":[{"internalType":"address[]","name":"paths","type":"address[]"},{"internalType":"address[]","name":"dodoPairs","type":"address[]"},{"internalType":"uint256","name":"dodoDirection","type":"uint256"},{"internalType":"address","name":"dexAddr","type":"address"},{"internalType":"enum ArkenDex.RouterInterface","name":"dexInterface","type":"uint8"},{"internalType":"uint256","name":"part","type":"uint256"}],"internalType":"struct ArkenDex.TradeRoute[]","name":"routes","type":"tuple[]"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"internalType":"struct ArkenDex.MultiSwapDesctiption","name":"desc","type":"tuple"}],"name":"multiTrade","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ownerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"components":[{"internalType":"address[]","name":"paths","type":"address[]"},{"internalType":"address[]","name":"dodoPairs","type":"address[]"},{"internalType":"uint256","name":"dodoDirection","type":"uint256"},{"internalType":"address","name":"dexAddr","type":"address"},{"internalType":"enum ArkenDex.RouterInterface","name":"dexInterface","type":"uint8"},{"internalType":"uint256","name":"part","type":"uint256"}],"internalType":"struct ArkenDex.TradeRoute[]","name":"routes","type":"tuple[]"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"internalType":"struct ArkenDex.MultiSwapDesctiption","name":"desc","type":"tuple"}],"name":"testTransfer","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"dexAddress","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"updateVyper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106100745760003560e01c80639da3b47c1161004e5780639da3b47c14610171578063a082c86e14610199578063b50e8185146101bd578063e210e15c146101df57600080fd5b806308a300cb146100b85780634e5e8d18146100f55780638f84aa091461015157600080fd5b366100b357604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b3480156100c457600080fd5b506001546100d8906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561010157600080fd5b5061013e610110366004612050565b6001600160a01b039182166000908152600560209081526040808320939094168252919091522054600f0b90565b604051600f9190910b81526020016100ec565b34801561015d57600080fd5b506000546100d8906001600160a01b031681565b61018461017f3660046121b2565b6101f2565b604080519283526020830191909152016100ec565b3480156101a557600080fd5b506101af60001981565b6040519081526020016100ec565b3480156101c957600080fd5b506101dd6101d8366004612088565b61034b565b005b6101846101ed3660046121b2565b610495565b60208101518151600091829161020785610616565b602087015191955093506001600160a01b031660008051602061267a83398151915214156102d85760008560a001516001600160a01b03168560405160006040518083038185875af1925050503d8060008114610280576040519150601f19603f3d011682016040523d82523d6000602084013e610285565b606091505b50509050806102d25760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b506102ec565b6102ec6001600160a01b0383163386610cfd565b606080860151604080516001600160a01b03808616825286166020820152908101919091529081018590527fa078c4190abe07940190effc1846be0ccf03ad6007bc9e93f9697d0b460befbb9060800160405180910390a15050915091565b6000546001600160a01b031633146103915760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b60448201526064016102c9565b60005b6001600160801b038116821115610454576001600160a01b0384166000908152600560205260408120829185856001600160801b0385168181106103e857634e487b7160e01b600052603260045260246000fd5b90506020020160208101906103fd9190612034565b6001600160a01b0316815260208101919091526040016000208054600f9290920b6001600160801b03166fffffffffffffffffffffffffffffffff199092169190911790558061044c816125eb565b915050610394565b507f1bcc2f6a72ad63f9ad13749d5716377c4c8843fa5ddbe3fa9207fea2856673a38383836040516104889392919061235a565b60405180910390a1505050565b602081015160009081906104a884610616565b6040516370a0823160e01b815233600482015291945092506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156104ef57600080fd5b505afa158015610503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105279190612266565b905061053d6001600160a01b0383163386610cfd565b6040516370a0823160e01b81523360048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561057f57600080fd5b505afa158015610593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b79190612266565b905060006105c583836125a8565b905085811461060d5760405162461bcd60e51b8152602060048201526014602482015273082e4d6cadca8cae6e8cae4744090c2e640a8c2f60631b60448201526064016102c9565b50505050915091565b60008060008360600151116106795760405162461bcd60e51b8152602060048201526024808201527f416d6f756e742d696e206e6565647320746f206265206d6f7265207468616e206044820152637a65726f60e01b60648201526084016102c9565b508151439060008051602061267a8339815191526001600160a01b03821614156106f557836060015134146106f05760405162461bcd60e51b815260206004820152601860248201527f56616c7565206e6f74206d6174636820616d6f756e74496e000000000000000060448201526064016102c9565b6107e1565b604051636eb1769f60e11b81523360048201523060248201526000906001600160a01b0383169063dd62ed3e9060440160206040518083038186803b15801561073d57600080fd5b505afa158015610751573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107759190612266565b905084606001518110156107c25760405162461bcd60e51b8152602060048201526014602482015273082d8d8deeec2dcc6ca40dcdee840cadcdeeaced60631b60448201526064016102c9565b60608501516107df906001600160a01b0384169033903090610d65565b505b60408401516000805b8251811015610bdc57600083828151811061081557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000816000015160008151811061084657634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008260000151600184600001515161086991906125a8565b8151811061088757634e487b7160e01b600052603260045260246000fd5b60200260200101519050816001600160a01b031660008051602061267a8339815191526001600160a01b031614156108c15747945061093b565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b15801561090057600080fd5b505afa158015610914573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109389190612266565b94505b60006109626305f5e10061095c8660a0015189610da390919063ffffffff16565b90610db6565b90506305f5e1008460a0015111156109ce5760405162461bcd60e51b815260206004820152602960248201527f526f7574652070657263656e746167652063616e206e6f74206578636565642060448201526803130303030303030360bc1b60648201526084016102c9565b6001846080015160078111156109f457634e487b7160e01b600052602160045260246000fd5b1415610a1857610a1283838360008860000151308a60600151610dc2565b50610bc5565b600284608001516007811115610a3e57634e487b7160e01b600052602160045260246000fd5b1415610a5b57610a5683838360008860600151611140565b610bc5565b600384608001516007811115610a8157634e487b7160e01b600052602160045260246000fd5b1415610a9957610a5683838360008860600151611205565b600484608001516007811115610abf57634e487b7160e01b600052602160045260246000fd5b1415610ad757610a1283838360008860600151611292565b600584608001516007811115610afd57634e487b7160e01b600052602160045260246000fd5b1415610b1f57610a128383836001886020015189604001518a6060015161144f565b600684608001516007811115610b4557634e487b7160e01b600052602160045260246000fd5b1415610b6757610a128383836001886020015189604001518a6060015161166d565b600784608001516007811115610b8d57634e487b7160e01b600052602160045260246000fd5b1415610bab57610a1283838360008860000151308a60600151611748565b610bc383838360008860000151308a60600151611964565b505b505050508080610bd49061261a565b9150506107ea565b5085602001516001600160a01b031660008051602061267a8339815191526001600160a01b03161415610c1157479450610c91565b60208601516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610c5657600080fd5b505afa158015610c6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8e9190612266565b94505b610c9f858760200151611aa0565b94508560800151851015610cf55760405162461bcd60e51b815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f756768000000000060448201526064016102c9565b505050915091565b6040516001600160a01b038316602482015260448101829052610d6090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b80565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610d9d9085906323b872dd60e01b90608401610d29565b50505050565b6000610daf8284612589565b9392505050565b6000610daf8284612569565b6060816001600160a01b03891660008051602061267a8339815191521415610f185760008051602061267a8339815191526001600160a01b031685600081518110610e1d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610e855760035485516001600160a01b03909116908690600090610e6457634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250505b604051639cf6891160e01b81526001600160a01b03821690639cf68911908990610ebb908a908a908a906000199060040161247a565b6000604051808303818588803b158015610ed457600080fd5b505af1158015610ee8573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610f11919081019061210b565b9150611134565b6001600160a01b03881660008051602061267a83398151915214156110915760008051602061267a8339815191526001600160a01b03168560018751610f5e91906125a8565b81518110610f7c57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610ff15760035485516001600160a01b03909116908690610fb2906001906125a8565b81518110610fd057634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6110056001600160a01b038a168489611c52565b604051635d616c5b60e01b81526001600160a01b03821690635d616c5b9061103b908a908a908a908a90600019906004016124af565b600060405180830381600087803b15801561105557600080fd5b505af1158015611069573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f11919081019061210b565b6110a56001600160a01b038a168489611c52565b6040516338ed173960e01b81526001600160a01b038216906338ed1739906110db908a908a908a908a90600019906004016124af565b600060405180830381600087803b1580156110f557600080fd5b505af1158015611109573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611131919081019061210b565b91505b50979650505050505050565b806111556001600160a01b0387168286611c52565b6001600160a01b0382811660009081526005602090815260408083208a8516845290915280822054888416835291819020549051630f7c084960e21b8152600f92830b80840b600483015291830b9283900b602482015260448101889052606481018790529092841690633df02124906084015b600060405180830381600087803b1580156111e357600080fd5b505af11580156111f7573d6000803e3d6000fd5b505050505050505050505050565b8061121a6001600160a01b0387168286611c52565b6001600160a01b0382811660009081526005602090815260408083208a8516845290915280822054888416835291819020549051635320bf6b60e11b8152600f92830b80840b600483015291830b9283900b60248201526044810188905260648101879052909284169063a6417ed6906084016111c9565b6000816112a96001600160a01b0388168287611c52565b6040516319b02f4960e21b81526001600160a01b038881166004830152600091908316906366c0bd249060240160206040518083038186803b1580156112ee57600080fd5b505afa158015611302573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611326919061227e565b6040516319b02f4960e21b81526001600160a01b0389811660048301529192506000918416906366c0bd249060240160206040518083038186803b15801561136d57600080fd5b505afa158015611381573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a5919061227e565b6040516348b4aac360e11b815260ff808516600483015282166024820152604481018990526064810188905260001960848201529091506001600160a01b0384169063916955869060a401602060405180830381600087803b15801561140a57600080fd5b505af115801561141e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114429190612266565b9998505050505050505050565b6000816001600160a01b03891660008051602061267a83398151915214156114fe57604051635028bb9560e01b81526001600160a01b03821690635028bb959089906114ac908c908b908b908b90600090600019906004016123b6565b6020604051808303818588803b1580156114c557600080fd5b505af11580156114d9573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f119190612266565b6001600160a01b03881660008051602061267a83398151915214156115c457600254611537906001600160a01b038b8116911689611c52565b604051630f36926160e11b81526001600160a01b03821690631e6d24c290611572908c908b908b908b908b90600090600019906004016123fb565b602060405180830381600087803b15801561158c57600080fd5b505af11580156115a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f119190612266565b6002546115de906001600160a01b038b8116911689611c52565b60405163f87dc1b760e01b81526001600160a01b0382169063f87dc1b79061161b908c908c908c908c908c908c90600090600019906004016122fe565b602060405180830381600087803b15801561163557600080fd5b505af1158015611649573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111319190612266565b60008188886001600160a01b03821660008051602061267a833981519152146116aa576002546116aa906001600160a01b038d811691168b611c52565b604051630dd4ebd960e01b81526001600160a01b03841690630dd4ebd9906116e790859085908e908e908e908e90600090600019906004016122fe565b602060405180830381600087803b15801561170157600080fd5b505af1158015611715573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117399190612266565b9b9a5050505050505050505050565b6060816001600160a01b03891660008051602061267a83398151915214156118415760008051602061267a8339815191526001600160a01b0316856000815181106117a357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561180b5760045485516001600160a01b039091169086906000906117ea57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250505b604051637ff36ab560e01b81526001600160a01b03821690637ff36ab5908990610ebb908a908a908a906000199060040161247a565b6001600160a01b03881660008051602061267a83398151915214156110915760008051602061267a8339815191526001600160a01b0316856001875161188791906125a8565b815181106118a557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561191a5760045485516001600160a01b039091169086906118db906001906125a8565b815181106118f957634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250505b61192e6001600160a01b038a168489611c52565b6040516318cbafe560e01b81526001600160a01b038216906318cbafe59061103b908a908a908a908a90600019906004016124af565b6060816001600160a01b03891660008051602061267a8339815191521415611a065760008051602061267a8339815191526001600160a01b0316856000815181106119bf57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561180b5760035485516001600160a01b039091169086906000906117ea57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03881660008051602061267a83398151915214156110915760008051602061267a8339815191526001600160a01b03168560018751611a4c91906125a8565b81518110611a6a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561191a5760035485516001600160a01b039091169086906118db906001906125a8565b600080611aaf846103e8610db6565b9050838110611af55760405162461bcd60e51b815260206004820152601260248201527111995948195e18d959591cc8185b5bdd5b9d60721b60448201526064016102c9565b60008051602061267a8339815191526001600160a01b0384161415611b54576001546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611b4e573d6000803e3d6000fd5b50611b6e565b600154611b6e906001600160a01b03858116911683610cfd565b611b788482611d76565b949350505050565b6000611bd5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d829092919063ffffffff16565b805190915015610d605780806020019051810190611bf39190612192565b610d605760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102c9565b801580611cdb5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611ca157600080fd5b505afa158015611cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd99190612266565b155b611d465760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102c9565b6040516001600160a01b038316602482015260448101829052610d6090849063095ea7b360e01b90606401610d29565b6000610daf82846125a8565b6060611b78848460008585843b611ddb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102c9565b600080866001600160a01b03168587604051611df791906122e2565b60006040518083038185875af1925050503d8060008114611e34576040519150601f19603f3d011682016040523d82523d6000602084013e611e39565b606091505b5091509150611e49828286611e54565b979650505050505050565b60608315611e63575081610daf565b825115611e735782518084602001fd5b8160405162461bcd60e51b81526004016102c99190612447565b8035611e9881612661565b919050565b600082601f830112611ead578081fd5b81356020611ec2611ebd83612545565b612514565b80838252828201915082860187848660051b8901011115611ee1578586fd5b855b85811015611f08578135611ef681612661565b84529284019290840190600101611ee3565b5090979650505050505050565b600082601f830112611f25578081fd5b81356020611f35611ebd83612545565b80838252828201915082860187848660051b8901011115611f54578586fd5b855b85811015611f0857813567ffffffffffffffff80821115611f75578889fd5b9089019060c0828c03601f1901811315611f8d57898afd5b611f956124eb565b8884013583811115611fa5578b8cfd5b611fb38e8b83880101611e9d565b82525060408085013584811115611fc8578c8dfd5b611fd68f8c83890101611e9d565b8b84015250606093508385013581830152506080611ff5818601611e8d565b8483015260a09350612008848601612025565b908201529201359082015284529284019290840190600101611f56565b803560088110611e9857600080fd5b600060208284031215612045578081fd5b8135610daf81612661565b60008060408385031215612062578081fd5b823561206d81612661565b9150602083013561207d81612661565b809150509250929050565b60008060006040848603121561209c578081fd5b83356120a781612661565b9250602084013567ffffffffffffffff808211156120c3578283fd5b818601915086601f8301126120d6578283fd5b8135818111156120e4578384fd5b8760208260051b85010111156120f8578384fd5b6020830194508093505050509250925092565b6000602080838503121561211d578182fd5b825167ffffffffffffffff811115612133578283fd5b8301601f81018513612143578283fd5b8051612151611ebd82612545565b80828252848201915084840188868560051b8701011115612170578687fd5b8694505b83851015611134578051835260019490940193918501918501612174565b6000602082840312156121a3578081fd5b81518015158114610daf578182fd5b6000602082840312156121c3578081fd5b813567ffffffffffffffff808211156121da578283fd5b9083019060c082860312156121ed578283fd5b6121f56124eb565b823561220081612661565b8152602083013561221081612661565b6020820152604083013582811115612226578485fd5b61223287828601611f15565b604083015250606083013560608201526080830135608082015261225860a08401611e8d565b60a082015295945050505050565b600060208284031215612277578081fd5b5051919050565b60006020828403121561228f578081fd5b815160ff81168114610daf578182fd5b6000815180845260208085019450808401835b838110156122d75781516001600160a01b0316875295820195908201906001016122b2565b509495945050505050565b600082516122f48184602087016125bf565b9190910192915050565b6001600160a01b038981168252881660208201526040810187905260608101869052610100608082018190526000906123398382018861229f565b60a0840196909652505091151560c083015260e09091015295945050505050565b6001600160a01b03848116825260406020808401829052908301849052600091859160608501845b878110156123a957843561239581612661565b841682529382019390820190600101612382565b5098975050505050505050565b60018060a01b038716815285602082015260c0604082015260006123dd60c083018761229f565b606083019590955250911515608083015260a0909101529392505050565b60018060a01b038816815286602082015285604082015260e06060820152600061242860e083018761229f565b60808301959095525091151560a083015260c090910152949350505050565b60208152600082518060208401526124668160408501602087016125bf565b601f01601f19169190910160400192915050565b848152608060208201526000612493608083018661229f565b6001600160a01b03949094166040830152506060015292915050565b85815284602082015260a0604082015260006124ce60a083018661229f565b6001600160a01b0394909416606083015250608001529392505050565b60405160c0810167ffffffffffffffff8111828210171561250e5761250e61264b565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561253d5761253d61264b565b604052919050565b600067ffffffffffffffff82111561255f5761255f61264b565b5060051b60200190565b60008261258457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156125a3576125a3612635565b500290565b6000828210156125ba576125ba612635565b500390565b60005b838110156125da5781810151838201526020016125c2565b83811115610d9d5750506000910152565b600081600f0b6f7fffffffffffffffffffffffffffffff81141561261157612611612635565b60010192915050565b600060001982141561262e5761262e612635565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461267657600080fd5b5056fe000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeea2646970667358221220cfdf0b20ff8c56980fea2b38db87ce1139c0a431385c60b9c2b49f2ba12cc74a64736f6c63430008040033
Deployed Bytecode Sourcemap
38764:20284:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39992:31;;;40001:10;11633:51:1;;40013:9:0;11715:2:1;11700:18;;11693:34;39992:31:0;;11606:18:1;39992:31:0;;;;;;;38764:20284;;;;;40073:39;;;;;;;;;;-1:-1:-1;40073:39:0;;;;-1:-1:-1;;;;;40073:39:0;;;;;;-1:-1:-1;;;;;8381:32:1;;;8363:51;;8351:2;8336:18;40073:39:0;;;;;;;;43516:185;;;;;;;;;;-1:-1:-1;43516:185:0;;;;;:::i;:::-;-1:-1:-1;;;;;43654:32:0;;;43623:6;43654:32;;;:20;:32;;;;;;;;:39;;;;;;;;;;;;;;;43516:185;;;;13305:2:1;13294:22;;;;13276:41;;13264:2;13249:18;43516:185:0;13231:92:1;40039:27:0;;;;;;;;;;-1:-1:-1;40039:27:0;;;;-1:-1:-1;;;;;40039:27:0;;;42232:709;;;;;;:::i;:::-;;:::i;:::-;;;;19857:25:1;;;19913:2;19898:18;;19891:34;;;;19830:18;42232:709:0;19812:119:1;38857:45:0;;;;;;;;;;;;-1:-1:-1;;38857:45:0;;;;;19140:25:1;;;19128:2;19113:18;38857:45:0;19095:76:1;41914:310:0;;;;;;;;;;-1:-1:-1;41914:310:0;;;;;:::i;:::-;;:::i;:::-;;42949:559;;;;;;:::i;:::-;;:::i;42232:709::-;42416:13;;;;42458;;42339:20;;;;42512:12;42416:4;42512:6;:12::i;:::-;42554:13;;;;42482:42;;-1:-1:-1;42482:42:0;-1:-1:-1;;;;;;42539:28:0;-1:-1:-1;;;;;;;;;;;42539:28:0;42535:246;;;42585:9;42600:4;:7;;;-1:-1:-1;;;;;42600:12:0;42620;42600:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42584:53;;;42660:4;42652:37;;;;-1:-1:-1;;;42652:37:0;;14342:2:1;42652:37:0;;;14324:21:1;14381:2;14361:18;;;14354:30;-1:-1:-1;;;14400:18:1;;;14393:50;14460:18;;42652:37:0;;;;;;;;;42535:246;;;;42722:47;-1:-1:-1;;;;;42722:21:0;;42744:10;42756:12;42722:21;:47::i;:::-;42882:13;;;;;42796:137;;;-1:-1:-1;;;;;9625:15:1;;;9607:34;;9677:15;;9672:2;9657:18;;9650:43;9709:18;;;9702:34;;;;9752:18;;;9745:34;;;42796:137:0;;9556:3:1;9541:19;42796:137:0;;;;;;;42232:709;;;;;:::o;41914:310::-;40407:12;;-1:-1:-1;;;;;40407:12:0;40393:10;:26;40385:48;;;;-1:-1:-1;;;40385:48:0;;17314:2:1;40385:48:0;;;17296:21:1;17353:1;17333:18;;;17326:29;-1:-1:-1;;;17371:18:1;;;17364:39;17420:18;;40385:48:0;17286:158:1;40385:48:0;42040:8:::1;42035:135;-1:-1:-1::0;;;;;42054:26:0;::::1;::::0;-1:-1:-1;42035:135:0::1;;;-1:-1:-1::0;;;;;42102:32:0;::::1;;::::0;;;:20;:32:::1;::::0;;;;42157:1;;42135:6;;-1:-1:-1;;;;;42135:18:0;::::1;::::0;;::::1;;;-1:-1:-1::0;;;42135:18:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;42102:52:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;42102:52:0;:56;;::::1;::::0;;;::::1;-1:-1:-1::0;;;;;42102:56:0::1;-1:-1:-1::0;;42102:56:0;;::::1;::::0;;;::::1;::::0;;42082:3;::::1;::::0;::::1;:::i;:::-;;;;42035:135;;;;42185:31;42197:10;42209:6;;42185:31;;;;;;;;:::i;:::-;;;;;;;;41914:310:::0;;;:::o;42949:559::-;43135:13;;;;43058:20;;;;43189:12;43135:4;43189:6;:12::i;:::-;43235:30;;-1:-1:-1;;;43235:30:0;;43254:10;43235:30;;;8363:51:1;43159:42:0;;-1:-1:-1;43159:42:0;-1:-1:-1;43212:20:0;;-1:-1:-1;;;;;43235:18:0;;;;;8336::1;;43235:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43212:53;-1:-1:-1;43276:47:0;-1:-1:-1;;;;;43276:21:0;;43298:10;43310:12;43276:21;:47::i;:::-;43356:30;;-1:-1:-1;;;43356:30:0;;43375:10;43356:30;;;8363:51:1;43334:19:0;;-1:-1:-1;;;;;43356:18:0;;;;;8336::1;;43356:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43334:52;-1:-1:-1;43397:11:0;43411:26;43425:12;43334:52;43411:26;:::i;:::-;43397:40;;43463:12;43456:3;:19;43448:52;;;;-1:-1:-1;;;43448:52:0;;14691:2:1;43448:52:0;;;14673:21:1;14730:2;14710:18;;;14703:30;-1:-1:-1;;;14749:18:1;;;14742:50;14809:18;;43448:52:0;14663:170:1;43448:52:0;42949:559;;;;;;;:::o;43749:5146::-;43835:20;43857:19;43918:1;43902:4;:13;;;:17;43894:66;;;;-1:-1:-1;;;43894:66:0;;15447:2:1;43894:66:0;;;15429:21:1;15486:2;15466:18;;;15459:30;15525:34;15505:18;;;15498:62;-1:-1:-1;;;15576:18:1;;;15569:34;15620:19;;43894:66:0;15419:226:1;43894:66:0;-1:-1:-1;44028:13:0;;43985:12;;-1:-1:-1;;;;;;;;;;;;;;;;44058:28:0;;;44054:378;;;44124:4;:13;;;44111:9;:26;44103:63;;;;-1:-1:-1;;;44103:63:0;;18009:2:1;44103:63:0;;;17991:21:1;18048:2;18028:18;;;18021:30;18087:26;18067:18;;;18060:54;18131:18;;44103:63:0;17981:174:1;44103:63:0;44054:378;;;44219:45;;-1:-1:-1;;;44219:45:0;;44238:10;44219:45;;;8861:34:1;44258:4:0;8911:18:1;;;8904:43;44199:17:0;;-1:-1:-1;;;;;44219:18:0;;;;;8796::1;;44219:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44199:65;;44300:4;:13;;;44287:9;:26;;44279:59;;;;-1:-1:-1;;;44279:59:0;;16555:2:1;44279:59:0;;;16537:21:1;16594:2;16574:18;;;16567:30;-1:-1:-1;;;16613:18:1;;;16606:50;16673:18;;44279:59:0;16527:170:1;44279:59:0;44406:13;;;;44353:67;;-1:-1:-1;;;;;44353:25:0;;;44379:10;;44399:4;;44353:25;:67::i;:::-;44054:378;;44473:11;;;;44444:26;;44530:3822;44554:6;:13;44550:1;:17;44530:3822;;;44589:23;44615:6;44622:1;44615:9;;;;;;-1:-1:-1;;;44615:9:0;;;;;;;;;;;;;;;44589:35;;44639:17;44665:5;:11;;;44677:1;44665:14;;;;;;-1:-1:-1;;;44665:14:0;;;;;;;;;;;;;;;44639:41;;44695:15;44719:5;:11;;;44752:1;44731:5;:11;;;:18;:22;;;;:::i;:::-;44719:35;;;;;;-1:-1:-1;;;44719:35:0;;;;;;;;;;;;;;;44695:60;;44789:10;-1:-1:-1;;;;;44774:25:0;-1:-1:-1;;;;;;;;;;;;;;;;44774:25:0;;44770:197;;;44837:21;44820:38;;44770:197;;;44916:35;;-1:-1:-1;;;44916:35:0;;44945:4;44916:35;;;8363:51:1;-1:-1:-1;;;;;44916:20:0;;;;;8336:18:1;;44916:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44899:52;;44770:197;44981:19;45003:45;45038:9;45003:30;45022:5;:10;;;45003:14;:18;;:30;;;;:::i;:::-;:34;;:45::i;:::-;44981:67;;45116:9;45102:5;:10;;;:23;;45076:126;;;;-1:-1:-1;;;45076:126:0;;16904:2:1;45076:126:0;;;16886:21:1;16943:2;16923:18;;;16916:30;16982:34;16962:18;;;16955:62;-1:-1:-1;;;17033:18:1;;;17026:39;17082:19;;45076:126:0;16876:231:1;45076:126:0;45285:22;45263:5;:18;;;:44;;;;;;-1:-1:-1;;;45263:44:0;;;;;;;;;;45259:2923;;;45358:260;45394:10;45427:8;45458:11;45492:1;45516:5;:11;;;45558:4;45586:5;:13;;;45358;:260::i;:::-;;45259:2923;;;45666:21;45644:5;:18;;;:43;;;;;;-1:-1:-1;;;45644:43:0;;;;;;;;;;45640:2542;;;45738:188;45772:10;45805:8;45836:11;45870:1;45894:5;:13;;;45738:11;:188::i;:::-;45640:2542;;;45974:32;45952:5;:18;;;:54;;;;;;-1:-1:-1;;;45952:54:0;;;;;;;;;;45948:2234;;;46057:198;46101:10;46134:8;46165:11;46199:1;46223:5;:13;;;46057:21;:198::i;45948:2234::-;46303:22;46281:5;:18;;;:44;;;;;;-1:-1:-1;;;46281:44:0;;;;;;;;;;46277:1905;;;46376:189;46411:10;46444:8;46475:11;46509:1;46533:5;:13;;;46376:12;:189::i;46277:1905::-;46613:23;46591:5;:18;;;:45;;;;;;-1:-1:-1;;;46591:45:0;;;;;;;;;;46587:1595;;;46741:270;46777:10;46810:8;46841:11;46875:1;46899:5;:15;;;46937:5;:19;;;46979:5;:13;;;46741;:270::i;46587:1595::-;47059:23;47037:5;:18;;;:45;;;;;;-1:-1:-1;;;47037:45:0;;;;;;;;;;47033:1149;;;47187:270;47223:10;47256:8;47287:11;47321:1;47345:5;:15;;;47383:5;:19;;;47425:5;:13;;;47187;:270::i;47033:1149::-;47505:20;47483:5;:18;;;:42;;;;;;-1:-1:-1;;;47483:42:0;;;;;;;;;;47479:703;;;47576:258;47610:10;47643:8;47674:11;47708:1;47732:5;:11;;;47774:4;47802:5;:13;;;47576:11;:258::i;47479:703::-;47905:261;47942:10;47975:8;48006:11;48040:1;48064:5;:11;;;48106:4;48134:5;:13;;;47905:14;:261::i;:::-;;47479:703;44530:3822;;;;44569:3;;;;;:::i;:::-;;;;44530:3822;;;;48383:4;:13;;;-1:-1:-1;;;;;48368:28:0;-1:-1:-1;;;;;;;;;;;;;;;;48368:28:0;;48364:183;;;48428:21;48413:36;;48364:183;;;48497:13;;;;:38;;-1:-1:-1;;;48497:38:0;;48529:4;48497:38;;;8363:51:1;-1:-1:-1;;;;;48497:23:0;;;;;;8336:18:1;;48497:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;48482:53;;48364:183;48574:40;48586:12;48600:4;:13;;;48574:11;:40::i;:::-;48559:55;;48815:4;:17;;;48799:12;:33;;48777:110;;;;-1:-1:-1;;;48777:110:0;;15852:2:1;48777:110:0;;;15834:21:1;15891:2;15871:18;;;15864:30;15930:29;15910:18;;;15903:57;15977:18;;48777:110:0;15824:177:1;48777:110:0;43749:5146;;;;;;:::o;24047:177::-;24157:58;;-1:-1:-1;;;;;11651:32:1;;24157:58:0;;;11633:51:1;11700:18;;;11693:34;;;24130:86:0;;24150:5;;-1:-1:-1;;;24180:23:0;11606:18:1;;24157:58:0;;;;-1:-1:-1;;24157:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;24157:58:0;-1:-1:-1;;;;;;24157:58:0;;;;;;;;;;24130:19;:86::i;:::-;24047:177;;;:::o;24232:205::-;24360:68;;-1:-1:-1;;;;;9216:15:1;;;24360:68:0;;;9198:34:1;9268:15;;9248:18;;;9241:43;9300:18;;;9293:34;;;24333:96:0;;24353:5;;-1:-1:-1;;;24383:27:0;9133:18:1;;24360:68:0;9115:218:1;24333:96:0;24232:205;;;;:::o;30785:98::-;30843:7;30870:5;30874:1;30870;:5;:::i;:::-;30863:12;30785:98;-1:-1:-1;;;30785:98:0:o;31184:::-;31242:7;31269:5;31273:1;31269;:5;:::i;55109:1555::-;55345:24;55429:7;-1:-1:-1;;;;;55452:19:0;;-1:-1:-1;;;;;;;;;;;55452:19:0;55448:1209;;;-1:-1:-1;;;;;;;;;;;;;;;;55521:32:0;:5;55527:1;55521:8;;;;;;-1:-1:-1;;;55521:8:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;55521:32:0;;55517:117;;;55593:24;;55574:8;;-1:-1:-1;;;;;55593:24:0;;;;55574:5;;55593:24;;55574:8;;-1:-1:-1;;;55574:8:0;;;;;;;;;;;;;;:44;-1:-1:-1;;;;;55574:44:0;;;-1:-1:-1;;;;;55574:44:0;;;;;55517:117;55658:175;;-1:-1:-1;;;55658:175:0;;-1:-1:-1;;;;;55658:34:0;;;;;55700:11;;55658:175;;55731:15;;55765:5;;55789:2;;-1:-1:-1;;38892:10:0;55658:175;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;55658:175:0;;;;;;;;;;;;:::i;:::-;55648:185;;55448:1209;;;-1:-1:-1;;;;;55855:20:0;;-1:-1:-1;;;;;;;;;;;55855:20:0;55851:806;;;-1:-1:-1;;;;;;;;;;;;;;;;55925:47:0;:5;55946:1;55931:5;:12;:16;;;;:::i;:::-;55925:23;;;;;;-1:-1:-1;;;55925:23:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;55925:47:0;;55921:147;;;56027:24;;55999:12;;-1:-1:-1;;;;;56027:24:0;;;;55993:5;;55999:16;;56027:24;;55999:16;:::i;:::-;55993:23;;;;;;-1:-1:-1;;;55993:23:0;;;;;;;;;;;;;;:59;-1:-1:-1;;;;;55993:59:0;;;-1:-1:-1;;;;;55993:59:0;;;;;55921:147;56082:38;-1:-1:-1;;;;;56082:16:0;;56099:7;56108:11;56082:16;:38::i;:::-;56145:185;;-1:-1:-1;;;56145:185:0;;-1:-1:-1;;;;;56145:34:0;;;;;:185;;56198:11;;56228:15;;56262:5;;56286:2;;-1:-1:-1;;38892:10:0;56145:185;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;56145:185:0;;;;;;;;;;;;:::i;55851:806::-;56394:38;-1:-1:-1;;;;;56394:16:0;;56411:7;56420:11;56394:16;:38::i;:::-;56457:188;;-1:-1:-1;;;56457:188:0;;-1:-1:-1;;;;;56457:37:0;;;;;:188;;56513:11;;56543:15;;56577:5;;56601:2;;-1:-1:-1;;38892:10:0;56457:188;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;56457:188:0;;;;;;;;;;;;:::i;:::-;56447:198;;55851:806;55109:1555;;;;;;;;;;:::o;56672:730::-;56888:7;56907:38;-1:-1:-1;;;;;56907:16:0;;56888:7;56933:11;56907:16;:38::i;:::-;-1:-1:-1;;;;;56980:29:0;;;56956:21;56980:29;;;:20;:29;;;;;;;;:44;;;;;;;;;;;;57129:45;;;;;;;;;;57253:141;;-1:-1:-1;;;57253:141:0;;56980:44;;;;13573:22:1;;;57253:141:0;;;13555:41:1;57129:45:0;;;13632:22:1;;;;13612:18;;;13605:50;13671:18;;;13664:34;;;13714:18;;;13707:34;;;56980:44:0;;57253:18;;;;;13527:19:1;;57253:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56672:730;;;;;;;;:::o;57410:771::-;57656:7;57675:38;-1:-1:-1;;;;;57675:16:0;;57656:7;57701:11;57675:16;:38::i;:::-;-1:-1:-1;;;;;57748:29:0;;;57724:21;57748:29;;;:20;:29;;;;;;;;:44;;;;;;;;;;;;57897:45;;;;;;;;;;58021:152;;-1:-1:-1;;;58021:152:0;;57748:44;;;;13573:22:1;;;58021:152:0;;;13555:41:1;57897:45:0;;;13632:22:1;;;;13612:18;;;13605:50;13671:18;;;13664:34;;;13714:18;;;13707:34;;;57748:44:0;;58021:29;;;;;13527:19:1;;58021:152:0;13509:238:1;58189:856:0;58370:14;58434:7;58453:38;-1:-1:-1;;;;;58453:16:0;;58434:7;58479:11;58453:16;:38::i;:::-;58605:39;;-1:-1:-1;;;58605:39:0;;-1:-1:-1;;;;;8381:32:1;;;58605:39:0;;;8363:51:1;58582:20:0;;58605:24;;;;;;8336:18:1;;58605:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58748:40;;-1:-1:-1;;;58748:40:0;;-1:-1:-1;;;;;8381:32:1;;;58748:40:0;;;8363:51:1;58582:62:0;;-1:-1:-1;58727:18:0;;58748:24;;;;;8336:18:1;;58748:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58876:161;;-1:-1:-1;;;58876:161:0;;20796:4:1;20784:17;;;58876:161:0;;;20766:36:1;20838:17;;20818:18;;;20811:45;20872:18;;;20865:34;;;20915:18;;;20908:34;;;-1:-1:-1;;20958:19:1;;;20951:35;58727:61:0;;-1:-1:-1;;;;;;58876:15:0;;;;;20738:19:1;;58876:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58867:170;58189:856;-1:-1:-1;;;;;;;;;58189:856:0:o;52613:1510::-;52860:14;52925:7;-1:-1:-1;;;;;52948:19:0;;-1:-1:-1;;;;;;;;;;;52948:19:0;52944:1172;;;53022:239;;-1:-1:-1;;;53022:239:0;;-1:-1:-1;;;;;53022:30:0;;;;;53060:11;;53022:239;;53099:5;;53124:15;;53158:9;;53186;;53214:5;;-1:-1:-1;;38892:10:0;53022:239;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;52944:1172::-;-1:-1:-1;;;;;53283:20:0;;-1:-1:-1;;;;;;;;;;;53283:20:0;53279:837;;;53366:6;:25;53349:56;;-1:-1:-1;;;;;53349:16:0;;;;53366:25;53393:11;53349:16;:56::i;:::-;53429:248;;-1:-1:-1;;;53429:248:0;;-1:-1:-1;;;;;53429:30:0;;;;;:248;;53486:4;;53510:11;;53540:15;;53574:9;;53602;;53630:5;;-1:-1:-1;;38892:10:0;53429:248;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;53279:837::-;53758:6;:25;53741:56;;-1:-1:-1;;;;;53741:16:0;;;;53758:25;53785:11;53741:16;:56::i;:::-;53821:283;;-1:-1:-1;;;53821:283:0;;-1:-1:-1;;;;;53821:32:0;;;;;:283;;53880:4;;53912:5;;53937:11;;53967:15;;54001:9;;54029;;54057:5;;-1:-1:-1;;38892:10:0;53821:283;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;54131:970::-;54378:14;54443:7;54475:4;54504:5;-1:-1:-1;;;;;54524:19:0;;-1:-1:-1;;;;;;;;;;;54524:19:0;54520:108;;54577:6;:25;54560:56;;-1:-1:-1;;;;;54560:16:0;;;;54577:25;54604:11;54560:16;:56::i;:::-;54805:233;;-1:-1:-1;;;54805:233:0;;-1:-1:-1;;;;;54805:20:0;;;;;:233;;54848:3;;54875:4;;54895:11;;54921:15;;54951:9;;54975;;54999:5;;-1:-1:-1;;38892:10:0;54805:233;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54796:242;54131:970;-1:-1:-1;;;;;;;;;;;54131:970:0:o;51054:1551::-;51288:24;51371:7;-1:-1:-1;;;;;51394:19:0;;-1:-1:-1;;;;;;;;;;;51394:19:0;51390:1208;;;-1:-1:-1;;;;;;;;;;;;;;;;51463:32:0;:5;51469:1;51463:8;;;;;;-1:-1:-1;;;51463:8:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;51463:32:0;;51459:121;;;51535:28;;51516:8;;-1:-1:-1;;;;;51535:28:0;;;;51516:5;;51535:28;;51516:8;;-1:-1:-1;;;51516:8:0;;;;;;;;;;;;;;:48;-1:-1:-1;;;;;51516:48:0;;;-1:-1:-1;;;;;51516:48:0;;;;;51459:121;51604:172;;-1:-1:-1;;;51604:172:0;;-1:-1:-1;;;;;51604:31:0;;;;;51643:11;;51604:172;;51674:15;;51708:5;;51732:2;;-1:-1:-1;;38892:10:0;51604:172;;;:::i;51390:1208::-;-1:-1:-1;;;;;51798:20:0;;-1:-1:-1;;;;;;;;;;;51798:20:0;51794:804;;;-1:-1:-1;;;;;;;;;;;;;;;;51868:47:0;:5;51889:1;51874:5;:12;:16;;;;:::i;:::-;51868:23;;;;;;-1:-1:-1;;;51868:23:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;51868:47:0;;51864:151;;;51970:28;;51942:12;;-1:-1:-1;;;;;51970:28:0;;;;51936:5;;51942:16;;51970:28;;51942:16;:::i;:::-;51936:23;;;;;;-1:-1:-1;;;51936:23:0;;;;;;;;;;;;;;:63;-1:-1:-1;;;;;51936:63:0;;;-1:-1:-1;;;;;51936:63:0;;;;;51864:151;52029:38;-1:-1:-1;;;;;52029:16:0;;52046:7;52055:11;52029:16;:38::i;:::-;52092:182;;-1:-1:-1;;;52092:182:0;;-1:-1:-1;;;;;52092:31:0;;;;;:182;;52142:11;;52172:15;;52206:5;;52230:2;;-1:-1:-1;;38892:10:0;52092:182;;;:::i;49500:1546::-;49737:24;49820:7;-1:-1:-1;;;;;49843:19:0;;-1:-1:-1;;;;;;;;;;;49843:19:0;49839:1200;;;-1:-1:-1;;;;;;;;;;;;;;;;49912:32:0;:5;49918:1;49912:8;;;;;;-1:-1:-1;;;49912:8:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;49912:32:0;;49908:117;;;49984:24;;49965:8;;-1:-1:-1;;;;;49984:24:0;;;;49965:5;;49984:24;;49965:8;;-1:-1:-1;;;49965:8:0;;;;;;;;49839:1200;-1:-1:-1;;;;;50243:20:0;;-1:-1:-1;;;;;;;;;;;50243:20:0;50239:800;;;-1:-1:-1;;;;;;;;;;;;;;;;50313:47:0;:5;50334:1;50319:5;:12;:16;;;;:::i;:::-;50313:23;;;;;;-1:-1:-1;;;50313:23:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;50313:47:0;;50309:147;;;50415:24;;50387:12;;-1:-1:-1;;;;;50415:24:0;;;;50381:5;;50387:16;;50415:24;;50387:16;:::i;48950:542::-;49050:7;;49127:16;:6;49138:4;49127:10;:16::i;:::-;49113:30;;49255:6;49249:3;:12;49241:43;;;;-1:-1:-1;;;49241:43:0;;16208:2:1;49241:43:0;;;16190:21:1;16247:2;16227:18;;;16220:30;-1:-1:-1;;;16266:18:1;;;16259:48;16324:18;;49241:43:0;16180:168:1;49241:43:0;-1:-1:-1;;;;;;;;;;;;;;;;49299:20:0;;;49295:157;;;49336:16;;:30;;-1:-1:-1;;;;;49336:16:0;;;;:30;;;;;49362:3;;49336:16;:30;:16;:30;49362:3;49336:16;:30;;;;;;;;;;;;;;;;;;;;;49295:157;;;49418:16;;49399:41;;-1:-1:-1;;;;;49399:18:0;;;;49418:16;49436:3;49399:18;:41::i;:::-;49469:15;:6;49480:3;49469:10;:15::i;:::-;49462:22;48950:542;-1:-1:-1;;;;48950:542:0:o;26481:761::-;26905:23;26931:69;26959:4;26931:69;;;;;;;;;;;;;;;;;26939:5;-1:-1:-1;;;;;26931:27:0;;;:69;;;;;:::i;:::-;27015:17;;26905:95;;-1:-1:-1;27015:21:0;27011:224;;27157:10;27146:30;;;;;;;;;;;;:::i;:::-;27138:85;;;;-1:-1:-1;;;27138:85:0;;18362:2:1;27138:85:0;;;18344:21:1;18401:2;18381:18;;;18374:30;18440:34;18420:18;;;18413:62;-1:-1:-1;;;18491:18:1;;;18484:40;18541:19;;27138:85:0;18334:232:1;24706:622:0;25076:10;;;25075:62;;-1:-1:-1;25092:39:0;;-1:-1:-1;;;25092:39:0;;25116:4;25092:39;;;8861:34:1;-1:-1:-1;;;;;8931:15:1;;;8911:18;;;8904:43;25092:15:0;;;;;8796:18:1;;25092:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;25075:62;25067:152;;;;-1:-1:-1;;;25067:152:0;;18773:2:1;25067:152:0;;;18755:21:1;18812:2;18792:18;;;18785:30;18851:34;18831:18;;;18824:62;-1:-1:-1;;;18902:18:1;;;18895:52;18964:19;;25067:152:0;18745:244:1;25067:152:0;25257:62;;-1:-1:-1;;;;;11651:32:1;;25257:62:0;;;11633:51:1;11700:18;;;11693:34;;;25230:90:0;;25250:5;;-1:-1:-1;;;25280:22:0;11606:18:1;;25257:62:0;11588:145:1;30428:98:0;30486:7;30513:5;30517:1;30513;:5;:::i;19073:195::-;19176:12;19208:52;19230:6;19238:4;19244:1;19247:12;19176;16522:20;;20369:60;;;;-1:-1:-1;;;20369:60:0;;17651:2:1;20369:60:0;;;17633:21:1;17690:2;17670:18;;;17663:30;17729:31;17709:18;;;17702:59;17778:18;;20369:60:0;17623:179:1;20369:60:0;20503:12;20517:23;20544:6;-1:-1:-1;;;;;20544:11:0;20564:5;20572:4;20544:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20502:75;;;;20595:52;20613:7;20622:10;20634:12;20595:17;:52::i;:::-;20588:59;20125:530;-1:-1:-1;;;;;;;20125:530:0:o;22665:742::-;22780:12;22809:7;22805:595;;;-1:-1:-1;22840:10:0;22833:17;;22805:595;22954:17;;:21;22950:439;;23217:10;23211:17;23278:15;23265:10;23261:2;23257:19;23250:44;23165:148;23360:12;23353:20;;-1:-1:-1;;;23353:20:0;;;;;;;;:::i;14:134:1:-;82:20;;111:31;82:20;111:31;:::i;:::-;63:85;;;:::o;153:768::-;207:5;260:3;253:4;245:6;241:17;237:27;227:2;;282:5;275;268:20;227:2;322:6;309:20;348:4;372:60;388:43;428:2;388:43;:::i;:::-;372:60;:::i;:::-;454:3;478:2;473:3;466:15;506:2;501:3;497:12;490:19;;541:2;533:6;529:15;593:3;588:2;582;579:1;575:10;567:6;563:23;559:32;556:41;553:2;;;614:5;607;600:20;553:2;640:5;654:238;668:2;665:1;662:9;654:238;;;739:3;726:17;756:31;781:5;756:31;:::i;:::-;800:18;;838:12;;;;870;;;;686:1;679:9;654:238;;;-1:-1:-1;910:5:1;;217:704;-1:-1:-1;;;;;;;217:704:1:o;926:1823::-;990:5;1043:3;1036:4;1028:6;1024:17;1020:27;1010:2;;1065:5;1058;1051:20;1010:2;1105:6;1092:20;1131:4;1155:60;1171:43;1211:2;1171:43;:::i;1155:60::-;1237:3;1261:2;1256:3;1249:15;1289:2;1284:3;1280:12;1273:19;;1324:2;1316:6;1312:15;1376:3;1371:2;1365;1362:1;1358:10;1350:6;1346:23;1342:32;1339:41;1336:2;;;1397:5;1390;1383:20;1336:2;1423:5;1437:1283;1451:2;1448:1;1445:9;1437:1283;;;1528:3;1515:17;1555:18;1605:2;1592:11;1589:19;1586:2;;;1625:5;1618;1611:20;1586:2;1656:24;;;;1703:4;1731:12;;;-1:-1:-1;;1727:26:1;1723:35;-1:-1:-1;1720:2:1;;;1775:5;1768;1761:20;1720:2;1809:22;;:::i;:::-;1881:2;1877;1873:11;1860:25;1914:2;1904:8;1901:16;1898:2;;;1934:5;1927;1920:20;1898:2;1969:61;2026:3;2021:2;2010:8;2006:2;2002:17;1998:26;1969:61;:::i;:::-;1962:5;1955:76;;2054:2;2106;2102;2098:11;2085:25;2139:2;2129:8;2126:16;2123:2;;;2159:5;2152;2145:20;2123:2;2203:61;2260:3;2255:2;2244:8;2240:2;2236:17;2232:26;2203:61;:::i;:::-;2198:2;2191:5;2187:14;2180:85;;2288:2;2278:12;;2347:2;2343;2339:11;2326:25;2321:2;2314:5;2310:14;2303:49;;2375:3;2414:31;2441:2;2437;2433:11;2414:31;:::i;:::-;2409:2;2402:5;2398:14;2391:55;2469:3;2459:13;;2508:44;2548:2;2544;2540:11;2508:44;:::i;:::-;2492:14;;;2485:68;2602:11;;2589:25;2573:14;;;2566:49;2628:18;;2666:12;;;;2698;;;;1469:1;1462:9;1437:1283;;2754:156;2835:20;;2884:1;2874:12;;2864:2;;2900:1;2897;2890:12;2915:257;2974:6;3027:2;3015:9;3006:7;3002:23;2998:32;2995:2;;;3048:6;3040;3033:22;2995:2;3092:9;3079:23;3111:31;3136:5;3111:31;:::i;3177:398::-;3245:6;3253;3306:2;3294:9;3285:7;3281:23;3277:32;3274:2;;;3327:6;3319;3312:22;3274:2;3371:9;3358:23;3390:31;3415:5;3390:31;:::i;:::-;3440:5;-1:-1:-1;3497:2:1;3482:18;;3469:32;3510:33;3469:32;3510:33;:::i;:::-;3562:7;3552:17;;;3264:311;;;;;:::o;3580:800::-;3675:6;3683;3691;3744:2;3732:9;3723:7;3719:23;3715:32;3712:2;;;3765:6;3757;3750:22;3712:2;3809:9;3796:23;3828:31;3853:5;3828:31;:::i;:::-;3878:5;-1:-1:-1;3934:2:1;3919:18;;3906:32;3957:18;3987:14;;;3984:2;;;4019:6;4011;4004:22;3984:2;4062:6;4051:9;4047:22;4037:32;;4107:7;4100:4;4096:2;4092:13;4088:27;4078:2;;4134:6;4126;4119:22;4078:2;4179;4166:16;4205:2;4197:6;4194:14;4191:2;;;4226:6;4218;4211:22;4191:2;4284:7;4279:2;4269:6;4266:1;4262:14;4258:2;4254:23;4250:32;4247:45;4244:2;;;4310:6;4302;4295:22;4244:2;4346;4342;4338:11;4328:21;;4368:6;4358:16;;;;;3702:678;;;;;:::o;4385:937::-;4480:6;4511:2;4554;4542:9;4533:7;4529:23;4525:32;4522:2;;;4575:6;4567;4560:22;4522:2;4613:9;4607:16;4646:18;4638:6;4635:30;4632:2;;;4683:6;4675;4668:22;4632:2;4711:22;;4764:4;4756:13;;4752:27;-1:-1:-1;4742:2:1;;4798:6;4790;4783:22;4742:2;4832;4826:9;4855:60;4871:43;4911:2;4871:43;:::i;4855:60::-;4937:3;4961:2;4956:3;4949:15;4989:2;4984:3;4980:12;4973:19;;5020:2;5016;5012:11;5068:7;5063:2;5057;5054:1;5050:10;5046:2;5042:19;5038:28;5035:41;5032:2;;;5094:6;5086;5079:22;5032:2;5121:6;5112:15;;5136:156;5150:2;5147:1;5144:9;5136:156;;;5207:10;;5195:23;;5168:1;5161:9;;;;;5238:12;;;;5270;;5136:156;;5327:297;5394:6;5447:2;5435:9;5426:7;5422:23;5418:32;5415:2;;;5468:6;5460;5453:22;5415:2;5505:9;5499:16;5558:5;5551:13;5544:21;5537:5;5534:32;5524:2;;5585:6;5577;5570:22;5629:1129;5726:6;5779:2;5767:9;5758:7;5754:23;5750:32;5747:2;;;5800:6;5792;5785:22;5747:2;5845:9;5832:23;5874:18;5915:2;5907:6;5904:14;5901:2;;;5936:6;5928;5921:22;5901:2;5964:22;;;;6020:4;6002:16;;;5998:27;5995:2;;;6043:6;6035;6028:22;5995:2;6074:22;;:::i;:::-;6133:2;6120:16;6145:33;6170:7;6145:33;:::i;:::-;6187:22;;6254:2;6246:11;;6233:25;6267:33;6233:25;6267:33;:::i;:::-;6327:2;6316:14;;6309:31;6386:2;6378:11;;6365:25;6402:16;;;6399:2;;;6436:6;6428;6421:22;6399:2;6477:66;6535:7;6524:8;6520:2;6516:17;6477:66;:::i;:::-;6472:2;6465:5;6461:14;6454:90;;6597:2;6593;6589:11;6576:25;6571:2;6564:5;6560:14;6553:49;6656:3;6652:2;6648:12;6635:26;6629:3;6622:5;6618:15;6611:51;6695:32;6722:3;6718:2;6714:12;6695:32;:::i;:::-;6689:3;6678:15;;6671:57;6682:5;5737:1021;-1:-1:-1;;;;;5737:1021:1:o;6763:194::-;6833:6;6886:2;6874:9;6865:7;6861:23;6857:32;6854:2;;;6907:6;6899;6892:22;6854:2;-1:-1:-1;6935:16:1;;6844:113;-1:-1:-1;6844:113:1:o;6962:293::-;7030:6;7083:2;7071:9;7062:7;7058:23;7054:32;7051:2;;;7104:6;7096;7089:22;7051:2;7141:9;7135:16;7191:4;7184:5;7180:16;7173:5;7170:27;7160:2;;7216:6;7208;7201:22;7260:463;7313:3;7351:5;7345:12;7378:6;7373:3;7366:19;7404:4;7433:2;7428:3;7424:12;7417:19;;7470:2;7463:5;7459:14;7491:3;7503:195;7517:6;7514:1;7511:13;7503:195;;;7582:13;;-1:-1:-1;;;;;7578:39:1;7566:52;;7638:12;;;;7673:15;;;;7614:1;7532:9;7503:195;;;-1:-1:-1;7714:3:1;;7321:402;-1:-1:-1;;;;;7321:402:1:o;7728:274::-;7857:3;7895:6;7889:13;7911:53;7957:6;7952:3;7945:4;7937:6;7933:17;7911:53;:::i;:::-;7980:16;;;;;7865:137;-1:-1:-1;;7865:137:1:o;9790:850::-;-1:-1:-1;;;;;10219:15:1;;;10201:34;;10271:15;;10266:2;10251:18;;10244:43;10318:2;10303:18;;10296:34;;;10361:2;10346:18;;10339:34;;;10151:3;10404;10389:19;;10382:31;;;10122:4;;10430:56;10467:18;;;10459:6;10430:56;:::i;:::-;10517:3;10502:19;;10495:35;;;;-1:-1:-1;;10574:14:1;;10567:22;10561:3;10546:19;;10539:51;10621:3;10606:19;;;10599:35;10422:64;10131:509;-1:-1:-1;;;;;10131:509:1:o;10645:809::-;-1:-1:-1;;;;;10941:15:1;;;10923:34;;10873:2;10976;10994:18;;;10987:30;;;10858:18;;;11052:22;;;10825:4;;11131:6;;11105:2;11090:18;;10825:4;11168:260;11182:6;11179:1;11176:13;11168:260;;;11257:6;11244:20;11277:31;11302:5;11277:31;:::i;:::-;11333:14;;11321:27;;11403:15;;;;11368:12;;;;11204:1;11197:9;11168:260;;;-1:-1:-1;11445:3:1;10834:620;-1:-1:-1;;;;;;;;10834:620:1:o;11738:656::-;12080:1;12076;12071:3;12067:11;12063:19;12055:6;12051:32;12040:9;12033:51;12120:6;12115:2;12104:9;12100:18;12093:34;12163:3;12158:2;12147:9;12143:18;12136:31;12014:4;12184:57;12236:3;12225:9;12221:19;12213:6;12184:57;:::i;:::-;12272:2;12257:18;;12250:34;;;;-1:-1:-1;12328:14:1;;12321:22;12315:3;12300:19;;12293:51;12375:3;12360:19;;;12353:35;12176:65;12023:371;-1:-1:-1;;;12023:371:1:o;12399:728::-;12769:1;12765;12760:3;12756:11;12752:19;12744:6;12740:32;12729:9;12722:51;12809:6;12804:2;12793:9;12789:18;12782:34;12852:6;12847:2;12836:9;12832:18;12825:34;12895:3;12890:2;12879:9;12875:18;12868:31;12703:4;12916:57;12968:3;12957:9;12953:19;12945:6;12916:57;:::i;:::-;13004:3;12989:19;;12982:35;;;;-1:-1:-1;13061:14:1;;13054:22;13048:3;13033:19;;13026:51;13108:3;13093:19;;;13086:35;12908:65;12712:415;-1:-1:-1;;;;12712:415:1:o;13752:383::-;13901:2;13890:9;13883:21;13864:4;13933:6;13927:13;13976:6;13971:2;13960:9;13956:18;13949:34;13992:66;14051:6;14046:2;14035:9;14031:18;14026:2;14018:6;14014:15;13992:66;:::i;:::-;14119:2;14098:15;-1:-1:-1;;14094:29:1;14079:45;;;;14126:2;14075:54;;13873:262;-1:-1:-1;;13873:262:1:o;19176:502::-;19439:6;19428:9;19421:25;19482:3;19477:2;19466:9;19462:18;19455:31;19402:4;19503:57;19555:3;19544:9;19540:19;19532:6;19503:57;:::i;:::-;-1:-1:-1;;;;;19596:32:1;;;;19591:2;19576:18;;19569:60;-1:-1:-1;19660:2:1;19645:18;19638:34;19495:65;19411:267;-1:-1:-1;;19411:267:1:o;19936:574::-;20227:6;20216:9;20209:25;20270:6;20265:2;20254:9;20250:18;20243:34;20313:3;20308:2;20297:9;20293:18;20286:31;20190:4;20334:57;20386:3;20375:9;20371:19;20363:6;20334:57;:::i;:::-;-1:-1:-1;;;;;20427:32:1;;;;20422:2;20407:18;;20400:60;-1:-1:-1;20491:3:1;20476:19;20469:35;20326:65;20199:311;-1:-1:-1;;;20199:311:1:o;20997:253::-;21069:2;21063:9;21111:4;21099:17;;21146:18;21131:34;;21167:22;;;21128:62;21125:2;;;21193:18;;:::i;:::-;21229:2;21222:22;21043:207;:::o;21255:275::-;21326:2;21320:9;21391:2;21372:13;;-1:-1:-1;;21368:27:1;21356:40;;21426:18;21411:34;;21447:22;;;21408:62;21405:2;;;21473:18;;:::i;:::-;21509:2;21502:22;21300:230;;-1:-1:-1;21300:230:1:o;21535:183::-;21595:4;21628:18;21620:6;21617:30;21614:2;;;21650:18;;:::i;:::-;-1:-1:-1;21695:1:1;21691:14;21707:4;21687:25;;21604:114::o;21723:217::-;21763:1;21789;21779:2;;-1:-1:-1;;;21814:31:1;;21868:4;21865:1;21858:15;21896:4;21821:1;21886:15;21779:2;-1:-1:-1;21925:9:1;;21769:171::o;21945:168::-;21985:7;22051:1;22047;22043:6;22039:14;22036:1;22033:21;22028:1;22021:9;22014:17;22010:45;22007:2;;;22058:18;;:::i;:::-;-1:-1:-1;22098:9:1;;21997:116::o;22118:125::-;22158:4;22186:1;22183;22180:8;22177:2;;;22191:18;;:::i;:::-;-1:-1:-1;22228:9:1;;22167:76::o;22248:258::-;22320:1;22330:113;22344:6;22341:1;22338:13;22330:113;;;22420:11;;;22414:18;22401:11;;;22394:39;22366:2;22359:10;22330:113;;;22461:6;22458:1;22455:13;22452:2;;;-1:-1:-1;;22496:1:1;22478:16;;22471:27;22301:205::o;22511:211::-;22549:3;22597:5;22593:2;22582:21;22627:34;22618:7;22615:47;22612:2;;;22665:18;;:::i;:::-;22714:1;22701:15;;22557:165;-1:-1:-1;;22557:165:1:o;22727:135::-;22766:3;-1:-1:-1;;22787:17:1;;22784:2;;;22807:18;;:::i;:::-;-1:-1:-1;22854:1:1;22843:13;;22774:88::o;22867:127::-;22928:10;22923:3;22919:20;22916:1;22909:31;22959:4;22956:1;22949:15;22983:4;22980:1;22973:15;22999:127;23060:10;23055:3;23051:20;23048:1;23041:31;23091:4;23088:1;23081:15;23115:4;23112:1;23105:15;23131:131;-1:-1:-1;;;;;23206:31:1;;23196:42;;23186:2;;23252:1;23249;23242:12;23186:2;23176:86;:::o
Swarm Source
ipfs://cfdf0b20ff8c56980fea2b38db87ce1139c0a431385c60b9c2b49f2ba12cc74a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.