ETH Price: $1,814.04 (+10.38%)
Gas: 0.17 GWei

Contract

0xF19EA8e63256992a823262C71568b0bb27cE146f

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Renounce Manager...2959442023-08-28 12:16:41604 days ago1693225001IN
Interport: Action Executor Registry
0 ETH0.000059591.44325002
Transfer Ownersh...2959422023-08-28 12:16:17604 days ago1693224977IN
Interport: Action Executor Registry
0 ETH0.000041141.43473429
Set Manager2959362023-08-28 12:15:05604 days ago1693224905IN
Interport: Action Executor Registry
0 ETH0.000139861.42418359
Set Gateway2805702023-08-26 9:01:53606 days ago1693040513IN
Interport: Action Executor Registry
0 ETH0.000127960.87947388
Set Gateway2805252023-08-26 8:52:53606 days ago1693039973IN
Interport: Action Executor Registry
0 ETH0.000124780.87452443
Renounce Manager...2803472023-08-26 8:17:17606 days ago1693037837IN
Interport: Action Executor Registry
0 ETH0.000037850.91658118
Set System Fee L...2803462023-08-26 8:17:05606 days ago1693037825IN
Interport: Action Executor Registry
0 ETH0.000023040.91684613
Set System Fee2803452023-08-26 8:16:53606 days ago1693037813IN
Interport: Action Executor Registry
0 ETH0.000023010.91707705
Set Vault Decima...2803442023-08-26 8:16:41606 days ago1693037801IN
Interport: Action Executor Registry
0 ETH0.000111710.91778632
Set Vault2803432023-08-26 8:16:29606 days ago1693037789IN
Interport: Action Executor Registry
0 ETH0.00011280.91707705
Set Vault Decima...2803412023-08-26 8:16:05606 days ago1693037765IN
Interport: Action Executor Registry
0 ETH0.000172980.91673903
Set Vault2803402023-08-26 8:15:53606 days ago1693037753IN
Interport: Action Executor Registry
0 ETH0.000110260.9174487
Set Routers2803312023-08-26 8:14:05606 days ago1693037645IN
Interport: Action Executor Registry
0 ETH0.000198210.91807531

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
182713512025-04-22 10:23:4426 hrs ago1745317424
Interport: Action Executor Registry
0 ETH
182701462025-04-22 9:32:2827 hrs ago1745314348
Interport: Action Executor Registry
0 ETH
182701162025-04-22 9:31:2727 hrs ago1745314287
Interport: Action Executor Registry
0 ETH
182668452025-04-22 7:21:1329 hrs ago1745306473
Interport: Action Executor Registry
0 ETH
182596862025-04-22 1:58:0635 hrs ago1745287086
Interport: Action Executor Registry
0 ETH
182442882025-04-21 14:01:1547 hrs ago1745244075
Interport: Action Executor Registry
0 ETH
182378702025-04-21 9:37:322 days ago1745228252
Interport: Action Executor Registry
0 ETH
182378702025-04-21 9:37:322 days ago1745228252
Interport: Action Executor Registry
0 ETH
182302882025-04-21 4:11:112 days ago1745208671
Interport: Action Executor Registry
0 ETH
182282972025-04-21 2:33:282 days ago1745202808
Interport: Action Executor Registry
0 ETH
182273792025-04-21 1:51:272 days ago1745200287
Interport: Action Executor Registry
0 ETH
182049012025-04-20 6:42:053 days ago1745131325
Interport: Action Executor Registry
0 ETH
182015572025-04-20 3:45:473 days ago1745120747
Interport: Action Executor Registry
0 ETH
181529282025-04-18 10:30:505 days ago1744972250
Interport: Action Executor Registry
0 ETH
181515922025-04-18 9:31:405 days ago1744968700
Interport: Action Executor Registry
0 ETH
181480702025-04-18 7:04:425 days ago1744959882
Interport: Action Executor Registry
0 ETH
181449692025-04-18 4:34:495 days ago1744950889
Interport: Action Executor Registry
0 ETH
181208372025-04-17 9:10:576 days ago1744881057
Interport: Action Executor Registry
0 ETH
181192592025-04-17 8:08:196 days ago1744877299
Interport: Action Executor Registry
0 ETH
180851802025-04-16 6:48:387 days ago1744786118
Interport: Action Executor Registry
0 ETH
180851482025-04-16 6:47:287 days ago1744786048
Interport: Action Executor Registry
0 ETH
180808382025-04-16 3:42:277 days ago1744774947
Interport: Action Executor Registry
0 ETH
180777542025-04-16 1:24:317 days ago1744766671
Interport: Action Executor Registry
0 ETH
180557282025-04-15 8:58:558 days ago1744707535
Interport: Action Executor Registry
0 ETH
180481452025-04-15 3:28:498 days ago1744687729
Interport: Action Executor Registry
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ActionExecutorRegistry

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : ActionExecutorRegistry.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

import { IRegistry } from './interfaces/IRegistry.sol';
import { IVault } from './interfaces/IVault.sol';
import { BalanceManagement } from './BalanceManagement.sol';
import { SystemVersionId } from './SystemVersionId.sol';
import { TargetGasReserve } from './crosschain/TargetGasReserve.sol';
import { ZeroAddressError } from './Errors.sol';
import './helpers/AddressHelper.sol' as AddressHelper;
import './helpers/DecimalsHelper.sol' as DecimalsHelper;
import './Constants.sol' as Constants;
import './DataStructures.sol' as DataStructures;

/**
 * @title ActionExecutorRegistry
 * @notice The contract for action settings
 */
contract ActionExecutorRegistry is SystemVersionId, TargetGasReserve, BalanceManagement, IRegistry {
    /**
     * @dev Registered cross-chain gateway addresses by type
     */
    mapping(uint256 /*gatewayType*/ => address /*gatewayAddress*/) public gatewayMap;

    /**
     * @dev Registered cross-chain gateway types
     */
    uint256[] public gatewayTypeList;

    /**
     * @dev Registered cross-chain gateway type indices
     */
    mapping(uint256 /*gatewayType*/ => DataStructures.OptionalValue /*gatewayTypeIndex*/)
        public gatewayTypeIndexMap;

    /**
     * @dev Registered cross-chain gateway flags by address
     */
    mapping(address /*account*/ => bool /*isGateway*/) public isGatewayAddress;

    /**
     * @dev Registered swap router addresses by type
     */
    mapping(uint256 /*routerType*/ => address /*routerAddress*/) public routerMap;

    /**
     * @dev Registered swap router types
     */
    uint256[] public routerTypeList;

    /**
     * @dev Registered swap router type indices
     */
    mapping(uint256 /*routerType*/ => DataStructures.OptionalValue /*routerTypeIndex*/)
        public routerTypeIndexMap;

    /**
     * @dev Registered swap router transfer addresses by router type
     */
    mapping(uint256 /*routerType*/ => address /*routerTransferAddress*/) public routerTransferMap;

    /**
     * @dev Registered vault addresses by type
     */
    mapping(uint256 /*vaultType*/ => address /*vaultAddress*/) public vaultMap;

    /**
     * @dev Registered vault types
     */
    uint256[] public vaultTypeList;

    /**
     * @dev Registered vault-type indices
     */
    mapping(uint256 /*vaultType*/ => DataStructures.OptionalValue /*vaultTypeIndex*/)
        public vaultTypeIndexMap;

    /**
     * @dev Registered non-default decimal values by vault type
     */
    mapping(uint256 /*vaultType*/ => mapping(uint256 /*chainId*/ => DataStructures.OptionalValue /*vaultDecimals*/))
        public vaultDecimalsTable;

    /**
     * @dev Chain IDs of registered vault decimal values
     */
    uint256[] public vaultDecimalsChainIdList;

    /**
     * @dev Chain ID indices of registered vault decimal values
     */
    mapping(uint256 /*chainId*/ => DataStructures.OptionalValue /*chainIdIndex*/)
        public vaultDecimalsChainIdIndexMap;

    /**
     * @dev The system fee value (cross-chain swaps) in milli-percent, e.g., 100 is 0.1%
     */
    uint256 public systemFee;

    /**
     * @dev The system fee value (single-chain swaps) in milli-percent, e.g., 100 is 0.1%
     */
    uint256 public systemFeeLocal;

    /**
     * @dev The address of the cross-chain action fee collector
     */
    address public feeCollector;

    /**
     * @dev The address of the single-chain action fee collector
     */
    address public feeCollectorLocal;

    /**
     * @dev The list of accounts that can perform actions without fees and amount restrictions
     */
    address[] public whitelist;

    /**
     * @dev The whitelist account indices
     */
    mapping(address /*account*/ => DataStructures.OptionalValue /*whitelistIndex*/)
        public whitelistIndexMap;

    /**
     * @dev The minimum cross-chain swap amount in USD, with decimals = 18
     */
    uint256 public swapAmountMin = 0;

    /**
     * @dev The maximum cross-chain swap amount in USD, with decimals = 18. Is type(uint256).max for unlimited amount
     */
    uint256 public swapAmountMax = Constants.INFINITY;

    uint256 private constant VAULT_DECIMALS_CHAIN_ID_WILDCARD = 0;
    uint256 private constant SYSTEM_FEE_LIMIT = 10_000; // Maximum system fee in milli-percent = 10%
    uint256 private constant SYSTEM_FEE_INITIAL = 100; // Initial system fee in milli-percent = 0.1%

    /**
     * @notice Emitted when a registered cross-chain gateway contract address is added or updated
     * @param gatewayType The type of the registered cross-chain gateway
     * @param gatewayAddress The address of the registered cross-chain gateway contract
     */
    event SetGateway(uint256 indexed gatewayType, address indexed gatewayAddress);

    /**
     * @notice Emitted when a registered cross-chain gateway contract address is removed
     * @param gatewayType The type of the removed cross-chain gateway
     */
    event RemoveGateway(uint256 indexed gatewayType);

    /**
     * @notice Emitted when a registered vault contract address is added or updated
     * @param vaultType The type of the registered vault
     * @param vaultAddress The address of the registered vault contract
     */
    event SetVault(uint256 indexed vaultType, address indexed vaultAddress);

    /**
     * @notice Emitted when a registered vault contract address is removed
     * @param vaultType The type of the removed vault
     */
    event RemoveVault(uint256 indexed vaultType);

    /**
     * @notice Emitted when vault decimal values are set
     * @param vaultType The type of the vault
     * @param decimalsData The vault decimal values
     */
    event SetVaultDecimals(uint256 indexed vaultType, DataStructures.KeyToValue[] decimalsData);

    /**
     * @notice Emitted when vault decimal values are unset
     * @param vaultType The type of the vault
     */
    event UnsetVaultDecimals(uint256 indexed vaultType, uint256[] chainIds);

    /**
     * @notice Emitted when a registered swap router contract address is added or updated
     * @param routerType The type of the registered swap router
     * @param routerAddress The address of the registered swap router contract
     */
    event SetRouter(uint256 indexed routerType, address indexed routerAddress);

    /**
     * @notice Emitted when a registered swap router contract address is removed
     * @param routerType The type of the removed swap router
     */
    event RemoveRouter(uint256 indexed routerType);

    /**
     * @notice Emitted when a registered swap router transfer contract address is set
     * @param routerType The type of the swap router
     * @param routerTransfer The address of the swap router transfer contract
     */
    event SetRouterTransfer(uint256 indexed routerType, address indexed routerTransfer);

    /**
     * @notice Emitted when the system fee value (cross-chain swaps) is set
     * @param systemFee The system fee value in milli-percent, e.g., 100 is 0.1%
     */
    event SetSystemFee(uint256 systemFee);

    /**
     * @notice Emitted when the system fee value (single-chain swaps) is set
     * @param systemFeeLocal The system fee value in milli-percent, e.g., 100 is 0.1%
     */
    event SetSystemFeeLocal(uint256 systemFeeLocal);

    /**
     * @notice Emitted when the address of the cross-chain action fee collector is set
     * @param feeCollector The address of the cross-chain action fee collector
     */
    event SetFeeCollector(address indexed feeCollector);

    /**
     * @notice Emitted when the address of the single-chain action fee collector is set
     * @param feeCollector The address of the single-chain action fee collector
     */
    event SetFeeCollectorLocal(address indexed feeCollector);

    /**
     * @notice Emitted when the whitelist is updated
     * @param whitelistAddress The added or removed account address
     * @param value The flag of account inclusion
     */
    event SetWhitelist(address indexed whitelistAddress, bool indexed value);

    /**
     * @notice Emitted when the minimum cross-chain swap amount is set
     * @param value The minimum swap amount in USD, with decimals = 18
     */
    event SetSwapAmountMin(uint256 value);

    /**
     * @notice Emitted when the maximum cross-chain swap amount is set
     * @dev Is type(uint256).max for unlimited amount
     * @param value The maximum swap amount in USD, with decimals = 18
     */
    event SetSwapAmountMax(uint256 value);

    /**
     * @notice Emitted when the specified cross-chain gateway address is duplicate
     */
    error DuplicateGatewayAddressError();

    /**
     * @notice Emitted when the requested cross-chain gateway type is not set
     */
    error GatewayNotSetError();

    /**
     * @notice Emitted when the requested swap router type is not set
     */
    error RouterNotSetError();

    /**
     * @notice Emitted when the specified swap amount maximum is less than the current minimum
     */
    error SwapAmountMaxLessThanMinError();

    /**
     * @notice Emitted when the specified swap amount minimum is greater than the current maximum
     */
    error SwapAmountMinGreaterThanMaxError();

    /**
     * @notice Emitted when the specified system fee percentage value is greater than the allowed maximum
     */
    error SystemFeeValueError();

    /**
     * @notice Emitted when the requested vault type is not set
     */
    error VaultNotSetError();

    /**
     * @notice Deploys the ActionExecutorRegistry contract
     * @param _gateways Initial values of cross-chain gateway types and addresses
     * @param _feeCollector The initial address of the cross-chain action fee collector
     * @param _feeCollectorLocal The initial address of the single-chain action fee collector
     * @param _targetGasReserve The initial gas reserve value for target chain action processing
     * @param _owner The address of the initial owner of the contract
     * @param _managers The addresses of initial managers of the contract
     * @param _addOwnerToManagers The flag to optionally add the owner to the list of managers
     */
    constructor(
        DataStructures.KeyToAddressValue[] memory _gateways,
        address _feeCollector,
        address _feeCollectorLocal,
        uint256 _targetGasReserve,
        address _owner,
        address[] memory _managers,
        bool _addOwnerToManagers
    ) {
        for (uint256 index; index < _gateways.length; index++) {
            DataStructures.KeyToAddressValue memory item = _gateways[index];

            _setGateway(item.key, item.value);
        }

        _setSystemFee(SYSTEM_FEE_INITIAL);
        _setSystemFeeLocal(SYSTEM_FEE_INITIAL);

        _setFeeCollector(_feeCollector);
        _setFeeCollectorLocal(_feeCollectorLocal);

        _setTargetGasReserve(_targetGasReserve);

        _initRoles(_owner, _managers, _addOwnerToManagers);
    }

    /**
     * @notice Adds or updates a registered cross-chain gateway contract address
     * @param _gatewayType The type of the registered cross-chain gateway
     * @param _gatewayAddress The address of the registered cross-chain gateway contract
     */
    function setGateway(uint256 _gatewayType, address _gatewayAddress) external onlyManager {
        _setGateway(_gatewayType, _gatewayAddress);
    }

    /**
     * @notice Removes a registered cross-chain gateway contract address
     * @param _gatewayType The type of the removed cross-chain gateway
     */
    function removeGateway(uint256 _gatewayType) external onlyManager {
        address gatewayAddress = gatewayMap[_gatewayType];

        if (gatewayAddress == address(0)) {
            revert GatewayNotSetError();
        }

        DataStructures.combinedMapRemove(
            gatewayMap,
            gatewayTypeList,
            gatewayTypeIndexMap,
            _gatewayType
        );

        delete isGatewayAddress[gatewayAddress];

        emit RemoveGateway(_gatewayType);
    }

    /**
     * @notice Adds or updates registered swap router contract addresses
     * @param _routers Types and addresses of swap routers
     */
    function setRouters(DataStructures.KeyToAddressValue[] calldata _routers) external onlyManager {
        for (uint256 index; index < _routers.length; index++) {
            DataStructures.KeyToAddressValue calldata item = _routers[index];

            _setRouter(item.key, item.value);
        }
    }

    /**
     * @notice Removes registered swap router contract addresses
     * @param _routerTypes Types of swap routers
     */
    function removeRouters(uint256[] calldata _routerTypes) external onlyManager {
        for (uint256 index; index < _routerTypes.length; index++) {
            uint256 routerType = _routerTypes[index];

            _removeRouter(routerType);
        }
    }

    /**
     * @notice Adds or updates a registered swap router transfer contract address
     * @dev Zero address can be used to remove a router transfer contract
     * @param _routerType The type of the swap router
     * @param _routerTransfer The address of the swap router transfer contract
     */
    function setRouterTransfer(uint256 _routerType, address _routerTransfer) external onlyManager {
        if (routerMap[_routerType] == address(0)) {
            revert RouterNotSetError();
        }

        AddressHelper.requireContractOrZeroAddress(_routerTransfer);

        routerTransferMap[_routerType] = _routerTransfer;

        emit SetRouterTransfer(_routerType, _routerTransfer);
    }

    /**
     * @notice Adds or updates a registered vault contract address
     * @param _vaultType The type of the registered vault
     * @param _vaultAddress The address of the registered vault contract
     */
    function setVault(uint256 _vaultType, address _vaultAddress) external onlyManager {
        AddressHelper.requireContract(_vaultAddress);

        DataStructures.combinedMapSet(
            vaultMap,
            vaultTypeList,
            vaultTypeIndexMap,
            _vaultType,
            _vaultAddress,
            Constants.LIST_SIZE_LIMIT_DEFAULT
        );

        emit SetVault(_vaultType, _vaultAddress);
    }

    /**
     * @notice Removes a registered vault contract address
     * @param _vaultType The type of the registered vault
     */
    function removeVault(uint256 _vaultType) external onlyManager {
        DataStructures.combinedMapRemove(vaultMap, vaultTypeList, vaultTypeIndexMap, _vaultType);

        // - - - Vault decimals table cleanup - - -

        delete vaultDecimalsTable[_vaultType][VAULT_DECIMALS_CHAIN_ID_WILDCARD];

        uint256 chainIdListLength = vaultDecimalsChainIdList.length;

        for (uint256 index; index < chainIdListLength; index++) {
            uint256 chainId = vaultDecimalsChainIdList[index];

            delete vaultDecimalsTable[_vaultType][chainId];
        }

        // - - -

        emit RemoveVault(_vaultType);
    }

    /**
     * @notice Sets vault decimal values
     * @param _vaultType The type of the vault
     * @param _decimalsData The vault decimal values
     */
    function setVaultDecimals(
        uint256 _vaultType,
        DataStructures.KeyToValue[] calldata _decimalsData
    ) external onlyManager {
        if (vaultMap[_vaultType] == address(0)) {
            revert VaultNotSetError();
        }

        for (uint256 index; index < _decimalsData.length; index++) {
            DataStructures.KeyToValue calldata decimalsDataItem = _decimalsData[index];

            uint256 chainId = decimalsDataItem.key;

            if (chainId != VAULT_DECIMALS_CHAIN_ID_WILDCARD) {
                DataStructures.uniqueListAdd(
                    vaultDecimalsChainIdList,
                    vaultDecimalsChainIdIndexMap,
                    chainId,
                    Constants.LIST_SIZE_LIMIT_DEFAULT
                );
            }

            vaultDecimalsTable[_vaultType][chainId] = DataStructures.OptionalValue(
                true,
                decimalsDataItem.value
            );
        }

        emit SetVaultDecimals(_vaultType, _decimalsData);
    }

    /**
     * @notice Unsets vault decimal values
     * @param _vaultType The type of the vault
     * @param _chainIds Chain IDs of registered vault decimal values
     */
    function unsetVaultDecimals(
        uint256 _vaultType,
        uint256[] calldata _chainIds
    ) external onlyManager {
        if (vaultMap[_vaultType] == address(0)) {
            revert VaultNotSetError();
        }

        for (uint256 index; index < _chainIds.length; index++) {
            uint256 chainId = _chainIds[index];
            delete vaultDecimalsTable[_vaultType][chainId];
        }

        emit UnsetVaultDecimals(_vaultType, _chainIds);
    }

    /**
     * @notice Sets the system fee value (cross-chain swaps)
     * @param _systemFee The system fee value in milli-percent, e.g., 100 is 0.1%
     */
    function setSystemFee(uint256 _systemFee) external onlyManager {
        _setSystemFee(_systemFee);
    }

    /**
     * @notice Sets the system fee value (single-chain swaps)
     * @param _systemFeeLocal The system fee value in milli-percent, e.g., 100 is 0.1%
     */
    function setSystemFeeLocal(uint256 _systemFeeLocal) external onlyManager {
        _setSystemFeeLocal(_systemFeeLocal);
    }

    /**
     * @notice Sets the address of the cross-chain action fee collector
     * @param _feeCollector The address of the cross-chain action fee collector
     */
    function setFeeCollector(address _feeCollector) external onlyManager {
        _setFeeCollector(_feeCollector);
    }

    /**
     * @notice Sets the address of the single-chain action fee collector
     * @param _feeCollector The address of the single-chain action fee collector
     */
    function setFeeCollectorLocal(address _feeCollector) external onlyManager {
        _setFeeCollectorLocal(_feeCollector);
    }

    /**
     * @notice Updates the whitelist
     * @param _whitelistAddress The added or removed account address
     * @param _value The flag of account inclusion
     */
    function setWhitelist(address _whitelistAddress, bool _value) external onlyManager {
        DataStructures.uniqueAddressListUpdate(
            whitelist,
            whitelistIndexMap,
            _whitelistAddress,
            _value,
            Constants.LIST_SIZE_LIMIT_DEFAULT
        );

        emit SetWhitelist(_whitelistAddress, _value);
    }

    /**
     * @notice Sets the minimum cross-chain swap amount
     * @param _value The minimum swap amount in USD, with decimals = 18
     */
    function setSwapAmountMin(uint256 _value) external onlyManager {
        if (_value > swapAmountMax) {
            revert SwapAmountMinGreaterThanMaxError();
        }

        swapAmountMin = _value;

        emit SetSwapAmountMin(_value);
    }

    /**
     * @notice Sets the maximum cross-chain swap amount
     * @dev Use type(uint256).max value for unlimited amount
     * @param _value The maximum swap amount in USD, with decimals = 18
     */
    function setSwapAmountMax(uint256 _value) external onlyManager {
        if (_value < swapAmountMin) {
            revert SwapAmountMaxLessThanMinError();
        }

        swapAmountMax = _value;

        emit SetSwapAmountMax(_value);
    }

    /**
     * @notice Settings for a single-chain swap
     * @param _caller The user's account address
     * @param _routerType The type of the swap router
     * @return Settings for a single-chain swap
     */
    function localSettings(
        address _caller,
        uint256 _routerType
    ) external view returns (LocalSettings memory) {
        (address router, address routerTransfer) = _routerAddresses(_routerType);

        return
            LocalSettings({
                router: router,
                routerTransfer: routerTransfer,
                systemFeeLocal: systemFeeLocal,
                feeCollectorLocal: feeCollectorLocal,
                isWhitelist: isWhitelist(_caller)
            });
    }

    /**
     * @notice Getter of source chain settings for a cross-chain swap
     * @param _caller The user's account address
     * @param _targetChainId The target chain ID
     * @param _gatewayType The type of the cross-chain gateway
     * @param _routerType The type of the swap router
     * @param _vaultType The type of the vault
     * @return Source chain settings for a cross-chain swap
     */
    function sourceSettings(
        address _caller,
        uint256 _targetChainId,
        uint256 _gatewayType,
        uint256 _routerType,
        uint256 _vaultType
    ) external view returns (SourceSettings memory) {
        (address router, address routerTransfer) = _routerAddresses(_routerType);

        return
            SourceSettings({
                gateway: gatewayMap[_gatewayType],
                router: router,
                routerTransfer: routerTransfer,
                vault: vaultMap[_vaultType],
                sourceVaultDecimals: vaultDecimals(_vaultType, block.chainid),
                targetVaultDecimals: vaultDecimals(_vaultType, _targetChainId),
                systemFee: systemFee,
                feeCollector: feeCollector,
                isWhitelist: isWhitelist(_caller),
                swapAmountMin: swapAmountMin,
                swapAmountMax: swapAmountMax
            });
    }

    /**
     * @notice Getter of target chain settings for a cross-chain swap
     * @param _vaultType The type of the vault
     * @param _routerType The type of the swap router
     * @return Target chain settings for a cross-chain swap
     */
    function targetSettings(
        uint256 _vaultType,
        uint256 _routerType
    ) external view returns (TargetSettings memory) {
        (address router, address routerTransfer) = _routerAddresses(_routerType);

        return
            TargetSettings({
                router: router,
                routerTransfer: routerTransfer,
                vault: vaultMap[_vaultType],
                gasReserve: targetGasReserve
            });
    }

    /**
     * @notice Getter of variable balance repayment settings
     * @param _vaultType The type of the vault
     * @return Variable balance repayment settings
     */
    function variableBalanceRepaymentSettings(
        uint256 _vaultType
    ) external view returns (VariableBalanceRepaymentSettings memory) {
        return VariableBalanceRepaymentSettings({ vault: vaultMap[_vaultType] });
    }

    /**
     * @notice Getter of cross-chain message fee estimation settings
     * @param _gatewayType The type of the cross-chain gateway
     * @return Cross-chain message fee estimation settings
     */
    function messageFeeEstimateSettings(
        uint256 _gatewayType
    ) external view returns (MessageFeeEstimateSettings memory) {
        return MessageFeeEstimateSettings({ gateway: gatewayMap[_gatewayType] });
    }

    /**
     * @notice Getter of swap result calculation settings for a single-chain swap
     * @param _caller The user's account address
     * @return Swap result calculation settings for a single-chain swap
     */
    function localAmountCalculationSettings(
        address _caller
    ) external view returns (LocalAmountCalculationSettings memory) {
        return
            LocalAmountCalculationSettings({
                systemFeeLocal: systemFeeLocal,
                isWhitelist: isWhitelist(_caller)
            });
    }

    /**
     * @notice Getter of swap result calculation settings for a cross-chain swap
     * @param _caller The user's account address
     * @param _vaultType The type of the vault
     * @param _fromChainId The ID of the swap source chain
     * @param _toChainId The ID of the swap target chain
     * @return Swap result calculation settings for a cross-chain swap
     */
    function vaultAmountCalculationSettings(
        address _caller,
        uint256 _vaultType,
        uint256 _fromChainId,
        uint256 _toChainId
    ) external view returns (VaultAmountCalculationSettings memory) {
        return
            VaultAmountCalculationSettings({
                fromDecimals: vaultDecimals(_vaultType, _fromChainId),
                toDecimals: vaultDecimals(_vaultType, _toChainId),
                systemFee: systemFee,
                isWhitelist: isWhitelist(_caller)
            });
    }

    /**
     * @notice Getter of amount limits in USD for cross-chain swaps
     * @param _vaultType The type of the vault
     * @return min Minimum cross-chain swap amount in USD, with decimals = 18
     * @return max Maximum cross-chain swap amount in USD, with decimals = 18
     */
    function swapAmountLimits(uint256 _vaultType) external view returns (uint256 min, uint256 max) {
        if (swapAmountMin == 0 && swapAmountMax == Constants.INFINITY) {
            min = 0;
            max = Constants.INFINITY;
        } else {
            uint256 toDecimals = vaultDecimals(_vaultType, block.chainid);

            min = (swapAmountMin == 0)
                ? 0
                : DecimalsHelper.convertDecimals(
                    Constants.DECIMALS_DEFAULT,
                    toDecimals,
                    swapAmountMin
                );

            max = (swapAmountMax == Constants.INFINITY)
                ? Constants.INFINITY
                : DecimalsHelper.convertDecimals(
                    Constants.DECIMALS_DEFAULT,
                    toDecimals,
                    swapAmountMax
                );
        }
    }

    /**
     * @notice Getter of registered cross-chain gateway type count
     * @return Registered cross-chain gateway type count
     */
    function gatewayTypeCount() external view returns (uint256) {
        return gatewayTypeList.length;
    }

    /**
     * @notice Getter of the complete list of registered cross-chain gateway types
     * @return The complete list of registered cross-chain gateway types
     */
    function fullGatewayTypeList() external view returns (uint256[] memory) {
        return gatewayTypeList;
    }

    /**
     * @notice Getter of registered swap router type count
     * @return Registered swap router type count
     */
    function routerTypeCount() external view returns (uint256) {
        return routerTypeList.length;
    }

    /**
     * @notice Getter of the complete list of registered swap router types
     * @return The complete list of registered swap router types
     */
    function fullRouterTypeList() external view returns (uint256[] memory) {
        return routerTypeList;
    }

    /**
     * @notice Getter of registered vault type count
     * @return Registered vault type count
     */
    function vaultTypeCount() external view returns (uint256) {
        return vaultTypeList.length;
    }

    /**
     * @notice Getter of the complete list of registered vault types
     * @return The complete list of registered vault types
     */
    function fullVaultTypeList() external view returns (uint256[] memory) {
        return vaultTypeList;
    }

    /**
     * @notice Getter of registered vault decimals chain ID count
     * @return Registered vault decimals chain ID count
     */
    function vaultDecimalsChainIdCount() external view returns (uint256) {
        return vaultDecimalsChainIdList.length;
    }

    /**
     * @notice Getter of the complete list of registered vault decimals chain IDs
     * @return The complete list of registered vault decimals chain IDs
     */
    function fullVaultDecimalsChainIdList() external view returns (uint256[] memory) {
        return vaultDecimalsChainIdList;
    }

    /**
     * @notice Getter of registered whitelist entry count
     * @return Registered whitelist entry count
     */
    function whitelistCount() external view returns (uint256) {
        return whitelist.length;
    }

    /**
     * @notice Getter of the full whitelist content
     * @return Full whitelist content
     */
    function fullWhitelist() external view returns (address[] memory) {
        return whitelist;
    }

    /**
     * @notice Getter of a whitelist flag
     * @param _account The account address
     * @return The whitelist flag
     */
    function isWhitelist(address _account) public view returns (bool) {
        return whitelistIndexMap[_account].isSet;
    }

    /**
     * @notice Getter of vault decimals value
     * @param _vaultType The type of the vault
     * @param _chainId The vault chain ID
     * @return Vault decimals value
     */
    function vaultDecimals(uint256 _vaultType, uint256 _chainId) public view returns (uint256) {
        DataStructures.OptionalValue storage optionalValue = vaultDecimalsTable[_vaultType][
            _chainId
        ];

        if (optionalValue.isSet) {
            return optionalValue.value;
        }

        DataStructures.OptionalValue storage wildcardOptionalValue = vaultDecimalsTable[_vaultType][
            VAULT_DECIMALS_CHAIN_ID_WILDCARD
        ];

        if (wildcardOptionalValue.isSet) {
            return wildcardOptionalValue.value;
        }

        return Constants.DECIMALS_DEFAULT;
    }

    function _setGateway(uint256 _gatewayType, address _gatewayAddress) private {
        AddressHelper.requireContract(_gatewayAddress);

        if (isGatewayAddress[_gatewayAddress] && gatewayMap[_gatewayType] != _gatewayAddress) {
            revert DuplicateGatewayAddressError();
        }

        DataStructures.combinedMapSet(
            gatewayMap,
            gatewayTypeList,
            gatewayTypeIndexMap,
            _gatewayType,
            _gatewayAddress,
            Constants.LIST_SIZE_LIMIT_DEFAULT
        );

        isGatewayAddress[_gatewayAddress] = true;

        emit SetGateway(_gatewayType, _gatewayAddress);
    }

    function _setRouter(uint256 _routerType, address _routerAddress) private {
        AddressHelper.requireContract(_routerAddress);

        DataStructures.combinedMapSet(
            routerMap,
            routerTypeList,
            routerTypeIndexMap,
            _routerType,
            _routerAddress,
            Constants.LIST_SIZE_LIMIT_ROUTERS
        );

        emit SetRouter(_routerType, _routerAddress);
    }

    function _removeRouter(uint256 _routerType) private {
        DataStructures.combinedMapRemove(
            routerMap,
            routerTypeList,
            routerTypeIndexMap,
            _routerType
        );

        delete routerTransferMap[_routerType];

        emit RemoveRouter(_routerType);
    }

    function _setSystemFee(uint256 _systemFee) private {
        if (_systemFee > SYSTEM_FEE_LIMIT) {
            revert SystemFeeValueError();
        }

        systemFee = _systemFee;

        emit SetSystemFee(_systemFee);
    }

    function _setSystemFeeLocal(uint256 _systemFeeLocal) private {
        if (_systemFeeLocal > SYSTEM_FEE_LIMIT) {
            revert SystemFeeValueError();
        }

        systemFeeLocal = _systemFeeLocal;

        emit SetSystemFeeLocal(_systemFeeLocal);
    }

    function _setFeeCollector(address _feeCollector) private {
        feeCollector = _feeCollector;

        emit SetFeeCollector(_feeCollector);
    }

    function _setFeeCollectorLocal(address _feeCollector) private {
        feeCollectorLocal = _feeCollector;

        emit SetFeeCollectorLocal(_feeCollector);
    }

    function _routerAddresses(
        uint256 _routerType
    ) private view returns (address router, address routerTransfer) {
        router = routerMap[_routerType];
        routerTransfer = routerTransferMap[_routerType];

        if (routerTransfer == address(0)) {
            routerTransfer = router;
        }
    }
}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 18 : Context.sol
// 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;
    }
}

File 4 of 18 : BalanceManagement.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

import { ITokenBalance } from './interfaces/ITokenBalance.sol';
import { ManagerRole } from './roles/ManagerRole.sol';
import './helpers/TransferHelper.sol' as TransferHelper;
import './Constants.sol' as Constants;

/**
 * @title BalanceManagement
 * @notice Base contract for the withdrawal of tokens, except for reserved ones
 */
abstract contract BalanceManagement is ManagerRole {
    /**
     * @notice Emitted when the specified token is reserved
     */
    error ReservedTokenError();

    /**
     * @notice Performs the withdrawal of tokens, except for reserved ones
     * @dev Use the "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" address for the native token
     * @param _tokenAddress The address of the token
     * @param _tokenAmount The amount of the token
     */
    function cleanup(address _tokenAddress, uint256 _tokenAmount) external onlyManager {
        if (isReservedToken(_tokenAddress)) {
            revert ReservedTokenError();
        }

        if (_tokenAddress == Constants.NATIVE_TOKEN_ADDRESS) {
            TransferHelper.safeTransferNative(msg.sender, _tokenAmount);
        } else {
            TransferHelper.safeTransfer(_tokenAddress, msg.sender, _tokenAmount);
        }
    }

    /**
     * @notice Getter of the token balance of the current contract
     * @dev Use the "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" address for the native token
     * @param _tokenAddress The address of the token
     * @return The token balance of the current contract
     */
    function tokenBalance(address _tokenAddress) public view returns (uint256) {
        if (_tokenAddress == Constants.NATIVE_TOKEN_ADDRESS) {
            return address(this).balance;
        } else {
            return ITokenBalance(_tokenAddress).balanceOf(address(this));
        }
    }

    /**
     * @notice Getter of the reserved token flag
     * @dev Override to add reserved token addresses
     * @param _tokenAddress The address of the token
     * @return The reserved token flag
     */
    function isReservedToken(address _tokenAddress) public view virtual returns (bool) {
        // The function returns false by default.
        // The explicit return statement is omitted to avoid the unused parameter warning.
        // See https://github.com/ethereum/solidity/issues/5295
    }
}

File 5 of 18 : Constants.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @dev The default token decimals value
 */
uint256 constant DECIMALS_DEFAULT = 18;

/**
 * @dev The maximum uint256 value for swap amount limit settings
 */
uint256 constant INFINITY = type(uint256).max;

/**
 * @dev The default limit of account list size
 */
uint256 constant LIST_SIZE_LIMIT_DEFAULT = 100;

/**
 * @dev The limit of swap router list size
 */
uint256 constant LIST_SIZE_LIMIT_ROUTERS = 200;

/**
 * @dev The factor for percentage settings. Example: 100 is 0.1%
 */
uint256 constant MILLIPERCENT_FACTOR = 100_000;

/**
 * @dev The de facto standard address to denote the native token
 */
address constant NATIVE_TOKEN_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

File 6 of 18 : TargetGasReserve.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

import { ManagerRole } from '../roles/ManagerRole.sol';

/**
 * @title TargetGasReserve
 * @notice Base contract that implements the gas reserve logic for the target chain actions
 */
abstract contract TargetGasReserve is ManagerRole {
    /**
     * @dev The target chain gas reserve value
     */
    uint256 public targetGasReserve;

    /**
     * @notice Emitted when the target chain gas reserve value is set
     * @param gasReserve The target chain gas reserve value
     */
    event SetTargetGasReserve(uint256 gasReserve);

    /**
     * @notice Sets the target chain gas reserve value
     * @param _gasReserve The target chain gas reserve value
     */
    function setTargetGasReserve(uint256 _gasReserve) external onlyManager {
        _setTargetGasReserve(_gasReserve);
    }

    function _setTargetGasReserve(uint256 _gasReserve) internal virtual {
        targetGasReserve = _gasReserve;

        emit SetTargetGasReserve(_gasReserve);
    }
}

File 7 of 18 : DataStructures.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @notice Optional value structure
 * @dev Is used in mappings to allow zero values
 * @param isSet Value presence flag
 * @param value Numeric value
 */
struct OptionalValue {
    bool isSet;
    uint256 value;
}

/**
 * @notice Key-to-value structure
 * @dev Is used as an array parameter item to perform multiple key-value settings
 * @param key Numeric key
 * @param value Numeric value
 */
struct KeyToValue {
    uint256 key;
    uint256 value;
}

/**
 * @notice Key-to-value structure for address values
 * @dev Is used as an array parameter item to perform multiple key-value settings with address values
 * @param key Numeric key
 * @param value Address value
 */
struct KeyToAddressValue {
    uint256 key;
    address value;
}

/**
 * @notice Address-to-flag structure
 * @dev Is used as an array parameter item to perform multiple settings
 * @param account Account address
 * @param flag Flag value
 */
struct AccountToFlag {
    address account;
    bool flag;
}

/**
 * @notice Emitted when a list exceeds the size limit
 */
error ListSizeLimitError();

/**
 * @notice Sets or updates a value in a combined map (a mapping with a key list and key index mapping)
 * @param _map The mapping reference
 * @param _keyList The key list reference
 * @param _keyIndexMap The key list index mapping reference
 * @param _key The numeric key
 * @param _value The address value
 * @param _sizeLimit The map and list size limit
 * @return isNewKey True if the key was just added, otherwise false
 */
function combinedMapSet(
    mapping(uint256 => address) storage _map,
    uint256[] storage _keyList,
    mapping(uint256 => OptionalValue) storage _keyIndexMap,
    uint256 _key,
    address _value,
    uint256 _sizeLimit
) returns (bool isNewKey) {
    isNewKey = !_keyIndexMap[_key].isSet;

    if (isNewKey) {
        uniqueListAdd(_keyList, _keyIndexMap, _key, _sizeLimit);
    }

    _map[_key] = _value;
}

/**
 * @notice Removes a value from a combined map (a mapping with a key list and key index mapping)
 * @param _map The mapping reference
 * @param _keyList The key list reference
 * @param _keyIndexMap The key list index mapping reference
 * @param _key The numeric key
 * @return isChanged True if the combined map was changed, otherwise false
 */
function combinedMapRemove(
    mapping(uint256 => address) storage _map,
    uint256[] storage _keyList,
    mapping(uint256 => OptionalValue) storage _keyIndexMap,
    uint256 _key
) returns (bool isChanged) {
    isChanged = _keyIndexMap[_key].isSet;

    if (isChanged) {
        delete _map[_key];
        uniqueListRemove(_keyList, _keyIndexMap, _key);
    }
}

/**
 * @notice Adds a value to a unique value list (a list with value index mapping)
 * @param _list The list reference
 * @param _indexMap The value index mapping reference
 * @param _value The numeric value
 * @param _sizeLimit The list size limit
 * @return isChanged True if the list was changed, otherwise false
 */
function uniqueListAdd(
    uint256[] storage _list,
    mapping(uint256 => OptionalValue) storage _indexMap,
    uint256 _value,
    uint256 _sizeLimit
) returns (bool isChanged) {
    isChanged = !_indexMap[_value].isSet;

    if (isChanged) {
        if (_list.length >= _sizeLimit) {
            revert ListSizeLimitError();
        }

        _indexMap[_value] = OptionalValue(true, _list.length);
        _list.push(_value);
    }
}

/**
 * @notice Removes a value from a unique value list (a list with value index mapping)
 * @param _list The list reference
 * @param _indexMap The value index mapping reference
 * @param _value The numeric value
 * @return isChanged True if the list was changed, otherwise false
 */
function uniqueListRemove(
    uint256[] storage _list,
    mapping(uint256 => OptionalValue) storage _indexMap,
    uint256 _value
) returns (bool isChanged) {
    OptionalValue storage indexItem = _indexMap[_value];

    isChanged = indexItem.isSet;

    if (isChanged) {
        uint256 itemIndex = indexItem.value;
        uint256 lastIndex = _list.length - 1;

        if (itemIndex != lastIndex) {
            uint256 lastValue = _list[lastIndex];
            _list[itemIndex] = lastValue;
            _indexMap[lastValue].value = itemIndex;
        }

        _list.pop();
        delete _indexMap[_value];
    }
}

/**
 * @notice Adds a value to a unique address value list (a list with value index mapping)
 * @param _list The list reference
 * @param _indexMap The value index mapping reference
 * @param _value The address value
 * @param _sizeLimit The list size limit
 * @return isChanged True if the list was changed, otherwise false
 */
function uniqueAddressListAdd(
    address[] storage _list,
    mapping(address => OptionalValue) storage _indexMap,
    address _value,
    uint256 _sizeLimit
) returns (bool isChanged) {
    isChanged = !_indexMap[_value].isSet;

    if (isChanged) {
        if (_list.length >= _sizeLimit) {
            revert ListSizeLimitError();
        }

        _indexMap[_value] = OptionalValue(true, _list.length);
        _list.push(_value);
    }
}

/**
 * @notice Removes a value from a unique address value list (a list with value index mapping)
 * @param _list The list reference
 * @param _indexMap The value index mapping reference
 * @param _value The address value
 * @return isChanged True if the list was changed, otherwise false
 */
function uniqueAddressListRemove(
    address[] storage _list,
    mapping(address => OptionalValue) storage _indexMap,
    address _value
) returns (bool isChanged) {
    OptionalValue storage indexItem = _indexMap[_value];

    isChanged = indexItem.isSet;

    if (isChanged) {
        uint256 itemIndex = indexItem.value;
        uint256 lastIndex = _list.length - 1;

        if (itemIndex != lastIndex) {
            address lastValue = _list[lastIndex];
            _list[itemIndex] = lastValue;
            _indexMap[lastValue].value = itemIndex;
        }

        _list.pop();
        delete _indexMap[_value];
    }
}

/**
 * @notice Adds or removes a value to/from a unique address value list (a list with value index mapping)
 * @dev The list size limit is checked on items adding only
 * @param _list The list reference
 * @param _indexMap The value index mapping reference
 * @param _value The address value
 * @param _flag The value inclusion flag
 * @param _sizeLimit The list size limit
 * @return isChanged True if the list was changed, otherwise false
 */
function uniqueAddressListUpdate(
    address[] storage _list,
    mapping(address => OptionalValue) storage _indexMap,
    address _value,
    bool _flag,
    uint256 _sizeLimit
) returns (bool isChanged) {
    return
        _flag
            ? uniqueAddressListAdd(_list, _indexMap, _value, _sizeLimit)
            : uniqueAddressListRemove(_list, _indexMap, _value);
}

File 8 of 18 : Errors.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @notice Emitted when an attempt to burn a token fails
 */
error TokenBurnError();

/**
 * @notice Emitted when an attempt to mint a token fails
 */
error TokenMintError();

/**
 * @notice Emitted when a zero address is specified where it is not allowed
 */
error ZeroAddressError();

File 9 of 18 : AddressHelper.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @notice Emitted when the account is not a contract
 * @param account The account address
 */
error NonContractAddressError(address account);

/**
 * @notice Function to check if the account is a contract
 * @return The account contract status flag
 */
function isContract(address _account) view returns (bool) {
    return _account.code.length > 0;
}

/**
 * @notice Function to require an account to be a contract
 */
function requireContract(address _account) view {
    if (!isContract(_account)) {
        revert NonContractAddressError(_account);
    }
}

/**
 * @notice Function to require an account to be a contract or a zero address
 */
function requireContractOrZeroAddress(address _account) view {
    if (_account != address(0)) {
        requireContract(_account);
    }
}

File 10 of 18 : DecimalsHelper.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @notice Function to perform decimals conversion
 * @param _fromDecimals Source value decimals
 * @param _toDecimals Target value decimals
 * @param _fromAmount Source value
 * @return Target value
 */
function convertDecimals(
    uint256 _fromDecimals,
    uint256 _toDecimals,
    uint256 _fromAmount
) pure returns (uint256) {
    if (_toDecimals == _fromDecimals) {
        return _fromAmount;
    } else if (_toDecimals > _fromDecimals) {
        return _fromAmount * 10 ** (_toDecimals - _fromDecimals);
    } else {
        return _fromAmount / 10 ** (_fromDecimals - _toDecimals);
    }
}

File 11 of 18 : TransferHelper.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @notice Emitted when an approval action fails
 */
error SafeApproveError();

/**
 * @notice Emitted when a transfer action fails
 */
error SafeTransferError();

/**
 * @notice Emitted when a transferFrom action fails
 */
error SafeTransferFromError();

/**
 * @notice Emitted when a transfer of the native token fails
 */
error SafeTransferNativeError();

/**
 * @notice Safely approve the token to the account
 * @param _token The token address
 * @param _to The token approval recipient address
 * @param _value The token approval amount
 */
function safeApprove(address _token, address _to, uint256 _value) {
    // 0x095ea7b3 is the selector for "approve(address,uint256)"
    (bool success, bytes memory data) = _token.call(
        abi.encodeWithSelector(0x095ea7b3, _to, _value)
    );

    bool condition = success && (data.length == 0 || abi.decode(data, (bool)));

    if (!condition) {
        revert SafeApproveError();
    }
}

/**
 * @notice Safely transfer the token to the account
 * @param _token The token address
 * @param _to The token transfer recipient address
 * @param _value The token transfer amount
 */
function safeTransfer(address _token, address _to, uint256 _value) {
    // 0xa9059cbb is the selector for "transfer(address,uint256)"
    (bool success, bytes memory data) = _token.call(
        abi.encodeWithSelector(0xa9059cbb, _to, _value)
    );

    bool condition = success && (data.length == 0 || abi.decode(data, (bool)));

    if (!condition) {
        revert SafeTransferError();
    }
}

/**
 * @notice Safely transfer the token between the accounts
 * @param _token The token address
 * @param _from The token transfer source address
 * @param _to The token transfer recipient address
 * @param _value The token transfer amount
 */
function safeTransferFrom(address _token, address _from, address _to, uint256 _value) {
    // 0x23b872dd is the selector for "transferFrom(address,address,uint256)"
    (bool success, bytes memory data) = _token.call(
        abi.encodeWithSelector(0x23b872dd, _from, _to, _value)
    );

    bool condition = success && (data.length == 0 || abi.decode(data, (bool)));

    if (!condition) {
        revert SafeTransferFromError();
    }
}

/**
 * @notice Safely transfer the native token to the account
 * @param _to The native token transfer recipient address
 * @param _value The native token transfer amount
 */
function safeTransferNative(address _to, uint256 _value) {
    (bool success, ) = _to.call{ value: _value }(new bytes(0));

    if (!success) {
        revert SafeTransferNativeError();
    }
}

File 12 of 18 : IRegistry.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

import { ISettings } from './ISettings.sol';

interface IRegistry is ISettings {
    /**
     * @notice Getter of the registered gateway flag by the account address
     * @param _account The account address
     * @return The registered gateway flag
     */
    function isGatewayAddress(address _account) external view returns (bool);

    /**
     * @notice Settings for a single-chain swap
     * @param _caller The user's account address
     * @param _routerType The type of the swap router
     * @return Settings for a single-chain swap
     */
    function localSettings(
        address _caller,
        uint256 _routerType
    ) external view returns (LocalSettings memory);

    /**
     * @notice Getter of source chain settings for a cross-chain swap
     * @param _caller The user's account address
     * @param _targetChainId The target chain ID
     * @param _gatewayType The type of the cross-chain gateway
     * @param _routerType The type of the swap router
     * @param _vaultType The type of the vault
     * @return Source chain settings for a cross-chain swap
     */
    function sourceSettings(
        address _caller,
        uint256 _targetChainId,
        uint256 _gatewayType,
        uint256 _routerType,
        uint256 _vaultType
    ) external view returns (SourceSettings memory);

    /**
     * @notice Getter of target chain settings for a cross-chain swap
     * @param _vaultType The type of the vault
     * @param _routerType The type of the swap router
     * @return Target chain settings for a cross-chain swap
     */
    function targetSettings(
        uint256 _vaultType,
        uint256 _routerType
    ) external view returns (TargetSettings memory);

    /**
     * @notice Getter of variable balance repayment settings
     * @param _vaultType The type of the vault
     * @return Variable balance repayment settings
     */
    function variableBalanceRepaymentSettings(
        uint256 _vaultType
    ) external view returns (VariableBalanceRepaymentSettings memory);

    /**
     * @notice Getter of cross-chain message fee estimation settings
     * @param _gatewayType The type of the cross-chain gateway
     * @return Cross-chain message fee estimation settings
     */
    function messageFeeEstimateSettings(
        uint256 _gatewayType
    ) external view returns (MessageFeeEstimateSettings memory);

    /**
     * @notice Getter of swap result calculation settings for a single-chain swap
     * @param _caller The user's account address
     * @return Swap result calculation settings for a single-chain swap
     */
    function localAmountCalculationSettings(
        address _caller
    ) external view returns (LocalAmountCalculationSettings memory);

    /**
     * @notice Getter of swap result calculation settings for a cross-chain swap
     * @param _caller The user's account address
     * @param _vaultType The type of the vault
     * @param _fromChainId The ID of the swap source chain
     * @param _toChainId The ID of the swap target chain
     * @return Swap result calculation settings for a cross-chain swap
     */
    function vaultAmountCalculationSettings(
        address _caller,
        uint256 _vaultType,
        uint256 _fromChainId,
        uint256 _toChainId
    ) external view returns (VaultAmountCalculationSettings memory);

    /**
     * @notice Getter of amount limits in USD for cross-chain swaps
     * @param _vaultType The type of the vault
     * @return min Minimum cross-chain swap amount in USD, with decimals = 18
     * @return max Maximum cross-chain swap amount in USD, with decimals = 18
     */
    function swapAmountLimits(uint256 _vaultType) external view returns (uint256 min, uint256 max);
}

File 13 of 18 : ISettings.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @title ISettings
 * @notice Settings data structure declarations
 */
interface ISettings {
    /**
     * @notice Settings for a single-chain swap
     * @param router The swap router contract address
     * @param routerTransfer The swap router transfer contract address
     * @param systemFeeLocal The system fee value in milli-percent, e.g., 100 is 0.1%
     * @param feeCollectorLocal The address of the single-chain action fee collector
     * @param isWhitelist The whitelist flag
     */
    struct LocalSettings {
        address router;
        address routerTransfer;
        uint256 systemFeeLocal;
        address feeCollectorLocal;
        bool isWhitelist;
    }

    /**
     * @notice Source chain settings for a cross-chain swap
     * @param gateway The cross-chain gateway contract address
     * @param router The swap router contract address
     * @param routerTransfer The swap router transfer contract address
     * @param vault The vault contract address
     * @param sourceVaultDecimals The value of the vault decimals on the source chain
     * @param targetVaultDecimals The value of the vault decimals on the target chain
     * @param systemFee The system fee value in milli-percent, e.g., 100 is 0.1%
     * @param feeCollector The address of the cross-chain action fee collector
     * @param isWhitelist The whitelist flag
     * @param swapAmountMin The minimum cross-chain swap amount in USD, with decimals = 18
     * @param swapAmountMax The maximum cross-chain swap amount in USD, with decimals = 18
     */
    struct SourceSettings {
        address gateway;
        address router;
        address routerTransfer;
        address vault;
        uint256 sourceVaultDecimals;
        uint256 targetVaultDecimals;
        uint256 systemFee;
        address feeCollector;
        bool isWhitelist;
        uint256 swapAmountMin;
        uint256 swapAmountMax;
    }

    /**
     * @notice Target chain settings for a cross-chain swap
     * @param router The swap router contract address
     * @param routerTransfer The swap router transfer contract address
     * @param vault The vault contract address
     * @param gasReserve The target chain gas reserve value
     */
    struct TargetSettings {
        address router;
        address routerTransfer;
        address vault;
        uint256 gasReserve;
    }

    /**
     * @notice Variable balance repayment settings
     * @param vault The vault contract address
     */
    struct VariableBalanceRepaymentSettings {
        address vault;
    }

    /**
     * @notice Cross-chain message fee estimation settings
     * @param gateway The cross-chain gateway contract address
     */
    struct MessageFeeEstimateSettings {
        address gateway;
    }

    /**
     * @notice Swap result calculation settings for a single-chain swap
     * @param systemFee The system fee value in milli-percent, e.g., 100 is 0.1%
     * @param isWhitelist The whitelist flag
     */
    struct LocalAmountCalculationSettings {
        uint256 systemFeeLocal;
        bool isWhitelist;
    }

    /**
     * @notice Swap result calculation settings for a cross-chain swap
     * @param fromDecimals The value of the vault decimals on the source chain
     * @param toDecimals The value of the vault decimals on the target chain
     * @param systemFee The system fee value in milli-percent, e.g., 100 is 0.1%
     * @param isWhitelist The whitelist flag
     */
    struct VaultAmountCalculationSettings {
        uint256 fromDecimals;
        uint256 toDecimals;
        uint256 systemFee;
        bool isWhitelist;
    }
}

File 14 of 18 : ITokenBalance.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @title ITokenBalance
 * @notice Token balance interface
 */
interface ITokenBalance {
    /**
     * @notice Getter of the token balance by the account
     * @param _account The account address
     * @return Token balance
     */
    function balanceOf(address _account) external view returns (uint256);
}

File 15 of 18 : IVault.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @title IVault
 * @notice Vault interface
 */
interface IVault {
    /**
     * @notice The getter of the vault asset address
     */
    function asset() external view returns (address);

    /**
     * @notice Checks the status of the variable token and balance actions and the variable token address
     * @return The address of the variable token
     */
    function checkVariableTokenState() external view returns (address);

    /**
     * @notice Requests the vault asset tokens
     * @param _amount The amount of the vault asset tokens
     * @param _to The address of the vault asset tokens receiver
     * @param _forVariableBalance True if the request is made for a variable balance repayment, otherwise false
     * @return assetAddress The address of the vault asset token
     */
    function requestAsset(
        uint256 _amount,
        address _to,
        bool _forVariableBalance
    ) external returns (address assetAddress);
}

File 16 of 18 : ManagerRole.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol';
import { RoleBearers } from './RoleBearers.sol';

/**
 * @title ManagerRole
 * @notice Base contract that implements the Manager role.
 * The manager role is a high-permission role for core team members only.
 * Managers can set vaults and routers addresses, fees, cross-chain protocols,
 * and other parameters for Interchain (cross-chain) swaps and single-network swaps.
 * Please note, the manager role is unique for every contract,
 * hence different addresses may be assigned as managers for different contracts.
 */
abstract contract ManagerRole is Ownable, RoleBearers {
    bytes32 private constant ROLE_KEY = keccak256('Manager');

    /**
     * @notice Emitted when the Manager role status for the account is updated
     * @param account The account address
     * @param value The Manager role status flag
     */
    event SetManager(address indexed account, bool indexed value);

    /**
     * @notice Emitted when the Manager role status for the account is renounced
     * @param account The account address
     */
    event RenounceManagerRole(address indexed account);

    /**
     * @notice Emitted when the caller is not a Manager role bearer
     */
    error OnlyManagerError();

    /**
     * @dev Modifier to check if the caller is a Manager role bearer
     */
    modifier onlyManager() {
        if (!isManager(msg.sender)) {
            revert OnlyManagerError();
        }

        _;
    }

    /**
     * @notice Updates the Manager role status for the account
     * @param _account The account address
     * @param _value The Manager role status flag
     */
    function setManager(address _account, bool _value) public onlyOwner {
        _setRoleBearer(ROLE_KEY, _account, _value);

        emit SetManager(_account, _value);
    }

    /**
     * @notice Renounces the Manager role
     */
    function renounceManagerRole() external onlyManager {
        _setRoleBearer(ROLE_KEY, msg.sender, false);

        emit RenounceManagerRole(msg.sender);
    }

    /**
     * @notice Getter of the Manager role bearer count
     * @return The Manager role bearer count
     */
    function managerCount() external view returns (uint256) {
        return _roleBearerCount(ROLE_KEY);
    }

    /**
     * @notice Getter of the complete list of the Manager role bearers
     * @return The complete list of the Manager role bearers
     */
    function fullManagerList() external view returns (address[] memory) {
        return _fullRoleBearerList(ROLE_KEY);
    }

    /**
     * @notice Getter of the Manager role bearer status
     * @param _account The account address
     */
    function isManager(address _account) public view returns (bool) {
        return _isRoleBearer(ROLE_KEY, _account);
    }

    function _initRoles(
        address _owner,
        address[] memory _managers,
        bool _addOwnerToManagers
    ) internal {
        address ownerAddress = _owner == address(0) ? msg.sender : _owner;

        for (uint256 index; index < _managers.length; index++) {
            setManager(_managers[index], true);
        }

        if (_addOwnerToManagers && !isManager(ownerAddress)) {
            setManager(ownerAddress, true);
        }

        if (ownerAddress != msg.sender) {
            transferOwnership(ownerAddress);
        }
    }
}

File 17 of 18 : RoleBearers.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

import '../Constants.sol' as Constants;
import '../DataStructures.sol' as DataStructures;

/**
 * @title RoleBearers
 * @notice Base contract that implements role-based access control
 * @dev A custom implementation providing full role bearer lists
 */
abstract contract RoleBearers {
    mapping(bytes32 /*roleKey*/ => address[] /*roleBearers*/) private roleBearerTable;
    mapping(bytes32 /*roleKey*/ => mapping(address /*account*/ => DataStructures.OptionalValue /*status*/))
        private roleBearerIndexTable;

    function _setRoleBearer(bytes32 _roleKey, address _account, bool _value) internal {
        DataStructures.uniqueAddressListUpdate(
            roleBearerTable[_roleKey],
            roleBearerIndexTable[_roleKey],
            _account,
            _value,
            Constants.LIST_SIZE_LIMIT_DEFAULT
        );
    }

    function _isRoleBearer(bytes32 _roleKey, address _account) internal view returns (bool) {
        return roleBearerIndexTable[_roleKey][_account].isSet;
    }

    function _roleBearerCount(bytes32 _roleKey) internal view returns (uint256) {
        return roleBearerTable[_roleKey].length;
    }

    function _fullRoleBearerList(bytes32 _roleKey) internal view returns (address[] memory) {
        return roleBearerTable[_roleKey];
    }
}

File 18 of 18 : SystemVersionId.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.8.19;

/**
 * @title SystemVersionId
 * @notice Base contract providing the system version identifier
 */
abstract contract SystemVersionId {
    /**
     * @dev The system version identifier
     */
    uint256 public constant SYSTEM_VERSION_ID = uint256(keccak256('Initial'));
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"components":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"address","name":"value","type":"address"}],"internalType":"struct KeyToAddressValue[]","name":"_gateways","type":"tuple[]"},{"internalType":"address","name":"_feeCollector","type":"address"},{"internalType":"address","name":"_feeCollectorLocal","type":"address"},{"internalType":"uint256","name":"_targetGasReserve","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address[]","name":"_managers","type":"address[]"},{"internalType":"bool","name":"_addOwnerToManagers","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DuplicateGatewayAddressError","type":"error"},{"inputs":[],"name":"GatewayNotSetError","type":"error"},{"inputs":[],"name":"ListSizeLimitError","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"NonContractAddressError","type":"error"},{"inputs":[],"name":"OnlyManagerError","type":"error"},{"inputs":[],"name":"ReservedTokenError","type":"error"},{"inputs":[],"name":"RouterNotSetError","type":"error"},{"inputs":[],"name":"SafeTransferError","type":"error"},{"inputs":[],"name":"SafeTransferNativeError","type":"error"},{"inputs":[],"name":"SwapAmountMaxLessThanMinError","type":"error"},{"inputs":[],"name":"SwapAmountMinGreaterThanMaxError","type":"error"},{"inputs":[],"name":"SystemFeeValueError","type":"error"},{"inputs":[],"name":"VaultNotSetError","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"gatewayType","type":"uint256"}],"name":"RemoveGateway","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"routerType","type":"uint256"}],"name":"RemoveRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"vaultType","type":"uint256"}],"name":"RemoveVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"RenounceManagerRole","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"feeCollector","type":"address"}],"name":"SetFeeCollector","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"feeCollector","type":"address"}],"name":"SetFeeCollectorLocal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"gatewayType","type":"uint256"},{"indexed":true,"internalType":"address","name":"gatewayAddress","type":"address"}],"name":"SetGateway","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetManager","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"routerType","type":"uint256"},{"indexed":true,"internalType":"address","name":"routerAddress","type":"address"}],"name":"SetRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"routerType","type":"uint256"},{"indexed":true,"internalType":"address","name":"routerTransfer","type":"address"}],"name":"SetRouterTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetSwapAmountMax","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetSwapAmountMin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"systemFee","type":"uint256"}],"name":"SetSystemFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"systemFeeLocal","type":"uint256"}],"name":"SetSystemFeeLocal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"gasReserve","type":"uint256"}],"name":"SetTargetGasReserve","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"vaultType","type":"uint256"},{"indexed":true,"internalType":"address","name":"vaultAddress","type":"address"}],"name":"SetVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"vaultType","type":"uint256"},{"components":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"indexed":false,"internalType":"struct KeyToValue[]","name":"decimalsData","type":"tuple[]"}],"name":"SetVaultDecimals","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whitelistAddress","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"vaultType","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"chainIds","type":"uint256[]"}],"name":"UnsetVaultDecimals","type":"event"},{"inputs":[],"name":"SYSTEM_VERSION_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"cleanup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollectorLocal","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullGatewayTypeList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullManagerList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullRouterTypeList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullVaultDecimalsChainIdList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullVaultTypeList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullWhitelist","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gatewayMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gatewayTypeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gatewayTypeIndexMap","outputs":[{"internalType":"bool","name":"isSet","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gatewayTypeList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isGatewayAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"isReservedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"}],"name":"localAmountCalculationSettings","outputs":[{"components":[{"internalType":"uint256","name":"systemFeeLocal","type":"uint256"},{"internalType":"bool","name":"isWhitelist","type":"bool"}],"internalType":"struct ISettings.LocalAmountCalculationSettings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"uint256","name":"_routerType","type":"uint256"}],"name":"localSettings","outputs":[{"components":[{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"routerTransfer","type":"address"},{"internalType":"uint256","name":"systemFeeLocal","type":"uint256"},{"internalType":"address","name":"feeCollectorLocal","type":"address"},{"internalType":"bool","name":"isWhitelist","type":"bool"}],"internalType":"struct ISettings.LocalSettings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"managerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gatewayType","type":"uint256"}],"name":"messageFeeEstimateSettings","outputs":[{"components":[{"internalType":"address","name":"gateway","type":"address"}],"internalType":"struct ISettings.MessageFeeEstimateSettings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gatewayType","type":"uint256"}],"name":"removeGateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_routerTypes","type":"uint256[]"}],"name":"removeRouters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultType","type":"uint256"}],"name":"removeVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceManagerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"routerMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"routerTransferMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routerTypeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"routerTypeIndexMap","outputs":[{"internalType":"bool","name":"isSet","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"routerTypeList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollectorLocal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gatewayType","type":"uint256"},{"internalType":"address","name":"_gatewayAddress","type":"address"}],"name":"setGateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_routerType","type":"uint256"},{"internalType":"address","name":"_routerTransfer","type":"address"}],"name":"setRouterTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"address","name":"value","type":"address"}],"internalType":"struct KeyToAddressValue[]","name":"_routers","type":"tuple[]"}],"name":"setRouters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setSwapAmountMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setSwapAmountMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_systemFee","type":"uint256"}],"name":"setSystemFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_systemFeeLocal","type":"uint256"}],"name":"setSystemFeeLocal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gasReserve","type":"uint256"}],"name":"setTargetGasReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultType","type":"uint256"},{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultType","type":"uint256"},{"components":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct KeyToValue[]","name":"_decimalsData","type":"tuple[]"}],"name":"setVaultDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_whitelistAddress","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"uint256","name":"_targetChainId","type":"uint256"},{"internalType":"uint256","name":"_gatewayType","type":"uint256"},{"internalType":"uint256","name":"_routerType","type":"uint256"},{"internalType":"uint256","name":"_vaultType","type":"uint256"}],"name":"sourceSettings","outputs":[{"components":[{"internalType":"address","name":"gateway","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"routerTransfer","type":"address"},{"internalType":"address","name":"vault","type":"address"},{"internalType":"uint256","name":"sourceVaultDecimals","type":"uint256"},{"internalType":"uint256","name":"targetVaultDecimals","type":"uint256"},{"internalType":"uint256","name":"systemFee","type":"uint256"},{"internalType":"address","name":"feeCollector","type":"address"},{"internalType":"bool","name":"isWhitelist","type":"bool"},{"internalType":"uint256","name":"swapAmountMin","type":"uint256"},{"internalType":"uint256","name":"swapAmountMax","type":"uint256"}],"internalType":"struct ISettings.SourceSettings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultType","type":"uint256"}],"name":"swapAmountLimits","outputs":[{"internalType":"uint256","name":"min","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapAmountMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapAmountMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"systemFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"systemFeeLocal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"targetGasReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultType","type":"uint256"},{"internalType":"uint256","name":"_routerType","type":"uint256"}],"name":"targetSettings","outputs":[{"components":[{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"routerTransfer","type":"address"},{"internalType":"address","name":"vault","type":"address"},{"internalType":"uint256","name":"gasReserve","type":"uint256"}],"internalType":"struct ISettings.TargetSettings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"tokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultType","type":"uint256"},{"internalType":"uint256[]","name":"_chainIds","type":"uint256[]"}],"name":"unsetVaultDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultType","type":"uint256"}],"name":"variableBalanceRepaymentSettings","outputs":[{"components":[{"internalType":"address","name":"vault","type":"address"}],"internalType":"struct ISettings.VariableBalanceRepaymentSettings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"uint256","name":"_vaultType","type":"uint256"},{"internalType":"uint256","name":"_fromChainId","type":"uint256"},{"internalType":"uint256","name":"_toChainId","type":"uint256"}],"name":"vaultAmountCalculationSettings","outputs":[{"components":[{"internalType":"uint256","name":"fromDecimals","type":"uint256"},{"internalType":"uint256","name":"toDecimals","type":"uint256"},{"internalType":"uint256","name":"systemFee","type":"uint256"},{"internalType":"bool","name":"isWhitelist","type":"bool"}],"internalType":"struct ISettings.VaultAmountCalculationSettings","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultType","type":"uint256"},{"internalType":"uint256","name":"_chainId","type":"uint256"}],"name":"vaultDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultDecimalsChainIdCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultDecimalsChainIdIndexMap","outputs":[{"internalType":"bool","name":"isSet","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultDecimalsChainIdList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultDecimalsTable","outputs":[{"internalType":"bool","name":"isSet","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultTypeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultTypeIndexMap","outputs":[{"internalType":"bool","name":"isSet","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultTypeList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistIndexMap","outputs":[{"internalType":"bool","name":"isSet","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405260006018556000196019553480156200001c57600080fd5b5060405162003b7538038062003b758339810160408190526200003f9162000a94565b6200004a33620000fc565b60005b8751811015620000a85760008882815181106200006e576200006e62000be8565b6020026020010151905062000092816000015182602001516200014c60201b60201c565b50806200009f8162000c14565b9150506200004d565b50620000b560646200021c565b620000c160646200027c565b620000cc86620002d6565b620000d78562000320565b620000e2846200036a565b620000ef838383620003a0565b5050505050505062000c5c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000157816200045a565b6001600160a01b03811660009081526007602052604090205460ff1680156200019a57506000828152600460205260409020546001600160a01b03828116911614155b15620001b9576040516308c704ed60e41b815260040160405180910390fd5b620001cd6004600560068585606462000496565b506001600160a01b038116600081815260076020526040808220805460ff191660011790555184917f7abb2a08d413d164f83a1309ed5f176f1cbcec7981c54e1ea77166200f76f9d091a35050565b612710811115620002405760405163a087c72b60e01b815260040160405180910390fd5b60128190556040518181527faaaa2f5213e7e68a2a0f5ac46f82804b6563bca8af33ade9b4857868013ce41e906020015b60405180910390a150565b612710811115620002a05760405163a087c72b60e01b815260040160405180910390fd5b60138190556040518181527f73b4d99060d34f9204505c8197c70ef17b270fdda30c7908b29b4d2a6e5267c99060200162000271565b601480546001600160a01b0319166001600160a01b0383169081179091556040517fd649da8f6092116f86ea4e5139de0b75ad371d823918d16368ba3ff09a5cbc9f90600090a250565b601580546001600160a01b0319166001600160a01b0383169081179091556040517f46a9207d5fcd52e05c9a2af563b6011c9d1df25b8e301d37a2878eff50a8db7290600090a250565b60038190556040518181527fec9e8f9ec7dd2c5310e5b87c7bedeb6ba1c5943cb4d2da1ee80335508a5bc5a49060200162000271565b60006001600160a01b03841615620003b95783620003bb565b335b905060005b83518110156200040e57620003f9848281518110620003e357620003e362000be8565b60200260200101516001620004f560201b60201c565b80620004058162000c14565b915050620003c0565b50818015620004255750620004238162000568565b155b15620004385762000438816001620004f5565b6001600160a01b038116331462000454576200045481620005aa565b50505050565b6001600160a01b0381163b6200049357604051638c50d7cd60e01b81526001600160a01b03821660048201526024015b60405180910390fd5b50565b60008381526020859052604090205460ff16158015620004c057620004be8686868562000626565b505b600093845260209690965250604090912080546001600160a01b0319166001600160a01b039092169190911790555090919050565b620004ff620006b5565b6200052c7f6d439300980e333f0256d64be2c9f67e86f4493ce25f82498d6db7f4be3d9e6f838362000713565b604051811515906001600160a01b038416907fbe9474bb3e78da7e315cdffa5cfa30b767fcc95bbf44a6197da60228eea1028690600090a35050565b6001600160a01b03811660009081527f260b29b219d450563ddb0e5ca806bdadb1e125f7e8c506de0443797dd7122728602052604081205460ff165b92915050565b620005b4620006b5565b6001600160a01b0381166200061b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200048a565b6200049381620000fc565b60008281526020849052604090205460ff16158015620006ad5784548211620006625760405163b1655e3360e01b815260040160405180910390fd5b60408051808201825260018082528754602080840191825260008881528982529485209351845460ff1916901515178455905192820192909255875490810188558783529120018390555b949350505050565b6000546001600160a01b03163314620007115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200048a565b565b600083815260016020908152604080832060029092529091206200045491908484606460008262000751576200074b86868662000769565b6200075f565b6200075f868686856200089e565b9695505050505050565b6001600160a01b0381166000908152602083905260409020805460ff16908115620008965760018082015486549091600091620007a7919062000c30565b90508082146200083b576000878281548110620007c857620007c862000be8565b9060005260206000200160009054906101000a90046001600160a01b0316905080888481548110620007fe57620007fe62000be8565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905592909116815290879052604090206001018290555b868054806200084e576200084e62000c46565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038716825287905260408120805460ff191681556001015550505b509392505050565b6001600160a01b03821660009081526020849052604090205460ff16158015620006ad5784548211620008e45760405163b1655e3360e01b815260040160405180910390fd5b6040805180820182526001808252875460208084019182526001600160a01b039790971660008181529888529388209251835460ff19169015151783555191810191909155865490810187559585529290932090930180546001600160a01b0319169091179055919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156200098b576200098b62000950565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620009bc57620009bc62000950565b604052919050565b60006001600160401b03821115620009e057620009e062000950565b5060051b60200190565b80516001600160a01b038116811462000a0257600080fd5b919050565b600082601f83011262000a1957600080fd5b8151602062000a3262000a2c83620009c4565b62000991565b82815260059290921b8401810191818101908684111562000a5257600080fd5b8286015b8481101562000a785762000a6a81620009ea565b835291830191830162000a56565b509695505050505050565b8051801515811462000a0257600080fd5b600080600080600080600060e0888a03121562000ab057600080fd5b87516001600160401b038082111562000ac857600080fd5b818a0191508a601f83011262000add57600080fd5b815162000aee62000a2c82620009c4565b8082825260208201915060208360061b86010192508d83111562000b1157600080fd5b6020850194505b8285101562000b69576040858f03121562000b3257600080fd5b62000b3c62000966565b8551815262000b4e60208701620009ea565b60208201528083525060208201915060408501945062000b18565b9a5062000b7c91505060208b01620009ea565b975062000b8c60408b01620009ea565b965060608a0151955062000ba360808b01620009ea565b945060a08a015191508082111562000bba57600080fd5b5062000bc98a828b0162000a07565b92505062000bda60c0890162000a83565b905092959891949750929550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820162000c295762000c2962000bfe565b5060010190565b81810381811115620005a457620005a462000bfe565b634e487b7160e01b600052603160045260246000fd5b612f098062000c6c6000396000f3fe608060405234801561001057600080fd5b50600436106104285760003560e01c80637f9220901161022b578063d2e7b76f11610130578063e92750f9116100b8578063f0f4e03311610087578063f0f4e03314610b47578063f2624b5d14610b5a578063f2fde38b14610b62578063f36dd64e14610b75578063f3ae241514610bd757600080fd5b8063e92750f914610afb578063eaadd97614610b0e578063eedc966a14610b21578063f023901714610b3457600080fd5b8063e3725b15116100ff578063e3725b1514610a8d578063e4634bc114610a95578063e5dac70314610aa8578063e6d475d014610abb578063e7b5bcc114610ac357600080fd5b8063d2e7b76f14610a49578063d746628314610a5c578063dea3ae3f14610a71578063dffaea6214610a8457600080fd5b8063b6492e44116101b3578063c2c518e111610182578063c2c518e1146109d8578063c415b95c146109e0578063c683630d146109f3578063ca19b65b14610a06578063d2d13b6814610a1957600080fd5b8063b6492e441461096b578063bdd390d91461097e578063c0c8dbd3146109a7578063c25bce5e146109d057600080fd5b80639b9a0c95116101fa5780639b9a0c95146108e7578063a42dce8014610910578063a5e90eee14610923578063a6927f4e14610936578063b57688ff1461093e57600080fd5b80637f9220901461088d5780638c16d1da146108b05780638da5cb5b146108c35780639ab88c6f146108d457600080fd5b8063553499f41161033157806363e8308c116102b9578063715018a611610288578063715018a614610843578063748a995b1461084b578063759ccb511461085e57806376f9e101146108715780637ebd1b301461087a57600080fd5b806363e8308c146107a957806368201d6d146107e65780636e32d3e4146107ef5780636fb9ede01461083057600080fd5b8063585a9aa111610300578063585a9aa11461072b5780635873b6ba146107585780635a6c4d8c146107605780635a9fab501461078d578063630eae081461079657600080fd5b8063553499f414610688578063571f8c08146106dd5780635740d4c8146106f057806357d50f861461070357600080fd5b80632e376ada116103b457806334448e7a1161038357806334448e7a146106215780634209f64514610636578063440d72481461064957806347faabad1461066d57806353d6fd591461067557600080fd5b80632e376ada146105795780632ee22ef2146105a657806330eb1278146105ee578063322f24321461060157600080fd5b80631164b091116103fb5780631164b091146104be57806314b0452b146105025780631f17ee55146105155780631f3a7ccf1461051e57806323d675e41461052657600080fd5b806305ebaec71461042d578063093f0e27146104445780630baca50a1461046b578063103b739714610480575b600080fd5b600d545b6040519081526020015b60405180910390f35b6104317f22ad9585a395edc8067b50da4778cafbb7fa2c4bbd7619fad6aeba403857fd7481565b61047e6104793660046127ec565b610bea565b005b600080516020612eb483398151915260005260016020527f3c2285c553468ca8f30447b24bb463c127f1b840e23a0cafa23caa79d906669a54610431565b6104eb6104cc366004612807565b6011602052600090815260409020805460019091015460ff9091169082565b60408051921515835260208301919091520161043b565b61047e610510366004612807565b610c21565b61043160125481565b600554610431565b610539610534366004612820565b610c50565b6040805182516001600160a01b0390811682526020808501518216908301528383015116918101919091526060918201519181019190915260800161043b565b6104eb6105873660046127ec565b6017602052600090815260409020805460019091015460ff9091169082565b6105b96105b4366004612842565b610ccc565b60405161043b919081518152602080830151908201526040808301519082015260609182015115159181019190915260800190565b61047e6105fc36600461287b565b610d42565b61061461060f3660046128a5565b610da6565b60405161043b91906128e7565b610629610ebd565b60405161043b91906129ad565b61047e610644366004612807565b610f15565b61065d6106573660046127ec565b50600090565b604051901515815260200161043b565b610629610f9a565b61047e6106833660046129ff565b610ff0565b6106c5610696366004612807565b604080516020808201835260009182905282518082018452938252600c905220546001600160a01b0316815290565b60405190516001600160a01b0316815260200161043b565b61047e6106eb366004612a82565b611063565b61047e6106fe366004612b13565b611195565b610716610711366004612807565b611288565b6040805192835260208301919091520161043b565b6104eb610739366004612807565b600e602052600090815260409020805460019091015460ff9091169082565b61062961130d565b6104eb61076e366004612807565b600a602052600090815260409020805460019091015460ff9091169082565b61043160035481565b61047e6107a4366004612807565b611363565b6106c56107b7366004612807565b6040805160208082018352600091829052825180820184529382526004905220546001600160a01b0316815290565b61043160135481565b6108186107fd366004612807565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161043b565b61047e61083e366004612807565b611392565b61047e611410565b610431610859366004612807565b611424565b61043161086c366004612807565b611445565b61043160185481565b610818610888366004612807565b611455565b61065d61089b3660046127ec565b60076020526000908152604090205460ff1681565b61047e6108be366004612b52565b61147f565b6000546001600160a01b0316610818565b61047e6108e2366004612b7e565b6114fb565b6108186108f5366004612807565b6008602052600090815260409020546001600160a01b031681565b61047e61091e3660046127ec565b61157f565b61047e6109313660046129ff565b6115ae565b601054610431565b6104eb61094c366004612807565b6006602052600090815260409020805460019091015460ff9091169082565b601554610818906001600160a01b031681565b61081861098c366004612807565b600b602052600090815260409020546001600160a01b031681565b6108186109b5366004612807565b600c602052600090815260409020546001600160a01b031681565b600954610431565b61047e61160b565b601454610818906001600160a01b031681565b61065d610a013660046127ec565b611678565b61047e610a14366004612b52565b611696565b610a2c610a273660046127ec565b6116c6565b60408051825181526020928301511515928101929092520161043b565b610431610a57366004612807565b611700565b610a64611710565b60405161043b9190612bc0565b61047e610a7f366004612b52565b611771565b61043160195481565b610a6461182e565b61047e610aa3366004612c01565b611847565b61047e610ab6366004612807565b6118b1565b610629611968565b6104eb610ad1366004612820565b600f6020908152600092835260408084209091529082529020805460019091015460ff9091169082565b610431610b09366004612807565b6119be565b61047e610b1c366004612807565b6119ce565b610431610b2f3660046127ec565b611abd565b61047e610b42366004612807565b611b58565b610431610b55366004612820565b611b87565b601654610431565b61047e610b703660046127ec565b611bf0565b610b88610b8336600461287b565b611c6b565b60405161043b919081516001600160a01b039081168252602080840151821690830152604080840151908301526060808401519091169082015260809182015115159181019190915260a00190565b61065d610be53660046127ec565b611cf3565b610bf333611cf3565b610c1057604051637c3ea23f60e01b815260040160405180910390fd5b610c1981611d33565b50565b905090565b610c2a33611cf3565b610c4757604051637c3ea23f60e01b815260040160405180910390fd5b610c1981611d7d565b60408051608081018252600080825260208201819052918101829052606081018290529080610c7e84611dd5565b604080516080810182526001600160a01b0393841681529183166020808401919091526000898152600c90915281902054909216918101919091526003546060820152925050505b92915050565b610cf960405180608001604052806000815260200160008152602001600081526020016000151581525090565b6040518060800160405280610d0e8686611b87565b8152602001610d1d8685611b87565b81526020016012548152602001610d3387611678565b1515905290505b949350505050565b610d4b33611cf3565b610d6857604051637c3ea23f60e01b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03831601610d9b57610d973382611e09565b5050565b610d97823383611e97565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081018290529080610e0985611dd5565b604080516101608101825260008a815260046020908152838220546001600160a01b03908116845280871682850152808616848601528a8352600c909152929020549091166060820152919350915060808101610e668646611b87565b8152602001610e75868a611b87565b815260125460208201526014546001600160a01b03166040820152606001610e9c8a611678565b15158152601854602082015260195460409091015298975050505050505050565b60606010805480602002602001604051908101604052809291908181526020018280548015610f0b57602002820191906000526020600020905b815481526020019060010190808311610ef7575b5050505050905090565b610f1e33611cf3565b610f3b57604051637c3ea23f60e01b815260040160405180910390fd5b601954811115610f5e5760405163e727ac0760e01b815260040160405180910390fd5b60188190556040518181527f3525d1df2e36e20a497430c299de0e509478e4dd9c522d8711a0f41f1f936e9e906020015b60405180910390a150565b6060600d805480602002602001604051908101604052809291908181526020018280548015610f0b5760200282019190600052602060002090815481526020019060010190808311610ef7575050505050905090565b610ff933611cf3565b61101657604051637c3ea23f60e01b815260040160405180910390fd5b6110266016601784846064611f89565b50604051811515906001600160a01b038416907ff6019ec0a78d156d249a1ec7579e2321f6ac7521d6e1d2eacf90ba4a184dcceb90600090a35050565b61106c33611cf3565b61108957604051637c3ea23f60e01b815260040160405180910390fd5b6000838152600c60205260409020546001600160a01b03166110be57604051630b24de4b60e01b815260040160405180910390fd5b60005b8181101561115557368383838181106110dc576110dc612c37565b60400291909101915050803580156110ff576110fd60106011836064611fb6565b505b604080518082018252600180825260209485013585830190815260008a8152600f875284812095815294909552919092209151825460ff191690151517825591519101558061114d81612c63565b9150506110c1565b50827f7393b0594e5631e7228d92631b931eb7d24e4e9795cb623702437a9c21fe272b8383604051611188929190612c7c565b60405180910390a2505050565b61119e33611cf3565b6111bb57604051637c3ea23f60e01b815260040160405180910390fd5b6000838152600c60205260409020546001600160a01b03166111f057604051630b24de4b60e01b815260040160405180910390fd5b60005b8181101561125557600083838381811061120f5761120f612c37565b6000888152600f602090815260408083209382029590950135825291909152918220805460ff19168155600101919091555081905061124d81612c63565b9150506111f3565b50827f85a7db23b225153e82594f28005740b14897409059a1cbfe1320f19a3db74dc78383604051611188929190612cc3565b60008060185460001480156112a05750600019601954145b156112b2575060009050600019915091565b60006112be8446611b87565b90506018546000146112dd576112d860128260185461203f565b6112e0565b60005b925060001960195414611300576112fb60128260195461203f565b611304565b6000195b9150505b915091565b60606005805480602002602001604051908101604052809291908181526020018280548015610f0b5760200282019190600052602060002090815481526020019060010190808311610ef7575050505050905090565b61136c33611cf3565b61138957604051637c3ea23f60e01b815260040160405180910390fd5b610c19816120a3565b61139b33611cf3565b6113b857604051637c3ea23f60e01b815260040160405180910390fd5b6018548110156113db57604051634125ee9160e11b815260040160405180910390fd5b60198190556040518181527f89646538e16b6602c0cd4a72fc23682f4959bd6079e4180f7989bd4233eb8a7a90602001610f8f565b6114186120d8565b6114226000612132565b565b6005818154811061143457600080fd5b600091825260209091200154905081565b6009818154811061143457600080fd5b6016818154811061146557600080fd5b6000918252602090912001546001600160a01b0316905081565b61148833611cf3565b6114a557604051637c3ea23f60e01b815260040160405180910390fd5b6114ae81612182565b6114c0600c600d600e858560646121b5565b506040516001600160a01b0382169083907f03c5c138fa30f00c9bd95b31bed3e8d7b4711e7ec5cb377f6a18b32ba630cd2790600090a35050565b61150433611cf3565b61152157604051637c3ea23f60e01b815260040160405180910390fd5b60005b8181101561157a573683838381811061153f5761153f612c37565b9050604002019050611567816000013582602001602081019061156291906127ec565b612211565b508061157281612c63565b915050611524565b505050565b61158833611cf3565b6115a557604051637c3ea23f60e01b815260040160405180910390fd5b610c1981612267565b6115b66120d8565b6115cf600080516020612eb483398151915283836122b1565b604051811515906001600160a01b038416907fbe9474bb3e78da7e315cdffa5cfa30b767fcc95bbf44a6197da60228eea1028690600090a35050565b61161433611cf3565b61163157604051637c3ea23f60e01b815260040160405180910390fd5b61164b600080516020612eb48339815191523360006122b1565b60405133907f6cc2c67081f55c2fffb7c008fa995fbbf890f48c7c16fba93d8220f00dc84cc590600090a2565b6001600160a01b031660009081526017602052604090205460ff1690565b61169f33611cf3565b6116bc57604051637c3ea23f60e01b815260040160405180910390fd5b610d9782826122de565b6040805180820190915260008082526020820152604051806040016040528060135481526020016116f684611678565b1515905292915050565b6010818154811061143457600080fd5b60606016805480602002602001604051908101604052809291908181526020018280548015610f0b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161174a575050505050905090565b61177a33611cf3565b61179757604051637c3ea23f60e01b815260040160405180910390fd5b6000828152600860205260409020546001600160a01b03166117cc5760405163ebb12eb360e01b815260040160405180910390fd5b6117d5816123a8565b6000828152600b602052604080822080546001600160a01b0319166001600160a01b0385169081179091559051909184917f66e49d96cd98c11351d515875671af63416186605ef6cd3ae2214110766092dd9190a35050565b6060610c1c600080516020612eb48339815191526123c0565b61185033611cf3565b61186d57604051637c3ea23f60e01b815260040160405180910390fd5b60005b8181101561157a57600083838381811061188c5761188c612c37565b90506020020135905061189e8161242c565b50806118a981612c63565b915050611870565b6118ba33611cf3565b6118d757604051637c3ea23f60e01b815260040160405180910390fd5b6000818152600460205260409020546001600160a01b03168061190d5760405163ba8ec24160e01b815260040160405180910390fd5b61191c60046005600685612482565b506001600160a01b038116600090815260076020526040808220805460ff191690555183917fd74373b3c5b19af1d43b65f86bd63f6800b3b58ff6e0c1044d3d9503a1c73d4691a25050565b60606009805480602002602001604051908101604052809291908181526020018280548015610f0b5760200282019190600052602060002090815481526020019060010190808311610ef7575050505050905090565b600d818154811061143457600080fd5b6119d733611cf3565b6119f457604051637c3ea23f60e01b815260040160405180910390fd5b611a03600c600d600e84612482565b506000818152600f602090815260408083208380529091528120805460ff19168155600101819055601054905b81811015611a8d57600060108281548110611a4d57611a4d612c37565b6000918252602080832090910154868352600f8252604080842091845291528120805460ff19168155600101555080611a8581612c63565b915050611a30565b5060405182907f2e9b5ad10c5a5204f9f767633c2d354bf1b19c12260739a3d44d42d0df456a4490600090a25050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03831601611aeb575047919050565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015611b2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc69190612cfc565b919050565b611b6133611cf3565b611b7e57604051637c3ea23f60e01b815260040160405180910390fd5b610c19816124ca565b6000828152600f602090815260408083208484529091528120805460ff1615611bb557600101549050610cc6565b6000848152600f602090815260408083208380529091529020805460ff1615611be557600101549150610cc69050565b506012949350505050565b611bf86120d8565b6001600160a01b038116611c625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610c1981612132565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290529080611ca084611dd5565b6040805160a0810182526001600160a01b0380851682528084166020830152601354928201929092526015549091166060820152919350915060808101611ce687611678565b1515905295945050505050565b6001600160a01b03811660009081527f260b29b219d450563ddb0e5ca806bdadb1e125f7e8c506de0443797dd7122728602052604081205460ff16610cc6565b601580546001600160a01b0319166001600160a01b0383169081179091556040517f46a9207d5fcd52e05c9a2af563b6011c9d1df25b8e301d37a2878eff50a8db7290600090a250565b612710811115611da05760405163a087c72b60e01b815260040160405180910390fd5b60128190556040518181527faaaa2f5213e7e68a2a0f5ac46f82804b6563bca8af33ade9b4857868013ce41e90602001610f8f565b600081815260086020908152604080832054600b909252909120546001600160a01b03918216911680611308575080915091565b604080516000808252602082019092526001600160a01b038416908390604051611e339190612d15565b60006040518083038185875af1925050503d8060008114611e70576040519150601f19603f3d011682016040523d82523d6000602084013e611e75565b606091505b505090508061157a57604051632e05b05360e21b815260040160405180910390fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611ef39190612d15565b6000604051808303816000865af19150503d8060008114611f30576040519150601f19603f3d011682016040523d82523d6000602084013e611f35565b606091505b50915091506000828015611f61575081511580611f61575081806020019051810190611f619190612d44565b905080611f8157604051632fdb1b7f60e11b815260040160405180910390fd5b505050505050565b600082611fa057611f9b868686612522565b611fac565b611fac8686868561264a565b9695505050505050565b60008281526020849052604090205460ff16158015610d3a5784548211611ff05760405163b1655e3360e01b815260040160405180910390fd5b60408051808201825260018082528754602080840191825260008881529881529388209251835460ff191690151517835551918101919091558654908101875595855290932090930155919050565b600083830361204f57508061209c565b8383111561207d576120618484612d61565b61206c90600a612e58565b6120769083612e64565b905061209c565b6120878385612d61565b61209290600a612e58565b6120769083612e7b565b9392505050565b60038190556040518181527fec9e8f9ec7dd2c5310e5b87c7bedeb6ba1c5943cb4d2da1ee80335508a5bc5a490602001610f8f565b6000546001600160a01b031633146114225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611c59565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381163b610c1957604051638c50d7cd60e01b81526001600160a01b0382166004820152602401611c59565b60008381526020859052604090205460ff161580156121dc576121da86868685611fb6565b505b600093845260209690965250604090912080546001600160a01b0319166001600160a01b039092169190911790555090919050565b61221a81612182565b61222c60086009600a858560c86121b5565b506040516001600160a01b0382169083907fca5539b66dee2f17e4268fc1f3ce94aa3fb43a44e4651174b1eafd597476bb3f90600090a35050565b601480546001600160a01b0319166001600160a01b0383169081179091556040517fd649da8f6092116f86ea4e5139de0b75ad371d823918d16368ba3ff09a5cbc9f90600090a250565b600083815260016020908152604080832060029092529091206122d8919084846064611f89565b50505050565b6122e781612182565b6001600160a01b03811660009081526007602052604090205460ff16801561232957506000828152600460205260409020546001600160a01b03828116911614155b15612347576040516308c704ed60e41b815260040160405180910390fd5b612359600460056006858560646121b5565b506001600160a01b038116600081815260076020526040808220805460ff191660011790555184917f7abb2a08d413d164f83a1309ed5f176f1cbcec7981c54e1ea77166200f76f9d091a35050565b6001600160a01b03811615610c1957610c1981612182565b60008181526001602090815260409182902080548351818402810184019094528084526060939283018282801561242057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612402575b50505050509050919050565b61243b60086009600a84612482565b506000818152600b602052604080822080546001600160a01b03191690555182917f5848beff51a3442fb73c109ccd6f780a4697e2cc0b8b3afbb630e3843e73cbfd91a250565b60008181526020839052604090205460ff168015610d3a57600082815260208690526040902080546001600160a01b03191690556124c18484846126fa565b50949350505050565b6127108111156124ed5760405163a087c72b60e01b815260040160405180910390fd5b60138190556040518181527f73b4d99060d34f9204505c8197c70ef17b270fdda30c7908b29b4d2a6e5267c990602001610f8f565b6001600160a01b0381166000908152602083905260409020805460ff16908115612642576001808201548654909160009161255d9190612d61565b90508082146125ea57600087828154811061257a5761257a612c37565b9060005260206000200160009054906101000a90046001600160a01b03169050808884815481106125ad576125ad612c37565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905592909116815290879052604090206001018290555b868054806125fa576125fa612e9d565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038716825287905260408120805460ff191681556001015550505b509392505050565b6001600160a01b03821660009081526020849052604090205460ff16158015610d3a578454821161268e5760405163b1655e3360e01b815260040160405180910390fd5b6040805180820182526001808252875460208084019182526001600160a01b039790971660008181529888529388209251835460ff19169015151783555191810191909155865490810187559585529290932090930180546001600160a01b0319169091179055919050565b6000818152602083905260409020805460ff16908115612642576001808201548654909160009161272b9190612d61565b905080821461278a57600087828154811061274857612748612c37565b906000526020600020015490508088848154811061276857612768612c37565b6000918252602080832090910192909255918252879052604090206001018290555b8680548061279a5761279a612e9d565b60008281526020808220830160001990810183905590920190925586825287905260408120805460ff19168155600101555050509392505050565b80356001600160a01b0381168114611b5357600080fd5b6000602082840312156127fe57600080fd5b61209c826127d5565b60006020828403121561281957600080fd5b5035919050565b6000806040838503121561283357600080fd5b50508035926020909101359150565b6000806000806080858703121561285857600080fd5b612861856127d5565b966020860135965060408601359560600135945092505050565b6000806040838503121561288e57600080fd5b612897836127d5565b946020939093013593505050565b600080600080600060a086880312156128bd57600080fd5b6128c6866127d5565b97602087013597506040870135966060810135965060800135945092505050565b81516001600160a01b031681526101608101602083015161291360208401826001600160a01b03169052565b50604083015161292e60408401826001600160a01b03169052565b50606083015161294960608401826001600160a01b03169052565b506080830151608083015260a083015160a083015260c083015160c083015260e083015161298260e08401826001600160a01b03169052565b5061010083810151151590830152610120808401519083015261014092830151929091019190915290565b6020808252825182820181905260009190848201906040850190845b818110156129e5578351835292840192918401916001016129c9565b50909695505050505050565b8015158114610c1957600080fd5b60008060408385031215612a1257600080fd5b612a1b836127d5565b91506020830135612a2b816129f1565b809150509250929050565b60008083601f840112612a4857600080fd5b50813567ffffffffffffffff811115612a6057600080fd5b6020830191508360208260061b8501011115612a7b57600080fd5b9250929050565b600080600060408486031215612a9757600080fd5b83359250602084013567ffffffffffffffff811115612ab557600080fd5b612ac186828701612a36565b9497909650939450505050565b60008083601f840112612ae057600080fd5b50813567ffffffffffffffff811115612af857600080fd5b6020830191508360208260051b8501011115612a7b57600080fd5b600080600060408486031215612b2857600080fd5b83359250602084013567ffffffffffffffff811115612b4657600080fd5b612ac186828701612ace565b60008060408385031215612b6557600080fd5b82359150612b75602084016127d5565b90509250929050565b60008060208385031215612b9157600080fd5b823567ffffffffffffffff811115612ba857600080fd5b612bb485828601612a36565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156129e55783516001600160a01b031683529284019291840191600101612bdc565b60008060208385031215612c1457600080fd5b823567ffffffffffffffff811115612c2b57600080fd5b612bb485828601612ace565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612c7557612c75612c4d565b5060010190565b6020808252818101839052600090604080840186845b87811015612cb6578135835284820135858401529183019190830190600101612c92565b5090979650505050505050565b6020808252810182905260006001600160fb1b03831115612ce357600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215612d0e57600080fd5b5051919050565b6000825160005b81811015612d365760208186018101518583015201612d1c565b506000920191825250919050565b600060208284031215612d5657600080fd5b815161209c816129f1565b81810381811115610cc657610cc6612c4d565b600181815b80851115612daf578160001904821115612d9557612d95612c4d565b80851615612da257918102915b93841c9390800290612d79565b509250929050565b600082612dc657506001610cc6565b81612dd357506000610cc6565b8160018114612de95760028114612df357612e0f565b6001915050610cc6565b60ff841115612e0457612e04612c4d565b50506001821b610cc6565b5060208310610133831016604e8410600b8410161715612e32575081810a610cc6565b612e3c8383612d74565b8060001904821115612e5057612e50612c4d565b029392505050565b600061209c8383612db7565b8082028115828204841417610cc657610cc6612c4d565b600082612e9857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603160045260246000fdfe6d439300980e333f0256d64be2c9f67e86f4493ce25f82498d6db7f4be3d9e6fa2646970667358221220a823aedaffa2d24db0ea6773c3b0b162fd3eed161ead03acb190240422ea9dba64736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000005c01cf6671831c6dc72489bb74da092a9ccdaf750000000000000000000000005c01cf6671831c6dc72489bb74da092a9ccdaf75000000000000000000000000000000000000000000000000000000000000cb8400000000000000000000000072e28c7f34100afefc399fcc0ae041b8fe5841ae0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f35dc3505b2b150369bb267ca48a8eac36b9217c

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106104285760003560e01c80637f9220901161022b578063d2e7b76f11610130578063e92750f9116100b8578063f0f4e03311610087578063f0f4e03314610b47578063f2624b5d14610b5a578063f2fde38b14610b62578063f36dd64e14610b75578063f3ae241514610bd757600080fd5b8063e92750f914610afb578063eaadd97614610b0e578063eedc966a14610b21578063f023901714610b3457600080fd5b8063e3725b15116100ff578063e3725b1514610a8d578063e4634bc114610a95578063e5dac70314610aa8578063e6d475d014610abb578063e7b5bcc114610ac357600080fd5b8063d2e7b76f14610a49578063d746628314610a5c578063dea3ae3f14610a71578063dffaea6214610a8457600080fd5b8063b6492e44116101b3578063c2c518e111610182578063c2c518e1146109d8578063c415b95c146109e0578063c683630d146109f3578063ca19b65b14610a06578063d2d13b6814610a1957600080fd5b8063b6492e441461096b578063bdd390d91461097e578063c0c8dbd3146109a7578063c25bce5e146109d057600080fd5b80639b9a0c95116101fa5780639b9a0c95146108e7578063a42dce8014610910578063a5e90eee14610923578063a6927f4e14610936578063b57688ff1461093e57600080fd5b80637f9220901461088d5780638c16d1da146108b05780638da5cb5b146108c35780639ab88c6f146108d457600080fd5b8063553499f41161033157806363e8308c116102b9578063715018a611610288578063715018a614610843578063748a995b1461084b578063759ccb511461085e57806376f9e101146108715780637ebd1b301461087a57600080fd5b806363e8308c146107a957806368201d6d146107e65780636e32d3e4146107ef5780636fb9ede01461083057600080fd5b8063585a9aa111610300578063585a9aa11461072b5780635873b6ba146107585780635a6c4d8c146107605780635a9fab501461078d578063630eae081461079657600080fd5b8063553499f414610688578063571f8c08146106dd5780635740d4c8146106f057806357d50f861461070357600080fd5b80632e376ada116103b457806334448e7a1161038357806334448e7a146106215780634209f64514610636578063440d72481461064957806347faabad1461066d57806353d6fd591461067557600080fd5b80632e376ada146105795780632ee22ef2146105a657806330eb1278146105ee578063322f24321461060157600080fd5b80631164b091116103fb5780631164b091146104be57806314b0452b146105025780631f17ee55146105155780631f3a7ccf1461051e57806323d675e41461052657600080fd5b806305ebaec71461042d578063093f0e27146104445780630baca50a1461046b578063103b739714610480575b600080fd5b600d545b6040519081526020015b60405180910390f35b6104317f22ad9585a395edc8067b50da4778cafbb7fa2c4bbd7619fad6aeba403857fd7481565b61047e6104793660046127ec565b610bea565b005b600080516020612eb483398151915260005260016020527f3c2285c553468ca8f30447b24bb463c127f1b840e23a0cafa23caa79d906669a54610431565b6104eb6104cc366004612807565b6011602052600090815260409020805460019091015460ff9091169082565b60408051921515835260208301919091520161043b565b61047e610510366004612807565b610c21565b61043160125481565b600554610431565b610539610534366004612820565b610c50565b6040805182516001600160a01b0390811682526020808501518216908301528383015116918101919091526060918201519181019190915260800161043b565b6104eb6105873660046127ec565b6017602052600090815260409020805460019091015460ff9091169082565b6105b96105b4366004612842565b610ccc565b60405161043b919081518152602080830151908201526040808301519082015260609182015115159181019190915260800190565b61047e6105fc36600461287b565b610d42565b61061461060f3660046128a5565b610da6565b60405161043b91906128e7565b610629610ebd565b60405161043b91906129ad565b61047e610644366004612807565b610f15565b61065d6106573660046127ec565b50600090565b604051901515815260200161043b565b610629610f9a565b61047e6106833660046129ff565b610ff0565b6106c5610696366004612807565b604080516020808201835260009182905282518082018452938252600c905220546001600160a01b0316815290565b60405190516001600160a01b0316815260200161043b565b61047e6106eb366004612a82565b611063565b61047e6106fe366004612b13565b611195565b610716610711366004612807565b611288565b6040805192835260208301919091520161043b565b6104eb610739366004612807565b600e602052600090815260409020805460019091015460ff9091169082565b61062961130d565b6104eb61076e366004612807565b600a602052600090815260409020805460019091015460ff9091169082565b61043160035481565b61047e6107a4366004612807565b611363565b6106c56107b7366004612807565b6040805160208082018352600091829052825180820184529382526004905220546001600160a01b0316815290565b61043160135481565b6108186107fd366004612807565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161043b565b61047e61083e366004612807565b611392565b61047e611410565b610431610859366004612807565b611424565b61043161086c366004612807565b611445565b61043160185481565b610818610888366004612807565b611455565b61065d61089b3660046127ec565b60076020526000908152604090205460ff1681565b61047e6108be366004612b52565b61147f565b6000546001600160a01b0316610818565b61047e6108e2366004612b7e565b6114fb565b6108186108f5366004612807565b6008602052600090815260409020546001600160a01b031681565b61047e61091e3660046127ec565b61157f565b61047e6109313660046129ff565b6115ae565b601054610431565b6104eb61094c366004612807565b6006602052600090815260409020805460019091015460ff9091169082565b601554610818906001600160a01b031681565b61081861098c366004612807565b600b602052600090815260409020546001600160a01b031681565b6108186109b5366004612807565b600c602052600090815260409020546001600160a01b031681565b600954610431565b61047e61160b565b601454610818906001600160a01b031681565b61065d610a013660046127ec565b611678565b61047e610a14366004612b52565b611696565b610a2c610a273660046127ec565b6116c6565b60408051825181526020928301511515928101929092520161043b565b610431610a57366004612807565b611700565b610a64611710565b60405161043b9190612bc0565b61047e610a7f366004612b52565b611771565b61043160195481565b610a6461182e565b61047e610aa3366004612c01565b611847565b61047e610ab6366004612807565b6118b1565b610629611968565b6104eb610ad1366004612820565b600f6020908152600092835260408084209091529082529020805460019091015460ff9091169082565b610431610b09366004612807565b6119be565b61047e610b1c366004612807565b6119ce565b610431610b2f3660046127ec565b611abd565b61047e610b42366004612807565b611b58565b610431610b55366004612820565b611b87565b601654610431565b61047e610b703660046127ec565b611bf0565b610b88610b8336600461287b565b611c6b565b60405161043b919081516001600160a01b039081168252602080840151821690830152604080840151908301526060808401519091169082015260809182015115159181019190915260a00190565b61065d610be53660046127ec565b611cf3565b610bf333611cf3565b610c1057604051637c3ea23f60e01b815260040160405180910390fd5b610c1981611d33565b50565b905090565b610c2a33611cf3565b610c4757604051637c3ea23f60e01b815260040160405180910390fd5b610c1981611d7d565b60408051608081018252600080825260208201819052918101829052606081018290529080610c7e84611dd5565b604080516080810182526001600160a01b0393841681529183166020808401919091526000898152600c90915281902054909216918101919091526003546060820152925050505b92915050565b610cf960405180608001604052806000815260200160008152602001600081526020016000151581525090565b6040518060800160405280610d0e8686611b87565b8152602001610d1d8685611b87565b81526020016012548152602001610d3387611678565b1515905290505b949350505050565b610d4b33611cf3565b610d6857604051637c3ea23f60e01b815260040160405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03831601610d9b57610d973382611e09565b5050565b610d97823383611e97565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081018290529080610e0985611dd5565b604080516101608101825260008a815260046020908152838220546001600160a01b03908116845280871682850152808616848601528a8352600c909152929020549091166060820152919350915060808101610e668646611b87565b8152602001610e75868a611b87565b815260125460208201526014546001600160a01b03166040820152606001610e9c8a611678565b15158152601854602082015260195460409091015298975050505050505050565b60606010805480602002602001604051908101604052809291908181526020018280548015610f0b57602002820191906000526020600020905b815481526020019060010190808311610ef7575b5050505050905090565b610f1e33611cf3565b610f3b57604051637c3ea23f60e01b815260040160405180910390fd5b601954811115610f5e5760405163e727ac0760e01b815260040160405180910390fd5b60188190556040518181527f3525d1df2e36e20a497430c299de0e509478e4dd9c522d8711a0f41f1f936e9e906020015b60405180910390a150565b6060600d805480602002602001604051908101604052809291908181526020018280548015610f0b5760200282019190600052602060002090815481526020019060010190808311610ef7575050505050905090565b610ff933611cf3565b61101657604051637c3ea23f60e01b815260040160405180910390fd5b6110266016601784846064611f89565b50604051811515906001600160a01b038416907ff6019ec0a78d156d249a1ec7579e2321f6ac7521d6e1d2eacf90ba4a184dcceb90600090a35050565b61106c33611cf3565b61108957604051637c3ea23f60e01b815260040160405180910390fd5b6000838152600c60205260409020546001600160a01b03166110be57604051630b24de4b60e01b815260040160405180910390fd5b60005b8181101561115557368383838181106110dc576110dc612c37565b60400291909101915050803580156110ff576110fd60106011836064611fb6565b505b604080518082018252600180825260209485013585830190815260008a8152600f875284812095815294909552919092209151825460ff191690151517825591519101558061114d81612c63565b9150506110c1565b50827f7393b0594e5631e7228d92631b931eb7d24e4e9795cb623702437a9c21fe272b8383604051611188929190612c7c565b60405180910390a2505050565b61119e33611cf3565b6111bb57604051637c3ea23f60e01b815260040160405180910390fd5b6000838152600c60205260409020546001600160a01b03166111f057604051630b24de4b60e01b815260040160405180910390fd5b60005b8181101561125557600083838381811061120f5761120f612c37565b6000888152600f602090815260408083209382029590950135825291909152918220805460ff19168155600101919091555081905061124d81612c63565b9150506111f3565b50827f85a7db23b225153e82594f28005740b14897409059a1cbfe1320f19a3db74dc78383604051611188929190612cc3565b60008060185460001480156112a05750600019601954145b156112b2575060009050600019915091565b60006112be8446611b87565b90506018546000146112dd576112d860128260185461203f565b6112e0565b60005b925060001960195414611300576112fb60128260195461203f565b611304565b6000195b9150505b915091565b60606005805480602002602001604051908101604052809291908181526020018280548015610f0b5760200282019190600052602060002090815481526020019060010190808311610ef7575050505050905090565b61136c33611cf3565b61138957604051637c3ea23f60e01b815260040160405180910390fd5b610c19816120a3565b61139b33611cf3565b6113b857604051637c3ea23f60e01b815260040160405180910390fd5b6018548110156113db57604051634125ee9160e11b815260040160405180910390fd5b60198190556040518181527f89646538e16b6602c0cd4a72fc23682f4959bd6079e4180f7989bd4233eb8a7a90602001610f8f565b6114186120d8565b6114226000612132565b565b6005818154811061143457600080fd5b600091825260209091200154905081565b6009818154811061143457600080fd5b6016818154811061146557600080fd5b6000918252602090912001546001600160a01b0316905081565b61148833611cf3565b6114a557604051637c3ea23f60e01b815260040160405180910390fd5b6114ae81612182565b6114c0600c600d600e858560646121b5565b506040516001600160a01b0382169083907f03c5c138fa30f00c9bd95b31bed3e8d7b4711e7ec5cb377f6a18b32ba630cd2790600090a35050565b61150433611cf3565b61152157604051637c3ea23f60e01b815260040160405180910390fd5b60005b8181101561157a573683838381811061153f5761153f612c37565b9050604002019050611567816000013582602001602081019061156291906127ec565b612211565b508061157281612c63565b915050611524565b505050565b61158833611cf3565b6115a557604051637c3ea23f60e01b815260040160405180910390fd5b610c1981612267565b6115b66120d8565b6115cf600080516020612eb483398151915283836122b1565b604051811515906001600160a01b038416907fbe9474bb3e78da7e315cdffa5cfa30b767fcc95bbf44a6197da60228eea1028690600090a35050565b61161433611cf3565b61163157604051637c3ea23f60e01b815260040160405180910390fd5b61164b600080516020612eb48339815191523360006122b1565b60405133907f6cc2c67081f55c2fffb7c008fa995fbbf890f48c7c16fba93d8220f00dc84cc590600090a2565b6001600160a01b031660009081526017602052604090205460ff1690565b61169f33611cf3565b6116bc57604051637c3ea23f60e01b815260040160405180910390fd5b610d9782826122de565b6040805180820190915260008082526020820152604051806040016040528060135481526020016116f684611678565b1515905292915050565b6010818154811061143457600080fd5b60606016805480602002602001604051908101604052809291908181526020018280548015610f0b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161174a575050505050905090565b61177a33611cf3565b61179757604051637c3ea23f60e01b815260040160405180910390fd5b6000828152600860205260409020546001600160a01b03166117cc5760405163ebb12eb360e01b815260040160405180910390fd5b6117d5816123a8565b6000828152600b602052604080822080546001600160a01b0319166001600160a01b0385169081179091559051909184917f66e49d96cd98c11351d515875671af63416186605ef6cd3ae2214110766092dd9190a35050565b6060610c1c600080516020612eb48339815191526123c0565b61185033611cf3565b61186d57604051637c3ea23f60e01b815260040160405180910390fd5b60005b8181101561157a57600083838381811061188c5761188c612c37565b90506020020135905061189e8161242c565b50806118a981612c63565b915050611870565b6118ba33611cf3565b6118d757604051637c3ea23f60e01b815260040160405180910390fd5b6000818152600460205260409020546001600160a01b03168061190d5760405163ba8ec24160e01b815260040160405180910390fd5b61191c60046005600685612482565b506001600160a01b038116600090815260076020526040808220805460ff191690555183917fd74373b3c5b19af1d43b65f86bd63f6800b3b58ff6e0c1044d3d9503a1c73d4691a25050565b60606009805480602002602001604051908101604052809291908181526020018280548015610f0b5760200282019190600052602060002090815481526020019060010190808311610ef7575050505050905090565b600d818154811061143457600080fd5b6119d733611cf3565b6119f457604051637c3ea23f60e01b815260040160405180910390fd5b611a03600c600d600e84612482565b506000818152600f602090815260408083208380529091528120805460ff19168155600101819055601054905b81811015611a8d57600060108281548110611a4d57611a4d612c37565b6000918252602080832090910154868352600f8252604080842091845291528120805460ff19168155600101555080611a8581612c63565b915050611a30565b5060405182907f2e9b5ad10c5a5204f9f767633c2d354bf1b19c12260739a3d44d42d0df456a4490600090a25050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03831601611aeb575047919050565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015611b2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc69190612cfc565b919050565b611b6133611cf3565b611b7e57604051637c3ea23f60e01b815260040160405180910390fd5b610c19816124ca565b6000828152600f602090815260408083208484529091528120805460ff1615611bb557600101549050610cc6565b6000848152600f602090815260408083208380529091529020805460ff1615611be557600101549150610cc69050565b506012949350505050565b611bf86120d8565b6001600160a01b038116611c625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610c1981612132565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290529080611ca084611dd5565b6040805160a0810182526001600160a01b0380851682528084166020830152601354928201929092526015549091166060820152919350915060808101611ce687611678565b1515905295945050505050565b6001600160a01b03811660009081527f260b29b219d450563ddb0e5ca806bdadb1e125f7e8c506de0443797dd7122728602052604081205460ff16610cc6565b601580546001600160a01b0319166001600160a01b0383169081179091556040517f46a9207d5fcd52e05c9a2af563b6011c9d1df25b8e301d37a2878eff50a8db7290600090a250565b612710811115611da05760405163a087c72b60e01b815260040160405180910390fd5b60128190556040518181527faaaa2f5213e7e68a2a0f5ac46f82804b6563bca8af33ade9b4857868013ce41e90602001610f8f565b600081815260086020908152604080832054600b909252909120546001600160a01b03918216911680611308575080915091565b604080516000808252602082019092526001600160a01b038416908390604051611e339190612d15565b60006040518083038185875af1925050503d8060008114611e70576040519150601f19603f3d011682016040523d82523d6000602084013e611e75565b606091505b505090508061157a57604051632e05b05360e21b815260040160405180910390fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611ef39190612d15565b6000604051808303816000865af19150503d8060008114611f30576040519150601f19603f3d011682016040523d82523d6000602084013e611f35565b606091505b50915091506000828015611f61575081511580611f61575081806020019051810190611f619190612d44565b905080611f8157604051632fdb1b7f60e11b815260040160405180910390fd5b505050505050565b600082611fa057611f9b868686612522565b611fac565b611fac8686868561264a565b9695505050505050565b60008281526020849052604090205460ff16158015610d3a5784548211611ff05760405163b1655e3360e01b815260040160405180910390fd5b60408051808201825260018082528754602080840191825260008881529881529388209251835460ff191690151517835551918101919091558654908101875595855290932090930155919050565b600083830361204f57508061209c565b8383111561207d576120618484612d61565b61206c90600a612e58565b6120769083612e64565b905061209c565b6120878385612d61565b61209290600a612e58565b6120769083612e7b565b9392505050565b60038190556040518181527fec9e8f9ec7dd2c5310e5b87c7bedeb6ba1c5943cb4d2da1ee80335508a5bc5a490602001610f8f565b6000546001600160a01b031633146114225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611c59565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381163b610c1957604051638c50d7cd60e01b81526001600160a01b0382166004820152602401611c59565b60008381526020859052604090205460ff161580156121dc576121da86868685611fb6565b505b600093845260209690965250604090912080546001600160a01b0319166001600160a01b039092169190911790555090919050565b61221a81612182565b61222c60086009600a858560c86121b5565b506040516001600160a01b0382169083907fca5539b66dee2f17e4268fc1f3ce94aa3fb43a44e4651174b1eafd597476bb3f90600090a35050565b601480546001600160a01b0319166001600160a01b0383169081179091556040517fd649da8f6092116f86ea4e5139de0b75ad371d823918d16368ba3ff09a5cbc9f90600090a250565b600083815260016020908152604080832060029092529091206122d8919084846064611f89565b50505050565b6122e781612182565b6001600160a01b03811660009081526007602052604090205460ff16801561232957506000828152600460205260409020546001600160a01b03828116911614155b15612347576040516308c704ed60e41b815260040160405180910390fd5b612359600460056006858560646121b5565b506001600160a01b038116600081815260076020526040808220805460ff191660011790555184917f7abb2a08d413d164f83a1309ed5f176f1cbcec7981c54e1ea77166200f76f9d091a35050565b6001600160a01b03811615610c1957610c1981612182565b60008181526001602090815260409182902080548351818402810184019094528084526060939283018282801561242057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612402575b50505050509050919050565b61243b60086009600a84612482565b506000818152600b602052604080822080546001600160a01b03191690555182917f5848beff51a3442fb73c109ccd6f780a4697e2cc0b8b3afbb630e3843e73cbfd91a250565b60008181526020839052604090205460ff168015610d3a57600082815260208690526040902080546001600160a01b03191690556124c18484846126fa565b50949350505050565b6127108111156124ed5760405163a087c72b60e01b815260040160405180910390fd5b60138190556040518181527f73b4d99060d34f9204505c8197c70ef17b270fdda30c7908b29b4d2a6e5267c990602001610f8f565b6001600160a01b0381166000908152602083905260409020805460ff16908115612642576001808201548654909160009161255d9190612d61565b90508082146125ea57600087828154811061257a5761257a612c37565b9060005260206000200160009054906101000a90046001600160a01b03169050808884815481106125ad576125ad612c37565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905592909116815290879052604090206001018290555b868054806125fa576125fa612e9d565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038716825287905260408120805460ff191681556001015550505b509392505050565b6001600160a01b03821660009081526020849052604090205460ff16158015610d3a578454821161268e5760405163b1655e3360e01b815260040160405180910390fd5b6040805180820182526001808252875460208084019182526001600160a01b039790971660008181529888529388209251835460ff19169015151783555191810191909155865490810187559585529290932090930180546001600160a01b0319169091179055919050565b6000818152602083905260409020805460ff16908115612642576001808201548654909160009161272b9190612d61565b905080821461278a57600087828154811061274857612748612c37565b906000526020600020015490508088848154811061276857612768612c37565b6000918252602080832090910192909255918252879052604090206001018290555b8680548061279a5761279a612e9d565b60008281526020808220830160001990810183905590920190925586825287905260408120805460ff19168155600101555050509392505050565b80356001600160a01b0381168114611b5357600080fd5b6000602082840312156127fe57600080fd5b61209c826127d5565b60006020828403121561281957600080fd5b5035919050565b6000806040838503121561283357600080fd5b50508035926020909101359150565b6000806000806080858703121561285857600080fd5b612861856127d5565b966020860135965060408601359560600135945092505050565b6000806040838503121561288e57600080fd5b612897836127d5565b946020939093013593505050565b600080600080600060a086880312156128bd57600080fd5b6128c6866127d5565b97602087013597506040870135966060810135965060800135945092505050565b81516001600160a01b031681526101608101602083015161291360208401826001600160a01b03169052565b50604083015161292e60408401826001600160a01b03169052565b50606083015161294960608401826001600160a01b03169052565b506080830151608083015260a083015160a083015260c083015160c083015260e083015161298260e08401826001600160a01b03169052565b5061010083810151151590830152610120808401519083015261014092830151929091019190915290565b6020808252825182820181905260009190848201906040850190845b818110156129e5578351835292840192918401916001016129c9565b50909695505050505050565b8015158114610c1957600080fd5b60008060408385031215612a1257600080fd5b612a1b836127d5565b91506020830135612a2b816129f1565b809150509250929050565b60008083601f840112612a4857600080fd5b50813567ffffffffffffffff811115612a6057600080fd5b6020830191508360208260061b8501011115612a7b57600080fd5b9250929050565b600080600060408486031215612a9757600080fd5b83359250602084013567ffffffffffffffff811115612ab557600080fd5b612ac186828701612a36565b9497909650939450505050565b60008083601f840112612ae057600080fd5b50813567ffffffffffffffff811115612af857600080fd5b6020830191508360208260051b8501011115612a7b57600080fd5b600080600060408486031215612b2857600080fd5b83359250602084013567ffffffffffffffff811115612b4657600080fd5b612ac186828701612ace565b60008060408385031215612b6557600080fd5b82359150612b75602084016127d5565b90509250929050565b60008060208385031215612b9157600080fd5b823567ffffffffffffffff811115612ba857600080fd5b612bb485828601612a36565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156129e55783516001600160a01b031683529284019291840191600101612bdc565b60008060208385031215612c1457600080fd5b823567ffffffffffffffff811115612c2b57600080fd5b612bb485828601612ace565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612c7557612c75612c4d565b5060010190565b6020808252818101839052600090604080840186845b87811015612cb6578135835284820135858401529183019190830190600101612c92565b5090979650505050505050565b6020808252810182905260006001600160fb1b03831115612ce357600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215612d0e57600080fd5b5051919050565b6000825160005b81811015612d365760208186018101518583015201612d1c565b506000920191825250919050565b600060208284031215612d5657600080fd5b815161209c816129f1565b81810381811115610cc657610cc6612c4d565b600181815b80851115612daf578160001904821115612d9557612d95612c4d565b80851615612da257918102915b93841c9390800290612d79565b509250929050565b600082612dc657506001610cc6565b81612dd357506000610cc6565b8160018114612de95760028114612df357612e0f565b6001915050610cc6565b60ff841115612e0457612e04612c4d565b50506001821b610cc6565b5060208310610133831016604e8410600b8410161715612e32575081810a610cc6565b612e3c8383612d74565b8060001904821115612e5057612e50612c4d565b029392505050565b600061209c8383612db7565b8082028115828204841417610cc657610cc6612c4d565b600082612e9857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603160045260246000fdfe6d439300980e333f0256d64be2c9f67e86f4493ce25f82498d6db7f4be3d9e6fa2646970667358221220a823aedaffa2d24db0ea6773c3b0b162fd3eed161ead03acb190240422ea9dba64736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000005c01cf6671831c6dc72489bb74da092a9ccdaf750000000000000000000000005c01cf6671831c6dc72489bb74da092a9ccdaf75000000000000000000000000000000000000000000000000000000000000cb8400000000000000000000000072e28c7f34100afefc399fcc0ae041b8fe5841ae0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000f35dc3505b2b150369bb267ca48a8eac36b9217c

-----Decoded View---------------

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000005c01cf6671831c6dc72489bb74da092a9ccdaf75
Arg [2] : 0000000000000000000000005c01cf6671831c6dc72489bb74da092a9ccdaf75
Arg [3] : 000000000000000000000000000000000000000000000000000000000000cb84
Arg [4] : 00000000000000000000000072e28c7f34100afefc399fcc0ae041b8fe5841ae
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 000000000000000000000000f35dc3505b2b150369bb267ca48a8eac36b9217c


Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.