Source Code
Latest 25 from a total of 858 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Swap | 16017053 | 1191 days ago | IN | 0 ETH | 0.00222499 | ||||
| Swap | 16015000 | 1191 days ago | IN | 1.49228 ETH | 0.00592541 | ||||
| Swap | 16013007 | 1191 days ago | IN | 0.07318041 ETH | 0.00179364 | ||||
| Swap | 16010826 | 1192 days ago | IN | 0 ETH | 0.00274496 | ||||
| Swap | 16010772 | 1192 days ago | IN | 0.50456999 ETH | 0.00393718 | ||||
| Swap | 16009522 | 1192 days ago | IN | 1 ETH | 0.00711501 | ||||
| Swap | 16006821 | 1192 days ago | IN | 0.2 ETH | 0.00258663 | ||||
| Swap | 16006285 | 1192 days ago | IN | 0 ETH | 0.00264092 | ||||
| Swap | 16006282 | 1192 days ago | IN | 0 ETH | 0.00323977 | ||||
| Swap | 16006087 | 1192 days ago | IN | 0 ETH | 0.00358216 | ||||
| Swap | 16004999 | 1193 days ago | IN | 0.05278869 ETH | 0.00279659 | ||||
| Swap | 16004996 | 1193 days ago | IN | 0.03647576 ETH | 0.00256659 | ||||
| Swap | 16004994 | 1193 days ago | IN | 0.05676528 ETH | 0.00273552 | ||||
| Swap | 16004992 | 1193 days ago | IN | 0.05878908 ETH | 0.0026984 | ||||
| Swap | 16004822 | 1193 days ago | IN | 0.35 ETH | 0.0039163 | ||||
| Swap | 16004797 | 1193 days ago | IN | 0 ETH | 0.0027517 | ||||
| Swap | 16004788 | 1193 days ago | IN | 0.35 ETH | 0.00240649 | ||||
| Swap | 16004667 | 1193 days ago | IN | 0 ETH | 0.00272921 | ||||
| Swap | 16004623 | 1193 days ago | IN | 0 ETH | 0.00348662 | ||||
| Swap | 16004548 | 1193 days ago | IN | 0.34 ETH | 0.00290547 | ||||
| Swap | 16004517 | 1193 days ago | IN | 0 ETH | 0.00275449 | ||||
| Swap | 16004498 | 1193 days ago | IN | 0 ETH | 0.00415618 | ||||
| Swap | 16003931 | 1193 days ago | IN | 0 ETH | 0.00321609 | ||||
| Swap | 16003899 | 1193 days ago | IN | 0 ETH | 0.00321435 | ||||
| Swap | 16003897 | 1193 days ago | IN | 0 ETH | 0.00321478 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 16017053 | 1191 days ago | 0.07762898 ETH | ||||
| Transfer | 16017053 | 1191 days ago | 0.07762898 ETH | ||||
| Swap | 16015000 | 1191 days ago | 1.49228 ETH | ||||
| Unoswap | 16013007 | 1191 days ago | 0.07318041 ETH | ||||
| Transfer | 16010826 | 1192 days ago | 0.06142847 ETH | ||||
| Transfer | 16010826 | 1192 days ago | 0.06142847 ETH | ||||
| Unoswap | 16010772 | 1192 days ago | 0.50456999 ETH | ||||
| Swap | 16009522 | 1192 days ago | 1 ETH | ||||
| Unoswap | 16006821 | 1192 days ago | 0.2 ETH | ||||
| Transfer | 16006285 | 1192 days ago | 0.21174676 ETH | ||||
| Transfer | 16006285 | 1192 days ago | 0.21174676 ETH | ||||
| Transfer | 16006282 | 1192 days ago | 0.21174676 ETH | ||||
| Unoswap | 16004999 | 1193 days ago | 0.05278869 ETH | ||||
| Unoswap | 16004996 | 1193 days ago | 0.03647576 ETH | ||||
| Unoswap | 16004994 | 1193 days ago | 0.05676528 ETH | ||||
| Unoswap | 16004992 | 1193 days ago | 0.05878908 ETH | ||||
| Unoswap | 16004822 | 1193 days ago | 0.35 ETH | ||||
| Transfer | 16004797 | 1193 days ago | 0.3834482 ETH | ||||
| Transfer | 16004797 | 1193 days ago | 0.3834482 ETH | ||||
| Unoswap | 16004788 | 1193 days ago | 0.35 ETH | ||||
| Transfer | 16004667 | 1193 days ago | 0.38688404 ETH | ||||
| Transfer | 16004667 | 1193 days ago | 0.38688404 ETH | ||||
| Transfer | 16004623 | 1193 days ago | 0.32222181 ETH | ||||
| Unoswap | 16004548 | 1193 days ago | 0.34 ETH | ||||
| Transfer | 16004517 | 1193 days ago | 0.35990756 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
VarenRouter
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
No with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IGatewayRegistry.sol";
import "@openzeppelin/contracts/utils/Address.sol";
contract VarenRouter is ReentrancyGuard {
using SafeERC20 for IERC20;
address public constant ETH_REPRESENTING_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
uint256 public FEE = 50;
uint256 public constant PERCENTAGE_DIVIDER = 100_000;
IGatewayRegistry public registry;
address public router;
address payable public devWallet;
// Swap info to avoid the stack too deep error
struct SwapVars {
address srcToken;
uint256 srcAmount;
address destToken;
bytes data;
}
// Memory variables
struct Vars {
uint256 mintedAmount;
uint256 swappedAmount;
}
struct BurnVars {
uint256 burnAmount;
address burnToken;
bytes burnSendTo;
bool shouldTakeFee;
}
// Events
event Mint(address indexed sender, uint256 amount);
event Burn(address indexed sender, uint256 amount);
event Swap(address indexed sender, address indexed from, address indexed to, uint256 amount);
constructor(
address _router,
address _registry,
address payable _devWallet
) {
router = _router;
registry = IGatewayRegistry(_registry);
devWallet = _devWallet;
}
function swap(
//// protected
address sender,
//// unprotected
// Mint
address mintToken,
// Burn
address burnToken,
uint256 burnAmount,
bytes calldata burnSendTo,
//// 1inch
SwapVars calldata swapVars,
//// renvm for minting
uint256 _amount,
bytes32 _nHash,
bytes calldata _sig
) external payable nonReentrant {
require(msg.sender == sender, "The caller is unknown");
require(burnToken != mintToken || mintToken == address(0), "Cannot mint and burn the same token");
// To prevent the stack too deep error
Vars memory vars;
if (mintToken != address(0)) {
vars.mintedAmount = mintRenToken(mintToken, sender, _amount, _nHash, _sig);
}
if (swapVars.data.length > 0) {
vars.swappedAmount = _swap(mintToken, swapVars, vars.mintedAmount);
}
if (burnToken == address(0)) {
transferTokenOrETH(vars.swappedAmount, swapVars, vars.mintedAmount, mintToken);
} else {
burnRenToken(vars.swappedAmount, BurnVars(burnAmount, burnToken, burnSendTo, mintToken == address(0)));
}
}
function mintRenToken(
address mintToken,
address sender,
uint256 _amount,
bytes32 _nHash,
bytes calldata _sig
) private returns (uint256 mintedAmount) {
// Minting ren token
uint256 currentMintTokenBalance = currentBalance(mintToken);
bytes32 pHash = keccak256(abi.encode(sender));
registry.getGatewayByToken(mintToken).mint(pHash, _amount, _nHash, _sig);
mintedAmount = currentBalance(mintToken) - currentMintTokenBalance;
uint256 fee = (mintedAmount * FEE) / PERCENTAGE_DIVIDER;
mintedAmount = mintedAmount - fee;
IERC20(mintToken).transfer(devWallet, fee);
emit Mint(sender, mintedAmount);
}
function _swap(
address mintToken,
SwapVars memory swapVars,
uint256 mintedAmount
) private returns (uint256 swappedAmount) {
if (mintToken == address(0)) {
// The token that need to be swapped is not on the contract right now
// We either need to use ETH or we need to transfer the token to the contract
if (swapVars.srcToken != ETH_REPRESENTING_ADDRESS) {
// The source is ERC20 token, need to transfer it to the contract
// Assuming UI already asked the user to approve the token
IERC20(swapVars.srcToken).safeTransferFrom(msg.sender, address(this), swapVars.srcAmount);
}
}
// else token is in the contract because of the minting process or the user sent ETH
// Saving ref to current balance of destination token to know how much was swapped
uint256 currentDestTokenBalance = swapVars.destToken != ETH_REPRESENTING_ADDRESS
? currentBalance(swapVars.destToken)
: address(this).balance;
// Executing the swap
if (swapVars.srcToken != ETH_REPRESENTING_ADDRESS) {
// Approving token only if needed for gas efficiency
if (IERC20(swapVars.srcToken).allowance(address(this), router) < swapVars.srcAmount) {
IERC20(swapVars.srcToken).approve(router, type(uint256).max);
}
// Swapping
Address.functionCall(router, swapVars.data);
} else {
// Sending ETH
Address.functionCallWithValue(router, swapVars.data, msg.value);
}
// How much was swapped
swappedAmount = swapVars.destToken != ETH_REPRESENTING_ADDRESS
? currentBalance(swapVars.destToken) - currentDestTokenBalance
: address(this).balance - currentDestTokenBalance;
if (mintedAmount > swapVars.srcAmount) {
// Some dust may have remain, or the user sent too much funds to the external chain but decided to mint only half
IERC20(swapVars.srcToken).safeTransfer(address(this), mintedAmount - swapVars.srcAmount);
}
emit Swap(msg.sender, swapVars.srcToken, swapVars.destToken, swappedAmount);
}
function burnRenToken(uint256 swappedAmount, BurnVars memory burnVars) private {
// If there was a swap then sending the swapped amount since it is the most accurate number
// (taking into account, min value, slippage and such)
// If there wasn't a swap, then using the burnAmount
// No need to check minted amount since can't mint and burn the same token
uint256 amountToBurn = swappedAmount > 0 ? swappedAmount : burnVars.burnAmount;
if (swappedAmount == 0) {
// Since no swap was made, need to transfer the renToken to the contract
IERC20(burnVars.burnToken).safeTransferFrom(msg.sender, address(this), amountToBurn);
}
if (burnVars.shouldTakeFee) {
// No mint, taking fee
uint256 fee = (amountToBurn * FEE) / PERCENTAGE_DIVIDER;
amountToBurn = amountToBurn - fee;
IERC20(burnVars.burnToken).transfer(devWallet, fee);
}
registry.getGatewayByToken(burnVars.burnToken).burn(burnVars.burnSendTo, amountToBurn);
emit Burn(msg.sender, amountToBurn);
}
function transferTokenOrETH(
uint256 swappedAmount,
SwapVars memory swapVars,
uint256 mintedAmount,
address mintToken
) private {
if (swappedAmount > 0) {
// There was a swap
if (swapVars.destToken != ETH_REPRESENTING_ADDRESS) {
// Transfer the destination token to the user
IERC20(swapVars.destToken).safeTransfer(msg.sender, swappedAmount);
} else {
// Transfer the ETH to the user
safeTransferETH(msg.sender, swappedAmount);
}
} else if (mintedAmount > 0) {
// Transfer the minted token to the user
IERC20(mintToken).safeTransfer(msg.sender, mintedAmount);
}
}
function safeTransferETH(address to, uint256 value) private {
payable(to).transfer(value);
}
function currentBalance(address _token) public view returns (uint256 balance) {
balance = IERC20(_token).balanceOf(address(this));
}
receive() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IGateway.sol";
interface IGatewayRegistry {
/// @notice Returns the Gateway contract for the given RenERC20
/// address.
///
/// @param _tokenAddress The address of the RenERC20 contract.
function getGatewayByToken(address _tokenAddress) external view returns (IGateway);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
interface IGateway {
function mint(
bytes32 _pHash,
uint256 _amount,
bytes32 _nHash,
bytes calldata _sig
) external returns (uint256);
function burn(bytes calldata _to, uint256 _amount) external returns (uint256);
}{
"optimizer": {
"enabled": false,
"runs": 2000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_registry","type":"address"},{"internalType":"address payable","name":"_devWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[],"name":"ETH_REPRESENTING_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_DIVIDER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"currentBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"contract IGatewayRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"mintToken","type":"address"},{"internalType":"address","name":"burnToken","type":"address"},{"internalType":"uint256","name":"burnAmount","type":"uint256"},{"internalType":"bytes","name":"burnSendTo","type":"bytes"},{"components":[{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"address","name":"destToken","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct VarenRouter.SwapVars","name":"swapVars","type":"tuple"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32","name":"_nHash","type":"bytes32"},{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"swap","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405260326001553480156200001657600080fd5b50604051620026533803806200265383398181016040528101906200003c91906200013e565b600160008190555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200021b565b6000815190506200012181620001e7565b92915050565b600081519050620001388162000201565b92915050565b6000806000606084860312156200015a5762000159620001e2565b5b60006200016a8682870162000110565b93505060206200017d8682870162000110565b9250506040620001908682870162000127565b9150509250925092565b6000620001a782620001c2565b9050919050565b6000620001bb82620001c2565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620001f2816200019a565b8114620001fe57600080fd5b50565b6200020c81620001ae565b81146200021857600080fd5b50565b612428806200022b6000396000f3fe60806040526004361061007f5760003560e01c8063bb60aaa71161004e578063bb60aaa714610149578063c57981b514610174578063d4142b5f1461019f578063f887ea40146101bb57610086565b806306693fec1461008b5780637b103999146100b65780638ea5220f146100e15780639e546c381461010c57610086565b3661008657005b600080fd5b34801561009757600080fd5b506100a06101e6565b6040516100ad9190611b85565b60405180910390f35b3480156100c257600080fd5b506100cb6101fe565b6040516100d89190611ceb565b60405180910390f35b3480156100ed57600080fd5b506100f6610224565b6040516101039190611ba0565b60405180910390f35b34801561011857600080fd5b50610133600480360381019061012e9190611796565b61024a565b6040516101409190611de8565b60405180910390f35b34801561015557600080fd5b5061015e6102dc565b60405161016b9190611de8565b60405180910390f35b34801561018057600080fd5b506101896102e3565b6040516101969190611de8565b60405180910390f35b6101b960048036038101906101b491906117c3565b6102e9565b005b3480156101c757600080fd5b506101d0610602565b6040516101dd9190611b85565b60405180910390f35b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102859190611b85565b60206040518083038186803b15801561029d57600080fd5b505afa1580156102b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d59190611945565b9050919050565b620186a081565b60015481565b6002600054141561032f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032690611dc8565b60405180910390fd5b60026000819055508a73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039c90611d48565b60405180910390fd5b8973ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614158061040c5750600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16145b61044b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161044290611d68565b60405180910390fd5b610453611585565b600073ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161461049f576104958b8d87878787610628565b8160000181815250505b60008680606001906104b19190611e03565b905011156104db576104d18b876104c79061206a565b83600001516108ee565b8160200181815250505b600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614156105325761052d8160200151876105229061206a565b83600001518e610d9e565b6105ec565b6105eb816020015160405180608001604052808c81526020018d73ffffffffffffffffffffffffffffffffffffffff1681526020018b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152602001600073ffffffffffffffffffffffffffffffffffffffff168f73ffffffffffffffffffffffffffffffffffffffff16141515815250610e72565b5b5060016000819055505050505050505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806106348861024a565b90506000876040516020016106499190611b85565b604051602081830303815290604052805190602001209050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631b95e3058a6040518263ffffffff1660e01b81526004016106bc9190611b85565b60206040518083038186803b1580156106d457600080fd5b505afa1580156106e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070c9190611918565b73ffffffffffffffffffffffffffffffffffffffff1663159ab14d82898989896040518663ffffffff1660e01b815260040161074c959493929190611c6d565b602060405180830381600087803b15801561076657600080fd5b505af115801561077a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079e9190611945565b50816107a98a61024a565b6107b39190611f8a565b92506000620186a0600154856107c99190611f30565b6107d39190611eff565b905080846107e19190611f8a565b93508973ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610840929190611bbb565b602060405180830381600087803b15801561085a57600080fd5b505af115801561086e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089291906118eb565b508873ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885856040516108d99190611de8565b60405180910390a25050509695505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156109a65773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146109a5576109a433308560200151866000015173ffffffffffffffffffffffffffffffffffffffff16611145909392919063ffffffff16565b5b5b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16846040015173ffffffffffffffffffffffffffffffffffffffff1614156109fa5747610a08565b610a07846040015161024a565b5b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16846000015173ffffffffffffffffffffffffffffffffffffffff1614610c1c578360200151846000015173ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518363ffffffff1660e01b8152600401610abb929190611be4565b60206040518083038186803b158015610ad357600080fd5b505afa158015610ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0b9190611945565b1015610be657836000015173ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610b92929190611c44565b602060405180830381600087803b158015610bac57600080fd5b505af1158015610bc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be491906118eb565b505b610c16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685606001516111ce565b50610c4f565b610c4d600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856060015134611218565b505b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16846040015173ffffffffffffffffffffffffffffffffffffffff161415610cac578047610ca79190611f8a565b610cc5565b80610cba856040015161024a565b610cc49190611f8a565b5b91508360200151831115610d1257610d1130856020015185610ce79190611f8a565b866000015173ffffffffffffffffffffffffffffffffffffffff166112479092919063ffffffff16565b5b836040015173ffffffffffffffffffffffffffffffffffffffff16846000015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fffebebfb273923089a3ed6bac0fd4686ac740307859becadeb82f998e30db61485604051610d8e9190611de8565b60405180910390a4509392505050565b6000841115610e365773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16836040015173ffffffffffffffffffffffffffffffffffffffff1614610e2657610e213385856040015173ffffffffffffffffffffffffffffffffffffffff166112479092919063ffffffff16565b610e31565b610e3033856112cd565b5b610e6c565b6000821115610e6b57610e6a33838373ffffffffffffffffffffffffffffffffffffffff166112479092919063ffffffff16565b5b5b50505050565b6000808311610e85578160000151610e87565b825b90506000831415610ec457610ec3333083856020015173ffffffffffffffffffffffffffffffffffffffff16611145909392919063ffffffff16565b5b816060015115610fb2576000620186a060015483610ee29190611f30565b610eec9190611eff565b90508082610efa9190611f8a565b9150826020015173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610f5d929190611bbb565b602060405180830381600087803b158015610f7757600080fd5b505af1158015610f8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610faf91906118eb565b50505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631b95e30583602001516040518263ffffffff1660e01b81526004016110119190611b85565b60206040518083038186803b15801561102957600080fd5b505afa15801561103d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110619190611918565b73ffffffffffffffffffffffffffffffffffffffff166338463cff8360400151836040518363ffffffff1660e01b815260040161109f929190611cbb565b602060405180830381600087803b1580156110b957600080fd5b505af11580156110cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f19190611945565b503373ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5826040516111389190611de8565b60405180910390a2505050565b6111c8846323b872dd60e01b85858560405160240161116693929190611c0d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611318565b50505050565b606061121083836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c656400008152506113df565b905092915050565b606061123e8484846040518060600160405280602981526020016123ca602991396113f7565b90509392505050565b6112c88363a9059cbb60e01b8484604051602401611266929190611c44565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611318565b505050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611313573d6000803e3d6000fd5b505050565b600061137a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166113df9092919063ffffffff16565b90506000815111156113da578080602001905181019061139a91906118eb565b6113d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d090611da8565b60405180910390fd5b5b505050565b60606113ee84846000856113f7565b90509392505050565b60608247101561143c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143390611d28565b60405180910390fd5b6114458561150b565b611484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147b90611d88565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114ad9190611b6e565b60006040518083038185875af1925050503d80600081146114ea576040519150601f19603f3d011682016040523d82523d6000602084013e6114ef565b606091505b50915091506114ff82828661151e565b92505050949350505050565b600080823b905060008111915050919050565b6060831561152e5782905061157e565b6000835111156115415782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115759190611d06565b60405180910390fd5b9392505050565b604051806040016040528060008152602001600081525090565b60006115b26115ad84611e8b565b611e66565b9050828152602081018484840111156115ce576115cd6121ce565b5b6115d98482856120a1565b509392505050565b6000813590506115f081612356565b92915050565b6000815190506116058161236d565b92915050565b60008135905061161a81612384565b92915050565b60008083601f840112611636576116356121a6565b5b8235905067ffffffffffffffff811115611653576116526121a1565b5b60208301915083600182028301111561166f5761166e6121c4565b5b9250929050565b600082601f83011261168b5761168a6121a6565b5b813561169b84826020860161159f565b91505092915050565b6000815190506116b38161239b565b92915050565b6000608082840312156116cf576116ce6121b0565b5b81905092915050565b6000608082840312156116ee576116ed6121b5565b5b6116f86080611e66565b90506000611708848285016115e1565b600083015250602061171c8482850161176c565b6020830152506040611730848285016115e1565b604083015250606082013567ffffffffffffffff811115611754576117536121bf565b5b61176084828501611676565b60608301525092915050565b60008135905061177b816123b2565b92915050565b600081519050611790816123b2565b92915050565b6000602082840312156117ac576117ab6121d8565b5b60006117ba848285016115e1565b91505092915050565b60008060008060008060008060008060006101208c8e0312156117e9576117e86121d8565b5b60006117f78e828f016115e1565b9b505060206118088e828f016115e1565b9a505060406118198e828f016115e1565b995050606061182a8e828f0161176c565b98505060808c013567ffffffffffffffff81111561184b5761184a6121d3565b5b6118578e828f01611620565b975097505060a08c013567ffffffffffffffff81111561187a576118796121d3565b5b6118868e828f016116b9565b95505060c06118978e828f0161176c565b94505060e06118a88e828f0161160b565b9350506101008c013567ffffffffffffffff8111156118ca576118c96121d3565b5b6118d68e828f01611620565b92509250509295989b509295989b9093969950565b600060208284031215611901576119006121d8565b5b600061190f848285016115f6565b91505092915050565b60006020828403121561192e5761192d6121d8565b5b600061193c848285016116a4565b91505092915050565b60006020828403121561195b5761195a6121d8565b5b600061196984828501611781565b91505092915050565b61197b81612034565b82525050565b61198a81611fd0565b82525050565b61199981611fbe565b82525050565b6119a881611fee565b82525050565b60006119ba8385611ed2565b93506119c78385846120a1565b6119d0836121dd565b840190509392505050565b60006119e682611ebc565b6119f08185611ed2565b9350611a008185602086016120b0565b611a09816121dd565b840191505092915050565b6000611a1f82611ebc565b611a298185611ee3565b9350611a398185602086016120b0565b80840191505092915050565b611a4e81612046565b82525050565b6000611a5f82611ec7565b611a698185611eee565b9350611a798185602086016120b0565b611a82816121dd565b840191505092915050565b6000611a9a602683611eee565b9150611aa5826121ee565b604082019050919050565b6000611abd601583611eee565b9150611ac88261223d565b602082019050919050565b6000611ae0602383611eee565b9150611aeb82612266565b604082019050919050565b6000611b03601d83611eee565b9150611b0e826122b5565b602082019050919050565b6000611b26602a83611eee565b9150611b31826122de565b604082019050919050565b6000611b49601f83611eee565b9150611b548261232d565b602082019050919050565b611b688161202a565b82525050565b6000611b7a8284611a14565b915081905092915050565b6000602082019050611b9a6000830184611990565b92915050565b6000602082019050611bb56000830184611981565b92915050565b6000604082019050611bd06000830185611972565b611bdd6020830184611b5f565b9392505050565b6000604082019050611bf96000830185611990565b611c066020830184611990565b9392505050565b6000606082019050611c226000830186611990565b611c2f6020830185611990565b611c3c6040830184611b5f565b949350505050565b6000604082019050611c596000830185611990565b611c666020830184611b5f565b9392505050565b6000608082019050611c82600083018861199f565b611c8f6020830187611b5f565b611c9c604083018661199f565b8181036060830152611caf8184866119ae565b90509695505050505050565b60006040820190508181036000830152611cd581856119db565b9050611ce46020830184611b5f565b9392505050565b6000602082019050611d006000830184611a45565b92915050565b60006020820190508181036000830152611d208184611a54565b905092915050565b60006020820190508181036000830152611d4181611a8d565b9050919050565b60006020820190508181036000830152611d6181611ab0565b9050919050565b60006020820190508181036000830152611d8181611ad3565b9050919050565b60006020820190508181036000830152611da181611af6565b9050919050565b60006020820190508181036000830152611dc181611b19565b9050919050565b60006020820190508181036000830152611de181611b3c565b9050919050565b6000602082019050611dfd6000830184611b5f565b92915050565b60008083356001602003843603038112611e2057611e1f6121ba565b5b80840192508235915067ffffffffffffffff821115611e4257611e416121ab565b5b602083019250600182023603831315611e5e57611e5d6121c9565b5b509250929050565b6000611e70611e81565b9050611e7c82826120e3565b919050565b6000604051905090565b600067ffffffffffffffff821115611ea657611ea5612172565b5b611eaf826121dd565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611f0a8261202a565b9150611f158361202a565b925082611f2557611f24612143565b5b828204905092915050565b6000611f3b8261202a565b9150611f468361202a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611f7f57611f7e612114565b5b828202905092915050565b6000611f958261202a565b9150611fa08361202a565b925082821015611fb357611fb2612114565b5b828203905092915050565b6000611fc98261200a565b9050919050565b6000611fdb8261200a565b9050919050565b60008115159050919050565b6000819050919050565b600061200382611fbe565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061203f8261207d565b9050919050565b600061205182612058565b9050919050565b60006120638261200a565b9050919050565b600061207636836116d8565b9050919050565b60006120888261208f565b9050919050565b600061209a8261200a565b9050919050565b82818337600083830152505050565b60005b838110156120ce5780820151818401526020810190506120b3565b838111156120dd576000848401525b50505050565b6120ec826121dd565b810181811067ffffffffffffffff8211171561210b5761210a612172565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5468652063616c6c657220697320756e6b6e6f776e0000000000000000000000600082015250565b7f43616e6e6f74206d696e7420616e64206275726e207468652073616d6520746f60008201527f6b656e0000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61235f81611fbe565b811461236a57600080fd5b50565b61237681611fe2565b811461238157600080fd5b50565b61238d81611fee565b811461239857600080fd5b50565b6123a481611ff8565b81146123af57600080fd5b50565b6123bb8161202a565b81146123c657600080fd5b5056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209e54f45645663384b10cd148769eeb90b56aff90a92a5595d26cac51a335209664736f6c634300080600330000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d000000000000000000000000f36666c230fa12333579b9bd6196cb634d6bc50600000000000000000000000081b74adc3307a9f4370075de0e561ea49b1703ef
Deployed Bytecode
0x60806040526004361061007f5760003560e01c8063bb60aaa71161004e578063bb60aaa714610149578063c57981b514610174578063d4142b5f1461019f578063f887ea40146101bb57610086565b806306693fec1461008b5780637b103999146100b65780638ea5220f146100e15780639e546c381461010c57610086565b3661008657005b600080fd5b34801561009757600080fd5b506100a06101e6565b6040516100ad9190611b85565b60405180910390f35b3480156100c257600080fd5b506100cb6101fe565b6040516100d89190611ceb565b60405180910390f35b3480156100ed57600080fd5b506100f6610224565b6040516101039190611ba0565b60405180910390f35b34801561011857600080fd5b50610133600480360381019061012e9190611796565b61024a565b6040516101409190611de8565b60405180910390f35b34801561015557600080fd5b5061015e6102dc565b60405161016b9190611de8565b60405180910390f35b34801561018057600080fd5b506101896102e3565b6040516101969190611de8565b60405180910390f35b6101b960048036038101906101b491906117c3565b6102e9565b005b3480156101c757600080fd5b506101d0610602565b6040516101dd9190611b85565b60405180910390f35b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102859190611b85565b60206040518083038186803b15801561029d57600080fd5b505afa1580156102b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d59190611945565b9050919050565b620186a081565b60015481565b6002600054141561032f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032690611dc8565b60405180910390fd5b60026000819055508a73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039c90611d48565b60405180910390fd5b8973ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614158061040c5750600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16145b61044b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161044290611d68565b60405180910390fd5b610453611585565b600073ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161461049f576104958b8d87878787610628565b8160000181815250505b60008680606001906104b19190611e03565b905011156104db576104d18b876104c79061206a565b83600001516108ee565b8160200181815250505b600073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614156105325761052d8160200151876105229061206a565b83600001518e610d9e565b6105ec565b6105eb816020015160405180608001604052808c81526020018d73ffffffffffffffffffffffffffffffffffffffff1681526020018b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152602001600073ffffffffffffffffffffffffffffffffffffffff168f73ffffffffffffffffffffffffffffffffffffffff16141515815250610e72565b5b5060016000819055505050505050505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806106348861024a565b90506000876040516020016106499190611b85565b604051602081830303815290604052805190602001209050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631b95e3058a6040518263ffffffff1660e01b81526004016106bc9190611b85565b60206040518083038186803b1580156106d457600080fd5b505afa1580156106e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070c9190611918565b73ffffffffffffffffffffffffffffffffffffffff1663159ab14d82898989896040518663ffffffff1660e01b815260040161074c959493929190611c6d565b602060405180830381600087803b15801561076657600080fd5b505af115801561077a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079e9190611945565b50816107a98a61024a565b6107b39190611f8a565b92506000620186a0600154856107c99190611f30565b6107d39190611eff565b905080846107e19190611f8a565b93508973ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610840929190611bbb565b602060405180830381600087803b15801561085a57600080fd5b505af115801561086e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089291906118eb565b508873ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885856040516108d99190611de8565b60405180910390a25050509695505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156109a65773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146109a5576109a433308560200151866000015173ffffffffffffffffffffffffffffffffffffffff16611145909392919063ffffffff16565b5b5b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16846040015173ffffffffffffffffffffffffffffffffffffffff1614156109fa5747610a08565b610a07846040015161024a565b5b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16846000015173ffffffffffffffffffffffffffffffffffffffff1614610c1c578360200151846000015173ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518363ffffffff1660e01b8152600401610abb929190611be4565b60206040518083038186803b158015610ad357600080fd5b505afa158015610ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0b9190611945565b1015610be657836000015173ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610b92929190611c44565b602060405180830381600087803b158015610bac57600080fd5b505af1158015610bc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be491906118eb565b505b610c16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685606001516111ce565b50610c4f565b610c4d600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856060015134611218565b505b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16846040015173ffffffffffffffffffffffffffffffffffffffff161415610cac578047610ca79190611f8a565b610cc5565b80610cba856040015161024a565b610cc49190611f8a565b5b91508360200151831115610d1257610d1130856020015185610ce79190611f8a565b866000015173ffffffffffffffffffffffffffffffffffffffff166112479092919063ffffffff16565b5b836040015173ffffffffffffffffffffffffffffffffffffffff16846000015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fffebebfb273923089a3ed6bac0fd4686ac740307859becadeb82f998e30db61485604051610d8e9190611de8565b60405180910390a4509392505050565b6000841115610e365773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff16836040015173ffffffffffffffffffffffffffffffffffffffff1614610e2657610e213385856040015173ffffffffffffffffffffffffffffffffffffffff166112479092919063ffffffff16565b610e31565b610e3033856112cd565b5b610e6c565b6000821115610e6b57610e6a33838373ffffffffffffffffffffffffffffffffffffffff166112479092919063ffffffff16565b5b5b50505050565b6000808311610e85578160000151610e87565b825b90506000831415610ec457610ec3333083856020015173ffffffffffffffffffffffffffffffffffffffff16611145909392919063ffffffff16565b5b816060015115610fb2576000620186a060015483610ee29190611f30565b610eec9190611eff565b90508082610efa9190611f8a565b9150826020015173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610f5d929190611bbb565b602060405180830381600087803b158015610f7757600080fd5b505af1158015610f8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610faf91906118eb565b50505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631b95e30583602001516040518263ffffffff1660e01b81526004016110119190611b85565b60206040518083038186803b15801561102957600080fd5b505afa15801561103d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110619190611918565b73ffffffffffffffffffffffffffffffffffffffff166338463cff8360400151836040518363ffffffff1660e01b815260040161109f929190611cbb565b602060405180830381600087803b1580156110b957600080fd5b505af11580156110cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f19190611945565b503373ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5826040516111389190611de8565b60405180910390a2505050565b6111c8846323b872dd60e01b85858560405160240161116693929190611c0d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611318565b50505050565b606061121083836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c656400008152506113df565b905092915050565b606061123e8484846040518060600160405280602981526020016123ca602991396113f7565b90509392505050565b6112c88363a9059cbb60e01b8484604051602401611266929190611c44565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611318565b505050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611313573d6000803e3d6000fd5b505050565b600061137a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166113df9092919063ffffffff16565b90506000815111156113da578080602001905181019061139a91906118eb565b6113d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d090611da8565b60405180910390fd5b5b505050565b60606113ee84846000856113f7565b90509392505050565b60608247101561143c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143390611d28565b60405180910390fd5b6114458561150b565b611484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147b90611d88565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114ad9190611b6e565b60006040518083038185875af1925050503d80600081146114ea576040519150601f19603f3d011682016040523d82523d6000602084013e6114ef565b606091505b50915091506114ff82828661151e565b92505050949350505050565b600080823b905060008111915050919050565b6060831561152e5782905061157e565b6000835111156115415782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115759190611d06565b60405180910390fd5b9392505050565b604051806040016040528060008152602001600081525090565b60006115b26115ad84611e8b565b611e66565b9050828152602081018484840111156115ce576115cd6121ce565b5b6115d98482856120a1565b509392505050565b6000813590506115f081612356565b92915050565b6000815190506116058161236d565b92915050565b60008135905061161a81612384565b92915050565b60008083601f840112611636576116356121a6565b5b8235905067ffffffffffffffff811115611653576116526121a1565b5b60208301915083600182028301111561166f5761166e6121c4565b5b9250929050565b600082601f83011261168b5761168a6121a6565b5b813561169b84826020860161159f565b91505092915050565b6000815190506116b38161239b565b92915050565b6000608082840312156116cf576116ce6121b0565b5b81905092915050565b6000608082840312156116ee576116ed6121b5565b5b6116f86080611e66565b90506000611708848285016115e1565b600083015250602061171c8482850161176c565b6020830152506040611730848285016115e1565b604083015250606082013567ffffffffffffffff811115611754576117536121bf565b5b61176084828501611676565b60608301525092915050565b60008135905061177b816123b2565b92915050565b600081519050611790816123b2565b92915050565b6000602082840312156117ac576117ab6121d8565b5b60006117ba848285016115e1565b91505092915050565b60008060008060008060008060008060006101208c8e0312156117e9576117e86121d8565b5b60006117f78e828f016115e1565b9b505060206118088e828f016115e1565b9a505060406118198e828f016115e1565b995050606061182a8e828f0161176c565b98505060808c013567ffffffffffffffff81111561184b5761184a6121d3565b5b6118578e828f01611620565b975097505060a08c013567ffffffffffffffff81111561187a576118796121d3565b5b6118868e828f016116b9565b95505060c06118978e828f0161176c565b94505060e06118a88e828f0161160b565b9350506101008c013567ffffffffffffffff8111156118ca576118c96121d3565b5b6118d68e828f01611620565b92509250509295989b509295989b9093969950565b600060208284031215611901576119006121d8565b5b600061190f848285016115f6565b91505092915050565b60006020828403121561192e5761192d6121d8565b5b600061193c848285016116a4565b91505092915050565b60006020828403121561195b5761195a6121d8565b5b600061196984828501611781565b91505092915050565b61197b81612034565b82525050565b61198a81611fd0565b82525050565b61199981611fbe565b82525050565b6119a881611fee565b82525050565b60006119ba8385611ed2565b93506119c78385846120a1565b6119d0836121dd565b840190509392505050565b60006119e682611ebc565b6119f08185611ed2565b9350611a008185602086016120b0565b611a09816121dd565b840191505092915050565b6000611a1f82611ebc565b611a298185611ee3565b9350611a398185602086016120b0565b80840191505092915050565b611a4e81612046565b82525050565b6000611a5f82611ec7565b611a698185611eee565b9350611a798185602086016120b0565b611a82816121dd565b840191505092915050565b6000611a9a602683611eee565b9150611aa5826121ee565b604082019050919050565b6000611abd601583611eee565b9150611ac88261223d565b602082019050919050565b6000611ae0602383611eee565b9150611aeb82612266565b604082019050919050565b6000611b03601d83611eee565b9150611b0e826122b5565b602082019050919050565b6000611b26602a83611eee565b9150611b31826122de565b604082019050919050565b6000611b49601f83611eee565b9150611b548261232d565b602082019050919050565b611b688161202a565b82525050565b6000611b7a8284611a14565b915081905092915050565b6000602082019050611b9a6000830184611990565b92915050565b6000602082019050611bb56000830184611981565b92915050565b6000604082019050611bd06000830185611972565b611bdd6020830184611b5f565b9392505050565b6000604082019050611bf96000830185611990565b611c066020830184611990565b9392505050565b6000606082019050611c226000830186611990565b611c2f6020830185611990565b611c3c6040830184611b5f565b949350505050565b6000604082019050611c596000830185611990565b611c666020830184611b5f565b9392505050565b6000608082019050611c82600083018861199f565b611c8f6020830187611b5f565b611c9c604083018661199f565b8181036060830152611caf8184866119ae565b90509695505050505050565b60006040820190508181036000830152611cd581856119db565b9050611ce46020830184611b5f565b9392505050565b6000602082019050611d006000830184611a45565b92915050565b60006020820190508181036000830152611d208184611a54565b905092915050565b60006020820190508181036000830152611d4181611a8d565b9050919050565b60006020820190508181036000830152611d6181611ab0565b9050919050565b60006020820190508181036000830152611d8181611ad3565b9050919050565b60006020820190508181036000830152611da181611af6565b9050919050565b60006020820190508181036000830152611dc181611b19565b9050919050565b60006020820190508181036000830152611de181611b3c565b9050919050565b6000602082019050611dfd6000830184611b5f565b92915050565b60008083356001602003843603038112611e2057611e1f6121ba565b5b80840192508235915067ffffffffffffffff821115611e4257611e416121ab565b5b602083019250600182023603831315611e5e57611e5d6121c9565b5b509250929050565b6000611e70611e81565b9050611e7c82826120e3565b919050565b6000604051905090565b600067ffffffffffffffff821115611ea657611ea5612172565b5b611eaf826121dd565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611f0a8261202a565b9150611f158361202a565b925082611f2557611f24612143565b5b828204905092915050565b6000611f3b8261202a565b9150611f468361202a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611f7f57611f7e612114565b5b828202905092915050565b6000611f958261202a565b9150611fa08361202a565b925082821015611fb357611fb2612114565b5b828203905092915050565b6000611fc98261200a565b9050919050565b6000611fdb8261200a565b9050919050565b60008115159050919050565b6000819050919050565b600061200382611fbe565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061203f8261207d565b9050919050565b600061205182612058565b9050919050565b60006120638261200a565b9050919050565b600061207636836116d8565b9050919050565b60006120888261208f565b9050919050565b600061209a8261200a565b9050919050565b82818337600083830152505050565b60005b838110156120ce5780820151818401526020810190506120b3565b838111156120dd576000848401525b50505050565b6120ec826121dd565b810181811067ffffffffffffffff8211171561210b5761210a612172565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5468652063616c6c657220697320756e6b6e6f776e0000000000000000000000600082015250565b7f43616e6e6f74206d696e7420616e64206275726e207468652073616d6520746f60008201527f6b656e0000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61235f81611fbe565b811461236a57600080fd5b50565b61237681611fe2565b811461238157600080fd5b50565b61238d81611fee565b811461239857600080fd5b50565b6123a481611ff8565b81146123af57600080fd5b50565b6123bb8161202a565b81146123c657600080fd5b5056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209e54f45645663384b10cd148769eeb90b56aff90a92a5595d26cac51a335209664736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d000000000000000000000000f36666c230fa12333579b9bd6196cb634d6bc50600000000000000000000000081b74adc3307a9f4370075de0e561ea49b1703ef
-----Decoded View---------------
Arg [0] : _router (address): 0x1111111254fb6c44bAC0beD2854e76F90643097d
Arg [1] : _registry (address): 0xf36666C230Fa12333579b9Bd6196CB634D6BC506
Arg [2] : _devWallet (address): 0x81B74adc3307a9F4370075DE0e561Ea49B1703eF
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d
Arg [1] : 000000000000000000000000f36666c230fa12333579b9bd6196cb634d6bc506
Arg [2] : 00000000000000000000000081b74adc3307a9f4370075de0e561ea49b1703ef
Loading...
Loading
Loading...
Loading
Net Worth in USD
$129.95
Net Worth in ETH
0.07
Token Allocations
ETH
100.00%
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $1,856.44 | 0.07 | $129.95 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.