Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
StakingContract
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "./libs/BytesLib.sol";
import "./interfaces/IFeeRecipient.sol";
import "./interfaces/IDepositContract.sol";
import "./libs/StakingContractStorageLib.sol";
import "@openzeppelin/contracts/proxy/Clones.sol";
import "./interfaces/ISanctionsOracle.sol";
/// @title Ethereum Staking Contract
/// @author Kiln
/// @notice You can use this contract to store validator keys and have users fund them and trigger deposits.
contract StakingContract {
using StakingContractStorageLib for bytes32;
uint256 internal constant EXECUTION_LAYER_SALT_PREFIX = 0;
uint256 internal constant CONSENSUS_LAYER_SALT_PREFIX = 1;
uint256 public constant SIGNATURE_LENGTH = 96;
uint256 public constant PUBLIC_KEY_LENGTH = 48;
uint256 public constant DEPOSIT_SIZE = 32 ether;
// this is the equivalent of Uint256Lib.toLittleEndian64(DEPOSIT_SIZE / 1000000000 wei);
uint256 constant DEPOSIT_SIZE_AMOUNT_LITTLEENDIAN64 =
0x0040597307000000000000000000000000000000000000000000000000000000;
uint256 internal constant BASIS_POINTS = 10_000;
uint256 internal constant WITHDRAWAL_CREDENTIAL_PREFIX_01 =
0x0100000000000000000000000000000000000000000000000000000000000000;
error Forbidden();
error InvalidFee();
error Deactivated();
error NoOperators();
error InvalidCall();
error Unauthorized();
error DepositFailure();
error DepositsStopped();
error InvalidArgument();
error UnsortedIndexes();
error InvalidPublicKeys();
error InvalidSignatures();
error InvalidWithdrawer();
error InvalidZeroAddress();
error AlreadyInitialized();
error InvalidDepositValue();
error NotEnoughValidators();
error InvalidValidatorCount();
error DuplicateValidatorKey(bytes);
error FundedValidatorDeletionAttempt();
error OperatorLimitTooHigh(uint256 limit, uint256 keyCount);
error MaximumOperatorCountAlreadyReached();
error LastEditAfterSnapshot();
error PublicKeyNotInContract();
error AddressSanctioned(address sanctionedAccount);
error AddressBlocked(address blockedAccount);
event Deposit(address indexed caller, address indexed withdrawer, bytes publicKey, bytes signature);
event ValidatorKeysAdded(uint256 indexed operatorIndex, bytes publicKeys, bytes signatures);
event ValidatorKeyRemoved(uint256 indexed operatorIndex, bytes publicKey);
event ChangedWithdrawer(bytes publicKey, address newWithdrawer);
event ChangedOperatorLimit(uint256 operatorIndex, uint256 limit);
event ChangedTreasury(address newTreasury);
event ChangedGlobalFee(uint256 newGlobalFee);
event ChangedOperatorFee(uint256 newOperatorFee);
event ChangedAdmin(address newAdmin);
event ChangedDepositsStopped(bool isStopped);
event NewOperator(address operatorAddress, address feeRecipientAddress, uint256 index);
event ChangedOperatorAddresses(uint256 operatorIndex, address operatorAddress, address feeRecipientAddress);
event DeactivatedOperator(uint256 _operatorIndex);
event ActivatedOperator(uint256 _operatorIndex);
event ExitRequest(address caller, bytes pubkey);
event ValidatorsEdited(uint256 blockNumber);
event NewSanctionsOracle(address sanctionsOracle);
event BeginOwnershipTransfer(address indexed previousAdmin, address indexed newAdmin);
/// @notice Ensures an initialisation call has been called only once per _version value
/// @param _version The current initialisation value
modifier init(uint256 _version) {
if (_version != StakingContractStorageLib.getVersion() + 1) {
revert AlreadyInitialized();
}
StakingContractStorageLib.setVersion(_version);
_;
}
/// @notice Ensures that the caller is the admin
modifier onlyAdmin() {
if (msg.sender != StakingContractStorageLib.getAdmin()) {
revert Unauthorized();
}
_;
}
/// @notice Ensures that the caller is the admin or the operator
modifier onlyActiveOperatorOrAdmin(uint256 _operatorIndex) {
if (msg.sender == StakingContractStorageLib.getAdmin()) {
_;
} else {
_onlyActiveOperator(_operatorIndex);
_;
}
}
/// @notice Ensures that the caller is the admin
modifier onlyActiveOperator(uint256 _operatorIndex) {
_onlyActiveOperator(_operatorIndex);
_;
}
/// @notice Ensures that the caller is the operator fee recipient
modifier onlyActiveOperatorFeeRecipient(uint256 _operatorIndex) {
StakingContractStorageLib.OperatorInfo storage operatorInfo = StakingContractStorageLib.getOperators().value[
_operatorIndex
];
if (operatorInfo.deactivated) {
revert Deactivated();
}
if (msg.sender != operatorInfo.feeRecipient) {
revert Unauthorized();
}
_;
}
/// @notice Explicit deposit method using msg.sender
/// @dev A multiple of 32 ETH should be sent
function deposit() external payable {
_deposit();
}
/// @notice Implicit deposit method
/// @dev A multiple of 32 ETH should be sent
/// @dev The withdrawer is set to the message sender address
receive() external payable {
_deposit();
}
/// @notice Fallback detection
/// @dev Fails on any call that fallbacks
fallback() external payable {
revert InvalidCall();
}
function initialize_1(
address _admin,
address _treasury,
address _depositContract,
address _elDispatcher,
address _clDispatcher,
address _feeRecipientImplementation,
uint256 _globalFee,
uint256 _operatorFee,
uint256 globalCommissionLimitBPS,
uint256 operatorCommissionLimitBPS
) external init(1) {
_checkAddress(_admin);
StakingContractStorageLib.setAdmin(_admin);
_checkAddress(_treasury);
StakingContractStorageLib.setTreasury(_treasury);
if (_globalFee > BASIS_POINTS) {
revert InvalidFee();
}
StakingContractStorageLib.setGlobalFee(_globalFee);
if (_operatorFee > BASIS_POINTS) {
revert InvalidFee();
}
StakingContractStorageLib.setOperatorFee(_operatorFee);
_checkAddress(_elDispatcher);
StakingContractStorageLib.setELDispatcher(_elDispatcher);
_checkAddress(_clDispatcher);
StakingContractStorageLib.setCLDispatcher(_clDispatcher);
_checkAddress(_depositContract);
StakingContractStorageLib.setDepositContract(_depositContract);
_checkAddress(_feeRecipientImplementation);
StakingContractStorageLib.setFeeRecipientImplementation(_feeRecipientImplementation);
initialize_2(globalCommissionLimitBPS, operatorCommissionLimitBPS);
}
function initialize_2(uint256 globalCommissionLimitBPS, uint256 operatorCommissionLimitBPS) public init(2) {
if (globalCommissionLimitBPS > BASIS_POINTS) {
revert InvalidFee();
}
StakingContractStorageLib.setGlobalCommissionLimit(globalCommissionLimitBPS);
if (operatorCommissionLimitBPS > BASIS_POINTS) {
revert InvalidFee();
}
StakingContractStorageLib.setOperatorCommissionLimit(operatorCommissionLimitBPS);
}
/// @notice Changes the sanctions oracle address
/// @param _sanctionsOracle New sanctions oracle address
/// @dev If the address is address(0), the sanctions oracle checks are skipped
function setSanctionsOracle(address _sanctionsOracle) external onlyAdmin {
StakingContractStorageLib.setSanctionsOracle(_sanctionsOracle);
emit NewSanctionsOracle(_sanctionsOracle);
}
/// @notice Get the sanctions oracle address
/// @notice If the address is address(0), the sanctions oracle checks are skipped
/// @return sanctionsOracle The sanctions oracle address
function getSanctionsOracle() external view returns (address) {
return StakingContractStorageLib.getSanctionsOracle();
}
/// @notice Retrieve system admin
function getAdmin() external view returns (address) {
return StakingContractStorageLib.getAdmin();
}
/// @notice Set new treasury
/// @dev Only callable by admin
/// @param _newTreasury New Treasury address
function setTreasury(address _newTreasury) external onlyAdmin {
emit ChangedTreasury(_newTreasury);
StakingContractStorageLib.setTreasury(_newTreasury);
}
/// @notice Retrieve system treasury
function getTreasury() external view returns (address) {
return StakingContractStorageLib.getTreasury();
}
/// @notice Retrieve the global fee
function getGlobalFee() external view returns (uint256) {
return StakingContractStorageLib.getGlobalFee();
}
/// @notice Retrieve the operator fee
function getOperatorFee() external view returns (uint256) {
return StakingContractStorageLib.getOperatorFee();
}
/// @notice Compute the Execution Layer Fee recipient address for a given validator public key
/// @param _publicKey Validator to get the recipient
function getELFeeRecipient(bytes calldata _publicKey) external view returns (address) {
return _getDeterministicReceiver(_publicKey, EXECUTION_LAYER_SALT_PREFIX);
}
/// @notice Compute the Consensus Layer Fee recipient address for a given validator public key
/// @param _publicKey Validator to get the recipient
function getCLFeeRecipient(bytes calldata _publicKey) external view returns (address) {
return _getDeterministicReceiver(_publicKey, CONSENSUS_LAYER_SALT_PREFIX);
}
/// @notice Retrieve the Execution & Consensus Layer Fee operator recipient for a given public key
function getOperatorFeeRecipient(bytes32 pubKeyRoot) external view returns (address) {
if (StakingContractStorageLib.getOperatorIndexPerValidator().value[pubKeyRoot].enabled == false) {
revert PublicKeyNotInContract();
}
return
StakingContractStorageLib
.getOperators()
.value[StakingContractStorageLib.getOperatorIndexPerValidator().value[pubKeyRoot].operatorIndex]
.feeRecipient;
}
/// @notice Retrieve withdrawer of public key
/// @notice In case the validator is not enabled, it will return address(0)
/// @param _publicKey Public Key to check
function getWithdrawer(bytes calldata _publicKey) external view returns (address) {
return _getWithdrawer(_getPubKeyRoot(_publicKey));
}
/// @notice Retrieve withdrawer of public key root
/// @notice In case the validator is not enabled, it will return address(0)
/// @notice In case the owner of the validator is sanctioned, it will revert
/// @param _publicKeyRoot Hash of the public key
function getWithdrawerFromPublicKeyRoot(bytes32 _publicKeyRoot) external view returns (address) {
address withdrawer = _getWithdrawer(_publicKeyRoot);
if (withdrawer == address(0)) {
return address(0);
}
address sanctionsOracle = StakingContractStorageLib.getSanctionsOracle();
if (sanctionsOracle != address(0)) {
if (ISanctionsOracle(sanctionsOracle).isSanctioned(withdrawer)) {
revert AddressSanctioned(withdrawer);
}
}
return withdrawer;
}
/// @notice Retrieve whether the validator exit has been requested
/// @notice In case the validator is not enabled, it will return false
/// @param _publicKeyRoot Public Key Root to check
function getExitRequestedFromRoot(bytes32 _publicKeyRoot) external view returns (bool) {
return _getExitRequest(_publicKeyRoot);
}
/// @notice Return true if the validator already went through the exit logic
/// @notice In case the validator is not enabled, it will return false
/// @param _publicKeyRoot Public Key Root of the validator
function getWithdrawnFromPublicKeyRoot(bytes32 _publicKeyRoot) external view returns (bool) {
return StakingContractStorageLib.getWithdrawnMap().value[_publicKeyRoot];
}
/// @notice Retrieve the enabled status of public key root, true if the key is in the contract
/// @param _publicKeyRoot Hash of the public key
function getEnabledFromPublicKeyRoot(bytes32 _publicKeyRoot) external view returns (bool) {
return StakingContractStorageLib.getOperatorIndexPerValidator().value[_publicKeyRoot].enabled;
}
/// @notice Allows the CLDispatcher to signal a validator went through the exit logic
/// @param _publicKeyRoot Public Key Root of the validator
function toggleWithdrawnFromPublicKeyRoot(bytes32 _publicKeyRoot) external {
if (msg.sender != StakingContractStorageLib.getCLDispatcher()) {
revert Unauthorized();
}
StakingContractStorageLib.getWithdrawnMap().value[_publicKeyRoot] = true;
}
/// @notice Returns false if the users can deposit, true if deposits are stopped
function getDepositsStopped() external view returns (bool) {
return StakingContractStorageLib.getDepositStopped();
}
/// @notice Retrieve operator details
/// @param _operatorIndex Operator index
function getOperator(uint256 _operatorIndex)
external
view
returns (
address operatorAddress,
address feeRecipientAddress,
uint256 limit,
uint256 keys,
uint256 funded,
uint256 available,
bool deactivated
)
{
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
if (_operatorIndex < operators.value.length) {
StakingContractStorageLib.ValidatorsFundingInfo memory _operatorInfo = StakingContractStorageLib
.getValidatorsFundingInfo(_operatorIndex);
StakingContractStorageLib.OperatorInfo storage _operator = operators.value[_operatorIndex];
(operatorAddress, feeRecipientAddress, limit, keys, deactivated) = (
_operator.operator,
_operator.feeRecipient,
_operator.limit,
_operator.publicKeys.length,
_operator.deactivated
);
(funded, available) = (_operatorInfo.funded, _operatorInfo.availableKeys);
}
}
/// @notice Get details about a validator
/// @param _operatorIndex Index of the operator running the validator
/// @param _validatorIndex Index of the validator
function getValidator(uint256 _operatorIndex, uint256 _validatorIndex)
external
view
returns (
bytes memory publicKey,
bytes memory signature,
address withdrawer,
bool funded
)
{
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
publicKey = operators.value[_operatorIndex].publicKeys[_validatorIndex];
signature = operators.value[_operatorIndex].signatures[_validatorIndex];
withdrawer = _getWithdrawer(_getPubKeyRoot(publicKey));
funded = _validatorIndex < StakingContractStorageLib.getValidatorsFundingInfo(_operatorIndex).funded;
}
/// @notice Get the total available keys that are ready to be used for deposits
function getAvailableValidatorCount() external view returns (uint256) {
return StakingContractStorageLib.getTotalAvailableValidators();
}
/// @notice Set new admin
/// @dev Only callable by admin
/// @param _newAdmin New Administrator address
function transferOwnership(address _newAdmin) external onlyAdmin {
StakingContractStorageLib.setPendingAdmin(_newAdmin);
emit BeginOwnershipTransfer(msg.sender, _newAdmin);
}
/// @notice New admin must accept its role by calling this method
/// @dev Only callable by new admin
function acceptOwnership() external {
address newAdmin = StakingContractStorageLib.getPendingAdmin();
if (msg.sender != newAdmin) {
revert Unauthorized();
}
StakingContractStorageLib.setAdmin(newAdmin);
StakingContractStorageLib.setPendingAdmin(address(0));
emit ChangedAdmin(newAdmin);
}
/// @notice Get the new admin's address previously set for an ownership transfer
function getPendingAdmin() external view returns (address) {
return StakingContractStorageLib.getPendingAdmin();
}
/// @notice Add new operator
/// @dev Only callable by admin
/// @param _operatorAddress Operator address allowed to add / remove validators
/// @param _feeRecipientAddress Privileged operator address used to manage rewards and operator addresses
function addOperator(address _operatorAddress, address _feeRecipientAddress) external onlyAdmin returns (uint256) {
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
StakingContractStorageLib.OperatorInfo memory newOperator;
if (operators.value.length == 1) {
revert MaximumOperatorCountAlreadyReached();
}
newOperator.operator = _operatorAddress;
newOperator.feeRecipient = _feeRecipientAddress;
operators.value.push(newOperator);
uint256 operatorIndex = operators.value.length - 1;
emit NewOperator(_operatorAddress, _feeRecipientAddress, operatorIndex);
return operatorIndex;
}
/// @notice Set new operator addresses (operations and reward management)
/// @dev Only callable by fee recipient address manager
/// @param _operatorIndex Index of the operator to update
/// @param _operatorAddress New operator address for operations management
/// @param _feeRecipientAddress New operator address for reward management
function setOperatorAddresses(
uint256 _operatorIndex,
address _operatorAddress,
address _feeRecipientAddress
) external onlyActiveOperatorFeeRecipient(_operatorIndex) {
_checkAddress(_operatorAddress);
_checkAddress(_feeRecipientAddress);
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
operators.value[_operatorIndex].operator = _operatorAddress;
operators.value[_operatorIndex].feeRecipient = _feeRecipientAddress;
emit ChangedOperatorAddresses(_operatorIndex, _operatorAddress, _feeRecipientAddress);
}
/// @notice Set operator staking limits
/// @dev Only callable by admin
/// @dev Limit should not exceed the validator key count of the operator
/// @dev Keys should be registered before limit is increased
/// @dev Allows all keys to be verified by the system admin before limit is increased
/// @param _operatorIndex Operator Index
/// @param _limit New staking limit
/// @param _snapshot Block number at which verification was done
function setOperatorLimit(
uint256 _operatorIndex,
uint256 _limit,
uint256 _snapshot
) external onlyAdmin {
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
if (operators.value[_operatorIndex].deactivated) {
revert Deactivated();
}
uint256 publicKeyCount = operators.value[_operatorIndex].publicKeys.length;
if (publicKeyCount < _limit) {
revert OperatorLimitTooHigh(_limit, publicKeyCount);
}
if (
operators.value[_operatorIndex].limit < _limit &&
StakingContractStorageLib.getLastValidatorEdit() > _snapshot
) {
revert LastEditAfterSnapshot();
}
operators.value[_operatorIndex].limit = _limit;
_updateAvailableValidatorCount(_operatorIndex);
emit ChangedOperatorLimit(_operatorIndex, _limit);
}
/// @notice Deactivates an operator and changes the fee recipient address and the staking limit
/// @param _operatorIndex Operator Index
/// @param _temporaryFeeRecipient Temporary address to receive funds decided by the system admin
function deactivateOperator(uint256 _operatorIndex, address _temporaryFeeRecipient) external onlyAdmin {
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
operators.value[_operatorIndex].limit = 0;
emit ChangedOperatorLimit(_operatorIndex, 0);
operators.value[_operatorIndex].deactivated = true;
emit DeactivatedOperator(_operatorIndex);
operators.value[_operatorIndex].feeRecipient = _temporaryFeeRecipient;
emit ChangedOperatorAddresses(_operatorIndex, operators.value[_operatorIndex].operator, _temporaryFeeRecipient);
_updateAvailableValidatorCount(_operatorIndex);
}
/// @notice Activates an operator, without changing its 0 staking limit
/// @param _operatorIndex Operator Index
/// @param _newFeeRecipient Sets the fee recipient address
function activateOperator(uint256 _operatorIndex, address _newFeeRecipient) external onlyAdmin {
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
operators.value[_operatorIndex].deactivated = false;
emit ActivatedOperator(_operatorIndex);
operators.value[_operatorIndex].feeRecipient = _newFeeRecipient;
emit ChangedOperatorAddresses(_operatorIndex, operators.value[_operatorIndex].operator, _newFeeRecipient);
}
/// @notice Change the Operator fee
/// @param _operatorFee Fee in Basis Point
function setOperatorFee(uint256 _operatorFee) external onlyAdmin {
if (_operatorFee > StakingContractStorageLib.getOperatorCommissionLimit()) {
revert InvalidFee();
}
StakingContractStorageLib.setOperatorFee(_operatorFee);
emit ChangedOperatorFee(_operatorFee);
}
/// @notice Change the Global fee
/// @param _globalFee Fee in Basis Point
function setGlobalFee(uint256 _globalFee) external onlyAdmin {
if (_globalFee > StakingContractStorageLib.getGlobalCommissionLimit()) {
revert InvalidFee();
}
StakingContractStorageLib.setGlobalFee(_globalFee);
emit ChangedGlobalFee(_globalFee);
}
/// @notice Add new validator public keys and signatures
/// @dev Only callable by operator
/// @param _operatorIndex Operator Index
/// @param _keyCount Number of keys added
/// @param _publicKeys Concatenated _keyCount public keys
/// @param _signatures Concatenated _keyCount signatures
function addValidators(
uint256 _operatorIndex,
uint256 _keyCount,
bytes calldata _publicKeys,
bytes calldata _signatures
) external onlyActiveOperator(_operatorIndex) {
if (_keyCount == 0) {
revert InvalidArgument();
}
if (_publicKeys.length != PUBLIC_KEY_LENGTH * _keyCount) {
revert InvalidPublicKeys();
}
if (_signatures.length != SIGNATURE_LENGTH * _keyCount) {
revert InvalidSignatures();
}
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
StakingContractStorageLib.OperatorIndexPerValidatorSlot
storage operatorIndexPerValidator = StakingContractStorageLib.getOperatorIndexPerValidator();
for (uint256 i; i < _keyCount; ) {
bytes memory publicKey = BytesLib.slice(_publicKeys, i * PUBLIC_KEY_LENGTH, PUBLIC_KEY_LENGTH);
bytes memory signature = BytesLib.slice(_signatures, i * SIGNATURE_LENGTH, SIGNATURE_LENGTH);
operators.value[_operatorIndex].publicKeys.push(publicKey);
operators.value[_operatorIndex].signatures.push(signature);
bytes32 pubKeyRoot = _getPubKeyRoot(publicKey);
if (operatorIndexPerValidator.value[pubKeyRoot].enabled) {
revert DuplicateValidatorKey(publicKey);
}
operatorIndexPerValidator.value[pubKeyRoot] = StakingContractStorageLib.OperatorIndex({
enabled: true,
operatorIndex: uint32(_operatorIndex)
});
unchecked {
++i;
}
}
emit ValidatorKeysAdded(_operatorIndex, _publicKeys, _signatures);
_updateLastValidatorsEdit();
_updateAvailableValidatorCount(_operatorIndex);
}
/// @notice Remove unfunded validators
/// @dev Only callable by operator
/// @dev Indexes should be provided in decreasing order
/// @dev The limit will be set to the lowest removed operator index to ensure all changes above the
/// lowest removed validator key are verified by the system administrator
/// @param _operatorIndex Operator Index
/// @param _indexes List of indexes to delete, in decreasing order
function removeValidators(uint256 _operatorIndex, uint256[] calldata _indexes)
external
onlyActiveOperatorOrAdmin(_operatorIndex)
{
if (_indexes.length == 0) {
revert InvalidArgument();
}
StakingContractStorageLib.ValidatorsFundingInfo memory operatorInfo = StakingContractStorageLib
.getValidatorsFundingInfo(_operatorIndex);
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
StakingContractStorageLib.OperatorIndexPerValidatorSlot
storage operatorIndexPerValidator = StakingContractStorageLib.getOperatorIndexPerValidator();
if (_indexes[_indexes.length - 1] < operatorInfo.funded) {
revert FundedValidatorDeletionAttempt();
}
for (uint256 i; i < _indexes.length; ) {
if (i > 0 && _indexes[i] >= _indexes[i - 1]) {
revert UnsortedIndexes();
}
bytes32 pubKeyRoot = _getPubKeyRoot(operators.value[_operatorIndex].publicKeys[_indexes[i]]);
operatorIndexPerValidator.value[pubKeyRoot].enabled = false;
operatorIndexPerValidator.value[pubKeyRoot].operatorIndex = 0;
emit ValidatorKeyRemoved(_operatorIndex, operators.value[_operatorIndex].publicKeys[_indexes[i]]);
if (_indexes[i] == operators.value[_operatorIndex].publicKeys.length - 1) {
operators.value[_operatorIndex].publicKeys.pop();
operators.value[_operatorIndex].signatures.pop();
} else {
operators.value[_operatorIndex].publicKeys[_indexes[i]] = operators.value[_operatorIndex].publicKeys[
operators.value[_operatorIndex].publicKeys.length - 1
];
operators.value[_operatorIndex].publicKeys.pop();
operators.value[_operatorIndex].signatures[_indexes[i]] = operators.value[_operatorIndex].signatures[
operators.value[_operatorIndex].signatures.length - 1
];
operators.value[_operatorIndex].signatures.pop();
}
unchecked {
++i;
}
}
if (_indexes[_indexes.length - 1] < operators.value[_operatorIndex].limit) {
operators.value[_operatorIndex].limit = _indexes[_indexes.length - 1];
emit ChangedOperatorLimit(_operatorIndex, _indexes[_indexes.length - 1]);
}
_updateLastValidatorsEdit();
_updateAvailableValidatorCount(_operatorIndex);
}
/// @notice Withdraw the Execution Layer Fee for given validators public keys
/// @dev Funds are sent to the withdrawer account
/// @dev This method is public on purpose
/// @param _publicKeys Validators to withdraw Execution Layer Fees from
function batchWithdrawELFee(bytes calldata _publicKeys) external {
if (_publicKeys.length % PUBLIC_KEY_LENGTH != 0) {
revert InvalidPublicKeys();
}
for (uint256 i = 0; i < _publicKeys.length; ) {
bytes memory publicKey = BytesLib.slice(_publicKeys, i, PUBLIC_KEY_LENGTH);
_onlyWithdrawerOrAdmin(publicKey);
_deployAndWithdraw(publicKey, EXECUTION_LAYER_SALT_PREFIX, StakingContractStorageLib.getELDispatcher());
unchecked {
i += PUBLIC_KEY_LENGTH;
}
}
}
/// @notice Withdraw the Consensus Layer Fee for given validators public keys
/// @dev Funds are sent to the withdrawer account
/// @dev This method is public on purpose
/// @param _publicKeys Validators to withdraw Consensus Layer Fees from
function batchWithdrawCLFee(bytes calldata _publicKeys) external {
if (_publicKeys.length % PUBLIC_KEY_LENGTH != 0) {
revert InvalidPublicKeys();
}
for (uint256 i = 0; i < _publicKeys.length; ) {
bytes memory publicKey = BytesLib.slice(_publicKeys, i, PUBLIC_KEY_LENGTH);
_onlyWithdrawerOrAdmin(publicKey);
_deployAndWithdraw(publicKey, CONSENSUS_LAYER_SALT_PREFIX, StakingContractStorageLib.getCLDispatcher());
unchecked {
i += PUBLIC_KEY_LENGTH;
}
}
}
/// @notice Withdraw both Consensus and Execution Layer Fees for given validators public keys
/// @dev Funds are sent to the withdrawer account
/// @param _publicKeys Validators to withdraw fees from
function batchWithdraw(bytes calldata _publicKeys) external {
if (_publicKeys.length % PUBLIC_KEY_LENGTH != 0) {
revert InvalidPublicKeys();
}
for (uint256 i = 0; i < _publicKeys.length; ) {
bytes memory publicKey = BytesLib.slice(_publicKeys, i, PUBLIC_KEY_LENGTH);
_onlyWithdrawerOrAdmin(publicKey);
_deployAndWithdraw(publicKey, EXECUTION_LAYER_SALT_PREFIX, StakingContractStorageLib.getELDispatcher());
_deployAndWithdraw(publicKey, CONSENSUS_LAYER_SALT_PREFIX, StakingContractStorageLib.getCLDispatcher());
unchecked {
i += PUBLIC_KEY_LENGTH;
}
}
}
/// @notice Withdraw the Execution Layer Fee for a given validator public key
/// @dev Funds are sent to the withdrawer account
/// @param _publicKey Validator to withdraw Execution Layer Fees from
function withdrawELFee(bytes calldata _publicKey) external {
_onlyWithdrawerOrAdmin(_publicKey);
_deployAndWithdraw(_publicKey, EXECUTION_LAYER_SALT_PREFIX, StakingContractStorageLib.getELDispatcher());
}
/// @notice Withdraw the Consensus Layer Fee for a given validator public key
/// @dev Funds are sent to the withdrawer account
/// @param _publicKey Validator to withdraw Consensus Layer Fees from
function withdrawCLFee(bytes calldata _publicKey) external {
_onlyWithdrawerOrAdmin(_publicKey);
_deployAndWithdraw(_publicKey, CONSENSUS_LAYER_SALT_PREFIX, StakingContractStorageLib.getCLDispatcher());
}
/// @notice Withdraw both Consensus and Execution Layer Fee for a given validator public key
/// @dev Reverts if any is null
/// @param _publicKey Validator to withdraw Execution and Consensus Layer Fees from
function withdraw(bytes calldata _publicKey) external {
_onlyWithdrawerOrAdmin(_publicKey);
_deployAndWithdraw(_publicKey, EXECUTION_LAYER_SALT_PREFIX, StakingContractStorageLib.getELDispatcher());
_deployAndWithdraw(_publicKey, CONSENSUS_LAYER_SALT_PREFIX, StakingContractStorageLib.getCLDispatcher());
}
function requestValidatorsExit(bytes calldata _publicKeys) external {
_revertIfSanctioned(msg.sender);
_requestExits(_publicKeys, msg.sender);
}
/// @notice Utility to stop or allow deposits
function setDepositsStopped(bool val) external onlyAdmin {
emit ChangedDepositsStopped(val);
StakingContractStorageLib.setDepositStopped(val);
}
/// @notice Utility to ban a user, exits the validators provided if account is not OFAC sanctioned
/// @notice Blocks the account from depositing, the account is still alowed to exit & withdraw if not sanctioned
/// @param _account Account to ban
/// @param _publicKeys Public keys to exit
function blockAccount(address _account, bytes calldata _publicKeys) external onlyAdmin {
StakingContractStorageLib.getBlocklist().value[_account] = true;
address sanctionsOracle = StakingContractStorageLib.getSanctionsOracle();
if (sanctionsOracle != address(0)) {
if (ISanctionsOracle(sanctionsOracle).isSanctioned(_account)) {
return;
}
}
_requestExits(_publicKeys, _account);
}
/// @notice Utility to unban a user
/// @param _account Account to unban
function unblock(address _account) external onlyAdmin {
StakingContractStorageLib.getBlocklist().value[_account] = false;
}
/// @notice Utility to check if an account is blocked or sanctioned
/// @param _account Account to check
/// @return isBlocked True if the account is blocked
/// @return isSanctioned True if the account is sanctioned, always false if not sanctions oracle is set
function isBlockedOrSanctioned(address _account) public view returns (bool isBlocked, bool isSanctioned) {
address sanctionsOracle = StakingContractStorageLib.getSanctionsOracle();
if (sanctionsOracle != address(0)) {
isSanctioned = ISanctionsOracle(sanctionsOracle).isSanctioned(_account);
}
isBlocked = StakingContractStorageLib.getBlocklist().value[_account];
}
/// ██ ███ ██ ████████ ███████ ██████ ███ ██ █████ ██
/// ██ ████ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██
/// ██ ██ ██ ██ ██ █████ ██████ ██ ██ ██ ███████ ██
/// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
/// ██ ██ ████ ██ ███████ ██ ██ ██ ████ ██ ██ ███████
function _onlyWithdrawerOrAdmin(bytes memory _publicKey) internal view {
if (
msg.sender != _getWithdrawer(_getPubKeyRoot(_publicKey)) &&
StakingContractStorageLib.getAdmin() != msg.sender
) {
revert InvalidWithdrawer();
}
}
function _onlyActiveOperator(uint256 _operatorIndex) internal view {
StakingContractStorageLib.OperatorInfo storage operatorInfo = StakingContractStorageLib.getOperators().value[
_operatorIndex
];
if (operatorInfo.deactivated) {
revert Deactivated();
}
if (msg.sender != operatorInfo.operator) {
revert Unauthorized();
}
}
function _getPubKeyRoot(bytes memory _publicKey) internal pure returns (bytes32) {
return sha256(abi.encodePacked(_publicKey, bytes16(0)));
}
function _getWithdrawer(bytes32 _publicKeyRoot) internal view returns (address) {
return StakingContractStorageLib.getWithdrawers().value[_publicKeyRoot];
}
function _getExitRequest(bytes32 _publicKeyRoot) internal view returns (bool) {
return StakingContractStorageLib.getExitRequestMap().value[_publicKeyRoot];
}
function _setExitRequest(bytes32 _publicKeyRoot, bool _value) internal {
StakingContractStorageLib.getExitRequestMap().value[_publicKeyRoot] = _value;
}
/// @notice Function to emit the ExitRequest event for each public key
/// @param publicKeys Concatenated public keys
/// @param owner Address of the expected owner of the public keys
function _requestExits(bytes calldata publicKeys, address owner) internal {
if (publicKeys.length % PUBLIC_KEY_LENGTH != 0) {
revert InvalidPublicKeys();
}
for (uint256 i = 0; i < publicKeys.length; ) {
bytes memory publicKey = BytesLib.slice(publicKeys, i, PUBLIC_KEY_LENGTH);
bytes32 pubKeyRoot = _getPubKeyRoot(publicKey);
address withdrawer = _getWithdrawer(pubKeyRoot);
if (owner != withdrawer) {
revert Unauthorized();
}
_setExitRequest(pubKeyRoot, true);
emit ExitRequest(withdrawer, publicKey);
unchecked {
i += PUBLIC_KEY_LENGTH;
}
}
}
function _updateAvailableValidatorCount(uint256 _operatorIndex) internal {
StakingContractStorageLib.ValidatorsFundingInfo memory validatorFundingInfo = StakingContractStorageLib
.getValidatorsFundingInfo(_operatorIndex);
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
uint32 oldAvailableCount = validatorFundingInfo.availableKeys;
uint32 newAvailableCount = 0;
uint256 cap = operators.value[_operatorIndex].limit;
if (cap <= validatorFundingInfo.funded) {
StakingContractStorageLib.setValidatorsFundingInfo(_operatorIndex, 0, validatorFundingInfo.funded);
} else {
newAvailableCount = uint32(cap - validatorFundingInfo.funded);
StakingContractStorageLib.setValidatorsFundingInfo(
_operatorIndex,
newAvailableCount,
validatorFundingInfo.funded
);
}
if (oldAvailableCount != newAvailableCount) {
StakingContractStorageLib.setTotalAvailableValidators(
(StakingContractStorageLib.getTotalAvailableValidators() - oldAvailableCount) + newAvailableCount
);
}
}
function _updateLastValidatorsEdit() internal {
StakingContractStorageLib.setLastValidatorEdit(block.number);
emit ValidatorsEdited(block.number);
}
function _addressToWithdrawalCredentials(address _recipient) internal pure returns (bytes32) {
return bytes32(uint256(uint160(_recipient)) + WITHDRAWAL_CREDENTIAL_PREFIX_01);
}
function _depositValidatorsOfOperator(uint256 _operatorIndex, uint256 _validatorCount) internal {
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
StakingContractStorageLib.OperatorInfo storage operator = operators.value[_operatorIndex];
StakingContractStorageLib.ValidatorsFundingInfo memory vfi = StakingContractStorageLib.getValidatorsFundingInfo(
_operatorIndex
);
for (uint256 i = vfi.funded; i < vfi.funded + _validatorCount; ) {
bytes memory publicKey = operator.publicKeys[i];
bytes memory signature = operator.signatures[i];
address consensusLayerRecipient = _getDeterministicReceiver(publicKey, CONSENSUS_LAYER_SALT_PREFIX);
bytes32 withdrawalCredentials = _addressToWithdrawalCredentials(consensusLayerRecipient);
bytes32 pubkeyRoot = _getPubKeyRoot(publicKey);
_depositValidator(publicKey, pubkeyRoot, signature, withdrawalCredentials);
StakingContractStorageLib.getWithdrawers().value[pubkeyRoot] = msg.sender;
emit Deposit(msg.sender, msg.sender, publicKey, signature);
unchecked {
++i;
}
}
StakingContractStorageLib.setValidatorsFundingInfo(
_operatorIndex,
uint32(vfi.availableKeys - _validatorCount),
uint32(vfi.funded + _validatorCount)
);
}
/// @notice Internal utility to deposit a public key, its signature and 32 ETH to the consensus layer
/// @param _publicKey The Public Key to deposit
/// @param _signature The Signature to deposit
/// @param _withdrawalCredentials The Withdrawal Credentials to deposit
function _depositValidator(
bytes memory _publicKey,
bytes32 _pubkeyRoot,
bytes memory _signature,
bytes32 _withdrawalCredentials
) internal {
bytes32 signatureRoot = sha256(
abi.encodePacked(
sha256(BytesLib.slice(_signature, 0, 64)),
sha256(abi.encodePacked(BytesLib.slice(_signature, 64, SIGNATURE_LENGTH - 64), bytes32(0)))
)
);
bytes32 depositDataRoot = sha256(
abi.encodePacked(
sha256(abi.encodePacked(_pubkeyRoot, _withdrawalCredentials)),
sha256(abi.encodePacked(DEPOSIT_SIZE_AMOUNT_LITTLEENDIAN64, signatureRoot))
)
);
uint256 targetBalance = address(this).balance - DEPOSIT_SIZE;
IDepositContract(StakingContractStorageLib.getDepositContract()).deposit{value: DEPOSIT_SIZE}(
_publicKey,
abi.encodePacked(_withdrawalCredentials),
_signature,
depositDataRoot
);
if (address(this).balance != targetBalance) {
revert DepositFailure();
}
}
function _depositOnOneOperator(uint256 _depositCount, uint256 _totalAvailableValidators) internal {
StakingContractStorageLib.setTotalAvailableValidators(_totalAvailableValidators - _depositCount);
_depositValidatorsOfOperator(0, _depositCount);
}
function _deposit() internal {
if (StakingContractStorageLib.getDepositStopped()) {
revert DepositsStopped();
}
_revertIfSanctionedOrBlocked(msg.sender);
if (msg.value == 0 || msg.value % DEPOSIT_SIZE != 0) {
revert InvalidDepositValue();
}
uint256 totalAvailableValidators = StakingContractStorageLib.getTotalAvailableValidators();
uint256 depositCount = msg.value / DEPOSIT_SIZE;
if (depositCount > totalAvailableValidators) {
revert NotEnoughValidators();
}
StakingContractStorageLib.OperatorsSlot storage operators = StakingContractStorageLib.getOperators();
if (operators.value.length == 0) {
revert NoOperators();
}
_depositOnOneOperator(depositCount, totalAvailableValidators);
}
/// @notice Internal utility to compute the receiver deterministic address
/// @param _publicKey Public Key assigned to the receiver
/// @param _prefix Prefix used to generate multiple receivers per public key
function _getDeterministicReceiver(bytes memory _publicKey, uint256 _prefix) internal view returns (address) {
bytes32 publicKeyRoot = _getPubKeyRoot(_publicKey);
bytes32 salt = sha256(abi.encodePacked(_prefix, publicKeyRoot));
address implementation = StakingContractStorageLib.getFeeRecipientImplementation();
return Clones.predictDeterministicAddress(implementation, salt);
}
/// @notice Internal utility to deploy and withdraw the fees from a receiver
/// @param _publicKey Public Key assigned to the receiver
/// @param _prefix Prefix used to generate multiple receivers per public key
/// @param _dispatcher Address of the dispatcher contract
function _deployAndWithdraw(
bytes memory _publicKey,
uint256 _prefix,
address _dispatcher
) internal {
bytes32 publicKeyRoot = _getPubKeyRoot(_publicKey);
_revertIfSanctioned(msg.sender);
bytes32 feeRecipientSalt = sha256(abi.encodePacked(_prefix, publicKeyRoot));
address implementation = StakingContractStorageLib.getFeeRecipientImplementation();
address feeRecipientAddress = Clones.predictDeterministicAddress(implementation, feeRecipientSalt);
if (feeRecipientAddress.code.length == 0) {
Clones.cloneDeterministic(implementation, feeRecipientSalt);
IFeeRecipient(feeRecipientAddress).init(_dispatcher, publicKeyRoot);
}
IFeeRecipient(feeRecipientAddress).withdraw();
}
function _checkAddress(address _address) internal pure {
if (_address == address(0)) {
revert InvalidZeroAddress();
}
}
function _revertIfSanctionedOrBlocked(address account) internal view {
address sanctionsOracle = StakingContractStorageLib.getSanctionsOracle();
if (sanctionsOracle != address(0)) {
if (ISanctionsOracle(sanctionsOracle).isSanctioned(account)) {
revert AddressSanctioned(account);
}
}
if (StakingContractStorageLib.getBlocklist().value[account]) {
revert AddressBlocked(account);
}
}
function _revertIfSanctioned(address account) internal view {
address sanctionsOracle = StakingContractStorageLib.getSanctionsOracle();
if (sanctionsOracle != address(0)) {
if (ISanctionsOracle(sanctionsOracle).isSanctioned(account)) {
revert AddressSanctioned(account);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)
pragma solidity ^0.8.0;
/**
* @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
* proxy whose upgrades are fully controlled by the current implementation.
*/
interface IERC1822Proxiable {
/**
* @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
* address.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy.
*/
function proxiableUUID() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.0;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {BeaconProxy} will check that this address is a contract.
*/
function implementation() external view returns (address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol)
pragma solidity ^0.8.0;
/**
* @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
* deploying minimal proxy contracts, also known as "clones".
*
* > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
* > a minimal bytecode implementation that delegates all calls to a known, fixed address.
*
* The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
* (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
* deterministic method.
*
* _Available since v3.4._
*/
library Clones {
/**
* @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
*
* This function uses the create opcode, which should never revert.
*/
function clone(address implementation) internal returns (address instance) {
assembly {
let ptr := mload(0x40)
mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(ptr, 0x14), shl(0x60, implementation))
mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
instance := create(0, ptr, 0x37)
}
require(instance != address(0), "ERC1167: create failed");
}
/**
* @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
*
* This function uses the create2 opcode and a `salt` to deterministically deploy
* the clone. Using the same `implementation` and `salt` multiple time will revert, since
* the clones cannot be deployed twice at the same address.
*/
function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
assembly {
let ptr := mload(0x40)
mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(ptr, 0x14), shl(0x60, implementation))
mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
instance := create2(0, ptr, 0x37, salt)
}
require(instance != address(0), "ERC1167: create2 failed");
}
/**
* @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
*/
function predictDeterministicAddress(
address implementation,
bytes32 salt,
address deployer
) internal pure returns (address predicted) {
assembly {
let ptr := mload(0x40)
mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(ptr, 0x14), shl(0x60, implementation))
mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
mstore(add(ptr, 0x38), shl(0x60, deployer))
mstore(add(ptr, 0x4c), salt)
mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
predicted := keccak256(add(ptr, 0x37), 0x55)
}
}
/**
* @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
*/
function predictDeterministicAddress(address implementation, bytes32 salt)
internal
view
returns (address predicted)
{
return predictDeterministicAddress(implementation, salt, address(this));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)
pragma solidity ^0.8.0;
import "../Proxy.sol";
import "./ERC1967Upgrade.sol";
/**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
* implementation behind the proxy.
*/
contract ERC1967Proxy is Proxy, ERC1967Upgrade {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializating the storage of the proxy like a Solidity constructor.
*/
constructor(address _logic, bytes memory _data) payable {
assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
_upgradeToAndCall(_logic, _data, false);
}
/**
* @dev Returns the current implementation address.
*/
function _implementation() internal view virtual override returns (address impl) {
return ERC1967Upgrade._getImplementation();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)
pragma solidity ^0.8.2;
import "../beacon/IBeacon.sol";
import "../../interfaces/draft-IERC1822.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*
* _Available since v4.1._
*
* @custom:oz-upgrades-unsafe-allow delegatecall
*/
abstract contract ERC1967Upgrade {
// This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Returns the current implementation address.
*/
function _getImplementation() internal view returns (address) {
return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Perform implementation upgrade
*
* Emits an {Upgraded} event.
*/
function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Perform implementation upgrade with additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCall(
address newImplementation,
bytes memory data,
bool forceCall
) internal {
_upgradeTo(newImplementation);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(newImplementation, data);
}
}
/**
* @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCallUUPS(
address newImplementation,
bytes memory data,
bool forceCall
) internal {
// Upgrades from old implementations will perform a rollback test. This test requires the new
// implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
// this special case will break upgrade paths from old UUPS implementation to new ones.
if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
_setImplementation(newImplementation);
} else {
try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
} catch {
revert("ERC1967Upgrade: new implementation is not UUPS");
}
_upgradeToAndCall(newImplementation, data, forceCall);
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Returns the current admin.
*/
function _getAdmin() internal view returns (address) {
return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
require(newAdmin != address(0), "ERC1967: new admin is the zero address");
StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _changeAdmin(address newAdmin) internal {
emit AdminChanged(_getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
*/
bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Emitted when the beacon is upgraded.
*/
event BeaconUpgraded(address indexed beacon);
/**
* @dev Returns the current beacon.
*/
function _getBeacon() internal view returns (address) {
return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
require(
Address.isContract(IBeacon(newBeacon).implementation()),
"ERC1967: beacon implementation is not a contract"
);
StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
}
/**
* @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
* not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
*
* Emits a {BeaconUpgraded} event.
*/
function _upgradeBeaconToAndCall(
address newBeacon,
bytes memory data,
bool forceCall
) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/Proxy.sol)
pragma solidity ^0.8.0;
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
* different contract through the {_delegate} function.
*
* The success and return data of the delegated call will be returned back to the caller of the proxy.
*/
abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize())
switch result
// delegatecall returns 0 on error.
case 0 {
revert(0, returndatasize())
}
default {
return(0, returndatasize())
}
}
}
/**
* @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
* and {_fallback} should delegate.
*/
function _implementation() internal view virtual returns (address);
/**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _fallback() internal virtual {
_beforeFallback();
_delegate(_implementation());
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/
fallback() external payable virtual {
_fallback();
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
* is empty.
*/
receive() external payable virtual {
_fallback();
}
/**
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
* call, or as part of the Solidity `fallback` or `receive` functions.
*
* If overriden should call `super._beforeFallback()`.
*/
function _beforeFallback() internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)
pragma solidity ^0.8.0;
import "../ERC1967/ERC1967Proxy.sol";
/**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
* things that go hand in hand:
*
* 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
* that call matches one of the admin functions exposed by the proxy itself.
* 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the
* implementation. If the admin tries to call a function on the implementation it will fail with an error that says
* "admin cannot fallback to proxy target".
*
* These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing
* the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due
* to sudden errors when trying to call a function from the proxy implementation.
*
* Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,
* you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.
*/
contract TransparentUpgradeableProxy is ERC1967Proxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.
*/
constructor(
address _logic,
address admin_,
bytes memory _data
) payable ERC1967Proxy(_logic, _data) {
assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
_changeAdmin(admin_);
}
/**
* @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
*/
modifier ifAdmin() {
if (msg.sender == _getAdmin()) {
_;
} else {
_fallback();
}
}
/**
* @dev Returns the current admin.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
*/
function admin() external ifAdmin returns (address admin_) {
admin_ = _getAdmin();
}
/**
* @dev Returns the current implementation.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
*/
function implementation() external ifAdmin returns (address implementation_) {
implementation_ = _implementation();
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
*/
function changeAdmin(address newAdmin) external virtual ifAdmin {
_changeAdmin(newAdmin);
}
/**
* @dev Upgrade the implementation of the proxy.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
*/
function upgradeTo(address newImplementation) external ifAdmin {
_upgradeToAndCall(newImplementation, bytes(""), false);
}
/**
* @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
* by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
* proxied contract.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
*/
function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {
_upgradeToAndCall(newImplementation, data, true);
}
/**
* @dev Returns the current admin.
*/
function _admin() internal view virtual returns (address) {
return _getAdmin();
}
/**
* @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
*/
function _beforeFallback() internal virtual override {
require(msg.sender != _getAdmin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
super._beforeFallback();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
assembly {
r.slot := slot
}
}
}//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "./interfaces/IFeeDispatcher.sol";
import "./libs/DispatchersStorageLib.sol";
import "./interfaces/IFeeRecipient.sol";
contract AuthorizedFeeRecipient is IFeeRecipient {
/// @notice Constructor replay prevention
bool internal initialized;
/// @notice Address where funds are sent to be dispatched
IFeeDispatcher internal dispatcher;
/// @notice Public Key root assigned to this receiver
bytes32 internal publicKeyRoot;
/// @notice Address of the staking contract
address internal stakingContract;
error AlreadyInitialized();
error Unauthorized();
/// @notice Initializes the receiver
/// @param _dispatcher Address that will handle the fee dispatching
/// @param _publicKeyRoot Public Key root assigned to this receiver
function init(address _dispatcher, bytes32 _publicKeyRoot) external {
if (initialized) {
revert AlreadyInitialized();
}
initialized = true;
dispatcher = IFeeDispatcher(_dispatcher);
publicKeyRoot = _publicKeyRoot;
stakingContract = msg.sender; // The staking contract always calls init
}
/// @notice Empty calldata fallback
receive() external payable {}
/// @notice Non-empty calldata fallback
fallback() external payable {}
/// @notice Triggers a withdrawal by sending its funds + its public key root to the dispatcher
/// @dev Can be called only be called through the staking contract
function withdraw() external {
if (msg.sender != stakingContract) {
revert Unauthorized();
}
dispatcher.dispatch{value: address(this).balance}(publicKeyRoot);
}
/// @notice Retrieve the assigned public key root
function getPublicKeyRoot() external view returns (bytes32) {
return publicKeyRoot;
}
/// @notice retrieve the assigned withdrawer
function getWithdrawer() external view returns (address) {
return dispatcher.getWithdrawer(publicKeyRoot);
}
}//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "./libs/DispatchersStorageLib.sol";
import "./interfaces/IStakingContractFeeDetails.sol";
import "./interfaces/IFeeDispatcher.sol";
/// @title Consensus Layer Fee Recipient
/// @author Kiln
/// @notice This contract can be used to receive fees from a validator and split them with a node operator
contract ConsensusLayerFeeDispatcher is IFeeDispatcher {
using DispatchersStorageLib for bytes32;
event Withdrawal(
address indexed withdrawer,
address indexed feeRecipient,
bytes32 pubKeyRoot,
uint256 rewards,
uint256 nodeOperatorFee,
uint256 treasuryFee
);
error TreasuryReceiveError(bytes errorData);
error FeeRecipientReceiveError(bytes errorData);
error WithdrawerReceiveError(bytes errorData);
error ZeroBalanceWithdrawal();
error AlreadyInitialized();
error InvalidCall();
bytes32 internal constant STAKING_CONTRACT_ADDRESS_SLOT =
keccak256("ConsensusLayerFeeRecipient.stakingContractAddress");
uint256 internal constant BASIS_POINTS = 10_000;
bytes32 internal constant VERSION_SLOT = keccak256("ConsensusLayerFeeRecipient.version");
/// @notice Ensures an initialisation call has been called only once per _version value
/// @param _version The current initialisation value
modifier init(uint256 _version) {
if (_version != VERSION_SLOT.getUint256() + 1) {
revert AlreadyInitialized();
}
VERSION_SLOT.setUint256(_version);
_;
}
/// @notice Constructor method allowing us to prevent calls to initCLFR by setting the appropriate version
constructor(uint256 _version) {
VERSION_SLOT.setUint256(_version);
}
/// @notice Initialize the contract by storing the staking contract
/// @param _stakingContract Address of the Staking Contract
function initCLD(address _stakingContract) external init(1) {
STAKING_CONTRACT_ADDRESS_SLOT.setAddress(_stakingContract);
}
/// @notice Performs a withdrawal on this contract's balance
function dispatch(bytes32 _publicKeyRoot) external payable {
IStakingContractFeeDetails stakingContract = IStakingContractFeeDetails(
STAKING_CONTRACT_ADDRESS_SLOT.getAddress()
);
uint256 balance = address(this).balance; // this has taken into account msg.value
if (balance == 0) {
revert ZeroBalanceWithdrawal();
}
bool exitRequested = stakingContract.getExitRequestedFromRoot(_publicKeyRoot);
bool withdrawn = stakingContract.getWithdrawnFromPublicKeyRoot(_publicKeyRoot);
uint256 nonExemptBalance = balance;
if (exitRequested && balance >= 31 ether && !withdrawn) {
// If the skimmed rewards were withdrawn and the validator then underperformed
// an healthy exit can be slightly lower than 32 ETH
// We exempt the balance up to 32 ETH, happens only once.
// !withdrawn prevents this logic being reused to not pay the fee on rewards
uint256 exemption = nonExemptBalance > 32 ether ? 32 ether : nonExemptBalance;
nonExemptBalance -= exemption;
stakingContract.toggleWithdrawnFromPublicKeyRoot(_publicKeyRoot);
}
// In case of slashing the exit is not requested we don't exempt anything
// This is in case of slashing, the staker will be rebated manually
// A slashed validator may have accumulated enough skimmed rewards to still have a balance > 32 ETH
// All of this will be taken into account and the staker will be compensated for the commission taken
// on its principal and the loss according to the SLA described in the Terms&Conditions
uint256 globalFee = (nonExemptBalance * stakingContract.getGlobalFee()) / BASIS_POINTS;
uint256 operatorFee = (globalFee * stakingContract.getOperatorFee()) / BASIS_POINTS;
address operator = stakingContract.getOperatorFeeRecipient(_publicKeyRoot);
address treasury = stakingContract.getTreasury();
address withdrawer = stakingContract.getWithdrawerFromPublicKeyRoot(_publicKeyRoot);
(bool status, bytes memory data) = withdrawer.call{value: balance - globalFee}("");
if (status == false) {
revert WithdrawerReceiveError(data);
}
if (globalFee > 0) {
(status, data) = treasury.call{value: globalFee - operatorFee}("");
if (status == false) {
revert TreasuryReceiveError(data);
}
}
if (operatorFee > 0) {
(status, data) = operator.call{value: operatorFee}("");
if (status == false) {
revert FeeRecipientReceiveError(data);
}
}
emit Withdrawal(
withdrawer,
operator,
_publicKeyRoot,
balance - globalFee,
operatorFee,
globalFee - operatorFee
);
}
/// @notice Retrieve the staking contract address
function getStakingContract() external view returns (address) {
return STAKING_CONTRACT_ADDRESS_SLOT.getAddress();
}
/// @notice Retrieve the assigned withdrawer for the given public key root
/// @param _publicKeyRoot Public key root to get the owner
function getWithdrawer(bytes32 _publicKeyRoot) external view returns (address) {
IStakingContractFeeDetails stakingContract = IStakingContractFeeDetails(
STAKING_CONTRACT_ADDRESS_SLOT.getAddress()
);
return stakingContract.getWithdrawerFromPublicKeyRoot(_publicKeyRoot);
}
receive() external payable {
revert InvalidCall();
}
fallback() external payable {
revert InvalidCall();
}
}//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "./libs/DispatchersStorageLib.sol";
import "./interfaces/IStakingContractFeeDetails.sol";
import "./interfaces/IFeeDispatcher.sol";
/// @title Execution Layer Fee Recipient
/// @author Kiln
/// @notice This contract can be used to receive fees from a validator and split them with a node operator
contract ExecutionLayerFeeDispatcher is IFeeDispatcher {
using DispatchersStorageLib for bytes32;
event Withdrawal(
address indexed withdrawer,
address indexed feeRecipient,
bytes32 pubKeyRoot,
uint256 rewards,
uint256 nodeOperatorFee,
uint256 treasuryFee
);
error TreasuryReceiveError(bytes errorData);
error FeeRecipientReceiveError(bytes errorData);
error WithdrawerReceiveError(bytes errorData);
error ZeroBalanceWithdrawal();
error AlreadyInitialized();
error InvalidCall();
bytes32 internal constant STAKING_CONTRACT_ADDRESS_SLOT =
keccak256("ExecutionLayerFeeRecipient.stakingContractAddress");
uint256 internal constant BASIS_POINTS = 10_000;
bytes32 internal constant VERSION_SLOT = keccak256("ExecutionLayerFeeRecipient.version");
/// @notice Ensures an initialisation call has been called only once per _version value
/// @param _version The current initialisation value
modifier init(uint256 _version) {
if (_version != VERSION_SLOT.getUint256() + 1) {
revert AlreadyInitialized();
}
VERSION_SLOT.setUint256(_version);
_;
}
/// @notice Constructor method allowing us to prevent calls to initCLFR by setting the appropriate version
constructor(uint256 _version) {
VERSION_SLOT.setUint256(_version);
}
/// @notice Initialize the contract by storing the staking contract and the public key in storage
/// @param _stakingContract Address of the Staking Contract
function initELD(address _stakingContract) external init(1) {
STAKING_CONTRACT_ADDRESS_SLOT.setAddress(_stakingContract);
}
/// @notice Performs a withdrawal on this contract's balance
function dispatch(bytes32 _publicKeyRoot) external payable {
uint256 balance = address(this).balance;
if (balance == 0) {
revert ZeroBalanceWithdrawal();
}
IStakingContractFeeDetails stakingContract = IStakingContractFeeDetails(
STAKING_CONTRACT_ADDRESS_SLOT.getAddress()
);
address withdrawer = stakingContract.getWithdrawerFromPublicKeyRoot(_publicKeyRoot);
address operator = stakingContract.getOperatorFeeRecipient(_publicKeyRoot);
address treasury = stakingContract.getTreasury();
uint256 globalFee = (balance * stakingContract.getGlobalFee()) / BASIS_POINTS;
uint256 operatorFee = (globalFee * stakingContract.getOperatorFee()) / BASIS_POINTS;
(bool status, bytes memory data) = withdrawer.call{value: balance - globalFee}("");
if (status == false) {
revert WithdrawerReceiveError(data);
}
if (globalFee > 0) {
(status, data) = treasury.call{value: globalFee - operatorFee}("");
if (status == false) {
revert TreasuryReceiveError(data);
}
}
if (operatorFee > 0) {
(status, data) = operator.call{value: operatorFee}("");
if (status == false) {
revert FeeRecipientReceiveError(data);
}
}
emit Withdrawal(
withdrawer,
operator,
_publicKeyRoot,
balance - globalFee,
operatorFee,
globalFee - operatorFee
);
}
/// @notice Retrieve the staking contract address
function getStakingContract() external view returns (address) {
return STAKING_CONTRACT_ADDRESS_SLOT.getAddress();
}
/// @notice Retrieve the assigned withdrawer for the given public key root
/// @param _publicKeyRoot Public key root to get the owner
function getWithdrawer(bytes32 _publicKeyRoot) external view returns (address) {
IStakingContractFeeDetails stakingContract = IStakingContractFeeDetails(
STAKING_CONTRACT_ADDRESS_SLOT.getAddress()
);
return stakingContract.getWithdrawerFromPublicKeyRoot(_publicKeyRoot);
}
receive() external payable {
revert InvalidCall();
}
fallback() external payable {
revert InvalidCall();
}
}//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "./interfaces/IFeeDispatcher.sol";
contract FeeRecipient {
/// @notice Constructor replay prevention
bool internal initialized;
/// @notice Address where funds are sent to be dispatched
IFeeDispatcher internal dispatcher;
/// @notice Public Key root assigned to this receiver
bytes32 internal publicKeyRoot;
error AlreadyInitialized();
/// @notice Initializes the receiver
/// @param _dispatcher Address that will handle the fee dispatching
/// @param _publicKeyRoot Public Key root assigned to this receiver
function init(address _dispatcher, bytes32 _publicKeyRoot) external {
if (initialized) {
revert AlreadyInitialized();
}
initialized = true;
dispatcher = IFeeDispatcher(_dispatcher);
publicKeyRoot = _publicKeyRoot;
}
/// @notice Empty calldata fallback
receive() external payable {}
/// @notice Non-empty calldata fallback
fallback() external payable {}
/// @notice Triggers a withdrawal by sending its funds + its public key root to the dispatcher
/// @dev Can be called by any wallet as recipients are not parameters
function withdraw() external {
dispatcher.dispatch{value: address(this).balance}(publicKeyRoot);
}
/// @notice Retrieve the assigned public key root
function getPublicKeyRoot() external view returns (bytes32) {
return publicKeyRoot;
}
/// @notice retrieve the assigned withdrawer
function getWithdrawer() external view returns (address) {
return dispatcher.getWithdrawer(publicKeyRoot);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
interface IDepositContract {
function deposit(
bytes calldata pubkey,
bytes calldata withdrawalCredentials,
bytes calldata signature,
bytes32 depositDataRoot
) external payable;
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
interface IFeeDispatcher {
function dispatch(bytes32 _publicKeyRoot) external payable;
function getWithdrawer(bytes32 _publicKeyRoot) external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
interface IFeeRecipient {
function init(address _dispatcher, bytes32 _publicKeyRoot) external;
function withdraw() external;
}pragma solidity >=0.8.10;
interface ISanctionsOracle {
function isSanctioned(address account) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
interface IStakingContractFeeDetails {
function getWithdrawerFromPublicKeyRoot(bytes32 _publicKeyRoot) external view returns (address);
function getTreasury() external view returns (address);
function getOperatorFeeRecipient(bytes32 pubKeyRoot) external view returns (address);
function getGlobalFee() external view returns (uint256);
function getOperatorFee() external view returns (uint256);
function getExitRequestedFromRoot(bytes32 _publicKeyRoot) external view returns (bool);
function getWithdrawnFromPublicKeyRoot(bytes32 _publicKeyRoot) external view returns (bool);
function toggleWithdrawnFromPublicKeyRoot(bytes32 _publicKeyRoot) external;
}//SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
/// Based on GNSPS/BytesLib.sol
library BytesLib {
function concat(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bytes memory) {
bytes memory tempBytes;
assembly {
// Get a location of some free memory and store it in tempBytes as
// Solidity does for memory variables.
tempBytes := mload(0x40)
// Store the length of the first bytes array at the beginning of
// the memory for tempBytes.
let length := mload(_preBytes)
mstore(tempBytes, length)
// Maintain a memory counter for the current write location in the
// temp bytes array by adding the 32 bytes for the array length to
// the starting location.
let mc := add(tempBytes, 0x20)
// Stop copying when the memory counter reaches the length of the
// first bytes array.
let end := add(mc, length)
for {
// Initialize a copy counter to the start of the _preBytes data,
// 32 bytes into its memory.
let cc := add(_preBytes, 0x20)
} lt(mc, end) {
// Increase both counters by 32 bytes each iteration.
mc := add(mc, 0x20)
cc := add(cc, 0x20)
} {
// Write the _preBytes data into the tempBytes memory 32 bytes
// at a time.
mstore(mc, mload(cc))
}
// Add the length of _postBytes to the current length of tempBytes
// and store it as the new length in the first 32 bytes of the
// tempBytes memory.
length := mload(_postBytes)
mstore(tempBytes, add(length, mload(tempBytes)))
// Move the memory counter back from a multiple of 0x20 to the
// actual end of the _preBytes data.
mc := end
// Stop copying when the memory counter reaches the new combined
// length of the arrays.
end := add(mc, length)
for {
let cc := add(_postBytes, 0x20)
} lt(mc, end) {
mc := add(mc, 0x20)
cc := add(cc, 0x20)
} {
mstore(mc, mload(cc))
}
// Update the free-memory pointer by padding our last write location
// to 32 bytes: add 31 bytes to the end of tempBytes to move to the
// next 32 byte block, then round down to the nearest multiple of
// 32. If the sum of the length of the two arrays is zero then add
// one before rounding down to leave a blank 32 bytes (the length block with 0).
mstore(
0x40,
and(
add(add(end, iszero(add(length, mload(_preBytes)))), 31),
not(31) // Round down to the nearest 32 bytes.
)
)
}
return tempBytes;
}
function slice(
bytes memory _bytes,
uint256 _start,
uint256 _length
) internal pure returns (bytes memory) {
require(_length + 31 >= _length, "slice_overflow");
require(_bytes.length >= _start + _length, "slice_outOfBounds");
bytes memory tempBytes;
assembly {
switch iszero(_length)
case 0 {
// Get a location of some free memory and store it in tempBytes as
// Solidity does for memory variables.
tempBytes := mload(0x40)
// The first word of the slice result is potentially a partial
// word read from the original array. To read it, we calculate
// the length of that partial word and start copying that many
// bytes into the array. The first word we copy will start with
// data we don't care about, but the last `lengthmod` bytes will
// land at the beginning of the contents of the new array. When
// we're done copying, we overwrite the full first word with
// the actual length of the slice.
let lengthmod := and(_length, 31)
// The multiplication in the next line is necessary
// because when slicing multiples of 32 bytes (lengthmod == 0)
// the following copy loop was copying the origin's length
// and then ending prematurely not copying everything it should.
let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
let end := add(mc, _length)
for {
// The multiplication in the next line has the same exact purpose
// as the one above.
let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
} lt(mc, end) {
mc := add(mc, 0x20)
cc := add(cc, 0x20)
} {
mstore(mc, mload(cc))
}
mstore(tempBytes, _length)
//update free-memory pointer
//allocating the array padded to 32 bytes like the compiler does now
mstore(0x40, and(add(mc, 31), not(31)))
}
//if we want a zero-length slice let's just return a zero-length array
default {
tempBytes := mload(0x40)
//zero out the 32 bytes slice we are about to return
//we need to do it because Solidity does not garbage collect
mstore(tempBytes, 0)
mstore(0x40, add(tempBytes, 0x20))
}
}
return tempBytes;
}
}//SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
library DispatchersStorageLib {
function getUint256(bytes32 position) internal view returns (uint256 data) {
assembly {
data := sload(position)
}
}
function setUint256(bytes32 position, uint256 data) internal {
assembly {
sstore(position, data)
}
}
function getAddress(bytes32 position) internal view returns (address data) {
assembly {
data := sload(position)
}
}
function setAddress(bytes32 position, address data) internal {
assembly {
sstore(position, data)
}
}
}//SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
library StakingContractStorageLib {
function getUint256(bytes32 position) internal view returns (uint256 data) {
assembly {
data := sload(position)
}
}
function setUint256(bytes32 position, uint256 data) internal {
assembly {
sstore(position, data)
}
}
function getAddress(bytes32 position) internal view returns (address data) {
assembly {
data := sload(position)
}
}
function setAddress(bytes32 position, address data) internal {
assembly {
sstore(position, data)
}
}
function getBool(bytes32 position) internal view returns (bool data) {
assembly {
data := sload(position)
}
}
function setBool(bytes32 position, bool data) internal {
assembly {
sstore(position, data)
}
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant VERSION_SLOT = keccak256("StakingContract.version");
function getVersion() internal view returns (uint256) {
return getUint256(VERSION_SLOT);
}
function setVersion(uint256 _newVersion) internal {
setUint256(VERSION_SLOT, _newVersion);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant ADMIN_SLOT = keccak256("StakingContract.admin");
bytes32 internal constant PENDING_ADMIN_SLOT = keccak256("StakingContract.pendingAdmin");
function getAdmin() internal view returns (address) {
return getAddress(ADMIN_SLOT);
}
function setAdmin(address _newAdmin) internal {
setAddress(ADMIN_SLOT, _newAdmin);
}
function getPendingAdmin() internal view returns (address) {
return getAddress(PENDING_ADMIN_SLOT);
}
function setPendingAdmin(address _newPendingAdmin) internal {
setAddress(PENDING_ADMIN_SLOT, _newPendingAdmin);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant TREASURY_SLOT = keccak256("StakingContract.treasury");
function getTreasury() internal view returns (address) {
return getAddress(TREASURY_SLOT);
}
function setTreasury(address _newTreasury) internal {
setAddress(TREASURY_SLOT, _newTreasury);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant DEPOSIT_CONTRACT_SLOT = keccak256("StakingContract.depositContract");
function getDepositContract() internal view returns (address) {
return getAddress(DEPOSIT_CONTRACT_SLOT);
}
function setDepositContract(address _newDepositContract) internal {
setAddress(DEPOSIT_CONTRACT_SLOT, _newDepositContract);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant OPERATORS_SLOT = keccak256("StakingContract.operators");
struct OperatorInfo {
address operator;
address feeRecipient;
uint256 limit;
bytes[] publicKeys;
bytes[] signatures;
bool deactivated;
}
struct OperatorsSlot {
OperatorInfo[] value;
}
function getOperators() internal pure returns (OperatorsSlot storage p) {
bytes32 slot = OPERATORS_SLOT;
assembly {
p.slot := slot
}
}
/* ========================================
===========================================
=========================================*/
/// Validator funding information is stored in a packed fashion
/// We fit 4 vfi per storage slot.
/// Each vfi is stored in 64 bits, with the following layout:
/// 32 bits for the number of available keys
/// 32 bits for the number of funded keys
uint256 internal constant FUNDED_OFFSET = 32;
bytes32 internal constant VALIDATORS_FUNDING_INFO_SLOT = keccak256("StakingContract.validatorsFundingInfo");
struct ValidatorsFundingInfo {
uint32 availableKeys;
uint32 funded;
}
struct UintToUintMappingSlot {
mapping(uint256 => uint256) value;
}
function getValidatorsFundingInfo(uint256 _index) internal view returns (ValidatorsFundingInfo memory vfi) {
UintToUintMappingSlot storage p;
bytes32 slot = VALIDATORS_FUNDING_INFO_SLOT;
assembly {
p.slot := slot
}
uint256 slotIndex = _index >> 2; // divide by 4
uint256 innerIndex = (_index & 3) << 6; // modulo 4, multiply by 64
uint256 value = p.value[slotIndex] >> innerIndex;
vfi.availableKeys = uint32(value);
vfi.funded = uint32(value >> FUNDED_OFFSET);
}
function setValidatorsFundingInfo(
uint256 _index,
uint32 _availableKeys,
uint32 _funded
) internal {
UintToUintMappingSlot storage p;
bytes32 slot = VALIDATORS_FUNDING_INFO_SLOT;
assembly {
p.slot := slot
}
uint256 slotIndex = _index >> 2; // divide by 4
uint256 innerIndex = (_index & 3) << 6; // modulo 4, multiply by 64
p.value[slotIndex] =
(p.value[slotIndex] & (~(uint256(0xFFFFFFFFFFFFFFFF) << innerIndex))) | // clear the bits we want to set
((uint256(_availableKeys) | (uint256(_funded) << FUNDED_OFFSET)) << innerIndex);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant TOTAL_AVAILABLE_VALIDATORS_SLOT = keccak256("StakingContract.totalAvailableValidators");
function getTotalAvailableValidators() internal view returns (uint256) {
return getUint256(TOTAL_AVAILABLE_VALIDATORS_SLOT);
}
function setTotalAvailableValidators(uint256 _newTotal) internal {
setUint256(TOTAL_AVAILABLE_VALIDATORS_SLOT, _newTotal);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant WITHDRAWERS_SLOT = keccak256("StakingContract.withdrawers");
struct WithdrawersSlot {
mapping(bytes32 => address) value;
}
function getWithdrawers() internal pure returns (WithdrawersSlot storage p) {
bytes32 slot = WITHDRAWERS_SLOT;
assembly {
p.slot := slot
}
}
/* ========================================
===========================================
=========================================*/
struct OperatorIndex {
bool enabled;
uint32 operatorIndex;
}
struct OperatorIndexPerValidatorSlot {
mapping(bytes32 => OperatorIndex) value;
}
bytes32 internal constant OPERATOR_INDEX_PER_VALIDATOR_SLOT =
keccak256("StakingContract.operatorIndexPerValidator");
function getOperatorIndexPerValidator() internal pure returns (OperatorIndexPerValidatorSlot storage p) {
bytes32 slot = OPERATOR_INDEX_PER_VALIDATOR_SLOT;
assembly {
p.slot := slot
}
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant GLOBAL_FEE_SLOT = keccak256("StakingContract.globalFee");
function getGlobalFee() internal view returns (uint256) {
return getUint256(GLOBAL_FEE_SLOT);
}
function setGlobalFee(uint256 _newTreasuryFee) internal {
setUint256(GLOBAL_FEE_SLOT, _newTreasuryFee);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant OPERATOR_FEE_SLOT = keccak256("StakingContract.operatorFee");
function getOperatorFee() internal view returns (uint256) {
return getUint256(OPERATOR_FEE_SLOT);
}
function setOperatorFee(uint256 _newOperatorFee) internal {
setUint256(OPERATOR_FEE_SLOT, _newOperatorFee);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant EL_DISPATCHER_SLOT = keccak256("StakingContract.executionLayerDispatcher");
function getELDispatcher() internal view returns (address) {
return getAddress(EL_DISPATCHER_SLOT);
}
function setELDispatcher(address _newElDispatcher) internal {
setAddress(EL_DISPATCHER_SLOT, _newElDispatcher);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant CL_DISPATCHER_SLOT = keccak256("StakingContract.consensusLayerDispatcher");
function getCLDispatcher() internal view returns (address) {
return getAddress(CL_DISPATCHER_SLOT);
}
function setCLDispatcher(address _newClDispatcher) internal {
setAddress(CL_DISPATCHER_SLOT, _newClDispatcher);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant FEE_RECIPIENT_IMPLEMENTATION_SLOT =
keccak256("StakingContract.feeRecipientImplementation");
function getFeeRecipientImplementation() internal view returns (address) {
return getAddress(FEE_RECIPIENT_IMPLEMENTATION_SLOT);
}
function setFeeRecipientImplementation(address _newFeeRecipientImplementation) internal {
setAddress(FEE_RECIPIENT_IMPLEMENTATION_SLOT, _newFeeRecipientImplementation);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant EXIT_REQUEST_MAPPING_SLOT =
bytes32(uint256(keccak256("StakingContract.exitRequest")) - 1);
struct ExitRequestMap {
mapping(bytes32 => bool) value;
}
function getExitRequestMap() internal pure returns (ExitRequestMap storage p) {
bytes32 slot = EXIT_REQUEST_MAPPING_SLOT;
assembly {
p.slot := slot
}
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant WITHDRAWN_MAPPING_SLOT = bytes32(uint256(keccak256("StakingContract.withdrawn")) - 1);
struct WithdrawnMap {
mapping(bytes32 => bool) value;
}
function getWithdrawnMap() internal pure returns (WithdrawnMap storage p) {
bytes32 slot = WITHDRAWN_MAPPING_SLOT;
assembly {
p.slot := slot
}
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant GLOBAL_COMMISSION_LIMIT_SLOT =
bytes32(uint256(keccak256("StakingContract.globalCommissionLimit")) - 1);
function getGlobalCommissionLimit() internal view returns (uint256) {
return getUint256(GLOBAL_COMMISSION_LIMIT_SLOT);
}
function setGlobalCommissionLimit(uint256 value) internal {
setUint256(GLOBAL_COMMISSION_LIMIT_SLOT, value);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant OPERATOR_COMMISSION_LIMIT_SLOT =
bytes32(uint256(keccak256("StakingContract.operatorCommissionLimit")) - 1);
function getOperatorCommissionLimit() internal view returns (uint256) {
return getUint256(OPERATOR_COMMISSION_LIMIT_SLOT);
}
function setOperatorCommissionLimit(uint256 value) internal {
setUint256(OPERATOR_COMMISSION_LIMIT_SLOT, value);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant DEPOSIT_STOPPED_SLOT = bytes32(uint256(keccak256("StakingContract.depositStopped")) - 1);
function getDepositStopped() internal view returns (bool) {
return getBool(DEPOSIT_STOPPED_SLOT);
}
function setDepositStopped(bool val) internal {
setBool(DEPOSIT_STOPPED_SLOT, val);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant LAST_VALIDATOR_EDIT_SLOT =
bytes32(uint256(keccak256("StakingContract.lastValidatorsEdit")) - 1);
function getLastValidatorEdit() internal view returns (uint256) {
return getUint256(LAST_VALIDATOR_EDIT_SLOT);
}
function setLastValidatorEdit(uint256 value) internal {
setUint256(LAST_VALIDATOR_EDIT_SLOT, value);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant SANCTIONS_ORACLE_SLOT =
bytes32(uint256(keccak256("StakingContract.sanctionsOracle")) - 1);
function getSanctionsOracle() internal view returns (address) {
return getAddress(SANCTIONS_ORACLE_SLOT);
}
function setSanctionsOracle(address val) internal {
setAddress(SANCTIONS_ORACLE_SLOT, val);
}
/* ========================================
===========================================
=========================================*/
bytes32 internal constant BLOCKLIST_SLOT = bytes32(uint256(keccak256("StakingContract.blocklist")) - 1);
struct BlockListMap {
mapping(address => bool) value;
}
function getBlocklist() internal pure returns (BlockListMap storage p) {
bytes32 slot = BLOCKLIST_SLOT;
assembly {
p.slot := slot
}
}
}//SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.10;
import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
/// @title TUPProxy (Transparent Upgradeable Pausable Proxy)
/// @author SkillZ
/// @notice This contract extends the Transparent Upgradeable proxy and adds a system wide pause feature.
/// When the system is paused, the fallback will fail no matter what calls are made.
contract TUPProxy is TransparentUpgradeableProxy {
bytes32 private constant _PAUSE_SLOT = bytes32(uint256(keccak256("eip1967.proxy.pause")) - 1);
error CallWhenPaused();
constructor(
address _logic,
address admin_,
bytes memory _data
) payable TransparentUpgradeableProxy(_logic, admin_, _data) {}
/// @dev Retrieves Paused state
/// @return Paused state
function isPaused() external ifAdmin returns (bool) {
return StorageSlot.getBooleanSlot(_PAUSE_SLOT).value;
}
/// @dev Pauses system
function pause() external ifAdmin {
StorageSlot.getBooleanSlot(_PAUSE_SLOT).value = true;
}
/// @dev Unpauses system
function unpause() external ifAdmin {
StorageSlot.getBooleanSlot(_PAUSE_SLOT).value = false;
}
/// @dev Overrides the fallback method to check if system is not paused before
/// @dev Address Zero is allowed to perform calls even if system is paused. This allows
/// view functions to be called when the system is paused as rpc providers can easily
/// set the sender address to zero.
function _beforeFallback() internal override {
if (StorageSlot.getBooleanSlot(_PAUSE_SLOT).value == false || msg.sender == address(0)) {
super._beforeFallback();
} else {
revert CallWhenPaused();
}
}
}{
"optimizer": {
"enabled": true,
"runs": 3000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"blockedAccount","type":"address"}],"name":"AddressBlocked","type":"error"},{"inputs":[{"internalType":"address","name":"sanctionedAccount","type":"address"}],"name":"AddressSanctioned","type":"error"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"Deactivated","type":"error"},{"inputs":[],"name":"DepositFailure","type":"error"},{"inputs":[],"name":"DepositsStopped","type":"error"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"DuplicateValidatorKey","type":"error"},{"inputs":[],"name":"Forbidden","type":"error"},{"inputs":[],"name":"FundedValidatorDeletionAttempt","type":"error"},{"inputs":[],"name":"InvalidArgument","type":"error"},{"inputs":[],"name":"InvalidCall","type":"error"},{"inputs":[],"name":"InvalidDepositValue","type":"error"},{"inputs":[],"name":"InvalidFee","type":"error"},{"inputs":[],"name":"InvalidPublicKeys","type":"error"},{"inputs":[],"name":"InvalidSignatures","type":"error"},{"inputs":[],"name":"InvalidValidatorCount","type":"error"},{"inputs":[],"name":"InvalidWithdrawer","type":"error"},{"inputs":[],"name":"InvalidZeroAddress","type":"error"},{"inputs":[],"name":"LastEditAfterSnapshot","type":"error"},{"inputs":[],"name":"MaximumOperatorCountAlreadyReached","type":"error"},{"inputs":[],"name":"NoOperators","type":"error"},{"inputs":[],"name":"NotEnoughValidators","type":"error"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"uint256","name":"keyCount","type":"uint256"}],"name":"OperatorLimitTooHigh","type":"error"},{"inputs":[],"name":"PublicKeyNotInContract","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsortedIndexes","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_operatorIndex","type":"uint256"}],"name":"ActivatedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"BeginOwnershipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"ChangedAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isStopped","type":"bool"}],"name":"ChangedDepositsStopped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newGlobalFee","type":"uint256"}],"name":"ChangedGlobalFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"operatorIndex","type":"uint256"},{"indexed":false,"internalType":"address","name":"operatorAddress","type":"address"},{"indexed":false,"internalType":"address","name":"feeRecipientAddress","type":"address"}],"name":"ChangedOperatorAddresses","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newOperatorFee","type":"uint256"}],"name":"ChangedOperatorFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"operatorIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"}],"name":"ChangedOperatorLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"ChangedTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"publicKey","type":"bytes"},{"indexed":false,"internalType":"address","name":"newWithdrawer","type":"address"}],"name":"ChangedWithdrawer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_operatorIndex","type":"uint256"}],"name":"DeactivatedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":false,"internalType":"bytes","name":"publicKey","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"signature","type":"bytes"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes","name":"pubkey","type":"bytes"}],"name":"ExitRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operatorAddress","type":"address"},{"indexed":false,"internalType":"address","name":"feeRecipientAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"NewOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sanctionsOracle","type":"address"}],"name":"NewSanctionsOracle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"operatorIndex","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"publicKey","type":"bytes"}],"name":"ValidatorKeyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"operatorIndex","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"publicKeys","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"signatures","type":"bytes"}],"name":"ValidatorKeysAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"ValidatorsEdited","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DEPOSIT_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_KEY_LENGTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNATURE_LENGTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorIndex","type":"uint256"},{"internalType":"address","name":"_newFeeRecipient","type":"address"}],"name":"activateOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operatorAddress","type":"address"},{"internalType":"address","name":"_feeRecipientAddress","type":"address"}],"name":"addOperator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorIndex","type":"uint256"},{"internalType":"uint256","name":"_keyCount","type":"uint256"},{"internalType":"bytes","name":"_publicKeys","type":"bytes"},{"internalType":"bytes","name":"_signatures","type":"bytes"}],"name":"addValidators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKeys","type":"bytes"}],"name":"batchWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKeys","type":"bytes"}],"name":"batchWithdrawCLFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKeys","type":"bytes"}],"name":"batchWithdrawELFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes","name":"_publicKeys","type":"bytes"}],"name":"blockAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorIndex","type":"uint256"},{"internalType":"address","name":"_temporaryFeeRecipient","type":"address"}],"name":"deactivateOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAvailableValidatorCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKey","type":"bytes"}],"name":"getCLFeeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDepositsStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKey","type":"bytes"}],"name":"getELFeeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_publicKeyRoot","type":"bytes32"}],"name":"getEnabledFromPublicKeyRoot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_publicKeyRoot","type":"bytes32"}],"name":"getExitRequestedFromRoot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGlobalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorIndex","type":"uint256"}],"name":"getOperator","outputs":[{"internalType":"address","name":"operatorAddress","type":"address"},{"internalType":"address","name":"feeRecipientAddress","type":"address"},{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"uint256","name":"keys","type":"uint256"},{"internalType":"uint256","name":"funded","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"},{"internalType":"bool","name":"deactivated","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOperatorFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"pubKeyRoot","type":"bytes32"}],"name":"getOperatorFeeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSanctionsOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorIndex","type":"uint256"},{"internalType":"uint256","name":"_validatorIndex","type":"uint256"}],"name":"getValidator","outputs":[{"internalType":"bytes","name":"publicKey","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"withdrawer","type":"address"},{"internalType":"bool","name":"funded","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKey","type":"bytes"}],"name":"getWithdrawer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_publicKeyRoot","type":"bytes32"}],"name":"getWithdrawerFromPublicKeyRoot","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_publicKeyRoot","type":"bytes32"}],"name":"getWithdrawnFromPublicKeyRoot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_depositContract","type":"address"},{"internalType":"address","name":"_elDispatcher","type":"address"},{"internalType":"address","name":"_clDispatcher","type":"address"},{"internalType":"address","name":"_feeRecipientImplementation","type":"address"},{"internalType":"uint256","name":"_globalFee","type":"uint256"},{"internalType":"uint256","name":"_operatorFee","type":"uint256"},{"internalType":"uint256","name":"globalCommissionLimitBPS","type":"uint256"},{"internalType":"uint256","name":"operatorCommissionLimitBPS","type":"uint256"}],"name":"initialize_1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"globalCommissionLimitBPS","type":"uint256"},{"internalType":"uint256","name":"operatorCommissionLimitBPS","type":"uint256"}],"name":"initialize_2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isBlockedOrSanctioned","outputs":[{"internalType":"bool","name":"isBlocked","type":"bool"},{"internalType":"bool","name":"isSanctioned","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorIndex","type":"uint256"},{"internalType":"uint256[]","name":"_indexes","type":"uint256[]"}],"name":"removeValidators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKeys","type":"bytes"}],"name":"requestValidatorsExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setDepositsStopped","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_globalFee","type":"uint256"}],"name":"setGlobalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorIndex","type":"uint256"},{"internalType":"address","name":"_operatorAddress","type":"address"},{"internalType":"address","name":"_feeRecipientAddress","type":"address"}],"name":"setOperatorAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorFee","type":"uint256"}],"name":"setOperatorFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_operatorIndex","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"},{"internalType":"uint256","name":"_snapshot","type":"uint256"}],"name":"setOperatorLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sanctionsOracle","type":"address"}],"name":"setSanctionsOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_publicKeyRoot","type":"bytes32"}],"name":"toggleWithdrawnFromPublicKeyRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"unblock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKey","type":"bytes"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKey","type":"bytes"}],"name":"withdrawCLFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_publicKey","type":"bytes"}],"name":"withdrawELFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b50615dec80620000216000396000f3fe6080604052600436106103225760003560e01c8063a4d8d2c4116101a5578063d0e30db0116100ec578063e00cb6ca11610095578063f0f442601161006f578063f0f442601461091e578063f2fde38b1461093e578063fe0e41911461095e578063fe38231c1461097e57610331565b8063e00cb6ca146108be578063e8a0c121146108de578063ef5e4682146108fe57610331565b8063d318edec116100c6578063d318edec14610869578063d35875d31461087e578063dfbe50dd1461089e57610331565b8063d0e30db014610821578063d243d69d14610829578063d2a427471461084957610331565b8063beee4bbf1161014e578063c13d035011610128578063c13d0350146107bc578063cac594df146107ec578063d04681561461080c57610331565b8063beee4bbf14610767578063bf15af5614610787578063bf509bd41461079c57610331565b8063b6b06dec1161017f578063b6b06dec14610707578063b747e7dd14610727578063b86bcaf71461074757610331565b8063a4d8d2c4146106b2578063a7400801146106d2578063b4336b84146106f257610331565b80633b19e84a116102695780637680fdf5116102125780639adf91ee116101ec5780639adf91ee1461063b5780639ddd89821461065b578063a117f3031461067b57610331565b80637680fdf5146105e657806379ba5097146106065780638a1af4c41461061b57610331565b806367b220a51161024357806367b220a5146105915780636d336fe0146105b15780636e9960c3146105d157610331565b80633b19e84a14610537578063540bc5ea1461054c57806363b4118f1461056157610331565b80631ee13343116102cb578063291206f6116102a5578063291206f6146104da5780632ba03a79146104fa57806336bf33251461051a57610331565b80631ee133431461046d578063227e80fa146104a557806328696608146104c557610331565b80631864636c116102fc5780631864636c1461040a5780631bcbfaba1461042a5780631d0958051461044d57610331565b806305f63c8a146103635780630968f264146103ca5780630ffab6c2146103ea57610331565b366103315761032f610993565b005b6040517fae962d4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b34801561036f57600080fd5b5061038361037e36600461559c565b610af8565b604080516001600160a01b039889168152979096166020880152948601939093526060850191909152608084015260a0830152151560c082015260e0015b60405180910390f35b3480156103d657600080fd5b5061032f6103e53660046155fe565b610c0e565b3480156103f657600080fd5b5061032f6104053660046155fe565b610cdf565b34801561041657600080fd5b5061032f610425366004615640565b610d7b565b34801561043657600080fd5b5061043f611cc0565b6040519081526020016103c1565b34801561045957600080fd5b5061032f61046836600461559c565b611ccf565b34801561047957600080fd5b5061048d6104883660046155fe565b611d6f565b6040516001600160a01b0390911681526020016103c1565b3480156104b157600080fd5b5061032f6104c03660046156db565b611dbc565b3480156104d157600080fd5b5061043f611f45565b3480156104e657600080fd5b5061032f6104f536600461559c565b611f4f565b34801561050657600080fd5b5061032f6105153660046155fe565b611fe8565b34801561052657600080fd5b5061043f6801bc16d674ec80000081565b34801561054357600080fd5b5061048d612027565b34801561055857600080fd5b5061043f606081565b34801561056d57600080fd5b5061058161057c366004615707565b612031565b6040516103c19493929190615781565b34801561059d57600080fd5b5061032f6105ac3660046157c8565b6122b2565b3480156105bd57600080fd5b5061032f6105cc366004615707565b612321565b3480156105dd57600080fd5b5061048d6123cf565b3480156105f257600080fd5b5061032f6106013660046157f1565b6123d9565b34801561061257600080fd5b5061032f612452565b34801561062757600080fd5b5061043f610636366004615815565b6124d2565b34801561064757600080fd5b5061048d61065636600461559c565b6126ce565b34801561066757600080fd5b5061032f6106763660046157c8565b6127c9565b34801561068757600080fd5b5061069b6106963660046157c8565b612843565b6040805192151583529015156020830152016103c1565b3480156106be57600080fd5b5061032f6106cd36600461583f565b6128fb565b3480156106de57600080fd5b5061048d6106ed36600461559c565b612ad7565b3480156106fe57600080fd5b5061043f612bef565b34801561071357600080fd5b5061032f6107223660046155fe565b612bf9565b34801561073357600080fd5b5061032f61074236600461587b565b612c0d565b34801561075357600080fd5b5061032f61076236600461559c565b612f8a565b34801561077357600080fd5b5061032f6107823660046158fe565b612fea565b34801561079357600080fd5b5061043f603081565b3480156107a857600080fd5b5061032f6107b73660046155fe565b6131fd565b3480156107c857600080fd5b506107dc6107d736600461559c565b61327f565b60405190151581526020016103c1565b3480156107f857600080fd5b506107dc61080736600461559c565b61328a565b34801561081857600080fd5b5061048d6132a8565b61032f6132b2565b34801561083557600080fd5b5061048d6108443660046155fe565b6132bc565b34801561085557600080fd5b5061032f6108643660046156db565b6132fd565b34801561087557600080fd5b5061048d6134f9565b34801561088a57600080fd5b5061032f61089936600461592a565b613503565b3480156108aa57600080fd5b5061032f6108b936600461597d565b613607565b3480156108ca57600080fd5b5061048d6108d93660046155fe565b613738565b3480156108ea57600080fd5b5061032f6108f93660046155fe565b61377c565b34801561090a57600080fd5b5061032f6109193660046155fe565b613826565b34801561092a57600080fd5b5061032f6109393660046157c8565b6138c2565b34801561094a57600080fd5b5061032f6109593660046157c8565b61393f565b34801561096a57600080fd5b506107dc61097936600461559c565b6139b9565b34801561098a57600080fd5b506107dc6139e1565b61099b6139e7565b156109d2576040517f753ed9db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109db33613a1b565b3415806109f957506109f66801bc16d674ec80000034615a31565b15155b15610a30576040517f428243e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610a3a613b49565b90506000610a516801bc16d674ec80000034615a5b565b905081811115610a8d576040517fae575a8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b398054600003610ae9576040517fddf9d24500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610af38284613b73565b505050565b6000808080808080807fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b398054909150891015610c02576040805180820182526000808252602080830182815260028e901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f082529382205460068e901b60c0161c63ffffffff8181168552911c1690925290506000826000018b81548110610ba457610ba4615a6f565b600091825260209182902060069091020180546001820154600283015460038401546005909401549487015196516001600160a01b039384169f50919092169c50909a5090985063ffffffff93841697509290921694505060ff1691505b50919395979092949650565b610c4d82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613b9092505050565b610c9582828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250610c909150613c049050565b613c2e565b610cdb82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610c909150613dc29050565b5050565b610cea603082615a31565b15610d085760405163337d0f4160e01b815260040160405180910390fd5b60005b81811015610af3576000610d5984848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086925060309150613dec9050565b9050610d6481613b90565b610d72816001610c90613dc2565b50603001610d0b565b82610d84613f48565b6001600160a01b0316330361158d576000829003610dce576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051808201825260008082526020808301828152600289901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f082529390912054600688901b60c0161c63ffffffff8181168452911c1691829052907fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39907fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec93902908686610e7f600182615a85565b818110610e8e57610e8e615a6f565b905060200201351015610ecd576040517f34947ea100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8581101561147057600081118015610f2257508686610ef0600184615a85565b818110610eff57610eff615a6f565b90506020020135878783818110610f1857610f18615a6f565b9050602002013510155b15610f59576040517f35061dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611045846000018a81548110610f7357610f73615a6f565b9060005260206000209060060201600301898985818110610f9657610f96615a6f565b9050602002013581548110610fad57610fad615a6f565b906000526020600020018054610fc290615a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610fee90615a9c565b801561103b5780601f106110105761010080835404028352916020019161103b565b820191906000526020600020905b81548152906001019060200180831161101e57829003601f168201915b5050505050613f72565b6000818152602085905260409020805464ffffffffff19169055845490915089907f794aacb42d1ea2e7f72809b74e3ce124325a51c3715b873c36807d3ca37e4fd09086908390811061109a5761109a615a6f565b90600052602060002090600602016003018a8a868181106110bd576110bd615a6f565b90506020020135815481106110d4576110d4615a6f565b906000526020600020016040516110eb9190615ad6565b60405180910390a26001846000018a8154811061110a5761110a615a6f565b9060005260206000209060060201600301805490506111299190615a85565b88888481811061113b5761113b615a6f565b90506020020135036111f25783600001898154811061115c5761115c615a6f565b906000526020600020906006020160030180548061117c5761117c615b7d565b60019003818190600052602060002001600061119891906153d8565b90558360000189815481106111af576111af615a6f565b90600052602060002090600602016004018054806111cf576111cf615b7d565b6001900381819060005260206000200160006111eb91906153d8565b9055611467565b83600001898154811061120757611207615a6f565b90600052602060002090600602016003016001856000018b8154811061122f5761122f615a6f565b90600052602060002090600602016003018054905061124e9190615a85565b8154811061125e5761125e615a6f565b90600052602060002001846000018a8154811061127d5761127d615a6f565b90600052602060002090600602016003018989858181106112a0576112a0615a6f565b90506020020135815481106112b7576112b7615a6f565b906000526020600020019080546112cd90615a9c565b6112d8929190615412565b508360000189815481106112ee576112ee615a6f565b906000526020600020906006020160030180548061130e5761130e615b7d565b60019003818190600052602060002001600061132a91906153d8565b905583600001898154811061134157611341615a6f565b90600052602060002090600602016004016001856000018b8154811061136957611369615a6f565b9060005260206000209060060201600401805490506113889190615a85565b8154811061139857611398615a6f565b90600052602060002001846000018a815481106113b7576113b7615a6f565b90600052602060002090600602016004018989858181106113da576113da615a6f565b90506020020135815481106113f1576113f1615a6f565b9060005260206000200190805461140790615a9c565b611412929190615412565b5083600001898154811061142857611428615a6f565b906000526020600020906006020160040180548061144857611448615b7d565b60019003818190600052602060002001600061146491906153d8565b90555b50600101610ed0565b5081600001878154811061148657611486615a6f565b600091825260209091206002600690920201015486866114a7600182615a85565b8181106114b6576114b6615a6f565b9050602002013510156115745785856114d0600182615a85565b8181106114df576114df615a6f565b905060200201358260000188815481106114fb576114fb615a6f565b60009182526020909120600260069092020101557fa4dcee8ff224c7cfd53b1f2cd1f5afd98927d079b4152d639c5e523a52bf1e0387878761153e600182615a85565b81811061154d5761154d615a6f565b9050602002013560405161156b929190918252602082015260400190565b60405180910390a15b61157c613fe7565b61158587614025565b505050611cba565b6115968161421e565b60008290036115d1576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051808201825260008082526020808301828152600289901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f082529390912054600688901b60c0161c63ffffffff8181168452911c1691829052907fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39907fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec93902908686611682600182615a85565b81811061169157611691615a6f565b9050602002013510156116d0576040517f34947ea100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b85811015611ba157600081118015611725575086866116f3600184615a85565b81811061170257611702615a6f565b9050602002013587878381811061171b5761171b615a6f565b9050602002013510155b1561175c576040517f35061dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611776846000018a81548110610f7357610f73615a6f565b6000818152602085905260409020805464ffffffffff19169055845490915089907f794aacb42d1ea2e7f72809b74e3ce124325a51c3715b873c36807d3ca37e4fd0908690839081106117cb576117cb615a6f565b90600052602060002090600602016003018a8a868181106117ee576117ee615a6f565b905060200201358154811061180557611805615a6f565b9060005260206000200160405161181c9190615ad6565b60405180910390a26001846000018a8154811061183b5761183b615a6f565b90600052602060002090600602016003018054905061185a9190615a85565b88888481811061186c5761186c615a6f565b90506020020135036119235783600001898154811061188d5761188d615a6f565b90600052602060002090600602016003018054806118ad576118ad615b7d565b6001900381819060005260206000200160006118c991906153d8565b90558360000189815481106118e0576118e0615a6f565b906000526020600020906006020160040180548061190057611900615b7d565b60019003818190600052602060002001600061191c91906153d8565b9055611b98565b83600001898154811061193857611938615a6f565b90600052602060002090600602016003016001856000018b8154811061196057611960615a6f565b90600052602060002090600602016003018054905061197f9190615a85565b8154811061198f5761198f615a6f565b90600052602060002001846000018a815481106119ae576119ae615a6f565b90600052602060002090600602016003018989858181106119d1576119d1615a6f565b90506020020135815481106119e8576119e8615a6f565b906000526020600020019080546119fe90615a9c565b611a09929190615412565b50836000018981548110611a1f57611a1f615a6f565b9060005260206000209060060201600301805480611a3f57611a3f615b7d565b600190038181906000526020600020016000611a5b91906153d8565b9055836000018981548110611a7257611a72615a6f565b90600052602060002090600602016004016001856000018b81548110611a9a57611a9a615a6f565b906000526020600020906006020160040180549050611ab99190615a85565b81548110611ac957611ac9615a6f565b90600052602060002001846000018a81548110611ae857611ae8615a6f565b9060005260206000209060060201600401898985818110611b0b57611b0b615a6f565b9050602002013581548110611b2257611b22615a6f565b90600052602060002001908054611b3890615a9c565b611b43929190615412565b50836000018981548110611b5957611b59615a6f565b9060005260206000209060060201600401805480611b7957611b79615b7d565b600190038181906000526020600020016000611b9591906153d8565b90555b506001016116d3565b50816000018781548110611bb757611bb7615a6f565b60009182526020909120600260069092020101548686611bd8600182615a85565b818110611be757611be7615a6f565b905060200201351015611ca5578585611c01600182615a85565b818110611c1057611c10615a6f565b90506020020135826000018881548110611c2c57611c2c615a6f565b60009182526020909120600260069092020101557fa4dcee8ff224c7cfd53b1f2cd1f5afd98927d079b4152d639c5e523a52bf1e03878787611c6f600182615a85565b818110611c7e57611c7e615a6f565b90506020020135604051611c9c929190918252602082015260400190565b60405180910390a15b611cad613fe7565b611cb687614025565b5050505b50505050565b6000611cca6142ce565b905090565b611cd7613f48565b6001600160a01b0316336001600160a01b031614611d07576040516282b42960e81b815260040160405180910390fd5b611d0f6142f8565b811115611d2f576040516358d620b360e01b815260040160405180910390fd5b611d3881614328565b6040518181527fd894096cd1f7e89d9b748c7c2358cb699a790a05e97dcde228fe5949b4e80743906020015b60405180910390a150565b6000611db383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250614351915050565b90505b92915050565b611dc4613f48565b6001600160a01b0316336001600160a01b031614611df4576040516282b42960e81b815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b398054600090829085908110611e2c57611e2c615a6f565b600091825260209182902060069190910201600501805460ff1916921515929092179091556040518481527f8d0ba049731b0417f85546bc7503de241522c61e7464e87cceff56d3f2586dbc910160405180910390a181816000018481548110611e9857611e98615a6f565b906000526020600020906006020160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f97568892aa9e69db7c72b9f32e6d4fe3c0e53b9728a8c0a0f1c2a7eb47c48ad383826000018581548110611f0457611f04615a6f565b600091825260209182902060069091020154604080519384526001600160a01b039182169284019290925285169082015260600160405180910390a1505050565b6000611cca6143fb565b611f57613f48565b6001600160a01b0316336001600160a01b031614611f87576040516282b42960e81b815260040160405180910390fd5b611f8f614425565b811115611faf576040516358d620b360e01b815260040160405180910390fd5b611fb881614455565b6040518181527fecd6fc650620aa722cafc3c3e871fa813947eae6f856982d7510a8ff101a507890602001611d64565b610c9582828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613b9092505050565b6000611cca61447e565b606080600080807fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39905080600001878154811061207057612070615a6f565b9060005260206000209060060201600301868154811061209257612092615a6f565b9060005260206000200180546120a790615a9c565b80601f01602080910402602001604051908101604052809291908181526020018280546120d390615a9c565b80156121205780601f106120f557610100808354040283529160200191612120565b820191906000526020600020905b81548152906001019060200180831161210357829003601f168201915b5050505050945080600001878154811061213c5761213c615a6f565b9060005260206000209060060201600401868154811061215e5761215e615a6f565b90600052602060002001805461217390615a9c565b80601f016020809104026020016040519081016040528092919081815260200182805461219f90615a9c565b80156121ec5780601f106121c1576101008083540402835291602001916121ec565b820191906000526020600020905b8154815290600101906020018083116121cf57829003601f168201915b505050505093506122396121ff86613f72565b60009081527f86647fdbbdb534026d3e0f93a551cecf651c2b40fcdfef4b9fd9ed826133e26560205260409020546001600160a01b031690565b6040805180820182526000808252602080830182815260028d901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f08252939091205460068c901b60c0161c63ffffffff8181168452911c169091529093506020015163ffffffff16861091505092959194509250565b6122ba613f48565b6001600160a01b0316336001600160a01b0316146122ea576040516282b42960e81b815260040160405180910390fd5b60006122f46144a8565b6001600160a01b039290921660009081526020929092526040909120805460ff1916911515919091179055565b600261232b6144d6565b612336906001615b93565b811461236e576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61237781614500565b61271083111561239a576040516358d620b360e01b815260040160405180910390fd5b6123a383614529565b6127108211156123c6576040516358d620b360e01b815260040160405180910390fd5b610af38261455c565b6000611cca613f48565b6123e1613f48565b6001600160a01b0316336001600160a01b031614612411576040516282b42960e81b815260040160405180910390fd5b60405181151581527f8caf502b0bfa5915a541f14f8b0d091d4837c201b74aa2a7a7f52487a5fe8a819060200160405180910390a161244f8161458a565b50565b600061245c6145b8565b9050336001600160a01b03821614612486576040516282b42960e81b815260040160405180910390fd5b61248f816145e1565b612499600061460a565b6040516001600160a01b03821681527ff29c1089a9594c030706593e345bd8f70a26125bfb7bf4c54e757e20f456fd1c90602001611d64565b60006124dc613f48565b6001600160a01b0316336001600160a01b03161461250c576040516282b42960e81b815260040160405180910390fd5b6040805160c0810182526000808252602082018190529181018290526060808201819052608082015260a08101919091527fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39805490919060010361259c576040517fa20c741300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808616825284811660208084019182528454600181810187556000878152839020865160069093020180549286167fffffffffffffffffffffffff000000000000000000000000000000000000000093841617815593519084018054919095169116179092556040830151600282015560608301518051849361262e92600385019291019061549d565b506080820151805161264a91600484019160209091019061549d565b5060a091909101516005909101805460ff1916911515919091179055815460009061267790600190615a85565b604080516001600160a01b03808a168252881660208201529081018290529091507f2b3c4db2c0f4f51da09c2510a63e1d90235e486e8f075a609103a5c7a07422179060600160405180910390a195945050505050565b60008181527fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec93902602052604081205460ff1615158103612739576040517f9e44bfc500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281527fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec9390260205260409020547fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b3980549091610100900463ffffffff169081106127a6576127a6615a6f565b60009182526020909120600160069092020101546001600160a01b031692915050565b6127d1613f48565b6001600160a01b0316336001600160a01b031614612801576040516282b42960e81b815260040160405180910390fd5b61280a81614632565b6040516001600160a01b03821681527f690e624a17281ebf2377ba1e344f2eb40f3de5bd9a077d33ea44596400453f7d90602001611d64565b6000806000612850614660565b90506001600160a01b038116156128ce5760405163df592f7d60e01b81526001600160a01b03858116600483015282169063df592f7d90602401602060405180830381865afa1580156128a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cb9190615bab565b91505b6128d66144a8565b6001600160a01b0390941660009081526020949094525060409092205460ff16929050565b8260007fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b3980548390811061293157612931615a6f565b60009182526020909120600690910201600581015490915060ff1615612983576040517f1142a68c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018101546001600160a01b031633146129af576040516282b42960e81b815260040160405180910390fd5b6129b884614690565b6129c183614690565b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39805485908290889081106129f8576129f8615a6f565b906000526020600020906006020160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555083816000018781548110612a4357612a43615a6f565b60009182526020918290206006919091020160010180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0393841617905560408051898152888416928101929092529186168183015290517f97568892aa9e69db7c72b9f32e6d4fe3c0e53b9728a8c0a0f1c2a7eb47c48ad3916060908290030190a1505050505050565b60008181527f86647fdbbdb534026d3e0f93a551cecf651c2b40fcdfef4b9fd9ed826133e26560205260408120546001600160a01b031680612b1c5750600092915050565b6000612b26614660565b90506001600160a01b03811615612be85760405163df592f7d60e01b81526001600160a01b03838116600483015282169063df592f7d90602401602060405180830381865afa158015612b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ba19190615bab565b15612be8576040517fae1427c10000000000000000000000000000000000000000000000000000000081526001600160a01b03831660048201526024015b60405180910390fd5b5092915050565b6000611cca613b49565b612c02336146d0565b610cdb828233614797565b85612c178161421e565b85600003612c51576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c5c866030615bc8565b8414612c7b5760405163337d0f4160e01b815260040160405180910390fd5b612c86866060615bc8565b8214612cbe576040517f274cf40100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b397fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec9390260005b88811015612f2f576000612d5b89898080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d54925060309150869050615bc8565b6030613dec565b90506000612dad88888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612da6925060609150879050615bc8565b6060613dec565b9050846000018c81548110612dc457612dc4615a6f565b600091825260208083206003600690930201919091018054600181018255908352918190208451612dfc9391909101918501906154f6565b50846000018c81548110612e1257612e12615a6f565b600091825260208083206004600690930201919091018054600181018255908352918190208351612e4a9391909101918401906154f6565b506000612e5683613f72565b60008181526020879052604090205490915060ff1615612ea457826040517f5a303adb000000000000000000000000000000000000000000000000000000008152600401612bdf9190615c05565b60405180604001604052806001151581526020018e63ffffffff1681525085600001600083815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548163ffffffff021916908363ffffffff160217905550905050836001019350505050612d03565b50887fb82c87b84f76f39d5f61ed59b411352603805dda6080a2c44b4a86eab141ff1b88888888604051612f669493929190615c43565b60405180910390a2612f76613fe7565b612f7f89614025565b505050505050505050565b612f92613dc2565b6001600160a01b0316336001600160a01b031614612fc2576040516282b42960e81b815260040160405180910390fd5b6001612fcc6148ca565b60009283526020526040909120805460ff1916911515919091179055565b612ff2613f48565b6001600160a01b0316336001600160a01b031614613022576040516282b42960e81b815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39805481908590811061305757613057615a6f565b600091825260209091206005600690920201015460ff16156130a5576040517f1142a68c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160000185815481106130bc576130bc615a6f565b906000526020600020906006020160030180549050905083811015613117576040517f62106cb30000000000000000000000000000000000000000000000000000000081526004810185905260248101829052604401612bdf565b8382600001868154811061312d5761312d615a6f565b9060005260206000209060060201600201541080156131525750826131506148f8565b115b15613189576040517f474c62e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8382600001868154811061319f5761319f615a6f565b9060005260206000209060060201600201819055506131bd85614025565b60408051868152602081018690527fa4dcee8ff224c7cfd53b1f2cd1f5afd98927d079b4152d639c5e523a52bf1e03910160405180910390a15050505050565b61323c82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613b9092505050565b610cdb82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250610c909150613c049050565b6000611db682614928565b60006132946148ca565b600092835260205250604090205460ff1690565b6000611cca6145b8565b6132ba610993565b565b6000611db383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250614351915050565b613305613f48565b6001600160a01b0316336001600160a01b031614613335576040516282b42960e81b815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39805460009082908590811061336d5761336d615a6f565b9060005260206000209060060201600201819055507fa4dcee8ff224c7cfd53b1f2cd1f5afd98927d079b4152d639c5e523a52bf1e038360006040516133bd929190918252602082015260400190565b60405180910390a160018160000184815481106133dc576133dc615a6f565b600091825260209182902060069190910201600501805460ff1916921515929092179091556040518481527f4c644bb0e171ba9e5cf08f5d66836528c3947c3512b34dd8e27da30e803527b3910160405180910390a18181600001848154811061344857613448615a6f565b906000526020600020906006020160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f97568892aa9e69db7c72b9f32e6d4fe3c0e53b9728a8c0a0f1c2a7eb47c48ad3838260000185815481106134b4576134b4615a6f565b600091825260209182902060069091020154604080519384526001600160a01b039182169284019290925285169082015260600160405180910390a1610af383614025565b6000611cca614660565b61350b613f48565b6001600160a01b0316336001600160a01b03161461353b576040516282b42960e81b815260040160405180910390fd5b60016135456144a8565b6001600160a01b038516600090815260209190915260408120805460ff191692151592909217909155613576614660565b90506001600160a01b038116156135fc5760405163df592f7d60e01b81526001600160a01b03858116600483015282169063df592f7d90602401602060405180830381865afa1580156135cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135f19190615bab565b156135fc5750505050565b611cba838386614797565b60016136116144d6565b61361c906001615b93565b8114613654576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61365d81614500565b6136668b614690565b61366f8b6145e1565b6136788a614690565b6136818a614932565b6127108511156136a4576040516358d620b360e01b815260040160405180910390fd5b6136ad85614455565b6127108411156136d0576040516358d620b360e01b815260040160405180910390fd5b6136d984614328565b6136e288614690565b6136eb8861495b565b6136f487614690565b6136fd87614984565b61370689614690565b61370f896149ad565b61371886614690565b613721866149d6565b61372b8383612321565b5050505050505050505050565b6000611db36121ff84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613f7292505050565b613787603082615a31565b156137a55760405163337d0f4160e01b815260040160405180910390fd5b60005b81811015610af35760006137f684848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086925060309150613dec9050565b905061380181613b90565b61380f816000610c90613c04565b61381d816001610c90613dc2565b506030016137a8565b613831603082615a31565b1561384f5760405163337d0f4160e01b815260040160405180910390fd5b60005b81811015610af35760006138a084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086925060309150613dec9050565b90506138ab81613b90565b6138b9816000610c90613c04565b50603001613852565b6138ca613f48565b6001600160a01b0316336001600160a01b0316146138fa576040516282b42960e81b815260040160405180910390fd5b6040516001600160a01b03821681527f63cc689e9d3377465b51fb094ea4ca5e0a1436b21f1ad30d707c696111c665009060200160405180910390a161244f81614932565b613947613f48565b6001600160a01b0316336001600160a01b031614613977576040516282b42960e81b815260040160405180910390fd5b6139808161460a565b6040516001600160a01b0382169033907fa625552b818bd8927eb73159632b6c0a8e7191aa19f791639eef28c460c44f9e90600090a350565b60007fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec93902613294565b6000611cca5b6000611cca613a1760017fb2e94356976bf59104fa32f6a0cf50947281732def9f18014aacae55ac60c5dd615a85565b5490565b6000613a25614660565b90506001600160a01b03811615613ae25760405163df592f7d60e01b81526001600160a01b03838116600483015282169063df592f7d90602401602060405180830381865afa158015613a7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613aa09190615bab565b15613ae2576040517fae1427c10000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602401612bdf565b613aea6144a8565b6001600160a01b0383166000908152602091909152604090205460ff1615610cdb576040517f71fa9c990000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602401612bdf565b6000611cca7f559ad51499ae00ca2e9d9d95aab46737c8904ab7da276613fefda282b2c2ac065490565b613b85613b808383615a85565b6149ff565b610cdb600083614a28565b613b9c6121ff82613f72565b6001600160a01b0316336001600160a01b031614158015613bcd575033613bc1613f48565b6001600160a01b031614155b1561244f576040517fca455fa500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611cca7faa81344d5857c875349bc4a95d531a580c46bdd94c41b35b1e072e4d627079f85490565b6000613c3984613f72565b9050613c44336146d0565b600060028483604051602001613c64929190918252602082015260400190565b60408051601f1981840301815290829052613c7e91615c75565b602060405180830381855afa158015613c9b573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190613cbe9190615c91565b90506000613cca614dcd565b90506000613cd88284614df7565b9050806001600160a01b03163b600003613d7357613cf68284614e73565b506040517f2cc0b2540000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015260248201869052821690632cc0b25490604401600060405180830381600087803b158015613d5a57600080fd5b505af1158015613d6e573d6000803e3d6000fd5b505050505b806001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015613dae57600080fd5b505af115801561372b573d6000803e3d6000fd5b6000611cca7fb6d5e19fdd6cde5f03ed4f17c2670deffa47975541fd270b0b17e803297d76085490565b606081613dfa81601f615b93565b1015613e62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f736c6963655f6f766572666c6f770000000000000000000000000000000000006044820152606401612bdf565b613e6c8284615b93565b84511015613ed6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f736c6963655f6f75744f66426f756e64730000000000000000000000000000006044820152606401612bdf565b606082158015613ef55760405191506000825260208201604052613f3f565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015613f2e578051835260209283019201613f16565b5050858452601f01601f1916604052505b50949350505050565b6000611cca7ffbeda9bc03875013b12a1ec161efb8e5bf7e58e3cec96a1ea9efd3e264d26e645490565b6000600282600060801b604051602001613f8d929190615caa565b60408051601f1981840301815290829052613fa791615c75565b602060405180830381855afa158015613fc4573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611db69190615c91565b613ff043614f44565b6040514381527f55c5aabfc91da783d60f72c41f352ac7f9d507fcd884f41e27e6852305f948ce9060200160405180910390a1565b60408051808201825260008082526020808301828152600286901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f0825293822054600686901b60c0161c63ffffffff8181168552911c1690925280517fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b3980549293509160009081908490879081106140c2576140c2615a6f565b9060005260206000209060060201600201549050846020015163ffffffff16811161415157602080860151600288901c60009081527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f083526040902080549190921b67ffffffff0000000016600689901b60c01690811b67ffffffffffffffff90911b199091161790556141d6565b60208501516141669063ffffffff1682615a85565b602080870151600289901c60009081527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f083526040902080549190921b67ffffffff000000001663ffffffff84161760068a901b60c01690811b67ffffffffffffffff90911b1990911617905591505b8163ffffffff168363ffffffff1614614216576142168263ffffffff168463ffffffff16614202613b49565b61420c9190615a85565b613b809190615b93565b505050505050565b60007fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b3980548390811061425357614253615a6f565b60009182526020909120600690910201600581015490915060ff16156142a5576040517f1142a68c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80546001600160a01b03163314610cdb576040516282b42960e81b815260040160405180910390fd5b6000611cca7fb88142a0318e2b174876bceb4db9dc318011849c83fb8a8bb2997386d562324a5490565b6000611cca613a1760017f05896f012c7ab472c495a6810b73fc6183d339203dd1c74344bbfd2e1f5038fe615a85565b61244f7f41118591c19026bdc7a484e34f80a8e7e632600aff1c72460e9c7dfe94a2dda6829055565b60008061435d84613f72565b905060006002848360405160200161437f929190918252602082015260400190565b60408051601f198184030181529082905261439991615c75565b602060405180830381855afa1580156143b6573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906143d99190615c91565b905060006143e5614dcd565b90506143f18183614df7565b9695505050505050565b6000611cca7f41118591c19026bdc7a484e34f80a8e7e632600aff1c72460e9c7dfe94a2dda65490565b6000611cca613a1760017f2ad86e81c1a15749eb0399a4f2566324ade0cc7d7f8592a3db8896a29004bf81615a85565b61244f7fb88142a0318e2b174876bceb4db9dc318011849c83fb8a8bb2997386d562324a829055565b6000611cca7f10c92bb459c0223bf996150f2fb702a8288fb8354a33d5b0212e8e6b8273f55e5490565b600080611db660017f5e6a3daeb9ca2435a85726c3129da954d96e8ada52aa5a80dd5631cc007bfa63615a85565b6000611cca7fd5c553085b8382c47128ae7612257fd5dc3b4fc4d3a108925604d3c8700c025b5490565b61244f7fd5c553085b8382c47128ae7612257fd5dc3b4fc4d3a108925604d3c8700c025b829055565b61244f61455760017f2ad86e81c1a15749eb0399a4f2566324ade0cc7d7f8592a3db8896a29004bf81615a85565b829055565b61244f61455760017f05896f012c7ab472c495a6810b73fc6183d339203dd1c74344bbfd2e1f5038fe615a85565b61244f61455760017fb2e94356976bf59104fa32f6a0cf50947281732def9f18014aacae55ac60c5dd615a85565b6000611cca7e595eca1f8b39945ff4c404827bfa5fd1e295ef3f7d59d120a8ce3bae4e37a05490565b61244f7ffbeda9bc03875013b12a1ec161efb8e5bf7e58e3cec96a1ea9efd3e264d26e64829055565b61244f7e595eca1f8b39945ff4c404827bfa5fd1e295ef3f7d59d120a8ce3bae4e37a0829055565b61244f61455760017f5525d6a43f6db39453db1581d75d8fb5ebfb75220bdcf9416dacc33f4777aac5615a85565b6000611cca613a1760017f5525d6a43f6db39453db1581d75d8fb5ebfb75220bdcf9416dacc33f4777aac5615a85565b6001600160a01b03811661244f576040517ff6b2911f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006146da614660565b90506001600160a01b03811615610cdb5760405163df592f7d60e01b81526001600160a01b03838116600483015282169063df592f7d90602401602060405180830381865afa158015614731573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147559190615bab565b15610cdb576040517fae1427c10000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602401612bdf565b6147a2603083615a31565b156147c05760405163337d0f4160e01b815260040160405180910390fd5b60005b82811015611cba57600061481185858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086925060309150613dec9050565b9050600061481e82613f72565b60008181527f86647fdbbdb534026d3e0f93a551cecf651c2b40fcdfef4b9fd9ed826133e26560205260409020549091506001600160a01b03908116908516811461487b576040516282b42960e81b815260040160405180910390fd5b614886826001614f72565b7fcb773ebd49049a1f68200f0814f547dec2c54293ff2c6a6a4f4d98d6d9cb122981846040516148b7929190615cf1565b60405180910390a15050506030016147c3565b600080611db660017fd9ed3684910fa17a5f2ad83fd15b2ccb0abf740b7041631a9fe7daffda0cb9ee615a85565b6000611cca613a1760017f7d3541d2c0079305636180d42008f210385563932c50e421bd8654ed4a6017eb615a85565b6000613294614f9b565b61244f7f10c92bb459c0223bf996150f2fb702a8288fb8354a33d5b0212e8e6b8273f55e829055565b61244f7faa81344d5857c875349bc4a95d531a580c46bdd94c41b35b1e072e4d627079f8829055565b61244f7fb6d5e19fdd6cde5f03ed4f17c2670deffa47975541fd270b0b17e803297d7608829055565b61244f7fbc8b9852d17d50256bb221fdf6ee12d78dd493d807e907f7d223c40d65abd6b9829055565b61244f7fd1c64973da70267569571a091966834c1a36bdba47f2a112b6a95bf41fc9c24e829055565b61244f7f559ad51499ae00ca2e9d9d95aab46737c8904ab7da276613fefda282b2c2ac06829055565b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b398054600090829085908110614a6057614a60615a6f565b6000918252602080832060408051808201825285815280840186815260028b901c87527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f08552919095205460068a811b60c0169190911c63ffffffff8181168852941c90931690819052929091020192505b84826020015163ffffffff16614ae89190615b93565b811015614d21576000836003018281548110614b0657614b06615a6f565b906000526020600020018054614b1b90615a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054614b4790615a9c565b8015614b945780601f10614b6957610100808354040283529160200191614b94565b820191906000526020600020905b815481529060010190602001808311614b7757829003601f168201915b505050505090506000846004018381548110614bb257614bb2615a6f565b906000526020600020018054614bc790615a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054614bf390615a9c565b8015614c405780601f10614c1557610100808354040283529160200191614c40565b820191906000526020600020905b815481529060010190602001808311614c2357829003601f168201915b505050505090506000614c54836001614351565b90506000614c6182614fc9565b90506000614c6e85613f72565b9050614c7c85828685614ffe565b60008181527f86647fdbbdb534026d3e0f93a551cecf651c2b40fcdfef4b9fd9ed826133e26560205260409081902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633908117909155905181907fac1020908b5f7134d59c1580838eba6fc42dd8c28bae65bf345676bba1913f8e90614d099089908990615d1b565b60405180910390a38560010195505050505050614ad2565b50614dc68585836000015163ffffffff16614d3c9190615a85565b86846020015163ffffffff16614d529190615b93565b600283901c60009081527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f060209081526040909120805467ffffffffffffffff60c060069790971b9690961695861b191663ffffffff9490941667ffffffff000000009390921b929092161790921b179055565b5050505050565b6000611cca7fd1c64973da70267569571a091966834c1a36bdba47f2a112b6a95bf41fc9c24e5490565b6000611db38383306040517f3d602d80600a3d3981f3363d3d373d3d3d363d730000000000000000000000008152606093841b60148201527f5af43d82803e903d91602b57fd5bf3ff000000000000000000000000000000006028820152921b6038830152604c8201526037808220606c830152605591012090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f59150506001600160a01b038116611db6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f455243313136373a2063726561746532206661696c65640000000000000000006044820152606401612bdf565b61244f61455760017f7d3541d2c0079305636180d42008f210385563932c50e421bd8654ed4a6017eb615a85565b80614f7b614f9b565b60009384526020526040909220805460ff19169215159290921790915550565b600080611db660017f68ed1186fe6f93f91e23b08dcba07651b0153d3ab058aab96212b33aaaf3a899615a85565b6000611db67f01000000000000000000000000000000000000000000000000000000000000006001600160a01b038416615b93565b60006002806150108560006040613dec565b60405161501d9190615c75565b602060405180830381855afa15801561503a573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061505d9190615c91565b6002615075866040615070816060615a85565b613dec565b6040516150889190600090602001615d49565b60408051601f19818403018152908290526150a291615c75565b602060405180830381855afa1580156150bf573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906150e29190615c91565b60408051602081019390935282015260600160408051601f198184030181529082905261510e91615c75565b602060405180830381855afa15801561512b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061514e9190615c91565b905060006002808685604051602001615171929190918252602082015260400190565b60408051601f198184030181529082905261518b91615c75565b602060405180830381855afa1580156151a8573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906151cb9190615c91565b604080517e40597307000000000000000000000000000000000000000000000000000000602082015290810185905260029060600160408051601f198184030181529082905261521a91615c75565b602060405180830381855afa158015615237573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061525a9190615c91565b60408051602081019390935282015260600160408051601f198184030181529082905261528691615c75565b602060405180830381855afa1580156152a3573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906152c69190615c91565b905060006152dd6801bc16d674ec80000047615a85565b90506152e76153ae565b6001600160a01b031663228951186801bc16d674ec800000898760405160200161531391815260200190565b60405160208183030381529060405289876040518663ffffffff1660e01b81526004016153439493929190615d6b565b6000604051808303818588803b15801561535c57600080fd5b505af1158015615370573d6000803e3d6000fd5b5050505050804714611cb6576040517f6596d2b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611cca7fbc8b9852d17d50256bb221fdf6ee12d78dd493d807e907f7d223c40d65abd6b95490565b5080546153e490615a9c565b6000825580601f106153f4575050565b601f01602090049060005260206000209081019061244f919061556a565b82805461541e90615a9c565b90600052602060002090601f016020900481019282615440576000855561548d565b82601f10615451578054855561548d565b8280016001018555821561548d57600052602060002091601f016020900482015b8281111561548d578254825591600101919060010190615472565b5061549992915061556a565b5090565b8280548282559060005260206000209081019282156154ea579160200282015b828111156154ea57825180516154da9184916020909101906154f6565b50916020019190600101906154bd565b5061549992915061557f565b82805461550290615a9c565b90600052602060002090601f016020900481019282615524576000855561548d565b82601f1061553d57805160ff191683800117855561548d565b8280016001018555821561548d579182015b8281111561548d57825182559160200191906001019061554f565b5b80821115615499576000815560010161556b565b8082111561549957600061559382826153d8565b5060010161557f565b6000602082840312156155ae57600080fd5b5035919050565b60008083601f8401126155c757600080fd5b50813567ffffffffffffffff8111156155df57600080fd5b6020830191508360208285010111156155f757600080fd5b9250929050565b6000806020838503121561561157600080fd5b823567ffffffffffffffff81111561562857600080fd5b615634858286016155b5565b90969095509350505050565b60008060006040848603121561565557600080fd5b83359250602084013567ffffffffffffffff8082111561567457600080fd5b818601915086601f83011261568857600080fd5b81358181111561569757600080fd5b8760208260051b85010111156156ac57600080fd5b6020830194508093505050509250925092565b80356001600160a01b03811681146156d657600080fd5b919050565b600080604083850312156156ee57600080fd5b823591506156fe602084016156bf565b90509250929050565b6000806040838503121561571a57600080fd5b50508035926020909101359150565b60005b8381101561574457818101518382015260200161572c565b83811115611cba5750506000910152565b6000815180845261576d816020860160208601615729565b601f01601f19169290920160200192915050565b6080815260006157946080830187615755565b82810360208401526157a68187615755565b6001600160a01b03959095166040840152505090151560609091015292915050565b6000602082840312156157da57600080fd5b611db3826156bf565b801515811461244f57600080fd5b60006020828403121561580357600080fd5b813561580e816157e3565b9392505050565b6000806040838503121561582857600080fd5b615831836156bf565b91506156fe602084016156bf565b60008060006060848603121561585457600080fd5b83359250615864602085016156bf565b9150615872604085016156bf565b90509250925092565b6000806000806000806080878903121561589457600080fd5b8635955060208701359450604087013567ffffffffffffffff808211156158ba57600080fd5b6158c68a838b016155b5565b909650945060608901359150808211156158df57600080fd5b506158ec89828a016155b5565b979a9699509497509295939492505050565b60008060006060848603121561591357600080fd5b505081359360208301359350604090920135919050565b60008060006040848603121561593f57600080fd5b615948846156bf565b9250602084013567ffffffffffffffff81111561596457600080fd5b615970868287016155b5565b9497909650939450505050565b6000806000806000806000806000806101408b8d03121561599d57600080fd5b6159a68b6156bf565b99506159b460208c016156bf565b98506159c260408c016156bf565b97506159d060608c016156bf565b96506159de60808c016156bf565b95506159ec60a08c016156bf565b945060c08b0135935060e08b013592506101008b013591506101208b013590509295989b9194979a5092959850565b634e487b7160e01b600052601260045260246000fd5b600082615a4057615a40615a1b565b500690565b634e487b7160e01b600052601160045260246000fd5b600082615a6a57615a6a615a1b565b500490565b634e487b7160e01b600052603260045260246000fd5b600082821015615a9757615a97615a45565b500390565b600181811c90821680615ab057607f821691505b602082108103615ad057634e487b7160e01b600052602260045260246000fd5b50919050565b600060208083526000845481600182811c915080831680615af857607f831692505b8583108103615b1557634e487b7160e01b85526022600452602485fd5b878601838152602001818015615b325760018114615b4357615b6e565b60ff19861682528782019650615b6e565b60008b81526020902060005b86811015615b6857815484820152908501908901615b4f565b83019750505b50949998505050505050505050565b634e487b7160e01b600052603160045260246000fd5b60008219821115615ba657615ba6615a45565b500190565b600060208284031215615bbd57600080fd5b815161580e816157e3565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615c0057615c00615a45565b500290565b602081526000611db36020830184615755565b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b604081526000615c57604083018688615c18565b8281036020840152615c6a818587615c18565b979650505050505050565b60008251615c87818460208701615729565b9190910192915050565b600060208284031215615ca357600080fd5b5051919050565b60008351615cbc818460208801615729565b7fffffffffffffffffffffffffffffffff00000000000000000000000000000000939093169190920190815260100192915050565b6001600160a01b0383168152604060208201526000615d136040830184615755565b949350505050565b604081526000615d2e6040830185615755565b8281036020840152615d408185615755565b95945050505050565b60008351615d5b818460208801615729565b9190910191825250602001919050565b608081526000615d7e6080830187615755565b8281036020840152615d908187615755565b90508281036040840152615da48186615755565b9150508260608301529594505050505056fea2646970667358221220208f346be0441f378984c8f545f5039e03994a17e535e302b51346117d29197064736f6c634300080d0033
Deployed Bytecode
0x6080604052600436106103225760003560e01c8063a4d8d2c4116101a5578063d0e30db0116100ec578063e00cb6ca11610095578063f0f442601161006f578063f0f442601461091e578063f2fde38b1461093e578063fe0e41911461095e578063fe38231c1461097e57610331565b8063e00cb6ca146108be578063e8a0c121146108de578063ef5e4682146108fe57610331565b8063d318edec116100c6578063d318edec14610869578063d35875d31461087e578063dfbe50dd1461089e57610331565b8063d0e30db014610821578063d243d69d14610829578063d2a427471461084957610331565b8063beee4bbf1161014e578063c13d035011610128578063c13d0350146107bc578063cac594df146107ec578063d04681561461080c57610331565b8063beee4bbf14610767578063bf15af5614610787578063bf509bd41461079c57610331565b8063b6b06dec1161017f578063b6b06dec14610707578063b747e7dd14610727578063b86bcaf71461074757610331565b8063a4d8d2c4146106b2578063a7400801146106d2578063b4336b84146106f257610331565b80633b19e84a116102695780637680fdf5116102125780639adf91ee116101ec5780639adf91ee1461063b5780639ddd89821461065b578063a117f3031461067b57610331565b80637680fdf5146105e657806379ba5097146106065780638a1af4c41461061b57610331565b806367b220a51161024357806367b220a5146105915780636d336fe0146105b15780636e9960c3146105d157610331565b80633b19e84a14610537578063540bc5ea1461054c57806363b4118f1461056157610331565b80631ee13343116102cb578063291206f6116102a5578063291206f6146104da5780632ba03a79146104fa57806336bf33251461051a57610331565b80631ee133431461046d578063227e80fa146104a557806328696608146104c557610331565b80631864636c116102fc5780631864636c1461040a5780631bcbfaba1461042a5780631d0958051461044d57610331565b806305f63c8a146103635780630968f264146103ca5780630ffab6c2146103ea57610331565b366103315761032f610993565b005b6040517fae962d4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b34801561036f57600080fd5b5061038361037e36600461559c565b610af8565b604080516001600160a01b039889168152979096166020880152948601939093526060850191909152608084015260a0830152151560c082015260e0015b60405180910390f35b3480156103d657600080fd5b5061032f6103e53660046155fe565b610c0e565b3480156103f657600080fd5b5061032f6104053660046155fe565b610cdf565b34801561041657600080fd5b5061032f610425366004615640565b610d7b565b34801561043657600080fd5b5061043f611cc0565b6040519081526020016103c1565b34801561045957600080fd5b5061032f61046836600461559c565b611ccf565b34801561047957600080fd5b5061048d6104883660046155fe565b611d6f565b6040516001600160a01b0390911681526020016103c1565b3480156104b157600080fd5b5061032f6104c03660046156db565b611dbc565b3480156104d157600080fd5b5061043f611f45565b3480156104e657600080fd5b5061032f6104f536600461559c565b611f4f565b34801561050657600080fd5b5061032f6105153660046155fe565b611fe8565b34801561052657600080fd5b5061043f6801bc16d674ec80000081565b34801561054357600080fd5b5061048d612027565b34801561055857600080fd5b5061043f606081565b34801561056d57600080fd5b5061058161057c366004615707565b612031565b6040516103c19493929190615781565b34801561059d57600080fd5b5061032f6105ac3660046157c8565b6122b2565b3480156105bd57600080fd5b5061032f6105cc366004615707565b612321565b3480156105dd57600080fd5b5061048d6123cf565b3480156105f257600080fd5b5061032f6106013660046157f1565b6123d9565b34801561061257600080fd5b5061032f612452565b34801561062757600080fd5b5061043f610636366004615815565b6124d2565b34801561064757600080fd5b5061048d61065636600461559c565b6126ce565b34801561066757600080fd5b5061032f6106763660046157c8565b6127c9565b34801561068757600080fd5b5061069b6106963660046157c8565b612843565b6040805192151583529015156020830152016103c1565b3480156106be57600080fd5b5061032f6106cd36600461583f565b6128fb565b3480156106de57600080fd5b5061048d6106ed36600461559c565b612ad7565b3480156106fe57600080fd5b5061043f612bef565b34801561071357600080fd5b5061032f6107223660046155fe565b612bf9565b34801561073357600080fd5b5061032f61074236600461587b565b612c0d565b34801561075357600080fd5b5061032f61076236600461559c565b612f8a565b34801561077357600080fd5b5061032f6107823660046158fe565b612fea565b34801561079357600080fd5b5061043f603081565b3480156107a857600080fd5b5061032f6107b73660046155fe565b6131fd565b3480156107c857600080fd5b506107dc6107d736600461559c565b61327f565b60405190151581526020016103c1565b3480156107f857600080fd5b506107dc61080736600461559c565b61328a565b34801561081857600080fd5b5061048d6132a8565b61032f6132b2565b34801561083557600080fd5b5061048d6108443660046155fe565b6132bc565b34801561085557600080fd5b5061032f6108643660046156db565b6132fd565b34801561087557600080fd5b5061048d6134f9565b34801561088a57600080fd5b5061032f61089936600461592a565b613503565b3480156108aa57600080fd5b5061032f6108b936600461597d565b613607565b3480156108ca57600080fd5b5061048d6108d93660046155fe565b613738565b3480156108ea57600080fd5b5061032f6108f93660046155fe565b61377c565b34801561090a57600080fd5b5061032f6109193660046155fe565b613826565b34801561092a57600080fd5b5061032f6109393660046157c8565b6138c2565b34801561094a57600080fd5b5061032f6109593660046157c8565b61393f565b34801561096a57600080fd5b506107dc61097936600461559c565b6139b9565b34801561098a57600080fd5b506107dc6139e1565b61099b6139e7565b156109d2576040517f753ed9db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109db33613a1b565b3415806109f957506109f66801bc16d674ec80000034615a31565b15155b15610a30576040517f428243e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610a3a613b49565b90506000610a516801bc16d674ec80000034615a5b565b905081811115610a8d576040517fae575a8800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b398054600003610ae9576040517fddf9d24500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610af38284613b73565b505050565b6000808080808080807fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b398054909150891015610c02576040805180820182526000808252602080830182815260028e901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f082529382205460068e901b60c0161c63ffffffff8181168552911c1690925290506000826000018b81548110610ba457610ba4615a6f565b600091825260209182902060069091020180546001820154600283015460038401546005909401549487015196516001600160a01b039384169f50919092169c50909a5090985063ffffffff93841697509290921694505060ff1691505b50919395979092949650565b610c4d82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613b9092505050565b610c9582828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250610c909150613c049050565b613c2e565b610cdb82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610c909150613dc29050565b5050565b610cea603082615a31565b15610d085760405163337d0f4160e01b815260040160405180910390fd5b60005b81811015610af3576000610d5984848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086925060309150613dec9050565b9050610d6481613b90565b610d72816001610c90613dc2565b50603001610d0b565b82610d84613f48565b6001600160a01b0316330361158d576000829003610dce576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051808201825260008082526020808301828152600289901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f082529390912054600688901b60c0161c63ffffffff8181168452911c1691829052907fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39907fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec93902908686610e7f600182615a85565b818110610e8e57610e8e615a6f565b905060200201351015610ecd576040517f34947ea100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8581101561147057600081118015610f2257508686610ef0600184615a85565b818110610eff57610eff615a6f565b90506020020135878783818110610f1857610f18615a6f565b9050602002013510155b15610f59576040517f35061dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611045846000018a81548110610f7357610f73615a6f565b9060005260206000209060060201600301898985818110610f9657610f96615a6f565b9050602002013581548110610fad57610fad615a6f565b906000526020600020018054610fc290615a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054610fee90615a9c565b801561103b5780601f106110105761010080835404028352916020019161103b565b820191906000526020600020905b81548152906001019060200180831161101e57829003601f168201915b5050505050613f72565b6000818152602085905260409020805464ffffffffff19169055845490915089907f794aacb42d1ea2e7f72809b74e3ce124325a51c3715b873c36807d3ca37e4fd09086908390811061109a5761109a615a6f565b90600052602060002090600602016003018a8a868181106110bd576110bd615a6f565b90506020020135815481106110d4576110d4615a6f565b906000526020600020016040516110eb9190615ad6565b60405180910390a26001846000018a8154811061110a5761110a615a6f565b9060005260206000209060060201600301805490506111299190615a85565b88888481811061113b5761113b615a6f565b90506020020135036111f25783600001898154811061115c5761115c615a6f565b906000526020600020906006020160030180548061117c5761117c615b7d565b60019003818190600052602060002001600061119891906153d8565b90558360000189815481106111af576111af615a6f565b90600052602060002090600602016004018054806111cf576111cf615b7d565b6001900381819060005260206000200160006111eb91906153d8565b9055611467565b83600001898154811061120757611207615a6f565b90600052602060002090600602016003016001856000018b8154811061122f5761122f615a6f565b90600052602060002090600602016003018054905061124e9190615a85565b8154811061125e5761125e615a6f565b90600052602060002001846000018a8154811061127d5761127d615a6f565b90600052602060002090600602016003018989858181106112a0576112a0615a6f565b90506020020135815481106112b7576112b7615a6f565b906000526020600020019080546112cd90615a9c565b6112d8929190615412565b508360000189815481106112ee576112ee615a6f565b906000526020600020906006020160030180548061130e5761130e615b7d565b60019003818190600052602060002001600061132a91906153d8565b905583600001898154811061134157611341615a6f565b90600052602060002090600602016004016001856000018b8154811061136957611369615a6f565b9060005260206000209060060201600401805490506113889190615a85565b8154811061139857611398615a6f565b90600052602060002001846000018a815481106113b7576113b7615a6f565b90600052602060002090600602016004018989858181106113da576113da615a6f565b90506020020135815481106113f1576113f1615a6f565b9060005260206000200190805461140790615a9c565b611412929190615412565b5083600001898154811061142857611428615a6f565b906000526020600020906006020160040180548061144857611448615b7d565b60019003818190600052602060002001600061146491906153d8565b90555b50600101610ed0565b5081600001878154811061148657611486615a6f565b600091825260209091206002600690920201015486866114a7600182615a85565b8181106114b6576114b6615a6f565b9050602002013510156115745785856114d0600182615a85565b8181106114df576114df615a6f565b905060200201358260000188815481106114fb576114fb615a6f565b60009182526020909120600260069092020101557fa4dcee8ff224c7cfd53b1f2cd1f5afd98927d079b4152d639c5e523a52bf1e0387878761153e600182615a85565b81811061154d5761154d615a6f565b9050602002013560405161156b929190918252602082015260400190565b60405180910390a15b61157c613fe7565b61158587614025565b505050611cba565b6115968161421e565b60008290036115d1576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051808201825260008082526020808301828152600289901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f082529390912054600688901b60c0161c63ffffffff8181168452911c1691829052907fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39907fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec93902908686611682600182615a85565b81811061169157611691615a6f565b9050602002013510156116d0576040517f34947ea100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b85811015611ba157600081118015611725575086866116f3600184615a85565b81811061170257611702615a6f565b9050602002013587878381811061171b5761171b615a6f565b9050602002013510155b1561175c576040517f35061dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611776846000018a81548110610f7357610f73615a6f565b6000818152602085905260409020805464ffffffffff19169055845490915089907f794aacb42d1ea2e7f72809b74e3ce124325a51c3715b873c36807d3ca37e4fd0908690839081106117cb576117cb615a6f565b90600052602060002090600602016003018a8a868181106117ee576117ee615a6f565b905060200201358154811061180557611805615a6f565b9060005260206000200160405161181c9190615ad6565b60405180910390a26001846000018a8154811061183b5761183b615a6f565b90600052602060002090600602016003018054905061185a9190615a85565b88888481811061186c5761186c615a6f565b90506020020135036119235783600001898154811061188d5761188d615a6f565b90600052602060002090600602016003018054806118ad576118ad615b7d565b6001900381819060005260206000200160006118c991906153d8565b90558360000189815481106118e0576118e0615a6f565b906000526020600020906006020160040180548061190057611900615b7d565b60019003818190600052602060002001600061191c91906153d8565b9055611b98565b83600001898154811061193857611938615a6f565b90600052602060002090600602016003016001856000018b8154811061196057611960615a6f565b90600052602060002090600602016003018054905061197f9190615a85565b8154811061198f5761198f615a6f565b90600052602060002001846000018a815481106119ae576119ae615a6f565b90600052602060002090600602016003018989858181106119d1576119d1615a6f565b90506020020135815481106119e8576119e8615a6f565b906000526020600020019080546119fe90615a9c565b611a09929190615412565b50836000018981548110611a1f57611a1f615a6f565b9060005260206000209060060201600301805480611a3f57611a3f615b7d565b600190038181906000526020600020016000611a5b91906153d8565b9055836000018981548110611a7257611a72615a6f565b90600052602060002090600602016004016001856000018b81548110611a9a57611a9a615a6f565b906000526020600020906006020160040180549050611ab99190615a85565b81548110611ac957611ac9615a6f565b90600052602060002001846000018a81548110611ae857611ae8615a6f565b9060005260206000209060060201600401898985818110611b0b57611b0b615a6f565b9050602002013581548110611b2257611b22615a6f565b90600052602060002001908054611b3890615a9c565b611b43929190615412565b50836000018981548110611b5957611b59615a6f565b9060005260206000209060060201600401805480611b7957611b79615b7d565b600190038181906000526020600020016000611b9591906153d8565b90555b506001016116d3565b50816000018781548110611bb757611bb7615a6f565b60009182526020909120600260069092020101548686611bd8600182615a85565b818110611be757611be7615a6f565b905060200201351015611ca5578585611c01600182615a85565b818110611c1057611c10615a6f565b90506020020135826000018881548110611c2c57611c2c615a6f565b60009182526020909120600260069092020101557fa4dcee8ff224c7cfd53b1f2cd1f5afd98927d079b4152d639c5e523a52bf1e03878787611c6f600182615a85565b818110611c7e57611c7e615a6f565b90506020020135604051611c9c929190918252602082015260400190565b60405180910390a15b611cad613fe7565b611cb687614025565b5050505b50505050565b6000611cca6142ce565b905090565b611cd7613f48565b6001600160a01b0316336001600160a01b031614611d07576040516282b42960e81b815260040160405180910390fd5b611d0f6142f8565b811115611d2f576040516358d620b360e01b815260040160405180910390fd5b611d3881614328565b6040518181527fd894096cd1f7e89d9b748c7c2358cb699a790a05e97dcde228fe5949b4e80743906020015b60405180910390a150565b6000611db383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250614351915050565b90505b92915050565b611dc4613f48565b6001600160a01b0316336001600160a01b031614611df4576040516282b42960e81b815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b398054600090829085908110611e2c57611e2c615a6f565b600091825260209182902060069190910201600501805460ff1916921515929092179091556040518481527f8d0ba049731b0417f85546bc7503de241522c61e7464e87cceff56d3f2586dbc910160405180910390a181816000018481548110611e9857611e98615a6f565b906000526020600020906006020160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f97568892aa9e69db7c72b9f32e6d4fe3c0e53b9728a8c0a0f1c2a7eb47c48ad383826000018581548110611f0457611f04615a6f565b600091825260209182902060069091020154604080519384526001600160a01b039182169284019290925285169082015260600160405180910390a1505050565b6000611cca6143fb565b611f57613f48565b6001600160a01b0316336001600160a01b031614611f87576040516282b42960e81b815260040160405180910390fd5b611f8f614425565b811115611faf576040516358d620b360e01b815260040160405180910390fd5b611fb881614455565b6040518181527fecd6fc650620aa722cafc3c3e871fa813947eae6f856982d7510a8ff101a507890602001611d64565b610c9582828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613b9092505050565b6000611cca61447e565b606080600080807fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39905080600001878154811061207057612070615a6f565b9060005260206000209060060201600301868154811061209257612092615a6f565b9060005260206000200180546120a790615a9c565b80601f01602080910402602001604051908101604052809291908181526020018280546120d390615a9c565b80156121205780601f106120f557610100808354040283529160200191612120565b820191906000526020600020905b81548152906001019060200180831161210357829003601f168201915b5050505050945080600001878154811061213c5761213c615a6f565b9060005260206000209060060201600401868154811061215e5761215e615a6f565b90600052602060002001805461217390615a9c565b80601f016020809104026020016040519081016040528092919081815260200182805461219f90615a9c565b80156121ec5780601f106121c1576101008083540402835291602001916121ec565b820191906000526020600020905b8154815290600101906020018083116121cf57829003601f168201915b505050505093506122396121ff86613f72565b60009081527f86647fdbbdb534026d3e0f93a551cecf651c2b40fcdfef4b9fd9ed826133e26560205260409020546001600160a01b031690565b6040805180820182526000808252602080830182815260028d901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f08252939091205460068c901b60c0161c63ffffffff8181168452911c169091529093506020015163ffffffff16861091505092959194509250565b6122ba613f48565b6001600160a01b0316336001600160a01b0316146122ea576040516282b42960e81b815260040160405180910390fd5b60006122f46144a8565b6001600160a01b039290921660009081526020929092526040909120805460ff1916911515919091179055565b600261232b6144d6565b612336906001615b93565b811461236e576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61237781614500565b61271083111561239a576040516358d620b360e01b815260040160405180910390fd5b6123a383614529565b6127108211156123c6576040516358d620b360e01b815260040160405180910390fd5b610af38261455c565b6000611cca613f48565b6123e1613f48565b6001600160a01b0316336001600160a01b031614612411576040516282b42960e81b815260040160405180910390fd5b60405181151581527f8caf502b0bfa5915a541f14f8b0d091d4837c201b74aa2a7a7f52487a5fe8a819060200160405180910390a161244f8161458a565b50565b600061245c6145b8565b9050336001600160a01b03821614612486576040516282b42960e81b815260040160405180910390fd5b61248f816145e1565b612499600061460a565b6040516001600160a01b03821681527ff29c1089a9594c030706593e345bd8f70a26125bfb7bf4c54e757e20f456fd1c90602001611d64565b60006124dc613f48565b6001600160a01b0316336001600160a01b03161461250c576040516282b42960e81b815260040160405180910390fd5b6040805160c0810182526000808252602082018190529181018290526060808201819052608082015260a08101919091527fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39805490919060010361259c576040517fa20c741300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808616825284811660208084019182528454600181810187556000878152839020865160069093020180549286167fffffffffffffffffffffffff000000000000000000000000000000000000000093841617815593519084018054919095169116179092556040830151600282015560608301518051849361262e92600385019291019061549d565b506080820151805161264a91600484019160209091019061549d565b5060a091909101516005909101805460ff1916911515919091179055815460009061267790600190615a85565b604080516001600160a01b03808a168252881660208201529081018290529091507f2b3c4db2c0f4f51da09c2510a63e1d90235e486e8f075a609103a5c7a07422179060600160405180910390a195945050505050565b60008181527fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec93902602052604081205460ff1615158103612739576040517f9e44bfc500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281527fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec9390260205260409020547fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b3980549091610100900463ffffffff169081106127a6576127a6615a6f565b60009182526020909120600160069092020101546001600160a01b031692915050565b6127d1613f48565b6001600160a01b0316336001600160a01b031614612801576040516282b42960e81b815260040160405180910390fd5b61280a81614632565b6040516001600160a01b03821681527f690e624a17281ebf2377ba1e344f2eb40f3de5bd9a077d33ea44596400453f7d90602001611d64565b6000806000612850614660565b90506001600160a01b038116156128ce5760405163df592f7d60e01b81526001600160a01b03858116600483015282169063df592f7d90602401602060405180830381865afa1580156128a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128cb9190615bab565b91505b6128d66144a8565b6001600160a01b0390941660009081526020949094525060409092205460ff16929050565b8260007fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b3980548390811061293157612931615a6f565b60009182526020909120600690910201600581015490915060ff1615612983576040517f1142a68c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018101546001600160a01b031633146129af576040516282b42960e81b815260040160405180910390fd5b6129b884614690565b6129c183614690565b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39805485908290889081106129f8576129f8615a6f565b906000526020600020906006020160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555083816000018781548110612a4357612a43615a6f565b60009182526020918290206006919091020160010180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0393841617905560408051898152888416928101929092529186168183015290517f97568892aa9e69db7c72b9f32e6d4fe3c0e53b9728a8c0a0f1c2a7eb47c48ad3916060908290030190a1505050505050565b60008181527f86647fdbbdb534026d3e0f93a551cecf651c2b40fcdfef4b9fd9ed826133e26560205260408120546001600160a01b031680612b1c5750600092915050565b6000612b26614660565b90506001600160a01b03811615612be85760405163df592f7d60e01b81526001600160a01b03838116600483015282169063df592f7d90602401602060405180830381865afa158015612b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ba19190615bab565b15612be8576040517fae1427c10000000000000000000000000000000000000000000000000000000081526001600160a01b03831660048201526024015b60405180910390fd5b5092915050565b6000611cca613b49565b612c02336146d0565b610cdb828233614797565b85612c178161421e565b85600003612c51576040517fa9cb9e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c5c866030615bc8565b8414612c7b5760405163337d0f4160e01b815260040160405180910390fd5b612c86866060615bc8565b8214612cbe576040517f274cf40100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b397fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec9390260005b88811015612f2f576000612d5b89898080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d54925060309150869050615bc8565b6030613dec565b90506000612dad88888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612da6925060609150879050615bc8565b6060613dec565b9050846000018c81548110612dc457612dc4615a6f565b600091825260208083206003600690930201919091018054600181018255908352918190208451612dfc9391909101918501906154f6565b50846000018c81548110612e1257612e12615a6f565b600091825260208083206004600690930201919091018054600181018255908352918190208351612e4a9391909101918401906154f6565b506000612e5683613f72565b60008181526020879052604090205490915060ff1615612ea457826040517f5a303adb000000000000000000000000000000000000000000000000000000008152600401612bdf9190615c05565b60405180604001604052806001151581526020018e63ffffffff1681525085600001600083815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548163ffffffff021916908363ffffffff160217905550905050836001019350505050612d03565b50887fb82c87b84f76f39d5f61ed59b411352603805dda6080a2c44b4a86eab141ff1b88888888604051612f669493929190615c43565b60405180910390a2612f76613fe7565b612f7f89614025565b505050505050505050565b612f92613dc2565b6001600160a01b0316336001600160a01b031614612fc2576040516282b42960e81b815260040160405180910390fd5b6001612fcc6148ca565b60009283526020526040909120805460ff1916911515919091179055565b612ff2613f48565b6001600160a01b0316336001600160a01b031614613022576040516282b42960e81b815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39805481908590811061305757613057615a6f565b600091825260209091206005600690920201015460ff16156130a5576040517f1142a68c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160000185815481106130bc576130bc615a6f565b906000526020600020906006020160030180549050905083811015613117576040517f62106cb30000000000000000000000000000000000000000000000000000000081526004810185905260248101829052604401612bdf565b8382600001868154811061312d5761312d615a6f565b9060005260206000209060060201600201541080156131525750826131506148f8565b115b15613189576040517f474c62e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8382600001868154811061319f5761319f615a6f565b9060005260206000209060060201600201819055506131bd85614025565b60408051868152602081018690527fa4dcee8ff224c7cfd53b1f2cd1f5afd98927d079b4152d639c5e523a52bf1e03910160405180910390a15050505050565b61323c82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613b9092505050565b610cdb82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250610c909150613c049050565b6000611db682614928565b60006132946148ca565b600092835260205250604090205460ff1690565b6000611cca6145b8565b6132ba610993565b565b6000611db383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250614351915050565b613305613f48565b6001600160a01b0316336001600160a01b031614613335576040516282b42960e81b815260040160405180910390fd5b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b39805460009082908590811061336d5761336d615a6f565b9060005260206000209060060201600201819055507fa4dcee8ff224c7cfd53b1f2cd1f5afd98927d079b4152d639c5e523a52bf1e038360006040516133bd929190918252602082015260400190565b60405180910390a160018160000184815481106133dc576133dc615a6f565b600091825260209182902060069190910201600501805460ff1916921515929092179091556040518481527f4c644bb0e171ba9e5cf08f5d66836528c3947c3512b34dd8e27da30e803527b3910160405180910390a18181600001848154811061344857613448615a6f565b906000526020600020906006020160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f97568892aa9e69db7c72b9f32e6d4fe3c0e53b9728a8c0a0f1c2a7eb47c48ad3838260000185815481106134b4576134b4615a6f565b600091825260209182902060069091020154604080519384526001600160a01b039182169284019290925285169082015260600160405180910390a1610af383614025565b6000611cca614660565b61350b613f48565b6001600160a01b0316336001600160a01b03161461353b576040516282b42960e81b815260040160405180910390fd5b60016135456144a8565b6001600160a01b038516600090815260209190915260408120805460ff191692151592909217909155613576614660565b90506001600160a01b038116156135fc5760405163df592f7d60e01b81526001600160a01b03858116600483015282169063df592f7d90602401602060405180830381865afa1580156135cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135f19190615bab565b156135fc5750505050565b611cba838386614797565b60016136116144d6565b61361c906001615b93565b8114613654576040517f0dc149f000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61365d81614500565b6136668b614690565b61366f8b6145e1565b6136788a614690565b6136818a614932565b6127108511156136a4576040516358d620b360e01b815260040160405180910390fd5b6136ad85614455565b6127108411156136d0576040516358d620b360e01b815260040160405180910390fd5b6136d984614328565b6136e288614690565b6136eb8861495b565b6136f487614690565b6136fd87614984565b61370689614690565b61370f896149ad565b61371886614690565b613721866149d6565b61372b8383612321565b5050505050505050505050565b6000611db36121ff84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613f7292505050565b613787603082615a31565b156137a55760405163337d0f4160e01b815260040160405180910390fd5b60005b81811015610af35760006137f684848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086925060309150613dec9050565b905061380181613b90565b61380f816000610c90613c04565b61381d816001610c90613dc2565b506030016137a8565b613831603082615a31565b1561384f5760405163337d0f4160e01b815260040160405180910390fd5b60005b81811015610af35760006138a084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086925060309150613dec9050565b90506138ab81613b90565b6138b9816000610c90613c04565b50603001613852565b6138ca613f48565b6001600160a01b0316336001600160a01b0316146138fa576040516282b42960e81b815260040160405180910390fd5b6040516001600160a01b03821681527f63cc689e9d3377465b51fb094ea4ca5e0a1436b21f1ad30d707c696111c665009060200160405180910390a161244f81614932565b613947613f48565b6001600160a01b0316336001600160a01b031614613977576040516282b42960e81b815260040160405180910390fd5b6139808161460a565b6040516001600160a01b0382169033907fa625552b818bd8927eb73159632b6c0a8e7191aa19f791639eef28c460c44f9e90600090a350565b60007fc58a51931c529c2a8796a8fad2ae789ee504643b4b567f2c0c97e809cec93902613294565b6000611cca5b6000611cca613a1760017fb2e94356976bf59104fa32f6a0cf50947281732def9f18014aacae55ac60c5dd615a85565b5490565b6000613a25614660565b90506001600160a01b03811615613ae25760405163df592f7d60e01b81526001600160a01b03838116600483015282169063df592f7d90602401602060405180830381865afa158015613a7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613aa09190615bab565b15613ae2576040517fae1427c10000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602401612bdf565b613aea6144a8565b6001600160a01b0383166000908152602091909152604090205460ff1615610cdb576040517f71fa9c990000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602401612bdf565b6000611cca7f559ad51499ae00ca2e9d9d95aab46737c8904ab7da276613fefda282b2c2ac065490565b613b85613b808383615a85565b6149ff565b610cdb600083614a28565b613b9c6121ff82613f72565b6001600160a01b0316336001600160a01b031614158015613bcd575033613bc1613f48565b6001600160a01b031614155b1561244f576040517fca455fa500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611cca7faa81344d5857c875349bc4a95d531a580c46bdd94c41b35b1e072e4d627079f85490565b6000613c3984613f72565b9050613c44336146d0565b600060028483604051602001613c64929190918252602082015260400190565b60408051601f1981840301815290829052613c7e91615c75565b602060405180830381855afa158015613c9b573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190613cbe9190615c91565b90506000613cca614dcd565b90506000613cd88284614df7565b9050806001600160a01b03163b600003613d7357613cf68284614e73565b506040517f2cc0b2540000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015260248201869052821690632cc0b25490604401600060405180830381600087803b158015613d5a57600080fd5b505af1158015613d6e573d6000803e3d6000fd5b505050505b806001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015613dae57600080fd5b505af115801561372b573d6000803e3d6000fd5b6000611cca7fb6d5e19fdd6cde5f03ed4f17c2670deffa47975541fd270b0b17e803297d76085490565b606081613dfa81601f615b93565b1015613e62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f736c6963655f6f766572666c6f770000000000000000000000000000000000006044820152606401612bdf565b613e6c8284615b93565b84511015613ed6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f736c6963655f6f75744f66426f756e64730000000000000000000000000000006044820152606401612bdf565b606082158015613ef55760405191506000825260208201604052613f3f565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015613f2e578051835260209283019201613f16565b5050858452601f01601f1916604052505b50949350505050565b6000611cca7ffbeda9bc03875013b12a1ec161efb8e5bf7e58e3cec96a1ea9efd3e264d26e645490565b6000600282600060801b604051602001613f8d929190615caa565b60408051601f1981840301815290829052613fa791615c75565b602060405180830381855afa158015613fc4573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611db69190615c91565b613ff043614f44565b6040514381527f55c5aabfc91da783d60f72c41f352ac7f9d507fcd884f41e27e6852305f948ce9060200160405180910390a1565b60408051808201825260008082526020808301828152600286901c83527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f0825293822054600686901b60c0161c63ffffffff8181168552911c1690925280517fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b3980549293509160009081908490879081106140c2576140c2615a6f565b9060005260206000209060060201600201549050846020015163ffffffff16811161415157602080860151600288901c60009081527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f083526040902080549190921b67ffffffff0000000016600689901b60c01690811b67ffffffffffffffff90911b199091161790556141d6565b60208501516141669063ffffffff1682615a85565b602080870151600289901c60009081527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f083526040902080549190921b67ffffffff000000001663ffffffff84161760068a901b60c01690811b67ffffffffffffffff90911b1990911617905591505b8163ffffffff168363ffffffff1614614216576142168263ffffffff168463ffffffff16614202613b49565b61420c9190615a85565b613b809190615b93565b505050505050565b60007fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b3980548390811061425357614253615a6f565b60009182526020909120600690910201600581015490915060ff16156142a5576040517f1142a68c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80546001600160a01b03163314610cdb576040516282b42960e81b815260040160405180910390fd5b6000611cca7fb88142a0318e2b174876bceb4db9dc318011849c83fb8a8bb2997386d562324a5490565b6000611cca613a1760017f05896f012c7ab472c495a6810b73fc6183d339203dd1c74344bbfd2e1f5038fe615a85565b61244f7f41118591c19026bdc7a484e34f80a8e7e632600aff1c72460e9c7dfe94a2dda6829055565b60008061435d84613f72565b905060006002848360405160200161437f929190918252602082015260400190565b60408051601f198184030181529082905261439991615c75565b602060405180830381855afa1580156143b6573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906143d99190615c91565b905060006143e5614dcd565b90506143f18183614df7565b9695505050505050565b6000611cca7f41118591c19026bdc7a484e34f80a8e7e632600aff1c72460e9c7dfe94a2dda65490565b6000611cca613a1760017f2ad86e81c1a15749eb0399a4f2566324ade0cc7d7f8592a3db8896a29004bf81615a85565b61244f7fb88142a0318e2b174876bceb4db9dc318011849c83fb8a8bb2997386d562324a829055565b6000611cca7f10c92bb459c0223bf996150f2fb702a8288fb8354a33d5b0212e8e6b8273f55e5490565b600080611db660017f5e6a3daeb9ca2435a85726c3129da954d96e8ada52aa5a80dd5631cc007bfa63615a85565b6000611cca7fd5c553085b8382c47128ae7612257fd5dc3b4fc4d3a108925604d3c8700c025b5490565b61244f7fd5c553085b8382c47128ae7612257fd5dc3b4fc4d3a108925604d3c8700c025b829055565b61244f61455760017f2ad86e81c1a15749eb0399a4f2566324ade0cc7d7f8592a3db8896a29004bf81615a85565b829055565b61244f61455760017f05896f012c7ab472c495a6810b73fc6183d339203dd1c74344bbfd2e1f5038fe615a85565b61244f61455760017fb2e94356976bf59104fa32f6a0cf50947281732def9f18014aacae55ac60c5dd615a85565b6000611cca7e595eca1f8b39945ff4c404827bfa5fd1e295ef3f7d59d120a8ce3bae4e37a05490565b61244f7ffbeda9bc03875013b12a1ec161efb8e5bf7e58e3cec96a1ea9efd3e264d26e64829055565b61244f7e595eca1f8b39945ff4c404827bfa5fd1e295ef3f7d59d120a8ce3bae4e37a0829055565b61244f61455760017f5525d6a43f6db39453db1581d75d8fb5ebfb75220bdcf9416dacc33f4777aac5615a85565b6000611cca613a1760017f5525d6a43f6db39453db1581d75d8fb5ebfb75220bdcf9416dacc33f4777aac5615a85565b6001600160a01b03811661244f576040517ff6b2911f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006146da614660565b90506001600160a01b03811615610cdb5760405163df592f7d60e01b81526001600160a01b03838116600483015282169063df592f7d90602401602060405180830381865afa158015614731573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147559190615bab565b15610cdb576040517fae1427c10000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602401612bdf565b6147a2603083615a31565b156147c05760405163337d0f4160e01b815260040160405180910390fd5b60005b82811015611cba57600061481185858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086925060309150613dec9050565b9050600061481e82613f72565b60008181527f86647fdbbdb534026d3e0f93a551cecf651c2b40fcdfef4b9fd9ed826133e26560205260409020549091506001600160a01b03908116908516811461487b576040516282b42960e81b815260040160405180910390fd5b614886826001614f72565b7fcb773ebd49049a1f68200f0814f547dec2c54293ff2c6a6a4f4d98d6d9cb122981846040516148b7929190615cf1565b60405180910390a15050506030016147c3565b600080611db660017fd9ed3684910fa17a5f2ad83fd15b2ccb0abf740b7041631a9fe7daffda0cb9ee615a85565b6000611cca613a1760017f7d3541d2c0079305636180d42008f210385563932c50e421bd8654ed4a6017eb615a85565b6000613294614f9b565b61244f7f10c92bb459c0223bf996150f2fb702a8288fb8354a33d5b0212e8e6b8273f55e829055565b61244f7faa81344d5857c875349bc4a95d531a580c46bdd94c41b35b1e072e4d627079f8829055565b61244f7fb6d5e19fdd6cde5f03ed4f17c2670deffa47975541fd270b0b17e803297d7608829055565b61244f7fbc8b9852d17d50256bb221fdf6ee12d78dd493d807e907f7d223c40d65abd6b9829055565b61244f7fd1c64973da70267569571a091966834c1a36bdba47f2a112b6a95bf41fc9c24e829055565b61244f7f559ad51499ae00ca2e9d9d95aab46737c8904ab7da276613fefda282b2c2ac06829055565b7fd2a2f1f08ad325daf72af0169949ae210065d6916750ff03abd83510331b7b398054600090829085908110614a6057614a60615a6f565b6000918252602080832060408051808201825285815280840186815260028b901c87527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f08552919095205460068a811b60c0169190911c63ffffffff8181168852941c90931690819052929091020192505b84826020015163ffffffff16614ae89190615b93565b811015614d21576000836003018281548110614b0657614b06615a6f565b906000526020600020018054614b1b90615a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054614b4790615a9c565b8015614b945780601f10614b6957610100808354040283529160200191614b94565b820191906000526020600020905b815481529060010190602001808311614b7757829003601f168201915b505050505090506000846004018381548110614bb257614bb2615a6f565b906000526020600020018054614bc790615a9c565b80601f0160208091040260200160405190810160405280929190818152602001828054614bf390615a9c565b8015614c405780601f10614c1557610100808354040283529160200191614c40565b820191906000526020600020905b815481529060010190602001808311614c2357829003601f168201915b505050505090506000614c54836001614351565b90506000614c6182614fc9565b90506000614c6e85613f72565b9050614c7c85828685614ffe565b60008181527f86647fdbbdb534026d3e0f93a551cecf651c2b40fcdfef4b9fd9ed826133e26560205260409081902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001633908117909155905181907fac1020908b5f7134d59c1580838eba6fc42dd8c28bae65bf345676bba1913f8e90614d099089908990615d1b565b60405180910390a38560010195505050505050614ad2565b50614dc68585836000015163ffffffff16614d3c9190615a85565b86846020015163ffffffff16614d529190615b93565b600283901c60009081527f37e2c371bbf1c7a1326d52e30855e9c8b6cac15eda4475320e427b948813a9f060209081526040909120805467ffffffffffffffff60c060069790971b9690961695861b191663ffffffff9490941667ffffffff000000009390921b929092161790921b179055565b5050505050565b6000611cca7fd1c64973da70267569571a091966834c1a36bdba47f2a112b6a95bf41fc9c24e5490565b6000611db38383306040517f3d602d80600a3d3981f3363d3d373d3d3d363d730000000000000000000000008152606093841b60148201527f5af43d82803e903d91602b57fd5bf3ff000000000000000000000000000000006028820152921b6038830152604c8201526037808220606c830152605591012090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f59150506001600160a01b038116611db6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f455243313136373a2063726561746532206661696c65640000000000000000006044820152606401612bdf565b61244f61455760017f7d3541d2c0079305636180d42008f210385563932c50e421bd8654ed4a6017eb615a85565b80614f7b614f9b565b60009384526020526040909220805460ff19169215159290921790915550565b600080611db660017f68ed1186fe6f93f91e23b08dcba07651b0153d3ab058aab96212b33aaaf3a899615a85565b6000611db67f01000000000000000000000000000000000000000000000000000000000000006001600160a01b038416615b93565b60006002806150108560006040613dec565b60405161501d9190615c75565b602060405180830381855afa15801561503a573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061505d9190615c91565b6002615075866040615070816060615a85565b613dec565b6040516150889190600090602001615d49565b60408051601f19818403018152908290526150a291615c75565b602060405180830381855afa1580156150bf573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906150e29190615c91565b60408051602081019390935282015260600160408051601f198184030181529082905261510e91615c75565b602060405180830381855afa15801561512b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061514e9190615c91565b905060006002808685604051602001615171929190918252602082015260400190565b60408051601f198184030181529082905261518b91615c75565b602060405180830381855afa1580156151a8573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906151cb9190615c91565b604080517e40597307000000000000000000000000000000000000000000000000000000602082015290810185905260029060600160408051601f198184030181529082905261521a91615c75565b602060405180830381855afa158015615237573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061525a9190615c91565b60408051602081019390935282015260600160408051601f198184030181529082905261528691615c75565b602060405180830381855afa1580156152a3573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906152c69190615c91565b905060006152dd6801bc16d674ec80000047615a85565b90506152e76153ae565b6001600160a01b031663228951186801bc16d674ec800000898760405160200161531391815260200190565b60405160208183030381529060405289876040518663ffffffff1660e01b81526004016153439493929190615d6b565b6000604051808303818588803b15801561535c57600080fd5b505af1158015615370573d6000803e3d6000fd5b5050505050804714611cb6576040517f6596d2b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611cca7fbc8b9852d17d50256bb221fdf6ee12d78dd493d807e907f7d223c40d65abd6b95490565b5080546153e490615a9c565b6000825580601f106153f4575050565b601f01602090049060005260206000209081019061244f919061556a565b82805461541e90615a9c565b90600052602060002090601f016020900481019282615440576000855561548d565b82601f10615451578054855561548d565b8280016001018555821561548d57600052602060002091601f016020900482015b8281111561548d578254825591600101919060010190615472565b5061549992915061556a565b5090565b8280548282559060005260206000209081019282156154ea579160200282015b828111156154ea57825180516154da9184916020909101906154f6565b50916020019190600101906154bd565b5061549992915061557f565b82805461550290615a9c565b90600052602060002090601f016020900481019282615524576000855561548d565b82601f1061553d57805160ff191683800117855561548d565b8280016001018555821561548d579182015b8281111561548d57825182559160200191906001019061554f565b5b80821115615499576000815560010161556b565b8082111561549957600061559382826153d8565b5060010161557f565b6000602082840312156155ae57600080fd5b5035919050565b60008083601f8401126155c757600080fd5b50813567ffffffffffffffff8111156155df57600080fd5b6020830191508360208285010111156155f757600080fd5b9250929050565b6000806020838503121561561157600080fd5b823567ffffffffffffffff81111561562857600080fd5b615634858286016155b5565b90969095509350505050565b60008060006040848603121561565557600080fd5b83359250602084013567ffffffffffffffff8082111561567457600080fd5b818601915086601f83011261568857600080fd5b81358181111561569757600080fd5b8760208260051b85010111156156ac57600080fd5b6020830194508093505050509250925092565b80356001600160a01b03811681146156d657600080fd5b919050565b600080604083850312156156ee57600080fd5b823591506156fe602084016156bf565b90509250929050565b6000806040838503121561571a57600080fd5b50508035926020909101359150565b60005b8381101561574457818101518382015260200161572c565b83811115611cba5750506000910152565b6000815180845261576d816020860160208601615729565b601f01601f19169290920160200192915050565b6080815260006157946080830187615755565b82810360208401526157a68187615755565b6001600160a01b03959095166040840152505090151560609091015292915050565b6000602082840312156157da57600080fd5b611db3826156bf565b801515811461244f57600080fd5b60006020828403121561580357600080fd5b813561580e816157e3565b9392505050565b6000806040838503121561582857600080fd5b615831836156bf565b91506156fe602084016156bf565b60008060006060848603121561585457600080fd5b83359250615864602085016156bf565b9150615872604085016156bf565b90509250925092565b6000806000806000806080878903121561589457600080fd5b8635955060208701359450604087013567ffffffffffffffff808211156158ba57600080fd5b6158c68a838b016155b5565b909650945060608901359150808211156158df57600080fd5b506158ec89828a016155b5565b979a9699509497509295939492505050565b60008060006060848603121561591357600080fd5b505081359360208301359350604090920135919050565b60008060006040848603121561593f57600080fd5b615948846156bf565b9250602084013567ffffffffffffffff81111561596457600080fd5b615970868287016155b5565b9497909650939450505050565b6000806000806000806000806000806101408b8d03121561599d57600080fd5b6159a68b6156bf565b99506159b460208c016156bf565b98506159c260408c016156bf565b97506159d060608c016156bf565b96506159de60808c016156bf565b95506159ec60a08c016156bf565b945060c08b0135935060e08b013592506101008b013591506101208b013590509295989b9194979a5092959850565b634e487b7160e01b600052601260045260246000fd5b600082615a4057615a40615a1b565b500690565b634e487b7160e01b600052601160045260246000fd5b600082615a6a57615a6a615a1b565b500490565b634e487b7160e01b600052603260045260246000fd5b600082821015615a9757615a97615a45565b500390565b600181811c90821680615ab057607f821691505b602082108103615ad057634e487b7160e01b600052602260045260246000fd5b50919050565b600060208083526000845481600182811c915080831680615af857607f831692505b8583108103615b1557634e487b7160e01b85526022600452602485fd5b878601838152602001818015615b325760018114615b4357615b6e565b60ff19861682528782019650615b6e565b60008b81526020902060005b86811015615b6857815484820152908501908901615b4f565b83019750505b50949998505050505050505050565b634e487b7160e01b600052603160045260246000fd5b60008219821115615ba657615ba6615a45565b500190565b600060208284031215615bbd57600080fd5b815161580e816157e3565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615c0057615c00615a45565b500290565b602081526000611db36020830184615755565b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b604081526000615c57604083018688615c18565b8281036020840152615c6a818587615c18565b979650505050505050565b60008251615c87818460208701615729565b9190910192915050565b600060208284031215615ca357600080fd5b5051919050565b60008351615cbc818460208801615729565b7fffffffffffffffffffffffffffffffff00000000000000000000000000000000939093169190920190815260100192915050565b6001600160a01b0383168152604060208201526000615d136040830184615755565b949350505050565b604081526000615d2e6040830185615755565b8281036020840152615d408185615755565b95945050505050565b60008351615d5b818460208801615729565b9190910191825250602001919050565b608081526000615d7e6080830187615755565b8281036020840152615d908187615755565b90508281036040840152615da48186615755565b9150508260608301529594505050505056fea2646970667358221220208f346be0441f378984c8f545f5039e03994a17e535e302b51346117d29197064736f6c634300080d0033
Deployed Bytecode Sourcemap
484:44729:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5337:10;:8;:10::i;:::-;484:44729;;5486:13;;;;;;;;;;;;;;13399:1156;;;;;;;;;;-1:-1:-1;13399:1156:13;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;587:15:23;;;569:34;;639:15;;;;634:2;619:18;;612:43;671:18;;;664:34;;;;729:2;714:18;;707:34;;;;772:3;757:19;;750:35;816:3;801:19;;794:35;873:14;866:22;860:3;845:19;;838:51;495:3;480:19;13399:1156:13;;;;;;;;31434:333;;;;;;;;;;-1:-1:-1;31434:333:13;;;;;:::i;:::-;;:::i;28843:577::-;;;;;;;;;;-1:-1:-1;28843:577:13;;;;;:::i;:::-;;:::i;25157:2581::-;;;;;;;;;;-1:-1:-1;25157:2581:13;;;;;:::i;:::-;;:::i;8813:120::-;;;;;;;;;;;;;:::i;:::-;;;2500:25:23;;;2488:2;2473:18;8813:120:13;2354:177:23;21838:311:13;;;;;;;;;;-1:-1:-1;21838:311:13;;;;;:::i;:::-;;:::i;9605:176::-;;;;;;;;;;-1:-1:-1;9605:176:13;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2700:55:23;;;2682:74;;2670:2;2655:18;9605:176:13;2536:226:23;21236:509:13;;;;;;;;;;-1:-1:-1;21236:509:13;;;;;:::i;:::-;;:::i;8981:124::-;;;;;;;;;;;;;:::i;22238:295::-;;;;;;;;;;-1:-1:-1;22238:295:13;;;;;:::i;:::-;;:::i;30983:224::-;;;;;;;;;;-1:-1:-1;30983:224:13;;;;;:::i;:::-;;:::i;794:47::-;;;;;;;;;;;;833:8;794:47;;8649:118;;;;;;;;;;;;;:::i;691:45::-;;;;;;;;;;;;734:2;691:45;;14735:714;;;;;;;;;;-1:-1:-1;14735:714:13;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;33020:135::-;;;;;;;;;;-1:-1:-1;33020:135:13;;;;;:::i;:::-;;:::i;6920:488::-;;;;;;;;;;-1:-1:-1;6920:488:13;;;;;:::i;:::-;;:::i;8192:112::-;;;;;;;;;;;;;:::i;31993:164::-;;;;;;;;;;-1:-1:-1;31993:164:13;;;;;:::i;:::-;;:::i;16121:353::-;;;;;;;;;;;;;:::i;16960:729::-;;;;;;;;;;-1:-1:-1;16960:729:13;;;;;:::i;:::-;;:::i;9890:483::-;;;;;;;;;;-1:-1:-1;9890:483:13;;;;;:::i;:::-;;:::i;7611:203::-;;;;;;;;;;-1:-1:-1;7611:203:13;;;;;:::i;:::-;;:::i;33439:412::-;;;;;;;;;;-1:-1:-1;33439:412:13;;;;;:::i;:::-;;:::i;:::-;;;;6000:14:23;;5993:22;5975:41;;6059:14;;6052:22;6047:2;6032:18;;6025:50;5948:18;33439:412:13;5813:268:23;18053:641:13;;;;;;;;;;-1:-1:-1;18053:641:13;;;;;:::i;:::-;;:::i;10978:555::-;;;;;;;;;;-1:-1:-1;10978:555:13;;;;;:::i;:::-;;:::i;15539:149::-;;;;;;;;;;;;;:::i;31773:164::-;;;;;;;;;;-1:-1:-1;31773:164:13;;;;;:::i;:::-;;:::i;22853:1853::-;;;;;;;;;;-1:-1:-1;22853:1853:13;;;;;:::i;:::-;;:::i;12805:282::-;;;;;;;;;;-1:-1:-1;12805:282:13;;;;;:::i;:::-;;:::i;19166:937::-;;;;;;;;;;-1:-1:-1;19166:937:13;;;;;:::i;:::-;;:::i;742:46::-;;;;;;;;;;;;786:2;742:46;;30543:224;;;;;;;;;;-1:-1:-1;30543:224:13;;;;;:::i;:::-;;:::i;11740:142::-;;;;;;;;;;-1:-1:-1;11740:142:13;;;;;:::i;:::-;;:::i;:::-;;;7764:14:23;;7757:22;7739:41;;7727:2;7712:18;11740:142:13;7599:187:23;12107:181:13;;;;;;;;;;-1:-1:-1;12107:181:13;;;;;:::i;:::-;;:::i;16565:126::-;;;;;;;;;;;;;:::i;5077:63::-;;;:::i;9267:176::-;;;;;;;;;;-1:-1:-1;9267:176:13;;;;;:::i;:::-;;:::i;20355:691::-;;;;;;;;;;-1:-1:-1;20355:691:13;;;;;:::i;:::-;;:::i;8016:132::-;;;;;;;;;;;;;:::i;32469:464::-;;;;;;;;;;-1:-1:-1;32469:464:13;;;;;:::i;:::-;;:::i;5512:1402::-;;;;;;;;;;-1:-1:-1;5512:1402:13;;;;;:::i;:::-;;:::i;10555:148::-;;;;;;;;;;-1:-1:-1;10555:148:13;;;;;:::i;:::-;;:::i;29638:689::-;;;;;;;;;;-1:-1:-1;29638:689:13;;;;;:::i;:::-;;:::i;28002:577::-;;;;;;;;;;-1:-1:-1;28002:577:13;;;;;:::i;:::-;;:::i;8428:174::-;;;;;;;;;;-1:-1:-1;8428:174:13;;;;;:::i;:::-;;:::i;15811:194::-;;;;;;;;;;-1:-1:-1;15811:194:13;;;;;:::i;:::-;;:::i;12446:200::-;;;;;;;;;;-1:-1:-1;12446:200:13;;;;;:::i;:::-;;:::i;13178:128::-;;;;;;;;;;;;;:::i;41650:842::-;41693:45;:43;:45::i;:::-;41689:100;;;41761:17;;;;;;;;;;;;;;41689:100;41798:40;41827:10;41798:28;:40::i;:::-;41852:9;:14;;:47;;-1:-1:-1;41870:24:13;833:8;41870:9;:24;:::i;:::-;:29;;41852:47;41848:106;;;41922:21;;;;;;;;;;;;;;41848:106;41963:32;41998:55;:53;:55::i;:::-;41963:90;-1:-1:-1;42063:20:13;42086:24;833:8;42086:9;:24;:::i;:::-;42063:47;;42139:24;42124:12;:39;42120:98;;;42186:21;;;;;;;;;;;;;;42120:98;3338:38:22;42341:22:13;;42227:57;42341:27;42337:78;;42391:13;;;;;;;;;;;;;;42337:78;42424:61;42446:12;42460:24;42424:21;:61::i;:::-;41679:813;;;41650:842::o;13399:1156::-;13504:23;;;;;;;;3338:38:22;13866:22:13;;13735:100;;-1:-1:-1;13849:39:13;;13845:704;;;-1:-1:-1;;;;;;;;13904:68:13;-1:-1:-1;;;;;;;;;;4879:1:22;4869:11;;;4997:18;;4343:50;4997:18;;;;;;4942:1;4926:17;;;;;4997:32;5039:33;;;;;;5102:22;;5082:43;;;;13904:154:13;;14072:56;14131:9;:15;;14147:14;14131:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;14262:18;;;14298:22;;;14338:15;;;;14371:20;;;:27;14416:21;;;;;14488:20;;;;14510:27;;-1:-1:-1;;;;;14262:18:13;;;;-1:-1:-1;14298:22:13;;;;;-1:-1:-1;14338:15:13;;-1:-1:-1;14371:27:13;;-1:-1:-1;14465:73:13;;;;;-1:-1:-1;14465:73:13;;;;;-1:-1:-1;;14416:21:13;;;-1:-1:-1;13845:704:13;13725:830;13399:1156;;;;;;;;;:::o;31434:333::-;31498:34;31521:10;;31498:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31498:22:13;;-1:-1:-1;;;31498:34:13:i;:::-;31542:104;31561:10;;31542:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31542:104:13;-1:-1:-1;31602:43:13;;-1:-1:-1;31602:41:13;;-1:-1:-1;31602:43:13:i;:::-;31542:18;:104::i;:::-;31656;31675:10;;31656:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;684:1:13;;-1:-1:-1;31716:43:13;;-1:-1:-1;31716:41:13;;-1:-1:-1;31716:43:13:i;31656:104::-;31434:333;;:::o;28843:577::-;28922:38;786:2;28922:11;:38;:::i;:::-;:43;28918:100;;28988:19;;-1:-1:-1;;;28988:19:13;;;;;;;;;;;28918:100;29032:9;29027:387;29047:22;;;29027:387;;;29087:22;29112:49;29127:11;;29112:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29140:1:13;;-1:-1:-1;786:2:13;;-1:-1:-1;29112:14:13;;-1:-1:-1;29112:49:13:i;:::-;29087:74;;29175:33;29198:9;29175:22;:33::i;:::-;29222:103;29241:9;684:1;29281:43;:41;:43::i;29222:103::-;-1:-1:-1;786:2:13;29367:22;29027:387;;25157:2581;25287:14;4139:36;:34;:36::i;:::-;-1:-1:-1;;;;;4125:50:13;:10;:50;4121:163;;25340:1:::1;25321:20:::0;;;25317:75:::1;;25364:17;;;;;;;;;;;;;;25317:75;-1:-1:-1::0;;;;;;;;;;;;;;;;;;;4879:1:22;4869:11;;;4997:18;;4343:50;4997:18;;;;;;;4942:1;4926:17;;;;;4997:32;5039:33;;;;;;5102:22;;5082:43;;;;;-1:-1:-1;3338:38:22;;7255:54;;25846:8:13;;25855:19:::1;25873:1;25846:8:::0;25855:19:::1;:::i;:::-;25846:29;;;;;;;:::i;:::-;;;;;;;:51;25842:121;;;25920:32;;;;;;;;;;;;;;25842:121;25977:9;25972:1401;25988:19:::0;;::::1;25972:1401;;;26033:1;26029;:5;:39;;;;-1:-1:-1::0;26053:8:13;;26062:5:::1;26066:1;26062::::0;:5:::1;:::i;:::-;26053:15;;;;;;;:::i;:::-;;;;;;;26038:8;;26047:1;26038:11;;;;;;;:::i;:::-;;;;;;;:30;;26029:39;26025:102;;;26095:17;;;;;;;;;;;;;;26025:102;26141:18;26162:71;26177:9;:15;;26193:14;26177:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;26220:8;;26229:1;26220:11;;;;;;;:::i;:::-;;;;;;;26177:55;;;;;;;;:::i;:::-;;;;;;;;26162:71;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:14;:71::i;:::-;26301:5;26247:43:::0;;;::::1;::::0;;;;;;:59;;-1:-1:-1;;26320:61:13;;;26437:31;;26141:92;;-1:-1:-1;26421:14:13;;26401:92:::1;::::0;26437:9;;26421:14;;26437:31;::::1;;;;;:::i;:::-;;;;;;;;;;;:42;;26480:8;;26489:1;26480:11;;;;;;;:::i;:::-;;;;;;;26437:55;;;;;;;;:::i;:::-;;;;;;;;26401:92;;;;;;:::i;:::-;;;;;;;;26578:1;26526:9;:15;;26542:14;26526:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:49;;;;:53;;;;:::i;:::-;26511:8;;26520:1;26511:11;;;;;;;:::i;:::-;;;;;;;:68:::0;26507:796:::1;;26599:9;:15;;26615:14;26599:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:48;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;26665:9;:15;;26681:14;26665:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:48;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;26507:796;;;26810:9;:15;;26826:14;26810:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;26926:1;26874:9;:15;;26890:14;26874:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:49;;;;:53;;;;:::i;:::-;26810:135;;;;;;;;:::i;:::-;;;;;;;;26752:9;:15;;26768:14;26752:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;26795:8;;26804:1;26795:11;;;;;;;:::i;:::-;;;;;;;26752:55;;;;;;;;:::i;:::-;;;;;;;;:193;;;;;;:::i;:::-;;;;;;:::i;:::-;;26963:9;:15;;26979:14;26963:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:48;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;27087:9;:15;;27103:14;27087:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;27203:1;27151:9;:15;;27167:14;27151:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:49;;;;:53;;;;:::i;:::-;27087:135;;;;;;;;:::i;:::-;;;;;;;;27029:9;:15;;27045:14;27029:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;27072:8;;27081:1;27072:11;;;;;;;:::i;:::-;;;;;;;27029:55;;;;;;;;:::i;:::-;;;;;;;;:193;;;;;;:::i;:::-;;;;;;:::i;:::-;;27240:9;:15;;27256:14;27240:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:48;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;26507:796;-1:-1:-1::0;27345:3:13::1;;25972:1401;;;;27419:9;:15;;27435:14;27419:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:37:::1;:31;::::0;;::::1;;:37;::::0;27387:8;;27396:19:::1;27414:1;27387:8:::0;27396:19:::1;:::i;:::-;27387:29;;;;;;;:::i;:::-;;;;;;;:69;27383:255;;;27512:8:::0;;27521:19:::1;27539:1;27512:8:::0;27521:19:::1;:::i;:::-;27512:29;;;;;;;:::i;:::-;;;;;;;27472:9;:15;;27488:14;27472:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:37:::1;:31;::::0;;::::1;;:37;:69:::0;27560:67:::1;27581:14:::0;27597:8;;27606:19:::1;27624:1;27597:8:::0;27606:19:::1;:::i;:::-;27597:29;;;;;;;:::i;:::-;;;;;;;27560:67;;;;;;12290:25:23::0;;;12346:2;12331:18;;12324:34;12278:2;12263:18;;12116:248;27560:67:13::1;;;;;;;;27383:255;27648:27;:25;:27::i;:::-;27685:46;27716:14;27685:30;:46::i;:::-;25307:2431;;;4121:163:::0;;;4223:35;4243:14;4223:19;:35::i;:::-;25340:1:::1;25321:20:::0;;;25317:75:::1;;25364:17;;;;;;;;;;;;;;25317:75;-1:-1:-1::0;;;;;;;;;;;;;;;;;;;4879:1:22;4869:11;;;4997:18;;4343:50;4997:18;;;;;;;4942:1;4926:17;;;;;4997:32;5039:33;;;;;;5102:22;;5082:43;;;;;-1:-1:-1;3338:38:22;;7255:54;;25846:8:13;;25855:19:::1;25873:1;25846:8:::0;25855:19:::1;:::i;:::-;25846:29;;;;;;;:::i;:::-;;;;;;;:51;25842:121;;;25920:32;;;;;;;;;;;;;;25842:121;25977:9;25972:1401;25988:19:::0;;::::1;25972:1401;;;26033:1;26029;:5;:39;;;;-1:-1:-1::0;26053:8:13;;26062:5:::1;26066:1;26062::::0;:5:::1;:::i;:::-;26053:15;;;;;;;:::i;:::-;;;;;;;26038:8;;26047:1;26038:11;;;;;;;:::i;:::-;;;;;;;:30;;26029:39;26025:102;;;26095:17;;;;;;;;;;;;;;26025:102;26141:18;26162:71;26177:9;:15;;26193:14;26177:31;;;;;;;;:::i;26162:71::-;26301:5;26247:43:::0;;;::::1;::::0;;;;;;:59;;-1:-1:-1;;26320:61:13;;;26437:31;;26141:92;;-1:-1:-1;26421:14:13;;26401:92:::1;::::0;26437:9;;26421:14;;26437:31;::::1;;;;;:::i;:::-;;;;;;;;;;;:42;;26480:8;;26489:1;26480:11;;;;;;;:::i;:::-;;;;;;;26437:55;;;;;;;;:::i;:::-;;;;;;;;26401:92;;;;;;:::i;:::-;;;;;;;;26578:1;26526:9;:15;;26542:14;26526:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:49;;;;:53;;;;:::i;:::-;26511:8;;26520:1;26511:11;;;;;;;:::i;:::-;;;;;;;:68:::0;26507:796:::1;;26599:9;:15;;26615:14;26599:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:48;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;26665:9;:15;;26681:14;26665:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:48;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;26507:796;;;26810:9;:15;;26826:14;26810:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;26926:1;26874:9;:15;;26890:14;26874:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:49;;;;:53;;;;:::i;:::-;26810:135;;;;;;;;:::i;:::-;;;;;;;;26752:9;:15;;26768:14;26752:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;26795:8;;26804:1;26795:11;;;;;;;:::i;:::-;;;;;;;26752:55;;;;;;;;:::i;:::-;;;;;;;;:193;;;;;;:::i;:::-;;;;;;:::i;:::-;;26963:9;:15;;26979:14;26963:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:48;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;27087:9;:15;;27103:14;27087:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;27203:1;27151:9;:15;;27167:14;27151:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:49;;;;:53;;;;:::i;:::-;27087:135;;;;;;;;:::i;:::-;;;;;;;;27029:9;:15;;27045:14;27029:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;27072:8;;27081:1;27072:11;;;;;;;:::i;:::-;;;;;;;27029:55;;;;;;;;:::i;:::-;;;;;;;;:193;;;;;;:::i;:::-;;;;;;:::i;:::-;;27240:9;:15;;27256:14;27240:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:48;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;26507:796;-1:-1:-1::0;27345:3:13::1;;25972:1401;;;;27419:9;:15;;27435:14;27419:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:37:::1;:31;::::0;;::::1;;:37;::::0;27387:8;;27396:19:::1;27414:1;27387:8:::0;27396:19:::1;:::i;:::-;27387:29;;;;;;;:::i;:::-;;;;;;;:69;27383:255;;;27512:8:::0;;27521:19:::1;27539:1;27512:8:::0;27521:19:::1;:::i;:::-;27512:29;;;;;;;:::i;:::-;;;;;;;27472:9;:15;;27488:14;27472:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:37:::1;:31;::::0;;::::1;;:37;:69:::0;27560:67:::1;27581:14:::0;27597:8;;27606:19:::1;27624:1;27597:8:::0;27606:19:::1;:::i;:::-;27597:29;;;;;;;:::i;:::-;;;;;;;27560:67;;;;;;12290:25:23::0;;;12346:2;12331:18;;12324:34;12278:2;12263:18;;12116:248;27560:67:13::1;;;;;;;;27383:255;27648:27;:25;:27::i;:::-;27685:46;27716:14;27685:30;:46::i;:::-;25307:2431;;;4121:163:::0;25157:2581;;;;:::o;8813:120::-;8860:7;8886:40;:38;:40::i;:::-;8879:47;;8813:120;:::o;21838:311::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;21932:54:::1;:52;:54::i;:::-;21917:12;:69;21913:119;;;22009:12;;-1:-1:-1::0;;;22009:12:13::1;;;;;;;;;;;21913:119;22041:54;22082:12;22041:40;:54::i;:::-;22110:32;::::0;2500:25:23;;;22110:32:13::1;::::0;2488:2:23;2473:18;22110:32:13::1;;;;;;;;21838:311:::0;:::o;9605:176::-;9682:7;9708:66;9734:10;;9708:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;684:1:13;;-1:-1:-1;9708:25:13;;-1:-1:-1;;9708:66:13:i;:::-;9701:73;;9605:176;;;;;:::o;21236:509::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;3338:38:22;21451:31:13;;21341:57:::1;::::0;3338:38:22;;21467:14:13;;21451:31;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;::::1;::::0;;;::::1;;:43;;:51:::0;;-1:-1:-1;;21451:51:13::1;::::0;::::1;;::::0;;;::::1;::::0;;;21517:33:::1;::::0;2500:25:23;;;21517:33:13::1;::::0;2473:18:23;21517:33:13::1;;;;;;;21607:16;21560:9;:15;;21576:14;21560:31;;;;;;;;:::i;:::-;;;;;;;;;;;:44;;;:63;;;;;-1:-1:-1::0;;;;;21560:63:13::1;;;;;-1:-1:-1::0;;;;;21560:63:13::1;;;;;;21638:100;21663:14;21679:9;:15;;21695:14;21679:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;;:40:::0;21638:100:::1;::::0;;12571:25:23;;;-1:-1:-1;;;;;21679:40:13;;::::1;12673:18:23::0;;;12666:43;;;;12745:15;;12725:18;;;12718:43;12559:2;12544:18;21638:100:13::1;;;;;;;21331:414;21236:509:::0;;:::o;8981:124::-;9030:7;9056:42;:40;:42::i;22238:295::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;22326:52:::1;:50;:52::i;:::-;22313:10;:65;22309:115;;;22401:12;;-1:-1:-1::0;;;22401:12:13::1;;;;;;;;;;;22309:115;22433:50;22472:10;22433:38;:50::i;:::-;22498:28;::::0;2500:25:23;;;22498:28:13::1;::::0;2488:2:23;2473:18;22498:28:13::1;2354:177:23::0;30983:224:13;31052:34;31075:10;;31052:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31052:22:13;;-1:-1:-1;;;31052:34:13:i;8649:118::-;8695:7;8721:39;:37;:39::i;14735:714::-;14866:22;;14938:18;;;3338:38:22;15006:100:13;;15128:9;:15;;15144:14;15128:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;15171:15;15128:59;;;;;;;;:::i;:::-;;;;;;;;15116:71;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15209:9;:15;;15225:14;15209:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;15252:15;15209:59;;;;;;;;:::i;:::-;;;;;;;;15197:71;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15291:41;15306:25;15321:9;15306:14;:25::i;:::-;35480:7;35506:64;;;6543:40:22;35506:64:13;;;;;;-1:-1:-1;;;;;35506:64:13;;35409:168;15291:41;-1:-1:-1;;;;;;;;;;;;;;;;;;;4879:1:22;4869:11;;;4997:18;;4343:50;4997:18;;;;;;;4942:1;4926:17;;;;;4997:32;5039:33;;;;;;5102:22;;5082:43;;;;15278:54:13;;-1:-1:-1;15369:73:13;;;15351:91;;:15;:91;15342:100;;14996:453;14735:714;;;;;;;:::o;33020:135::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;33143:5:::1;33084:40;:38;:40::i;:::-;-1:-1:-1::0;;;;;33084:56:13;;;::::1;:46;:56:::0;;;::::1;::::0;;;;;;;;:64;;-1:-1:-1;;33084:64:13::1;::::0;::::1;;::::0;;;::::1;::::0;;33020:135::o;6920:488::-;7024:1;3597:38;:36;:38::i;:::-;:42;;3638:1;3597:42;:::i;:::-;3585:8;:54;3581:112;;3662:20;;;;;;;;;;;;;;3581:112;3703:46;3740:8;3703:36;:46::i;:::-;1115:6:::1;7041:24;:39;7037:89;;;7103:12;;-1:-1:-1::0;;;7103:12:13::1;;;;;;;;;;;7037:89;7135:76;7186:24;7135:50;:76::i;:::-;1115:6;7225:26;:41;7221:91;;;7289:12;;-1:-1:-1::0;;;7289:12:13::1;;;;;;;;;;;7221:91;7321:80;7374:26;7321:52;:80::i;8192:112::-:0;8235:7;8261:36;:34;:36::i;31993:164::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;32065:27:::1;::::0;7764:14:23;;7757:22;7739:41;;32065:27:13::1;::::0;7727:2:23;7712:18;32065:27:13::1;;;;;;;32102:48;32146:3;32102:43;:48::i;:::-;31993:164:::0;:::o;16121:353::-;16167:16;16186:43;:41;:43::i;:::-;16167:62;-1:-1:-1;16244:10:13;-1:-1:-1;;;;;16244:22:13;;;16240:74;;16289:14;;-1:-1:-1;;;16289:14:13;;;;;;;;;;;16240:74;16323:44;16358:8;16323:34;:44::i;:::-;16377:53;16427:1;16377:41;:53::i;:::-;16445:22;;-1:-1:-1;;;;;2700:55:23;;2682:74;;16445:22:13;;2670:2:23;2655:18;16445:22:13;2536:226:23;16960:729:13;17065:7;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;-1:-1:-1;;;;;;;;17084:57:13::1;-1:-1:-1::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3338:38:22;17266:22:13;;3338:38:22;;-1:-1:-1;17292:1:13::1;17266:27:::0;17262:101:::1;;17316:36;;;;;;;;;;;;;;17262:101;-1:-1:-1::0;;;;;17372:39:13;;::::1;::::0;;17421:47;;::::1;:24;::::0;;::::1;:47:::0;;;17478:33;;::::1;::::0;;::::1;::::0;;17372:20:::1;17478:33:::0;;;;;;;;::::1;::::0;;::::1;;::::0;;;;::::1;::::0;;;::::1;;::::0;;;;;;::::1;::::0;;;;;::::1;::::0;::::1;;::::0;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;17372:11;;17478:33:::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;17478:33:13::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;17478:33:13::1;::::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;;-1:-1:-1;;17478:33:13::1;::::0;::::1;;::::0;;;::::1;::::0;;17545:22;;-1:-1:-1;;17545:26:13::1;::::0;-1:-1:-1;;17545:26:13::1;:::i;:::-;17586:66;::::0;;-1:-1:-1;;;;;13186:15:23;;;13168:34;;13238:15;;13233:2;13218:18;;13211:43;13270:18;;;13263:34;;;17521:50:13;;-1:-1:-1;17586:66:13::1;::::0;13095:2:23;13080:18;17586:66:13::1;;;;;;;17669:13:::0;16960:729;-1:-1:-1;;;;;16960:729:13:o;9890:483::-;9966:7;9989:74;;;7255:54:22;9989:74:13;;;;;:82;;;:91;;;;9985:153;;10103:24;;;;;;;;;;;;;;9985:153;10247:62;:74;;;7255:54:22;10247:74:13;;;;;:88;3338:38:22;10166:170:13;;3338:38:22;;10247:88:13;;;;;;10166:170;;;;;;:::i;:::-;;;;;;;;;:200;:170;;;;;:200;;-1:-1:-1;;;;;10166:200:13;;9890:483;-1:-1:-1;;9890:483:13:o;7611:203::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;7694:62:::1;7739:16;7694:44;:62::i;:::-;7771:36;::::0;-1:-1:-1;;;;;2700:55:23;;2682:74;;7771:36:13::1;::::0;2670:2:23;2655:18;7771:36:13::1;2536:226:23::0;33439:412:13;33509:14;33525:17;33554:23;33580:46;:44;:46::i;:::-;33554:72;-1:-1:-1;;;;;;33640:29:13;;;33636:131;;33700:56;;-1:-1:-1;;;33700:56:13;;-1:-1:-1;;;;;2700:55:23;;;33700:56:13;;;2682:74:23;33700:46:13;;;;;2655:18:23;;33700:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33685:71;;33636:131;33788:40;:38;:40::i;:::-;-1:-1:-1;;;;;33788:56:13;;;:46;:56;;;;;;;;-1:-1:-1;33788:56:13;;;;;;;;33439:412;-1:-1:-1;33439:412:13:o;18053:641::-;18233:14;4614:59;3338:38:22;4676:84:13;;4736:14;;4676:84;;;;;;:::i;:::-;;;;;;;;;;;;;;4775:24;;;;4676:84;;-1:-1:-1;4775:24:13;;4771:75;;;4822:13;;;;;;;;;;;;;;4771:75;4874:25;;;;-1:-1:-1;;;;;4874:25:13;4860:10;:39;4856:91;;4922:14;;-1:-1:-1;;;4922:14:13;;;;;;;;;;;4856:91;18259:31:::1;18273:16;18259:13;:31::i;:::-;18300:35;18314:20;18300:13;:35::i;:::-;3338:38:22::0;18456:31:13;;18499:16;;3338:38:22;;18472:14:13;;18456:31;::::1;;;;;:::i;:::-;;;;;;;;;;;:40;;;:59;;;;;-1:-1:-1::0;;;;;18456:59:13::1;;;;;-1:-1:-1::0;;;;;18456:59:13::1;;;;;;18572:20;18525:9;:15;;18541:14;18525:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;::::1;::::0;;;::::1;;:44;;:67:::0;;;::::1;-1:-1:-1::0;;;;;18525:67:13;;::::1;;::::0;;18607:80:::1;::::0;;12571:25:23;;;12693:15;;;12673:18;;;12666:43;;;;12745:15;;;12725:18;;;12718:43;18607:80:13;;::::1;::::0;12559:2:23;18607:80:13;;;;;;::::1;18249:445;4604:361:::0;18053:641;;;;:::o;10978:555::-;11065:7;35506:64;;;6543:40:22;35506:64:13;;;;;;-1:-1:-1;;;;;35506:64:13;;11145:72;;-1:-1:-1;11204:1:13;;10978:555;-1:-1:-1;;10978:555:13:o;11145:72::-;11226:23;11252:46;:44;:46::i;:::-;11226:72;-1:-1:-1;;;;;;11312:29:13;;;11308:192;;11361:58;;-1:-1:-1;;;11361:58:13;;-1:-1:-1;;;;;2700:55:23;;;11361:58:13;;;2682:74:23;11361:46:13;;;;;2655:18:23;;11361:58:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11357:133;;;11446:29;;;;;-1:-1:-1;;;;;2700:55:23;;11446:29:13;;;2682:74:23;2655:18;;11446:29:13;;;;;;;;11357:133;-1:-1:-1;11516:10:13;10978:555;-1:-1:-1;;10978:555:13:o;15539:149::-;15600:7;15626:55;:53;:55::i;31773:164::-;31851:31;31871:10;31851:19;:31::i;:::-;31892:38;31906:11;;31919:10;31892:13;:38::i;22853:1853::-;23041:14;4411:35;4431:14;4411:19;:35::i;:::-;23071:9:::1;23084:1;23071:14:::0;23067:69:::1;;23108:17;;;;;;;;;;;;;;23067:69;23172:29;23192:9:::0;786:2:::1;23172:29;:::i;:::-;23150:51:::0;::::1;23146:108;;23224:19;;-1:-1:-1::0;;;23224:19:13::1;;;;;;;;;;;23146:108;23290:28;23309:9:::0;734:2:::1;23290:28;:::i;:::-;23268:50:::0;::::1;23264:107;;23341:19;;;;;;;;;;;;;;23264:107;3338:38:22::0;7255:54;23381:57:13::1;23662:869;23682:9;23678:1;:13;23662:869;;;23709:22;23734:69;23749:11;;23734:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;23762:21:13::1;::::0;-1:-1:-1;786:2:13::1;::::0;-1:-1:-1;23762:1:13;;-1:-1:-1;23762:21:13::1;:::i;:::-;786:2;23734:14;:69::i;:::-;23709:94;;23817:22;23842:67;23857:11;;23842:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;23870:20:13::1;::::0;-1:-1:-1;734:2:13::1;::::0;-1:-1:-1;23870:1:13;;-1:-1:-1;23870:20:13::1;:::i;:::-;734:2;23842:14;:67::i;:::-;23817:92;;23924:9;:15;;23940:14;23924:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:42:::1;:31;::::0;;::::1;;:42:::0;;;::::1;:58:::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;::::0;::::1;:::i;:::-;;23996:9;:15;;24012:14;23996:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:42:::1;:31;::::0;;::::1;;:42:::0;;;::::1;:58:::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;::::0;::::1;:::i;:::-;;24069:18;24090:25;24105:9;24090:14;:25::i;:::-;24134:31;:43:::0;;;::::1;::::0;;;;;;:51;24069:46;;-1:-1:-1;24134:51:13::1;;24130:129;;;24234:9;24212:32;;;;;;;;;;;:::i;24130:129::-;24319:141;;;;;;;;24386:4;24319:141;;;;;;24430:14;24319:141;;;;::::0;24273:25:::1;:31;;:43;24305:10;24273:43;;;;;;;;;;;:187;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24503:3;;;;;23695:836;;;23662:869;;;;24565:14;24546:60;24581:11;;24594;;24546:60;;;;;;;;;:::i;:::-;;;;;;;;24616:27;:25;:27::i;:::-;24653:46;24684:14;24653:30;:46::i;:::-;23057:1649;;22853:1853:::0;;;;;;;:::o;12805:282::-;12908:43;:41;:43::i;:::-;-1:-1:-1;;;;;12894:57:13;:10;-1:-1:-1;;;;;12894:57:13;;12890:109;;12974:14;;-1:-1:-1;;;12974:14:13;;;;;;;;;;;12890:109;13076:4;13008:43;:41;:43::i;:::-;:49;:65;;;;;;;;;:72;;-1:-1:-1;;13008:72:13;;;;;;;;;;12805:282::o;19166:937::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;3338:38:22;19424:31:13;;3338:38:22;;19440:14:13;;19424:31;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:43:::1;:31;::::0;;::::1;;:43;::::0;::::1;;19420:94;;;19490:13;;;;;;;;;;;;;;19420:94;19523:22;19548:9;:15;;19564:14;19548:31;;;;;;;;:::i;:::-;;;;;;;;;;;:42;;:49;;;;19523:74;;19628:6;19611:14;:23;19607:105;;;19657:44;::::0;::::1;::::0;;::::1;::::0;::::1;12290:25:23::0;;;12331:18;;;12324:34;;;12263:18;;19657:44:13::1;12116:248:23::0;19607:105:13::1;19778:6;19738:9;:15;;19754:14;19738:31;;;;;;;;:::i;:::-;;;;;;;;;;;:37;;;:46;:122;;;;;19851:9;19800:48;:46;:48::i;:::-;:60;19738:122;19721:205;;;19892:23;;;;;;;;;;;;;;19721:205;19975:6;19935:9;:15;;19951:14;19935:31;;;;;;;;:::i;:::-;;;;;;;;;;;:37;;:46;;;;19991;20022:14;19991:30;:46::i;:::-;20052:44;::::0;;12290:25:23;;;12346:2;12331:18;;12324:34;;;20052:44:13::1;::::0;12263:18:23;20052:44:13::1;;;;;;;19300:803;;19166:937:::0;;;:::o;30543:224::-;30612:34;30635:10;;30612:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30612:22:13;;-1:-1:-1;;;30612:34:13:i;:::-;30656:104;30675:10;;30656:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30656:104:13;-1:-1:-1;30716:43:13;;-1:-1:-1;30716:41:13;;-1:-1:-1;30716:43:13:i;11740:142::-;11821:4;11844:31;11860:14;11844:15;:31::i;12107:181::-;12193:4;12216:43;:41;:43::i;:::-;:49;:65;;;;;-1:-1:-1;12216:65:13;;;;;;;12107:181::o;16565:126::-;16615:7;16641:43;:41;:43::i;5077:63::-;5123:10;:8;:10::i;:::-;5077:63::o;9267:176::-;9344:7;9370:66;9396:10;;9370:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9370:66:13;-1:-1:-1;9370:25:13;;-1:-1:-1;;9370:66:13:i;20355:691::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;3338:38:22;20578:31:13;;20468:57:::1;::::0;3338:38:22;;20594:14:13;;20578:31;::::1;;;;;:::i;:::-;;;;;;;;;;;:37;;:41;;;;20634:39;20655:14;20671:1;20634:39;;;;;;12290:25:23::0;;;12346:2;12331:18;;12324:34;12278:2;12263:18;;12116:248;20634:39:13::1;;;;;;;;20729:4;20683:9;:15;;20699:14;20683:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;::::1;::::0;;;::::1;;:43;;:50:::0;;-1:-1:-1;;20683:50:13::1;::::0;::::1;;::::0;;;::::1;::::0;;;20748:35:::1;::::0;2500:25:23;;;20748:35:13::1;::::0;2473:18:23;20748:35:13::1;;;;;;;20840:22;20793:9;:15;;20809:14;20793:31;;;;;;;;:::i;:::-;;;;;;;;;;;:44;;;:69;;;;;-1:-1:-1::0;;;;;20793:69:13::1;;;;;-1:-1:-1::0;;;;;20793:69:13::1;;;;;;20877:106;20902:14;20918:9;:15;;20934:14;20918:31;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;;:40:::0;20877:106:::1;::::0;;12571:25:23;;;-1:-1:-1;;;;;20918:40:13;;::::1;12673:18:23::0;;;12666:43;;;;12745:15;;12725:18;;;12718:43;12559:2;12544:18;20877:106:13::1;;;;;;;20993:46;21024:14;20993:30;:46::i;8016:132::-:0;8069:7;8095:46;:44;:46::i;32469:464::-;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;32625:4:::1;32566:40;:38;:40::i;:::-;-1:-1:-1::0;;;;;32566:56:13;::::1;:46;:56:::0;;;::::1;::::0;;;;;;;:63;;-1:-1:-1;;32566:63:13::1;::::0;::::1;;::::0;;;::::1;::::0;;;32665:46:::1;:44;:46::i;:::-;32639:72:::0;-1:-1:-1;;;;;;32725:29:13;::::1;::::0;32721:160:::1;;32774:56;::::0;-1:-1:-1;;;32774:56:13;;-1:-1:-1;;;;;2700:55:23;;;32774:56:13::1;::::0;::::1;2682:74:23::0;32774:46:13;::::1;::::0;::::1;::::0;2655:18:23;;32774:56:13::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32770:101;;;32850:7;41679:813:::0;;;41650:842::o;32770:101::-:1;32890:36;32904:11;;32917:8;32890:13;:36::i;5512:1402::-:0;5890:1;3597:38;:36;:38::i;:::-;:42;;3638:1;3597:42;:::i;:::-;3585:8;:54;3581:112;;3662:20;;;;;;;;;;;;;;3581:112;3703:46;3740:8;3703:36;:46::i;:::-;5903:21:::1;5917:6;5903:13;:21::i;:::-;5934:42;5969:6;5934:34;:42::i;:::-;5986:24;6000:9;5986:13;:24::i;:::-;6020:48;6058:9;6020:37;:48::i;:::-;1115:6;6083:10;:25;6079:75;;;6131:12;;-1:-1:-1::0;;;6131:12:13::1;;;;;;;;;;;6079:75;6163:50;6202:10;6163:38;:50::i;:::-;1115:6;6227:12;:27;6223:77;;;6277:12;;-1:-1:-1::0;;;6277:12:13::1;;;;;;;;;;;6223:77;6309:54;6350:12;6309:40;:54::i;:::-;6374:28;6388:13;6374;:28::i;:::-;6412:56;6454:13;6412:41;:56::i;:::-;6478:28;6492:13;6478;:28::i;:::-;6516:56;6558:13;6516:41;:56::i;:::-;6582:31;6596:16;6582:13;:31::i;:::-;6623:62;6668:16;6623:44;:62::i;:::-;6695:42;6709:27;6695:13;:42::i;:::-;6747:84;6803:27;6747:55;:84::i;:::-;6841:66;6854:24;6880:26;6841:12;:66::i;:::-;5512:1402:::0;;;;;;;;;;;:::o;10555:148::-;10628:7;10654:42;10669:26;10684:10;;10669:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10669:14:13;;-1:-1:-1;;;10669:26:13:i;29638:689::-;29712:38;786:2;29712:11;:38;:::i;:::-;:43;29708:100;;29778:19;;-1:-1:-1;;;29778:19:13;;;;;;;;;;;29708:100;29822:9;29817:504;29837:22;;;29817:504;;;29877:22;29902:49;29917:11;;29902:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29930:1:13;;-1:-1:-1;786:2:13;;-1:-1:-1;29902:14:13;;-1:-1:-1;29902:49:13:i;:::-;29877:74;;29965:33;29988:9;29965:22;:33::i;:::-;30012:103;30031:9;621:1;30071:43;:41;:43::i;30012:103::-;30129;30148:9;684:1;30188:43;:41;:43::i;30129:103::-;-1:-1:-1;786:2:13;30274:22;29817:504;;28002:577;28081:38;786:2;28081:11;:38;:::i;:::-;:43;28077:100;;28147:19;;-1:-1:-1;;;28147:19:13;;;;;;;;;;;28077:100;28191:9;28186:387;28206:22;;;28186:387;;;28246:22;28271:49;28286:11;;28271:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28299:1:13;;-1:-1:-1;786:2:13;;-1:-1:-1;28271:14:13;;-1:-1:-1;28271:49:13:i;:::-;28246:74;;28334:33;28357:9;28334:22;:33::i;:::-;28381:103;28400:9;621:1;28440:43;:41;:43::i;28381:103::-;-1:-1:-1;786:2:13;28526:22;28186:387;;8428:174;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;8505:29:::1;::::0;-1:-1:-1;;;;;2700:55:23;;2682:74;;8505:29:13::1;::::0;2670:2:23;2655:18;8505:29:13::1;;;;;;;8544:51;8582:12;8544:37;:51::i;15811:194::-:0;3875:36;:34;:36::i;:::-;-1:-1:-1;;;;;3861:50:13;:10;-1:-1:-1;;;;;3861:50:13;;3857:102;;3934:14;;-1:-1:-1;;;3934:14:13;;;;;;;;;;;3857:102;15886:52:::1;15928:9;15886:41;:52::i;:::-;15953:45;::::0;-1:-1:-1;;;;;15953:45:13;::::1;::::0;15976:10:::1;::::0;15953:45:::1;::::0;;;::::1;15811:194:::0;:::o;12446:200::-;12530:4;7255:54:22;12553:56:13;7316:225:22;13178:128:13;13231:4;13254:45;12578:111:22;12630:4;12653:29;12514:56;12569:1;12522:43;12514:56;:::i;:::-;790:15;;680:141;44383:478:13;44462:23;44488:46;:44;:46::i;:::-;44462:72;-1:-1:-1;;;;;;44548:29:13;;;44544:186;;44597:55;;-1:-1:-1;;;44597:55:13;;-1:-1:-1;;;;;2700:55:23;;;44597::13;;;2682:74:23;44597:46:13;;;;;2655:18:23;;44597:55:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44593:127;;;44679:26;;;;;-1:-1:-1;;;;;2700:55:23;;44679:26:13;;;2682:74:23;2655:18;;44679:26:13;2536:226:23;44593:127:13;44743:40;:38;:40::i;:::-;-1:-1:-1;;;;;44743:55:13;;:46;:55;;;;;;;;;;;;;;44739:116;;;44821:23;;;;;-1:-1:-1;;;;;2700:55:23;;44821:23:13;;;2682:74:23;2655:18;;44821:23:13;2536:226:23;6067:138:22;6129:7;6155:43;6007:53;790:15;;680:141;41377:267:13;41485:96;41539:41;41567:13;41539:25;:41;:::i;:::-;41485:53;:96::i;:::-;41591:46;41620:1;41623:13;41591:28;:46::i;34538:288::-;34650:42;34665:26;34680:10;34665:14;:26::i;34650:42::-;-1:-1:-1;;;;;34636:56:13;:10;-1:-1:-1;;;;;34636:56:13;;;:122;;;;-1:-1:-1;34748:10:13;34708:36;:34;:36::i;:::-;-1:-1:-1;;;;;34708:50:13;;;34636:122;34619:201;;;34790:19;;;;;;;;;;;;;;8751:113:22;8801:7;8827:30;8691:53;790:15;;680:141;43426:794:13;43566:21;43590:26;43605:10;43590:14;:26::i;:::-;43566:50;;43626:31;43646:10;43626:19;:31::i;:::-;43667:24;43694:48;43718:7;43727:13;43701:40;;;;;;;;15197:19:23;;;15241:2;15232:12;;15225:28;15278:2;15269:12;;15040:247;43701:40:13;;;;-1:-1:-1;;43701:40:13;;;;;;;;;;43694:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43667:75;;43752:22;43777:57;:55;:57::i;:::-;43752:82;;43844:27;43874:68;43909:14;43925:16;43874:34;:68::i;:::-;43844:98;;43956:19;-1:-1:-1;;;;;43956:31:13;;43991:1;43956:36;43952:207;;44008:59;44034:14;44050:16;44008:25;:59::i;:::-;-1:-1:-1;44081:67:13;;;;;-1:-1:-1;;;;;15952:55:23;;;44081:67:13;;;15934:74:23;16024:18;;;16017:34;;;44081:39:13;;;;;15907:18:23;;44081:67:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43952:207;44182:19;-1:-1:-1;;;;;44168:43:13;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9253:113:22;9303:7;9329:30;9193:53;790:15;;680:141;3086:2776:20;3208:12;3256:7;3240:12;3256:7;3250:2;3240:12;:::i;:::-;:23;;3232:50;;;;;;;16264:2:23;3232:50:20;;;16246:21:23;16303:2;16283:18;;;16276:30;16342:16;16322:18;;;16315:44;16376:18;;3232:50:20;16062:338:23;3232:50:20;3317:16;3326:7;3317:6;:16;:::i;:::-;3300:6;:13;:33;;3292:63;;;;;;;16607:2:23;3292:63:20;;;16589:21:23;16646:2;16626:18;;;16619:30;16685:19;16665:18;;;16658:47;16722:18;;3292:63:20;16405:341:23;3292:63:20;3366:22;3429:15;;3457:1967;;;;5565:4;5559:11;5546:24;;5751:1;5740:9;5733:20;5799:4;5788:9;5784:20;5778:4;5771:34;3422:2397;;3457:1967;3639:4;3633:11;3620:24;;4298:2;4289:7;4285:16;4680:9;4673:17;4667:4;4663:28;4651:9;4640;4636:25;4632:60;4728:7;4724:2;4720:16;4980:6;4966:9;4959:17;4953:4;4949:28;4937:9;4929:6;4925:22;4921:57;4917:70;4754:425;5013:3;5009:2;5006:11;4754:425;;;5151:9;;5140:21;;5054:4;5046:13;;;;5086;4754:425;;;-1:-1:-1;;5197:26:20;;;5405:2;5388:11;-1:-1:-1;;5384:25:20;5378:4;5371:39;-1:-1:-1;3422:2397:20;-1:-1:-1;5846:9:20;3086:2776;-1:-1:-1;;;;3086:2776:20:o;1725:98:22:-;1768:7;1794:22;1590:34;790:15;;680:141;35250:153:13;35322:7;35348:48;35372:10;35392:1;35384:10;;35355:40;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;35355:40:13;;;;;;;;;;35348:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;38113:168::-;38169:60;38216:12;38169:46;:60::i;:::-;38244:30;;38261:12;2500:25:23;;38244:30:13;;2488:2:23;2473:18;38244:30:13;;;;;;;38113:168::o;36863:1244::-;-1:-1:-1;;;;;;;;36946:75:13;-1:-1:-1;;;;;;;;;;4879:1:22;4869:11;;;4997:18;;4343:50;4997:18;;;;;;4942:1;4926:17;;;;;4997:32;5039:33;;;;;;5102:22;;5082:43;;;;37251:34:13;;3338:38:22;37347:31:13;;36946:157;;-1:-1:-1;3338:38:22;37113:57:13;;;;3338:38:22;;37363:14:13;;37347:31;;;;;;:::i;:::-;;;;;;;;;;;:37;;;37333:51;;37406:20;:27;;;37399:34;;:3;:34;37395:445;;37519:27;;;;;5458:1:22;5448:11;;;37516:1:13;5594:18:22;;;4343:50;5594:18;;;;;;;5739:33;;;;;;5521:1;5505:17;;;;;5711:77;;;5626:18;5618:41;;;5616:44;5594:67;;;5593:196;5560:229;;37395:445:13;;;37611:27;;;;37605:33;;;;:3;:33;:::i;:::-;37788:27;;;;;5458:1:22;5448:11;;;5276:31;5594:18;;;4343:50;5594:18;;;;;;;5739:33;;;;;;:16;5712:23;;:61;5521:1;5505:17;;;;;5711:77;;;5626:18;5618:41;;;5616:44;5594:67;;;5593:196;5560:229;;37578:61:13;-1:-1:-1;37653:176:13;37875:17;37854:38;;:17;:38;;;37850:251;;37908:182;38059:17;37979:97;;38038:17;37980:75;;:55;:53;:55::i;:::-;:75;;;;:::i;:::-;37979:97;;;;:::i;37908:182::-;36936:1171;;;;;36863:1244;:::o;34832:412::-;34909:59;3338:38:22;34971:84:13;;35031:14;;34971:84;;;;;;:::i;:::-;;;;;;;;;;;;;;35070:24;;;;34971:84;;-1:-1:-1;35070:24:13;;35066:75;;;35117:13;;;;;;;;;;;;;;35066:75;35169:21;;-1:-1:-1;;;;;35169:21:13;35155:10;:35;35151:87;;35213:14;;-1:-1:-1;;;35213:14:13;;;;;;;;;;;7781:107:22;7828:7;7854:27;7736:38;790:15;;680:141;12038:136;12099:7;12125:42;11965:65;12029:1;11973:52;11965:65;:::i;8372:121::-;8440:46;8208:40;8470:15;345:22;;251:132;42720:414:13;42820:7;42839:21;42863:26;42878:10;42863:14;:26::i;:::-;42839:50;;42899:12;42914:48;42938:7;42947:13;42921:40;;;;;;;;15197:19:23;;;15241:2;15232:12;;15225:28;15278:2;15269:12;;15040:247;42921:40:13;;;;-1:-1:-1;;42921:40:13;;;;;;;;;;42914:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42899:63;;42972:22;42997:57;:55;:57::i;:::-;42972:82;;43071:56;43106:14;43122:4;43071:34;:56::i;:::-;43064:63;42720:414;-1:-1:-1;;;;;;42720:414:13:o;8255:111:22:-;8304:7;8330:29;8208:40;790:15;;680:141;11479:132;11538:7;11564:40;11408:63;11470:1;11416:50;11408:63;:::i;7894:117::-;7960:44;7736:38;7988:15;345:22;;251:132;2412:104;2458:7;2484:25;2368:37;790:15;;680:141;14170:173;14217:22;;14038:51;14088:1;14046:38;14038:51;:::i;1188:102::-;1233:7;1259:24;1145:36;790:15;;680:141;1296:104;1356:37;1145:36;1381:11;345:22;;251:132;11617:122;11685:47;11408:63;11470:1;11416:50;11408:63;:::i;:::-;11726:5;345:22;;251:132;12180:126;12250:49;11965:65;12029:1;11973:52;11965:65;:::i;12695:97::-;12751:34;12514:56;12569:1;12522:43;12514:56;:::i;1931:113::-;1981:7;2007:30;1677:41;790:15;;680:141;1829:96;1885:33;1590:34;1908:9;345:22;;251:132;2050:125;2120:48;1677:41;2151:16;345:22;;251:132;13731:105;13791:38;13541:57;13597:1;13549:44;13541:57;:::i;13606:119::-;13659:7;13685:33;13541:57;13597:1;13549:44;13541:57;:::i;44226:151:13:-;-1:-1:-1;;;;;44295:22:13;;44291:80;;44340:20;;;;;;;;;;;;;;44867:344;44937:23;44963:46;:44;:46::i;:::-;44937:72;-1:-1:-1;;;;;;45023:29:13;;;45019:186;;45072:55;;-1:-1:-1;;;45072:55:13;;-1:-1:-1;;;;;2700:55:23;;;45072::13;;;2682:74:23;45072:46:13;;;;;2655:18:23;;45072:55:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;45068:127;;;45154:26;;;;;-1:-1:-1;;;;;2700:55:23;;45154:26:13;;;2682:74:23;2655:18;;45154:26:13;2536:226:23;36124:733:13;36212:37;786:2;36212:10;:37;:::i;:::-;:42;36208:99;;36277:19;;-1:-1:-1;;;36277:19:13;;;;;;;;;;;36208:99;36322:9;36317:534;36337:21;;;36317:534;;;36376:22;36401:48;36416:10;;36401:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36428:1:13;;-1:-1:-1;786:2:13;;-1:-1:-1;36401:14:13;;-1:-1:-1;36401:48:13:i;:::-;36376:73;;36463:18;36484:25;36499:9;36484:14;:25::i;:::-;36523:18;35506:64;;;6543:40:22;35506:64:13;;;;;;;;-1:-1:-1;;;;;;35506:64:13;;;;36588:19;;;;36584:79;;36634:14;;-1:-1:-1;;;36634:14:13;;;;;;;;;;;36584:79;36676:33;36692:10;36704:4;36676:15;:33::i;:::-;36728:34;36740:10;36752:9;36728:34;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;;786:2:13;36804:22;36317:534;;11000:184:22;11050:22;;10868:51;10918:1;10876:38;10868:51;:::i;13080:124::-;13135:7;13161:36;13012:60;13071:1;13020:47;13012:60;:::i;35583:169:13:-;35655:4;35678:45;:43;:45::i;2522:108:22:-;2584:39;2368:37;2610:12;345:22;;251:132;8870:125;8940:48;8691:53;8971:16;345:22;;251:132;9372:125;9442:48;9193:53;9473:16;345:22;;251:132;3007:137;3083:54;2831:44;3117:19;345:22;;251:132;9928:182;10026:77;9718:55;10072:30;345:22;;251:132;6211:136;6286:54;6007:53;6330:9;345:22;;251:132;38481:1466:13;3338:38:22;38755:31:13;;38587:57;;3338:38:22;;38771:14:13;;38755:31;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;4879:1:22;4869:11;;;4997:18;;4343:50;4997:18;;;;;;;38755:31:13;4926:17:22;;;;;4997:32;;;;5039:33;;;;;;5102:22;;5082:43;;;;;;;38755:31:13;;;;;;-1:-1:-1;38956:779:13;39002:15;38989:3;:10;;;:28;;;;;;:::i;:::-;38985:1;:32;38956:779;;;39035:22;39060:8;:19;;39080:1;39060:22;;;;;;;;:::i;:::-;;;;;;;;39035:47;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39096:22;39121:8;:19;;39141:1;39121:22;;;;;;;;:::i;:::-;;;;;;;;39096:47;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39157:31;39191:65;39217:9;684:1;39191:25;:65::i;:::-;39157:99;;39270:29;39302:56;39334:23;39302:31;:56::i;:::-;39270:88;;39372:18;39393:25;39408:9;39393:14;:25::i;:::-;39372:46;;39432:74;39450:9;39461:10;39473:9;39484:21;39432:17;:74::i;:::-;39520:48;:60;;;6543:40:22;39520:60:13;;;;;;;:73;;;;39583:10;39520:73;;;;;;39612:53;;39583:10;;39612:53;;;;39644:9;;39655;;39612:53;:::i;:::-;;;;;;;;39707:3;;;;;39021:714;;;;;38956:779;;;;39745:195;39809:14;39864:15;39844:3;:17;;;:35;;;;;;:::i;:::-;39914:15;39901:3;:10;;;:28;;;;;;:::i;:::-;5458:1:22;5448:11;;;5276:31;5594:18;;;4343:50;4277:2;5594:18;;;;;;;;;5626;5505:17;5521:1;5505:17;;;;;;;;5618:41;;;5616:44;5594:67;5739:16;5712:23;;;;5739:33;;;;;;;;;5712:61;5711:77;;;5593:196;5560:229;;5138:658;39745:195:13;38577:1370;;;38481:1466;;:::o;9780:142:22:-;9844:7;9870:45;9718:55;790:15;;680:141;3322:233:1;3444:17;3484:64;3512:14;3528:4;3542;2723;2717:11;2753:66;2741:79;;2860:4;2856:25;;;2849:4;2840:14;;2833:49;2918:66;2911:4;2902:14;;2895:90;3021:19;;3014:4;3005:14;;2998:43;3070:4;3061:14;;3054:28;3133:4;3118:20;;;3111:4;3102:14;;3095:44;3191:4;3175:14;;3165:31;;2508:704;1848:550;1932:16;2000:4;1994:11;2030:66;2025:3;2018:79;2143:14;2137:4;2133:25;2126:4;2121:3;2117:14;2110:49;2195:66;2188:4;2183:3;2179:14;2172:90;2309:4;2303;2298:3;2295:1;2287:27;2275:39;-1:-1:-1;;;;;;;2341:22:1;;2333:58;;;;;;;18123:2:23;2333:58:1;;;18105:21:23;18162:2;18142:18;;;18135:30;18201:25;18181:18;;;18174:53;18244:18;;2333:58:1;17921:347:23;13210:114:22;13274:43;13012:60;13071:1;13020:47;13012:60;:::i;35758:164:13:-;35909:6;35839:45;:43;:45::i;:::-;:51;:67;;;;;;;;;:76;;-1:-1:-1;;35839:76:13;;;;;;;;;;;-1:-1:-1;35758:164:13:o;10467:191:22:-;10519:24;;10331:53;10383:1;10339:40;10331:53;:::i;38287:188:13:-;38371:7;38405:62;1195:66;-1:-1:-1;;;;;38405:28:13;;:62;:::i;40238:1133::-;40425:21;40449:228;40503:41;40510:33;40525:10;40537:1;40540:2;40510:14;:33::i;:::-;40503:41;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40562:91;40586:53;40601:10;40613:2;40617:21;40613:2;734;40617:21;:::i;:::-;40586:14;:53::i;:::-;40569:83;;;;;40649:1;;40569:83;;;:::i;:::-;;;;-1:-1:-1;;40569:83:13;;;;;;;;;;40562:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40469:198;;;;;;15197:19:23;;;;15232:12;;15225:28;15269:12;;40469:198:13;;;-1:-1:-1;;40469:198:13;;;;;;;;;;40449:228;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40425:252;;40688:23;40714:232;40768:61;40792:11;40805:22;40775:53;;;;;;;;15197:19:23;;;15241:2;15232:12;;15225:28;15278:2;15269:12;;15040:247;40775:53:13;;;;-1:-1:-1;;40775:53:13;;;;;;;;;;40768:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40854:67;;;1002:66;40854:67;;;15197:19:23;15232:12;;;15225:28;;;40847:75:13;;15269:12:23;;40854:67:13;;;-1:-1:-1;;40854:67:13;;;;;;;;;;40847:75;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40734:202;;;;;;15197:19:23;;;;15232:12;;15225:28;15269:12;;40734:202:13;;;-1:-1:-1;;40734:202:13;;;;;;;;;;40714:232;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40688:258;-1:-1:-1;40957:21:13;40981:36;833:8;40981:21;:36;:::i;:::-;40957:60;;41045:46;:44;:46::i;:::-;-1:-1:-1;;;;;41028:72:13;;833:8;41135:10;41176:22;41159:40;;;;;;3566:19:23;;3618:4;3609:14;;3480:149;41159:40:13;;;;;;;;;;;;;41213:10;41237:15;41028:234;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41302:13;41277:21;:38;41273:92;;41338:16;;;;;;;;;;;;;;2882:119:22;2935:7;2961:33;2831:44;790:15;;680:141;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;14:180:23;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:23;;14:180;-1:-1:-1;14:180:23:o;900:347::-;951:8;961:6;1015:3;1008:4;1000:6;996:17;992:27;982:55;;1033:1;1030;1023:12;982:55;-1:-1:-1;1056:20:23;;1099:18;1088:30;;1085:50;;;1131:1;1128;1121:12;1085:50;1168:4;1160:6;1156:17;1144:29;;1220:3;1213:4;1204:6;1196;1192:19;1188:30;1185:39;1182:59;;;1237:1;1234;1227:12;1182:59;900:347;;;;;:::o;1252:409::-;1322:6;1330;1383:2;1371:9;1362:7;1358:23;1354:32;1351:52;;;1399:1;1396;1389:12;1351:52;1439:9;1426:23;1472:18;1464:6;1461:30;1458:50;;;1504:1;1501;1494:12;1458:50;1543:58;1593:7;1584:6;1573:9;1569:22;1543:58;:::i;:::-;1620:8;;1517:84;;-1:-1:-1;1252:409:23;-1:-1:-1;;;;1252:409:23:o;1666:683::-;1761:6;1769;1777;1830:2;1818:9;1809:7;1805:23;1801:32;1798:52;;;1846:1;1843;1836:12;1798:52;1882:9;1869:23;1859:33;;1943:2;1932:9;1928:18;1915:32;1966:18;2007:2;1999:6;1996:14;1993:34;;;2023:1;2020;2013:12;1993:34;2061:6;2050:9;2046:22;2036:32;;2106:7;2099:4;2095:2;2091:13;2087:27;2077:55;;2128:1;2125;2118:12;2077:55;2168:2;2155:16;2194:2;2186:6;2183:14;2180:34;;;2210:1;2207;2200:12;2180:34;2263:7;2258:2;2248:6;2245:1;2241:14;2237:2;2233:23;2229:32;2226:45;2223:65;;;2284:1;2281;2274:12;2223:65;2315:2;2311;2307:11;2297:21;;2337:6;2327:16;;;;;1666:683;;;;;:::o;2767:196::-;2835:20;;-1:-1:-1;;;;;2884:54:23;;2874:65;;2864:93;;2953:1;2950;2943:12;2864:93;2767:196;;;:::o;2968:254::-;3036:6;3044;3097:2;3085:9;3076:7;3072:23;3068:32;3065:52;;;3113:1;3110;3103:12;3065:52;3149:9;3136:23;3126:33;;3178:38;3212:2;3201:9;3197:18;3178:38;:::i;:::-;3168:48;;2968:254;;;;;:::o;3227:248::-;3295:6;3303;3356:2;3344:9;3335:7;3331:23;3327:32;3324:52;;;3372:1;3369;3362:12;3324:52;-1:-1:-1;;3395:23:23;;;3465:2;3450:18;;;3437:32;;-1:-1:-1;3227:248:23:o;3634:258::-;3706:1;3716:113;3730:6;3727:1;3724:13;3716:113;;;3806:11;;;3800:18;3787:11;;;3780:39;3752:2;3745:10;3716:113;;;3847:6;3844:1;3841:13;3838:48;;;-1:-1:-1;;3882:1:23;3864:16;;3857:27;3634:258::o;3897:316::-;3938:3;3976:5;3970:12;4003:6;3998:3;3991:19;4019:63;4075:6;4068:4;4063:3;4059:14;4052:4;4045:5;4041:16;4019:63;:::i;:::-;4127:2;4115:15;-1:-1:-1;;4111:88:23;4102:98;;;;4202:4;4098:109;;3897:316;-1:-1:-1;;3897:316:23:o;4218:580::-;4461:3;4450:9;4443:22;4424:4;4488:45;4528:3;4517:9;4513:19;4505:6;4488:45;:::i;:::-;4581:9;4573:6;4569:22;4564:2;4553:9;4549:18;4542:50;4609:32;4634:6;4626;4609:32;:::i;:::-;-1:-1:-1;;;;;4677:55:23;;;;4672:2;4657:18;;4650:83;-1:-1:-1;;4776:14:23;;4769:22;4764:2;4749:18;;;4742:50;4601:40;4218:580;-1:-1:-1;;4218:580:23:o;4803:186::-;4862:6;4915:2;4903:9;4894:7;4890:23;4886:32;4883:52;;;4931:1;4928;4921:12;4883:52;4954:29;4973:9;4954:29;:::i;4994:118::-;5080:5;5073:13;5066:21;5059:5;5056:32;5046:60;;5102:1;5099;5092:12;5117:241;5173:6;5226:2;5214:9;5205:7;5201:23;5197:32;5194:52;;;5242:1;5239;5232:12;5194:52;5281:9;5268:23;5300:28;5322:5;5300:28;:::i;:::-;5347:5;5117:241;-1:-1:-1;;;5117:241:23:o;5363:260::-;5431:6;5439;5492:2;5480:9;5471:7;5467:23;5463:32;5460:52;;;5508:1;5505;5498:12;5460:52;5531:29;5550:9;5531:29;:::i;:::-;5521:39;;5579:38;5613:2;5602:9;5598:18;5579:38;:::i;6086:328::-;6163:6;6171;6179;6232:2;6220:9;6211:7;6207:23;6203:32;6200:52;;;6248:1;6245;6238:12;6200:52;6284:9;6271:23;6261:33;;6313:38;6347:2;6336:9;6332:18;6313:38;:::i;:::-;6303:48;;6370:38;6404:2;6393:9;6389:18;6370:38;:::i;:::-;6360:48;;6086:328;;;;;:::o;6419:854::-;6527:6;6535;6543;6551;6559;6567;6620:3;6608:9;6599:7;6595:23;6591:33;6588:53;;;6637:1;6634;6627:12;6588:53;6673:9;6660:23;6650:33;;6730:2;6719:9;6715:18;6702:32;6692:42;;6785:2;6774:9;6770:18;6757:32;6808:18;6849:2;6841:6;6838:14;6835:34;;;6865:1;6862;6855:12;6835:34;6904:58;6954:7;6945:6;6934:9;6930:22;6904:58;:::i;:::-;6981:8;;-1:-1:-1;6878:84:23;-1:-1:-1;7069:2:23;7054:18;;7041:32;;-1:-1:-1;7085:16:23;;;7082:36;;;7114:1;7111;7104:12;7082:36;;7153:60;7205:7;7194:8;7183:9;7179:24;7153:60;:::i;:::-;6419:854;;;;-1:-1:-1;6419:854:23;;-1:-1:-1;6419:854:23;;7232:8;;6419:854;-1:-1:-1;;;6419:854:23:o;7278:316::-;7355:6;7363;7371;7424:2;7412:9;7403:7;7399:23;7395:32;7392:52;;;7440:1;7437;7430:12;7392:52;-1:-1:-1;;7463:23:23;;;7533:2;7518:18;;7505:32;;-1:-1:-1;7584:2:23;7569:18;;;7556:32;;7278:316;-1:-1:-1;7278:316:23:o;7791:483::-;7870:6;7878;7886;7939:2;7927:9;7918:7;7914:23;7910:32;7907:52;;;7955:1;7952;7945:12;7907:52;7978:29;7997:9;7978:29;:::i;:::-;7968:39;;8058:2;8047:9;8043:18;8030:32;8085:18;8077:6;8074:30;8071:50;;;8117:1;8114;8107:12;8071:50;8156:58;8206:7;8197:6;8186:9;8182:22;8156:58;:::i;:::-;7791:483;;8233:8;;-1:-1:-1;8130:84:23;;-1:-1:-1;;;;7791:483:23:o;8279:835::-;8419:6;8427;8435;8443;8451;8459;8467;8475;8483;8491;8544:3;8532:9;8523:7;8519:23;8515:33;8512:53;;;8561:1;8558;8551:12;8512:53;8584:29;8603:9;8584:29;:::i;:::-;8574:39;;8632:38;8666:2;8655:9;8651:18;8632:38;:::i;:::-;8622:48;;8689:38;8723:2;8712:9;8708:18;8689:38;:::i;:::-;8679:48;;8746:38;8780:2;8769:9;8765:18;8746:38;:::i;:::-;8736:48;;8803:39;8837:3;8826:9;8822:19;8803:39;:::i;:::-;8793:49;;8861:39;8895:3;8884:9;8880:19;8861:39;:::i;:::-;8851:49;;8947:3;8936:9;8932:19;8919:33;8909:43;;8999:3;8988:9;8984:19;8971:33;8961:43;;9051:3;9040:9;9036:19;9023:33;9013:43;;9103:3;9092:9;9088:19;9075:33;9065:43;;8279:835;;;;;;;;;;;;;:::o;9119:184::-;-1:-1:-1;;;9168:1:23;9161:88;9268:4;9265:1;9258:15;9292:4;9289:1;9282:15;9308:112;9340:1;9366;9356:35;;9371:18;;:::i;:::-;-1:-1:-1;9405:9:23;;9308:112::o;9425:184::-;-1:-1:-1;;;9474:1:23;9467:88;9574:4;9571:1;9564:15;9598:4;9595:1;9588:15;9614:120;9654:1;9680;9670:35;;9685:18;;:::i;:::-;-1:-1:-1;9719:9:23;;9614:120::o;9739:184::-;-1:-1:-1;;;9788:1:23;9781:88;9888:4;9885:1;9878:15;9912:4;9909:1;9902:15;9928:125;9968:4;9996:1;9993;9990:8;9987:34;;;10001:18;;:::i;:::-;-1:-1:-1;10038:9:23;;9928:125::o;10058:437::-;10137:1;10133:12;;;;10180;;;10201:61;;10255:4;10247:6;10243:17;10233:27;;10201:61;10308:2;10300:6;10297:14;10277:18;10274:38;10271:218;;-1:-1:-1;;;10342:1:23;10335:88;10446:4;10443:1;10436:15;10474:4;10471:1;10464:15;10271:218;;10058:437;;;:::o;10625:1297::-;10732:4;10761:2;10790;10779:9;10772:21;10813:1;10846:6;10840:13;10876:3;10898:1;10926:9;10922:2;10918:18;10908:28;;10986:2;10975:9;10971:18;11008;10998:61;;11052:4;11044:6;11040:17;11030:27;;10998:61;11105:2;11097:6;11094:14;11074:18;11071:38;11068:222;;-1:-1:-1;;;11139:3:23;11132:90;11245:4;11242:1;11235:15;11275:4;11270:3;11263:17;11068:222;11345:18;;;3566:19;;;3618:4;3609:14;11388:18;11415:158;;;;11587:1;11582:314;;;;11381:515;;11415:158;-1:-1:-1;;11452:9:23;11448:82;11443:3;11436:95;11560:2;11555:3;11551:12;11544:19;;11415:158;;11582:314;10572:1;10565:14;;;10609:4;10596:18;;11676:1;11690:165;11704:6;11701:1;11698:13;11690:165;;;11782:14;;11769:11;;;11762:35;11825:16;;;;11719:10;;11690:165;;;11875:11;;;-1:-1:-1;;11381:515:23;-1:-1:-1;11913:3:23;;10625:1297;-1:-1:-1;;;;;;;;;10625:1297:23:o;11927:184::-;-1:-1:-1;;;11976:1:23;11969:88;12076:4;12073:1;12066:15;12100:4;12097:1;12090:15;12772:128;12812:3;12843:1;12839:6;12836:1;12833:13;12830:39;;;12849:18;;:::i;:::-;-1:-1:-1;12885:9:23;;12772:128::o;13308:245::-;13375:6;13428:2;13416:9;13407:7;13403:23;13399:32;13396:52;;;13444:1;13441;13434:12;13396:52;13476:9;13470:16;13495:28;13517:5;13495:28;:::i;13558:228::-;13598:7;13724:1;13656:66;13652:74;13649:1;13646:81;13641:1;13634:9;13627:17;13623:105;13620:131;;;13731:18;;:::i;:::-;-1:-1:-1;13771:9:23;;13558:228::o;13791:217::-;13938:2;13927:9;13920:21;13901:4;13958:44;13998:2;13987:9;13983:18;13975:6;13958:44;:::i;14013:325::-;14101:6;14096:3;14089:19;14153:6;14146:5;14139:4;14134:3;14130:14;14117:43;;14205:1;14198:4;14189:6;14184:3;14180:16;14176:27;14169:38;14071:3;14327:4;-1:-1:-1;;14252:2:23;14244:6;14240:15;14236:88;14231:3;14227:98;14223:109;14216:116;;14013:325;;;;:::o;14343:431::-;14556:2;14545:9;14538:21;14519:4;14582:61;14639:2;14628:9;14624:18;14616:6;14608;14582:61;:::i;:::-;14691:9;14683:6;14679:22;14674:2;14663:9;14659:18;14652:50;14719:49;14761:6;14753;14745;14719:49;:::i;:::-;14711:57;14343:431;-1:-1:-1;;;;;;;14343:431:23:o;15292:274::-;15421:3;15459:6;15453:13;15475:53;15521:6;15516:3;15509:4;15501:6;15497:17;15475:53;:::i;:::-;15544:16;;;;;15292:274;-1:-1:-1;;15292:274:23:o;15571:184::-;15641:6;15694:2;15682:9;15673:7;15669:23;15665:32;15662:52;;;15710:1;15707;15700:12;15662:52;-1:-1:-1;15733:16:23;;15571:184;-1:-1:-1;15571:184:23:o;16751:441::-;16908:3;16946:6;16940:13;16962:53;17008:6;17003:3;16996:4;16988:6;16984:17;16962:53;:::i;:::-;17088:66;17076:79;;;;17037:16;;;;17062:94;;;17183:2;17172:14;;16751:441;-1:-1:-1;;16751:441:23:o;17197:337::-;-1:-1:-1;;;;;17376:6:23;17372:55;17361:9;17354:74;17464:2;17459;17448:9;17444:18;17437:30;17335:4;17484:44;17524:2;17513:9;17509:18;17501:6;17484:44;:::i;:::-;17476:52;17197:337;-1:-1:-1;;;;17197:337:23:o;17539:377::-;17732:2;17721:9;17714:21;17695:4;17758:44;17798:2;17787:9;17783:18;17775:6;17758:44;:::i;:::-;17850:9;17842:6;17838:22;17833:2;17822:9;17818:18;17811:50;17878:32;17903:6;17895;17878:32;:::i;:::-;17870:40;17539:377;-1:-1:-1;;;;;17539:377:23:o;18273:370::-;18430:3;18468:6;18462:13;18484:53;18530:6;18525:3;18518:4;18510:6;18506:17;18484:53;:::i;:::-;18559:16;;;;18584:21;;;-1:-1:-1;18632:4:23;18621:16;;18273:370;-1:-1:-1;18273:370:23:o;19087:610::-;19354:3;19343:9;19336:22;19317:4;19381:45;19421:3;19410:9;19406:19;19398:6;19381:45;:::i;:::-;19474:9;19466:6;19462:22;19457:2;19446:9;19442:18;19435:50;19508:32;19533:6;19525;19508:32;:::i;:::-;19494:46;;19588:9;19580:6;19576:22;19571:2;19560:9;19556:18;19549:50;19616:32;19641:6;19633;19616:32;:::i;:::-;19608:40;;;19684:6;19679:2;19668:9;19664:18;19657:34;19087:610;;;;;;;:::o
Swarm Source
ipfs://208f346be0441f378984c8f545f5039e03994a17e535e302b51346117d291970
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.