ETH Price: $2,423.66 (-8.19%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Force Replenish243608322026-02-01 8:30:4715 mins ago1769934647IN
0x48BA574E...67c264E7C
0 ETH0.000014090.07276058
Force Replenish243607462026-02-01 8:13:2332 mins ago1769933603IN
0x48BA574E...67c264E7C
0 ETH0.000013050.06743428
Force Replenish243606652026-02-01 7:57:1149 mins ago1769932631IN
0x48BA574E...67c264E7C
0 ETH0.000013980.07221853
Force Replenish243605782026-02-01 7:39:471 hr ago1769931587IN
0x48BA574E...67c264E7C
0 ETH0.000013860.07156798
Force Replenish243604922026-02-01 7:22:351 hr ago1769930555IN
0x48BA574E...67c264E7C
0 ETH0.00001540.07955859
Force Replenish243603972026-02-01 7:03:351 hr ago1769929415IN
0x48BA574E...67c264E7C
0 ETH0.00001290.06513328
Force Replenish243603142026-02-01 6:46:471 hr ago1769928407IN
0x48BA574E...67c264E7C
0 ETH0.00001350.06976016
Force Replenish243602312026-02-01 6:30:112 hrs ago1769927411IN
0x48BA574E...67c264E7C
0 ETH0.000015270.07887798
Force Replenish243601302026-02-01 6:09:592 hrs ago1769926199IN
0x48BA574E...67c264E7C
0 ETH0.000016030.08282007
Force Replenish243600272026-02-01 5:48:592 hrs ago1769924939IN
0x48BA574E...67c264E7C
0 ETH0.000015260.07880086
Force Replenish243599292026-02-01 5:28:593 hrs ago1769923739IN
0x48BA574E...67c264E7C
0 ETH0.000015410.0795872
Force Replenish243598282026-02-01 5:08:473 hrs ago1769922527IN
0x48BA574E...67c264E7C
0 ETH0.000015610.08062354
Force Replenish243597312026-02-01 4:49:113 hrs ago1769921351IN
0x48BA574E...67c264E7C
0 ETH0.000013790.07125009
Force Replenish243596462026-02-01 4:31:474 hrs ago1769920307IN
0x48BA574E...67c264E7C
0 ETH0.000013660.07056942
Force Replenish243595602026-02-01 4:14:354 hrs ago1769919275IN
0x48BA574E...67c264E7C
0 ETH0.00001590.08212477
Force Replenish243594602026-02-01 3:54:354 hrs ago1769918075IN
0x48BA574E...67c264E7C
0 ETH0.000012890.06656377
Force Replenish243593802026-02-01 3:38:235 hrs ago1769917103IN
0x48BA574E...67c264E7C
0 ETH0.0000140.07229163
Force Replenish243592922026-02-01 3:20:475 hrs ago1769916047IN
0x48BA574E...67c264E7C
0 ETH0.000014620.07552225
Force Replenish243592002026-02-01 3:02:235 hrs ago1769914943IN
0x48BA574E...67c264E7C
0 ETH0.000013940.07199858
Force Replenish243591122026-02-01 2:44:476 hrs ago1769913887IN
0x48BA574E...67c264E7C
0 ETH0.000014740.07612778
Force Replenish243590192026-02-01 2:26:116 hrs ago1769912771IN
0x48BA574E...67c264E7C
0 ETH0.000015410.07961295
Force Replenish243589222026-02-01 2:06:476 hrs ago1769911607IN
0x48BA574E...67c264E7C
0 ETH0.000015610.08062002
Force Replenish243588252026-02-01 1:47:116 hrs ago1769910431IN
0x48BA574E...67c264E7C
0 ETH0.00001660.08571771
Force Replenish243587212026-02-01 1:26:237 hrs ago1769909183IN
0x48BA574E...67c264E7C
0 ETH0.000014520.07328601
Force Replenish243586302026-02-01 1:08:117 hrs ago1769908091IN
0x48BA574E...67c264E7C
0 ETH0.000017370.08973208
View all transactions

Latest 23 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x3d602d80238623952025-11-23 15:10:3569 days ago1763910635
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80238535552025-11-22 9:19:5970 days ago1763803199
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80234599252025-09-28 7:10:59126 days ago1759043459
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80216948282025-01-24 14:02:11372 days ago1737727331
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80206845162024-09-05 12:54:35513 days ago1725540875
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80206216802024-08-27 18:21:47522 days ago1724782907
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80205037632024-08-11 7:04:35539 days ago1723359875
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80204630302024-08-05 14:41:59544 days ago1722868919
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80203663912024-07-23 2:57:35558 days ago1721703455
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80203547352024-07-21 11:52:35559 days ago1721562755
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80203487452024-07-20 15:49:47560 days ago1721490587
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80202777232024-07-10 17:54:47570 days ago1720634087
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80202283842024-07-03 20:30:35577 days ago1720038635
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80201385192024-06-21 7:11:47590 days ago1718953907
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80198610142024-05-13 12:11:59628 days ago1715602319
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80198439862024-05-11 3:04:11631 days ago1715396651
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80197794542024-05-02 2:27:35640 days ago1714616855
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80197086572024-04-22 4:48:59650 days ago1713761339
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80195464772024-03-30 11:29:23672 days ago1711798163
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80194489642024-03-16 17:34:23686 days ago1710610463
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80194374162024-03-15 2:35:47688 days ago1710470147
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80194120052024-03-11 12:58:11691 days ago1710161891
0x48BA574E...67c264E7C
 Contract Creation0 ETH
0x3d602d80193803932024-03-07 2:44:23696 days ago1709779463
0x48BA574E...67c264E7C
 Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x85fDD73D...B5298dfc8
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Market

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-11-20
*/

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

interface IERC20 {
    function approve(address,uint) external;
    function transfer(address,uint) external returns (bool);
    function transferFrom(address,address,uint) external returns (bool);
    function balanceOf(address) external view returns (uint);
    function allowance(address from, address to) external view returns (uint);
}

interface IMintable is IERC20 {
    function mint(address,uint) external;
    function burn(uint) external;
    function addMinter(address minter) external;
}

interface IDelegateableERC20 is IERC20 {
    function delegate(address delegatee) external;
    function delegates(address delegator) external view returns (address delegatee);
}

// Caution. We assume all failed transfers cause reverts and ignore the returned bool.
interface IOracle {
    function getPrice(address,uint) external returns (uint);
    function viewPrice(address,uint) external view returns (uint);
}

interface IEscrow {
    function initialize(IERC20 _token, address beneficiary) external;
    function onDeposit() external;
    function pay(address recipient, uint amount) external;
    function balance() external view returns (uint);
}

interface IDolaBorrowingRights {
    function onBorrow(address user, uint additionalDebt) external;
    function onRepay(address user, uint repaidDebt) external;
    function onForceReplenish(address user, address replenisher, uint amount, uint replenisherReward) external;
    function balanceOf(address user) external view returns (uint);
    function deficitOf(address user) external view returns (uint);
    function replenishmentPriceBps() external view returns (uint);
}

interface IBorrowController {
    function borrowAllowed(address msgSender, address borrower, uint amount) external returns (bool);
    function onRepay(uint amount) external;
}

contract Market {

    address public gov;
    address public lender;
    address public pauseGuardian;
    address public immutable escrowImplementation;
    IDolaBorrowingRights public immutable dbr;
    IBorrowController public borrowController;
    IERC20 public immutable dola = IERC20(0x865377367054516e17014CcdED1e7d814EDC9ce4);
    IERC20 public immutable collateral;
    IOracle public oracle;
    uint public collateralFactorBps;
    uint public replenishmentIncentiveBps;
    uint public liquidationIncentiveBps;
    uint public liquidationFeeBps;
    uint public liquidationFactorBps = 5000; // 50% by default
    bool immutable callOnDepositCallback;
    bool public borrowPaused;
    uint public totalDebt;
    uint256 internal immutable INITIAL_CHAIN_ID;
    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;
    mapping (address => IEscrow) public escrows; // user => escrow
    mapping (address => uint) public debts; // user => debt
    mapping(address => uint256) public nonces; // user => nonce

    constructor (
        address _gov,
        address _lender,
        address _pauseGuardian,
        address _escrowImplementation,
        IDolaBorrowingRights _dbr,
        IERC20 _collateral,
        IOracle _oracle,
        uint _collateralFactorBps,
        uint _replenishmentIncentiveBps,
        uint _liquidationIncentiveBps,
        bool _callOnDepositCallback
    ) {
        require(_collateralFactorBps < 10000, "Invalid collateral factor");
        require(_liquidationIncentiveBps > 0 && _liquidationIncentiveBps < 10000, "Invalid liquidation incentive");
        require(_replenishmentIncentiveBps < 10000, "Replenishment incentive must be less than 100%");
        gov = _gov;
        lender = _lender;
        pauseGuardian = _pauseGuardian;
        escrowImplementation = _escrowImplementation;
        dbr = _dbr;
        collateral = _collateral;
        oracle = _oracle;
        collateralFactorBps = _collateralFactorBps;
        replenishmentIncentiveBps = _replenishmentIncentiveBps;
        liquidationIncentiveBps = _liquidationIncentiveBps;
        callOnDepositCallback = _callOnDepositCallback;
        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
        if(collateralFactorBps > 0){
            uint unsafeLiquidationIncentive = (10000 - collateralFactorBps) * (liquidationFeeBps + 10000) / collateralFactorBps;
            require(liquidationIncentiveBps < unsafeLiquidationIncentive,  "Liquidation param allow profitable self liquidation");
        }
    }
    
    modifier onlyGov {
        require(msg.sender == gov, "Only gov can call this function");
        _;
    }

    modifier liquidationParamChecker {
        _;
        if(collateralFactorBps > 0){
            uint unsafeLiquidationIncentive = (10000 - collateralFactorBps) * (liquidationFeeBps + 10000) / collateralFactorBps;
            require(liquidationIncentiveBps < unsafeLiquidationIncentive,  "New liquidation param allow profitable self liquidation");
        }
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes("DBR MARKET")),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /**
    @notice sets the oracle to a new oracle. Only callable by governance.
    @param _oracle The new oracle conforming to the IOracle interface.
    */
    function setOracle(IOracle _oracle) public onlyGov { oracle = _oracle; }

    /**
    @notice sets the borrow controller to a new borrow controller. Only callable by governance.
    @param _borrowController The new borrow controller conforming to the IBorrowController interface.
    */
    function setBorrowController(IBorrowController _borrowController) public onlyGov { borrowController = _borrowController; }

    /**
    @notice sets the address of governance. Only callable by governance.
    @param _gov Address of the new governance.
    */
    function setGov(address _gov) public onlyGov { gov = _gov; }

    /**
    @notice sets the lender to a new lender. The lender is allowed to recall dola from the contract. Only callable by governance.
    @param _lender Address of the new lender.
    */
    function setLender(address _lender) public onlyGov { lender = _lender; }

    /**
    @notice sets the pause guardian. The pause guardian can pause borrowing. Only callable by governance.
    @param _pauseGuardian Address of the new pauseGuardian.
    */
    function setPauseGuardian(address _pauseGuardian) public onlyGov { pauseGuardian = _pauseGuardian; }
    
    /**
    @notice sets the Collateral Factor requirement of the market as measured in basis points. 1 = 0.01%. Only callable by governance.
    @dev Collateral factor mus be set below 100%
    @param _collateralFactorBps The new collateral factor as measured in basis points. 
    */
    function setCollateralFactorBps(uint _collateralFactorBps) public onlyGov liquidationParamChecker {
        require(_collateralFactorBps < 10000, "Invalid collateral factor");
        collateralFactorBps = _collateralFactorBps;
    }
    
    /**
    @notice sets the Liquidation Factor of the market as denoted in basis points.
     The liquidation Factor denotes the maximum amount of debt that can be liquidated in basis points.
     At 5000, 50% of of a borrower's underwater debt can be liquidated. Only callable by governance.
    @dev Must be set between 1 and 10000.
    @param _liquidationFactorBps The new liquidation factor in basis points. 1 = 0.01%/
    */
    function setLiquidationFactorBps(uint _liquidationFactorBps) public onlyGov {
        require(_liquidationFactorBps > 0 && _liquidationFactorBps <= 10000, "Invalid liquidation factor");
        liquidationFactorBps = _liquidationFactorBps;
    }

    /**
    @notice sets the Replenishment Incentive of the market as denoted in basis points.
     The Replenishment Incentive is the percentage paid out to replenishers on a successful forceReplenish call, denoted in basis points.
    @dev Must be set between 1 and 10000.
    @param _replenishmentIncentiveBps The new replenishment incentive set in basis points. 1 = 0.01%
    */
    function setReplenismentIncentiveBps(uint _replenishmentIncentiveBps) public onlyGov {
        require(_replenishmentIncentiveBps > 0 && _replenishmentIncentiveBps < 10000, "Invalid replenishment incentive");
        replenishmentIncentiveBps = _replenishmentIncentiveBps;
    }

    /**
    @notice sets the Liquidation Incentive of the market as denoted in basis points.
     The Liquidation Incentive is the percentage paid out to liquidators of a borrower's debt when successfully liquidated.
    @dev Must be set between 0 and 10000 - liquidation fee.
    @param _liquidationIncentiveBps The new liqudation incentive set in basis points. 1 = 0.01% 
    */
    function setLiquidationIncentiveBps(uint _liquidationIncentiveBps) public onlyGov liquidationParamChecker {
        require(_liquidationIncentiveBps > 0 && _liquidationIncentiveBps + liquidationFeeBps < 10000, "Invalid liquidation incentive");
        liquidationIncentiveBps = _liquidationIncentiveBps;
    }

    /**
    @notice sets the Liquidation Fee of the market as denoted in basis points.
     The Liquidation Fee is the percentage paid out to governance of a borrower's debt when successfully liquidated.
    @dev Must be set between 0 and 10000 - liquidation factor.
    @param _liquidationFeeBps The new liquidation fee set in basis points. 1 = 0.01%
    */
    function setLiquidationFeeBps(uint _liquidationFeeBps) public onlyGov liquidationParamChecker {
        require(_liquidationFeeBps > 0 && _liquidationFeeBps + liquidationIncentiveBps < 10000, "Invalid liquidation fee");
        liquidationFeeBps = _liquidationFeeBps;
    }

    /**
    @notice Recalls amount of DOLA to the lender.
    @param amount The amount od DOLA to recall to the the lender.
    */
    function recall(uint amount) public {
        require(msg.sender == lender, "Only lender can recall");
        dola.transfer(msg.sender, amount);
    }

    /**
    @notice Pauses or unpauses borrowing for the market. Only gov can unpause a market, while gov and pauseGuardian can pause it.
    @param _value Boolean representing the state pause state of borrows. true = paused, false = unpaused.
    */
    function pauseBorrows(bool _value) public {
        if(_value) {
            require(msg.sender == pauseGuardian || msg.sender == gov, "Only pause guardian or governance can pause");
        } else {
            require(msg.sender == gov, "Only governance can unpause");
        }
        borrowPaused = _value;
    }

    /**
    @notice Internal function for creating an escrow for users to deposit collateral in.
    @dev Uses create2 and minimal proxies to create the escrow at a deterministic address
    @param user The address of the user to create an escrow for.
    */
    function createEscrow(address user) internal returns (IEscrow instance) {
        address implementation = escrowImplementation;
        /// @solidity memory-safe-assembly
        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, user)
        }
        require(instance != IEscrow(address(0)), "ERC1167: create2 failed");
        emit CreateEscrow(user, address(instance));
    }

    /**
    @notice Internal function for getting the escrow of a user.
    @dev If the escrow doesn't exist, an escrow contract is deployed.
    @param user The address of the user owning the escrow.
    */
    function getEscrow(address user) internal returns (IEscrow) {
        if(escrows[user] != IEscrow(address(0))) return escrows[user];
        IEscrow escrow = createEscrow(user);
        escrow.initialize(collateral, user);
        escrows[user] = escrow;
        return escrow;
    }

    /**
    @notice Deposit amount of collateral into escrow
    @dev Will deposit the amount into the escrow contract.
    @param amount Amount of collateral token to deposit.
    */
    function deposit(uint amount) public {
        deposit(msg.sender, amount);
    }

    /**
    @notice Deposit and borrow in a single transaction.
    @param amountDeposit Amount of collateral token to deposit into escrow.
    @param amountBorrow Amount of DOLA to borrow.
    */
    function depositAndBorrow(uint amountDeposit, uint amountBorrow) public {
        deposit(amountDeposit);
        borrow(amountBorrow);
    }

    /**
    @notice Deposit amount of collateral into escrow on behalf of msg.sender
    @dev Will deposit the amount into the escrow contract.
    @param user User to deposit on behalf of.
    @param amount Amount of collateral token to deposit.
    */
    function deposit(address user, uint amount) public {
        IEscrow escrow = getEscrow(user);
        collateral.transferFrom(msg.sender, address(escrow), amount);
        if(callOnDepositCallback) {
            escrow.onDeposit();
        }
        emit Deposit(user, amount);
    }

    /**
    @notice View function for predicting the deterministic escrow address of a user.
    @dev Only use deposit() function for deposits and NOT the predicted escrow address unless you know what you're doing
    @param user Address of the user owning the escrow.
    */
    function predictEscrow(address user) public view returns (IEscrow predicted) {
        address implementation = escrowImplementation;
        address deployer = address(this);
        /// @solidity memory-safe-assembly
        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), user)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
    @notice View function for getting the dollar value of the user's collateral in escrow for the market.
    @param user Address of the user.
    */
    function getCollateralValue(address user) public view returns (uint) {
        IEscrow escrow = predictEscrow(user);
        uint collateralBalance = escrow.balance();
        return collateralBalance * oracle.viewPrice(address(collateral), collateralFactorBps) / 1 ether;
    }

    /**
    @notice Internal function for getting the dollar value of the user's collateral in escrow for the market.
    @dev Updates the lowest price comparisons of the pessimistic oracle
    @param user Address of the user.
    */
    function getCollateralValueInternal(address user) internal returns (uint) {
        IEscrow escrow = predictEscrow(user);
        uint collateralBalance = escrow.balance();
        return collateralBalance * oracle.getPrice(address(collateral), collateralFactorBps) / 1 ether;
    }

    /**
    @notice View function for getting the credit limit of a user.
    @dev To calculate the available credit, subtract user debt from credit limit.
    @param user Address of the user.
    */
    function getCreditLimit(address user) public view returns (uint) {
        uint collateralValue = getCollateralValue(user);
        return collateralValue * collateralFactorBps / 10000;
    }

    /**
    @notice Internal function for getting the credit limit of a user.
    @dev To calculate the available credit, subtract user debt from credit limit. Updates the pessimistic oracle.
    @param user Address of the user.
    */
    function getCreditLimitInternal(address user) internal returns (uint) {
        uint collateralValue = getCollateralValueInternal(user);
        return collateralValue * collateralFactorBps / 10000;
    }
    /**
    @notice Internal function for getting the withdrawal limit of a user.
     The withdrawal limit is how much collateral a user can withdraw before their loan would be underwater. Updates the pessimistic oracle.
    @param user Address of the user.
    */
    function getWithdrawalLimitInternal(address user) internal returns (uint) {
        IEscrow escrow = predictEscrow(user);
        uint collateralBalance = escrow.balance();
        if(collateralBalance == 0) return 0;
        uint debt = debts[user];
        if(debt == 0) return collateralBalance;
        if(collateralFactorBps == 0) return 0;
        uint minimumCollateral = debt * 1 ether / oracle.getPrice(address(collateral), collateralFactorBps) * 10000 / collateralFactorBps;
        if(collateralBalance <= minimumCollateral) return 0;
        return collateralBalance - minimumCollateral;
    }

    /**
    @notice View function for getting the withdrawal limit of a user.
     The withdrawal limit is how much collateral a user can withdraw before their loan would be underwater.
    @param user Address of the user.
    */
    function getWithdrawalLimit(address user) public view returns (uint) {
        IEscrow escrow = predictEscrow(user);
        uint collateralBalance = escrow.balance();
        if(collateralBalance == 0) return 0;
        uint debt = debts[user];
        if(debt == 0) return collateralBalance;
        if(collateralFactorBps == 0) return 0;
        uint minimumCollateral = debt * 1 ether / oracle.viewPrice(address(collateral), collateralFactorBps) * 10000 / collateralFactorBps;
        if(collateralBalance <= minimumCollateral) return 0;
        return collateralBalance - minimumCollateral;
    }

    /**
    @notice Internal function for borrowing DOLA against collateral.
    @dev This internal function is shared between the borrow and borrowOnBehalf function
    @param borrower The address of the borrower that debt will be accrued to.
    @param to The address that will receive the borrowed DOLA
    @param amount The amount of DOLA to be borrowed
    */
    function borrowInternal(address borrower, address to, uint amount) internal {
        require(!borrowPaused, "Borrowing is paused");
        if(borrowController != IBorrowController(address(0))) {
            require(borrowController.borrowAllowed(msg.sender, borrower, amount), "Denied by borrow controller");
        }
        uint credit = getCreditLimitInternal(borrower);
        debts[borrower] += amount;
        require(credit >= debts[borrower], "Exceeded credit limit");
        totalDebt += amount;
        dbr.onBorrow(borrower, amount);
        dola.transfer(to, amount);
        emit Borrow(borrower, amount);
    }

    /**
    @notice Function for borrowing DOLA.
    @dev Will borrow to msg.sender
    @param amount The amount of DOLA to be borrowed.
    */
    function borrow(uint amount) public {
        borrowInternal(msg.sender, msg.sender, amount);
    }

    /**
    @notice Function for using a signed message to borrow on behalf of an address owning an escrow with collateral.
    @dev Signed messaged can be invalidated by incrementing the nonce. Will always borrow to the msg.sender.
    @param from The address of the user being borrowed from
    @param amount The amount to be borrowed
    @param deadline Timestamp after which the signed message will be invalid
    @param v The v param of the ECDSA signature
    @param r The r param of the ECDSA signature
    @param s The s param of the ECDSA signature
    */
    function borrowOnBehalf(address from, uint amount, uint deadline, uint8 v, bytes32 r, bytes32 s) public {
        require(deadline >= block.timestamp, "DEADLINE_EXPIRED");
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "BorrowOnBehalf(address caller,address from,uint256 amount,uint256 nonce,uint256 deadline)"
                                ),
                                msg.sender,
                                from,
                                amount,
                                nonces[from]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );
            require(recoveredAddress != address(0) && recoveredAddress == from, "INVALID_SIGNER");
            borrowInternal(from, msg.sender, amount);
        }
    }

    /**
    @notice Internal function for withdrawing from the escrow
    @dev The internal function is shared by the withdraw function and withdrawOnBehalf function
    @param from The address owning the escrow to withdraw from.
    @param to The address receiving the tokens
    @param amount The amount being withdrawn.
    */
    function withdrawInternal(address from, address to, uint amount) internal {
        uint limit = getWithdrawalLimitInternal(from);
        require(limit >= amount, "Insufficient withdrawal limit");
        require(dbr.deficitOf(from) == 0, "Can't withdraw with DBR deficit");
        IEscrow escrow = getEscrow(from);
        escrow.pay(to, amount);
        emit Withdraw(from, to, amount);
    }

    /**
    @notice Function for withdrawing to msg.sender.
    @param amount Amount to withdraw.
    */
    function withdraw(uint amount) public {
        withdrawInternal(msg.sender, msg.sender, amount);
    }

    /**
    @notice Function for withdrawing maximum allowed to msg.sender.
    @dev Useful for use with escrows that continously compound tokens, so there won't be dust amounts left
    @dev Dangerous to use when the user has any amount of debt!
    */
    function withdrawMax() public {
        withdrawInternal(msg.sender, msg.sender, getWithdrawalLimitInternal(msg.sender));
    }

    /**
    @notice Function for using a signed message to withdraw on behalf of an address owning an escrow with collateral.
    @dev Signed messaged can be invalidated by incrementing the nonce. Will always withdraw to the msg.sender.
    @param from The address of the user owning the escrow being withdrawn from
    @param amount The amount to be withdrawn
    @param deadline Timestamp after which the signed message will be invalid
    @param v The v param of the ECDSA signature
    @param r The r param of the ECDSA signature
    @param s The s param of the ECDSA signature
    */
    function withdrawOnBehalf(address from, uint amount, uint deadline, uint8 v, bytes32 r, bytes32 s) public {
        require(deadline >= block.timestamp, "DEADLINE_EXPIRED");
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "WithdrawOnBehalf(address caller,address from,uint256 amount,uint256 nonce,uint256 deadline)"
                                ),
                                msg.sender,
                                from,
                                amount,
                                nonces[from]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );
            require(recoveredAddress != address(0) && recoveredAddress == from, "INVALID_SIGNER");
            withdrawInternal(from, msg.sender, amount);
        }
    }

    /**
    @notice Function for using a signed message to withdraw on behalf of an address owning an escrow with collateral.
    @dev Signed messaged can be invalidated by incrementing the nonce. Will always withdraw to the msg.sender.
    @dev Useful for use with escrows that continously compound tokens, so there won't be dust amounts left
    @dev Dangerous to use when the user has any amount of debt!
    @param from The address of the user owning the escrow being withdrawn from
    @param deadline Timestamp after which the signed message will be invalid
    @param v The v param of the ECDSA signature
    @param r The r param of the ECDSA signature
    @param s The s param of the ECDSA signature
    */
    function withdrawMaxOnBehalf(address from, uint deadline, uint8 v, bytes32 r, bytes32 s) public {
        require(deadline >= block.timestamp, "DEADLINE_EXPIRED");
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "WithdrawMaxOnBehalf(address caller,address from,uint256 nonce,uint256 deadline)"
                                ),
                                msg.sender,
                                from,
                                nonces[from]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );
            require(recoveredAddress != address(0) && recoveredAddress == from, "INVALID_SIGNER");
            withdrawInternal(from, msg.sender, getWithdrawalLimitInternal(from));
        }
    }

    /**
    @notice Function for incrementing the nonce of the msg.sender, making their latest signed message unusable.
    */
    function invalidateNonce() public {
        nonces[msg.sender]++;
    }
    
    /**
    @notice Function for repaying debt on behalf of user. Debt must be repaid in DOLA.
    @dev If the user has a DBR deficit, they risk initial debt being accrued by forced replenishments.
    @param user Address of the user whose debt is being repaid
    @param amount DOLA amount to be repaid. If set to max uint debt will be repaid in full.
    */
    function repay(address user, uint amount) public {
        uint debt = debts[user];
        if(amount == type(uint).max){
            amount = debt;
        }
        require(debt >= amount, "Repayment greater than debt");
        debts[user] -= amount;
        totalDebt -= amount;
        dbr.onRepay(user, amount);
        if(address(borrowController) != address(0)){
            borrowController.onRepay(amount);
        }
        dola.transferFrom(msg.sender, address(this), amount);
        emit Repay(user, msg.sender, amount);
    }

    /**
    @notice Bundles repayment and withdrawal into a single function call.
    @param repayAmount Amount of DOLA to be repaid
    @param withdrawAmount Amount of underlying to be withdrawn from the escrow
    */
    function repayAndWithdraw(uint repayAmount, uint withdrawAmount) public {
        repay(msg.sender, repayAmount);
        withdraw(withdrawAmount);
    }

    /**
    @notice Function for forcing a user to replenish their DBR deficit at a pre-determined price.
     The replenishment will accrue additional DOLA debt.
     On a successful call, the caller will be paid a replenishment incentive.
    @dev The function will only top the user back up to 0, meaning that the user will have a DBR deficit again in the next block.
    @param user The address of the user being forced to replenish DBR
    @param amount The amount of DBR the user will be replenished.
    */
    function forceReplenish(address user, uint amount) public {
        uint deficit = dbr.deficitOf(user);
        require(deficit > 0, "No DBR deficit");
        require(deficit >= amount, "Amount > deficit");
        uint replenishmentCost = amount * dbr.replenishmentPriceBps() / 10000;
        uint replenisherReward = replenishmentCost * replenishmentIncentiveBps / 10000;
        debts[user] += replenishmentCost;
        uint collateralValue = getCollateralValueInternal(user) * (10000 - liquidationIncentiveBps - liquidationFeeBps) / 10000;
        require(collateralValue >= debts[user], "Exceeded collateral value");
        totalDebt += replenishmentCost;
        dbr.onForceReplenish(user, msg.sender, amount, replenisherReward);
        dola.transfer(msg.sender, replenisherReward);
    }
    /**
    @notice Function for forcing a user to replenish all of their DBR deficit at a pre-determined price.
     The replenishment will accrue additional DOLA debt.
     On a successful call, the caller will be paid a replenishment incentive.
    @dev The function will only top the user back up to 0, meaning that the user will have a DBR deficit again in the next block.
    @param user The address of the user being forced to replenish DBR
    */
    function forceReplenishAll(address user) public {
        uint deficit = dbr.deficitOf(user);
        forceReplenish(user, deficit);
    }

    /**
    @notice Function for liquidating a user's under water debt. Debt is under water when the value of a user's debt is above their collateral factor.
    @param user The user to be liquidated
    @param repaidDebt Th amount of user user debt to liquidate.
    */
    function liquidate(address user, uint repaidDebt) public {
        require(repaidDebt > 0, "Must repay positive debt");
        uint debt = debts[user];
        require(getCreditLimitInternal(user) < debt, "User debt is healthy");
        require(repaidDebt <= debt * liquidationFactorBps / 10000, "Exceeded liquidation factor");
        uint price = oracle.getPrice(address(collateral), collateralFactorBps);
        uint liquidatorReward = repaidDebt * 1 ether / price;
        liquidatorReward += liquidatorReward * liquidationIncentiveBps / 10000;
        debts[user] -= repaidDebt;
        totalDebt -= repaidDebt;
        dbr.onRepay(user, repaidDebt);
        if(address(borrowController) != address(0)){
            borrowController.onRepay(repaidDebt);
        }
        dola.transferFrom(msg.sender, address(this), repaidDebt);
        IEscrow escrow = predictEscrow(user);
        escrow.pay(msg.sender, liquidatorReward);
        if(liquidationFeeBps > 0) {
            uint liquidationFee = repaidDebt * 1 ether / price * liquidationFeeBps / 10000;
            uint balance = escrow.balance();
            if(balance >= liquidationFee) {
                escrow.pay(gov, liquidationFee);
            } else if(balance > 0) {
                escrow.pay(gov, balance);
            }
        }
        emit Liquidate(user, msg.sender, repaidDebt, liquidatorReward);
    }
    
    event Deposit(address indexed account, uint amount);
    event Borrow(address indexed account, uint amount);
    event Withdraw(address indexed account, address indexed to, uint amount);
    event Repay(address indexed account, address indexed repayer, uint amount);
    event Liquidate(address indexed account, address indexed liquidator, uint repaidDebt, uint liquidatorReward);
    event CreateEscrow(address indexed user, address escrow);
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_gov","type":"address"},{"internalType":"address","name":"_lender","type":"address"},{"internalType":"address","name":"_pauseGuardian","type":"address"},{"internalType":"address","name":"_escrowImplementation","type":"address"},{"internalType":"contract IDolaBorrowingRights","name":"_dbr","type":"address"},{"internalType":"contract IERC20","name":"_collateral","type":"address"},{"internalType":"contract IOracle","name":"_oracle","type":"address"},{"internalType":"uint256","name":"_collateralFactorBps","type":"uint256"},{"internalType":"uint256","name":"_replenishmentIncentiveBps","type":"uint256"},{"internalType":"uint256","name":"_liquidationIncentiveBps","type":"uint256"},{"internalType":"bool","name":"_callOnDepositCallback","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Borrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"escrow","type":"address"}],"name":"CreateEscrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"liquidator","type":"address"},{"indexed":false,"internalType":"uint256","name":"repaidDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidatorReward","type":"uint256"}],"name":"Liquidate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"repayer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Repay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"borrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"borrowController","outputs":[{"internalType":"contract IBorrowController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"borrowOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"borrowPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collateral","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collateralFactorBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dbr","outputs":[{"internalType":"contract IDolaBorrowingRights","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"debts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountDeposit","type":"uint256"},{"internalType":"uint256","name":"amountBorrow","type":"uint256"}],"name":"depositAndBorrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dola","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"escrowImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"escrows","outputs":[{"internalType":"contract IEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"forceReplenish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"forceReplenishAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getCollateralValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getCreditLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getWithdrawalLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"invalidateNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lender","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"repaidDebt","type":"uint256"}],"name":"liquidate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liquidationFactorBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidationFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidationIncentiveBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"pauseBorrows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseGuardian","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"predictEscrow","outputs":[{"internalType":"contract IEscrow","name":"predicted","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"repay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"repayAmount","type":"uint256"},{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"repayAndWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"replenishmentIncentiveBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBorrowController","name":"_borrowController","type":"address"}],"name":"setBorrowController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collateralFactorBps","type":"uint256"}],"name":"setCollateralFactorBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lender","type":"address"}],"name":"setLender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidationFactorBps","type":"uint256"}],"name":"setLiquidationFactorBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidationFeeBps","type":"uint256"}],"name":"setLiquidationFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidationIncentiveBps","type":"uint256"}],"name":"setLiquidationIncentiveBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOracle","name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pauseGuardian","type":"address"}],"name":"setPauseGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_replenishmentIncentiveBps","type":"uint256"}],"name":"setReplenismentIncentiveBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"withdrawMaxOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"withdrawOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x61016060405273865377367054516e17014ccded1e7d814edc9ce460c0526113886009553480156200002f575f80fd5b506040516200380e3803806200380e83398101604081905262000052916200039b565b6127108410620000a95760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420636f6c6c61746572616c20666163746f720000000000000060448201526064015b60405180910390fd5b5f82118015620000ba575061271082105b620001085760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964206c69717569646174696f6e20696e63656e746976650000006044820152606401620000a0565b6127108310620001725760405162461bcd60e51b815260206004820152602e60248201527f5265706c656e6973686d656e7420696e63656e74697665206d7573742062652060448201526d6c657373207468616e203130302560901b6064820152608401620000a0565b5f80546001600160a01b03808e166001600160a01b031992831617909255600180548d8416908316179055600280548c841690831617905589821660805288821660a05287821660e0526004805492881692909116919091179055600584905560068390556007829055801515610100524661012052620002a9604080518082018252600a8152691110948813505492d15560b21b60209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f4fdd2304dc9d5c5a62691d8e7e6cf5fe56e23281f4652fb6b06b133c9c2b03b4818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b610140526005541562000372575f600554600854612710620002cc91906200048d565b600554620002dd90612710620004a9565b620002e99190620004bf565b620002f59190620004d9565b90508060075410620003705760405162461bcd60e51b815260206004820152603360248201527f4c69717569646174696f6e20706172616d20616c6c6f772070726f666974616260448201527f6c652073656c66206c69717569646174696f6e000000000000000000000000006064820152608401620000a0565b505b5050505050505050505050620004f9565b6001600160a01b038116811462000398575f80fd5b50565b5f805f805f805f805f805f6101608c8e031215620003b7575f80fd5b8b51620003c48162000383565b60208d0151909b50620003d78162000383565b60408d0151909a50620003ea8162000383565b60608d0151909950620003fd8162000383565b60808d0151909850620004108162000383565b60a08d0151909750620004238162000383565b60c08d0151909650620004368162000383565b8095505060e08c015193506101008c015192506101208c015191506101408c0151801515811462000465575f80fd5b809150509295989b509295989b9093969950565b634e487b7160e01b5f52601160045260245ffd5b80820180821115620004a357620004a362000479565b92915050565b81810381811115620004a357620004a362000479565b8082028115828204841417620004a357620004a362000479565b5f82620004f457634e487b7160e01b5f52601260045260245ffd5b500490565b60805160a05160c05160e051610100516101205161014051613229620005e55f395f61114d01525f61106701525f61125a01525f818161067f015281816111de01528181611b7a01528181611d66015281816122ff0152818161269b01528181612c490152612d8d01525f81816106ca01528181610c5b01528181611758015281816119a901528181611f5b0152612b2601525f818161061f0152818161072901528181610b73015281816114250152818161151b015281816116ec01528181611e730152818161275a0152612aad01525f818161047c0152818161137f0152612dfb01526132295ff3fe608060405234801561000f575f80fd5b50600436106102e5575f3560e01c80637164695a11610195578063c5ebeaec116100e4578063d8dfeb451161009e578063e5cd8b6a11610079578063e5cd8b6a146106bd578063ea0593e4146106c5578063ebc9b94d146106ec578063fc7b9c18146106ff575f80fd5b8063d8dfeb451461067a578063e00f0a99146106a1578063e031a824146106b4575f80fd5b8063c5ebeaec146105f4578063c74e6d8014610607578063c7ed69cd1461061a578063c801861914610641578063cfad57a214610654578063d1220a3c14610667575f80fd5b80638951b0541161014f578063b75061bb1161012a578063b75061bb1461059e578063bcb4bbea146105b1578063bcbaf487146105ce578063bcead63e146105e1575f80fd5b80638951b0541461056557806397904e4214610578578063b6b55f251461058b575f80fd5b80637164695a146104f15780637adbf973146105045780637d32e793146105175780637dc0d1d01461052a5780637ecebe001461053d5780637f5007ed1461055c575f80fd5b80633644e515116102515780634ca8ff5a1161020b578063651afe83116101e6578063651afe83146104b95780636f1c4839146104cc5780636f48fbb6146104d55780636f8dd24c146104e8575f80fd5b80634ca8ff5a146104775780634ef64ee71461049e5780635a57b46f146104b1575f80fd5b80633644e515146104055780633e5537561461040d57806346e368d414610416578063477230b21461042957806347e7ef241461045157806348bde20c14610464575f80fd5b806324a3d622116102a257806324a3d622146103795780632c333e251461038c5780632e1a7d4d146103ad5780632ecd4e7d146103c057806334734dd3146103df5780633525f591146103f2575f80fd5b80630e81c403146102e957806312d43a51146102fe5780631e5a3a4b1461032d5780631ef08b751461034057806322867d7814610353578063236331e914610366575b5f80fd5b6102fc6102f7366004612ef7565b610708565b005b5f54610310906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6102fc61033b366004612f27565b6107a4565b6102fc61034e366004612f73565b610928565b6102fc610361366004612fc9565b610aa4565b6102fc610374366004612ef7565b610d1a565b600254610310906001600160a01b031681565b61039f61039a366004612ef7565b610d65565b604051908152602001610324565b6102fc6103bb366004612ff3565b610d94565b61039f6103ce366004612ef7565b600d6020525f908152604090205481565b6102fc6103ed366004612ff3565b610da2565b6102fc610400366004612f73565b610ef1565b61039f611064565b61039f60065481565b6102fc610424366004612ef7565b61116f565b610310610437366004612ef7565b600c6020525f90815260409020546001600160a01b031681565b6102fc61045f366004612fc9565b6111ba565b6102fc610472366004612ef7565b611315565b6103107f000000000000000000000000000000000000000000000000000000000000000081565b6103106104ac366004612ef7565b611360565b6102fc6113e3565b6102fc6104c7366004612fc9565b611404565b61039f60095481565b6102fc6104e3366004612ff3565b6117d1565b61039f60075481565b6102fc6104ff366004612ff3565b61185b565b6102fc610512366004612ef7565b6118f4565b6102fc610525366004612ff3565b61193f565b600454610310906001600160a01b031681565b61039f61054b366004612ef7565b600e6020525f908152604090205481565b61039f60055481565b6102fc610573366004612ff3565b611a20565b61039f610586366004612ef7565b611ad3565b6102fc610599366004612ff3565b611bfd565b6102fc6105ac36600461300a565b611c07565b600a546105be9060ff1681565b6040519015158152602001610324565b6102fc6105dc366004612fc9565b611c19565b600154610310906001600160a01b031681565b6102fc610602366004612ff3565b61220a565b61039f610615366004612ef7565b612215565b6103107f000000000000000000000000000000000000000000000000000000000000000081565b6102fc61064f366004613037565b6123c0565b6102fc610662366004612ef7565b6124b9565b6102fc610675366004612ff3565b612503565b6103107f000000000000000000000000000000000000000000000000000000000000000081565b600354610310906001600160a01b031681565b61039f60085481565b6102fc61258e565b6103107f000000000000000000000000000000000000000000000000000000000000000081565b6102fc6106fa36600461300a565b61259e565b61039f600b5481565b604051630d9167c160e21b81526001600160a01b0382811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906336459f0490602401602060405180830381865afa158015610770573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107949190613052565b90506107a08282611404565b5050565b428410156107cd5760405162461bcd60e51b81526004016107c490613069565b60405180910390fd5b5f60016107d8611064565b6001600160a01b0388165f818152600e602090815260409182902080546001810190915582517f8d1d73617555ca8eaa7b0817ffc5bca6d6180656a9e3bc96c20620c10b2254088184015233818501526060810194909452608084015260a08084018b90528251808503909101815260c084019092528151910120610860929160e001613093565b60408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156108bb573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116158015906108f15750856001600160a01b0316816001600160a01b0316145b61090d5760405162461bcd60e51b81526004016107c4906130ae565b610920863361091b896125b1565b6126df565b505050505050565b428410156109485760405162461bcd60e51b81526004016107c490613069565b5f6001610953611064565b6001600160a01b0389165f818152600e602090815260409182902080546001810190915582517f1f0bc49e000c018ca72680800f3b2f7ce61e76471cce3756387071d004b0eee98184015233818501526060810194909452608084018c905260a084015260c08084018b90528251808503909101815260e0840190925281519101206109e3929161010001613093565b60408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610a3e573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590610a745750866001600160a01b0316816001600160a01b0316145b610a905760405162461bcd60e51b81526004016107c4906130ae565b610a9b8733886128cc565b50505050505050565b6001600160a01b0382165f908152600d602052604090205460018201610ac8578091505b81811015610b185760405162461bcd60e51b815260206004820152601b60248201527f52657061796d656e742067726561746572207468616e2064656274000000000060448201526064016107c4565b6001600160a01b0383165f908152600d602052604081208054849290610b3f9084906130ea565b9250508190555081600b5f828254610b5791906130ea565b9091555050604051631b1a58c960e31b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d8d2c64890610baa9086908690600401613103565b5f604051808303815f87803b158015610bc1575f80fd5b505af1158015610bd3573d5f803e3d5ffd5b50506003546001600160a01b0316159150610c4490505760035460405163081e664160e01b8152600481018490526001600160a01b039091169063081e6641906024015f604051808303815f87803b158015610c2d575f80fd5b505af1158015610c3f573d5f803e3d5ffd5b505050505b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610c949033903090879060040161311c565b6020604051808303815f875af1158015610cb0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cd49190613140565b5060405182815233906001600160a01b038516907f05f2eeda0e08e4b437f487c8d7d29b14537d15e3488170dc3de5dbdf8dac46849060200160405180910390a3505050565b5f546001600160a01b03163314610d435760405162461bcd60e51b81526004016107c49061315b565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b5f80610d7083611ad3565b905061271060055482610d839190613192565b610d8d91906131a9565b9392505050565b610d9f3333836126df565b50565b5f546001600160a01b03163314610dcb5760405162461bcd60e51b81526004016107c49061315b565b5f81118015610de8575061271060085482610de691906131c8565b105b610e345760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964206c69717569646174696f6e20696e63656e7469766500000060448201526064016107c4565b600781905560055415610d9f575f600554600854612710610e5591906131c8565b600554610e64906127106130ea565b610e6e9190613192565b610e7891906131a9565b905080600754106107a05760405162461bcd60e51b815260206004820152603760248201527f4e6577206c69717569646174696f6e20706172616d20616c6c6f772070726f6660448201527f697461626c652073656c66206c69717569646174696f6e00000000000000000060648201526084016107c4565b42841015610f115760405162461bcd60e51b81526004016107c490613069565b5f6001610f1c611064565b6001600160a01b0389165f818152600e602090815260409182902080546001810190915582517f7dbda1635348f4206be1d85078da9f4a74703081e4fa6e174f3fd066c56189658184015233818501526060810194909452608084018c905260a084015260c08084018b90528251808503909101815260e084019092528151910120610fac929161010001613093565b60408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015611007573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b0381161580159061103d5750866001600160a01b0316816001600160a01b0316145b6110595760405162461bcd60e51b81526004016107c4906130ae565b610a9b8733886126df565b5f7f0000000000000000000000000000000000000000000000000000000000000000461461114a5750604080518082018252600a8152691110948813505492d15560b21b60209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f4fdd2304dc9d5c5a62691d8e7e6cf5fe56e23281f4652fb6b06b133c9c2b03b4818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b507f000000000000000000000000000000000000000000000000000000000000000090565b5f546001600160a01b031633146111985760405162461bcd60e51b81526004016107c49061315b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b5f6111c483612be9565b6040516323b872dd60e01b81529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906112179033908590879060040161311c565b6020604051808303815f875af1158015611233573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112579190613140565b507f0000000000000000000000000000000000000000000000000000000000000000156112cd57806001600160a01b03166312c93f596040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156112b6575f80fd5b505af11580156112c8573d5f803e3d5ffd5b505050505b826001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c8360405161130891815260200190565b60405180910390a2505050565b5f546001600160a01b0316331461133e5760405162461bcd60e51b81526004016107c49061315b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81527f0000000000000000000000000000000000000000000000000000000000000000606090811b60148301526f5af43d82803e903d91602b57fd5bf3ff60801b602883015230901b6038820152604c8101919091526037808220606c830152605591012090565b335f908152600e602052604081208054916113fd836131db565b9190505550565b604051630d9167c160e21b81526001600160a01b0383811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906336459f0490602401602060405180830381865afa15801561146c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114909190613052565b90505f81116114d25760405162461bcd60e51b815260206004820152600e60248201526d139bc8111094881919599a58da5d60921b60448201526064016107c4565b818110156115155760405162461bcd60e51b815260206004820152601060248201526f105b5bdd5b9d080f881919599a58da5d60821b60448201526064016107c4565b5f6127107f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a10f84cb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611575573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115999190613052565b6115a39085613192565b6115ad91906131a9565b90505f612710600654836115c19190613192565b6115cb91906131a9565b6001600160a01b0386165f908152600d60205260408120805492935084929091906115f79084906131c8565b90915550506008546007545f916127109161161290836130ea565b61161c91906130ea565b61162588612ce6565b61162f9190613192565b61163991906131a9565b6001600160a01b0387165f908152600d60205260409020549091508110156116a35760405162461bcd60e51b815260206004820152601960248201527f457863656564656420636f6c6c61746572616c2076616c75650000000000000060448201526064016107c4565b82600b5f8282546116b491906131c8565b909155505060405163b2c0877560e01b81526001600160a01b03878116600483015233602483015260448201879052606482018490527f0000000000000000000000000000000000000000000000000000000000000000169063b2c08775906084015f604051808303815f87803b15801561172d575f80fd5b505af115801561173f573d5f803e3d5ffd5b505060405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016925063a9059cbb91506117919033908690600401613103565b6020604051808303815f875af11580156117ad573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a9b9190613140565b5f546001600160a01b031633146117fa5760405162461bcd60e51b81526004016107c49061315b565b5f8111801561180a575061271081105b6118565760405162461bcd60e51b815260206004820152601f60248201527f496e76616c6964207265706c656e6973686d656e7420696e63656e746976650060448201526064016107c4565b600655565b5f546001600160a01b031633146118845760405162461bcd60e51b81526004016107c49061315b565b61271081106118d55760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420636f6c6c61746572616c20666163746f720000000000000060448201526064016107c4565b60058190558015610d9f575f600554600854612710610e5591906131c8565b5f546001600160a01b0316331461191d5760405162461bcd60e51b81526004016107c49061315b565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146119925760405162461bcd60e51b815260206004820152601660248201527513db9b1e481b195b99195c8818d85b881c9958d85b1b60521b60448201526064016107c4565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906119e09033908590600401613103565b6020604051808303815f875af11580156119fc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107a09190613140565b5f546001600160a01b03163314611a495760405162461bcd60e51b81526004016107c49061315b565b5f81118015611a66575061271060075482611a6491906131c8565b105b611ab25760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206c69717569646174696f6e2066656500000000000000000060448201526064016107c4565b600881905560055415610d9f575f600554600854612710610e5591906131c8565b5f80611ade83611360565b90505f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b1d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b419190613052565b6004805460055460405163949c4fa360e01b8152939450670de0b6b3a7640000936001600160a01b039092169263949c4fa392611ba2927f000000000000000000000000000000000000000000000000000000000000000092909101613103565b602060405180830381865afa158015611bbd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611be19190613052565b611beb9083613192565b611bf591906131a9565b949350505050565b610d9f33826111ba565b611c1082611bfd565b6107a08161220a565b5f8111611c685760405162461bcd60e51b815260206004820152601860248201527f4d75737420726570617920706f7369746976652064656274000000000000000060448201526064016107c4565b6001600160a01b0382165f908152600d602052604090205480611c8a84612dd1565b10611cce5760405162461bcd60e51b8152602060048201526014602482015273557365722064656274206973206865616c74687960601b60448201526064016107c4565b61271060095482611cdf9190613192565b611ce991906131a9565b821115611d385760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206c69717569646174696f6e20666163746f72000000000060448201526064016107c4565b6004805460055460405163449e815d60e01b81525f936001600160a01b039093169263449e815d92611d8c927f00000000000000000000000000000000000000000000000000000000000000009201613103565b6020604051808303815f875af1158015611da8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611dcc9190613052565b90505f81611de285670de0b6b3a7640000613192565b611dec91906131a9565b905061271060075482611dff9190613192565b611e0991906131a9565b611e1390826131c8565b6001600160a01b0386165f908152600d6020526040812080549293508692909190611e3f9084906130ea565b9250508190555083600b5f828254611e5791906130ea565b9091555050604051631b1a58c960e31b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d8d2c64890611eaa9088908890600401613103565b5f604051808303815f87803b158015611ec1575f80fd5b505af1158015611ed3573d5f803e3d5ffd5b50506003546001600160a01b0316159150611f4490505760035460405163081e664160e01b8152600481018690526001600160a01b039091169063081e6641906024015f604051808303815f87803b158015611f2d575f80fd5b505af1158015611f3f573d5f803e3d5ffd5b505050505b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90611f949033903090899060040161311c565b6020604051808303815f875af1158015611fb0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fd49190613140565b505f611fdf86611360565b604051636203b43b60e11b81529091506001600160a01b0382169063c4076876906120109033908690600401613103565b5f604051808303815f87803b158015612027575f80fd5b505af1158015612039573d5f803e3d5ffd5b505050505f60085411156121bc575f6127106008548588670de0b6b3a76400006120639190613192565b61206d91906131a9565b6120779190613192565b61208191906131a9565b90505f826001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120e49190613052565b9050818110612152575f54604051636203b43b60e11b81526001600160a01b038581169263c40768769261212092909116908690600401613103565b5f604051808303815f87803b158015612137575f80fd5b505af1158015612149573d5f803e3d5ffd5b505050506121b9565b80156121b9575f54604051636203b43b60e11b81526001600160a01b038581169263c40768769261218b92909116908590600401613103565b5f604051808303815f87803b1580156121a2575f80fd5b505af11580156121b4573d5f803e3d5ffd5b505050505b50505b604080518681526020810184905233916001600160a01b038916917ff3fa0eaee8f258c23b013654df25d1527f98a5c7ccd5e951dd77caca400ef972910160405180910390a3505050505050565b610d9f3333836128cc565b5f8061222083611360565b90505f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561225f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122839190613052565b9050805f0361229557505f9392505050565b6001600160a01b0384165f908152600d6020526040812054908190036122bd57509392505050565b6005545f036122d057505f949350505050565b6005546004805460405163949c4fa360e01b81525f93926001600160a01b039092169163949c4fa391612327917f000000000000000000000000000000000000000000000000000000000000000091869101613103565b602060405180830381865afa158015612342573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123669190613052565b61237884670de0b6b3a7640000613192565b61238291906131a9565b61238e90612710613192565b61239891906131a9565b90508083116123ac57505f95945050505050565b6123b681846130ea565b9695505050505050565b801561244d576002546001600160a01b03163314806123e857505f546001600160a01b031633145b6124485760405162461bcd60e51b815260206004820152602b60248201527f4f6e6c7920706175736520677561726469616e206f7220676f7665726e616e6360448201526a652063616e20706175736560a81b60648201526084016107c4565b6124a6565b5f546001600160a01b031633146124a65760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920676f7665726e616e63652063616e20756e7061757365000000000060448201526064016107c4565b600a805460ff1916911515919091179055565b5f546001600160a01b031633146124e25760405162461bcd60e51b81526004016107c49061315b565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f546001600160a01b0316331461252c5760405162461bcd60e51b81526004016107c49061315b565b5f8111801561253d57506127108111155b6125895760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964206c69717569646174696f6e20666163746f7200000000000060448201526064016107c4565b600955565b61259c333361091b336125b1565b565b6125a83383610aa4565b6107a081610d94565b5f806125bc83611360565b90505f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156125fb573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061261f9190613052565b9050805f0361263157505f9392505050565b6001600160a01b0384165f908152600d60205260408120549081900361265957509392505050565b6005545f0361266c57505f949350505050565b6005546004805460405163449e815d60e01b81525f93926001600160a01b039092169163449e815d916126c3917f000000000000000000000000000000000000000000000000000000000000000091869101613103565b6020604051808303815f875af1158015612342573d5f803e3d5ffd5b5f6126e9846125b1565b90508181101561273b5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e74207769746864726177616c206c696d697400000060448201526064016107c4565b604051630d9167c160e21b81526001600160a01b0385811660048301527f000000000000000000000000000000000000000000000000000000000000000016906336459f0490602401602060405180830381865afa15801561279f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127c39190613052565b156128105760405162461bcd60e51b815260206004820152601f60248201527f43616e277420776974686472617720776974682044425220646566696369740060448201526064016107c4565b5f61281a85612be9565b604051636203b43b60e11b81529091506001600160a01b0382169063c40768769061284b9087908790600401613103565b5f604051808303815f87803b158015612862575f80fd5b505af1158015612874573d5f803e3d5ffd5b50505050836001600160a01b0316856001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb856040516128bd91815260200190565b60405180910390a35050505050565b600a5460ff16156129155760405162461bcd60e51b8152602060048201526013602482015272109bdc9c9bddda5b99c81a5cc81c185d5cd959606a1b60448201526064016107c4565b6003546001600160a01b0316156129e65760035460405163368f515360e21b81526001600160a01b039091169063da3d454c9061295a9033908790869060040161311c565b6020604051808303815f875af1158015612976573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061299a9190613140565b6129e65760405162461bcd60e51b815260206004820152601b60248201527f44656e69656420627920626f72726f7720636f6e74726f6c6c6572000000000060448201526064016107c4565b5f6129f084612dd1565b6001600160a01b0385165f908152600d6020526040812080549293508492909190612a1c9084906131c8565b90915550506001600160a01b0384165f908152600d6020526040902054811015612a805760405162461bcd60e51b8152602060048201526015602482015274115e18d9595919590818dc99591a5d081b1a5b5a5d605a1b60448201526064016107c4565b81600b5f828254612a9191906131c8565b909155505060405163f7f11fb760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f7f11fb790612ae49087908690600401613103565b5f604051808303815f87803b158015612afb575f80fd5b505af1158015612b0d573d5f803e3d5ffd5b505060405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016925063a9059cbb9150612b5f9086908690600401613103565b6020604051808303815f875af1158015612b7b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b9f9190613140565b50836001600160a01b03167fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a3675083604051612bdb91815260200190565b60405180910390a250505050565b6001600160a01b038181165f908152600c602052604081205490911615612c2857506001600160a01b039081165f908152600c60205260409020541690565b5f612c3283612ddc565b60405163485cc95560e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015285811660248301529192509082169063485cc955906044015f604051808303815f87803b158015612c9e575f80fd5b505af1158015612cb0573d5f803e3d5ffd5b505050506001600160a01b039283165f908152600c6020526040902080546001600160a01b031916938216939093179092555090565b5f80612cf183611360565b90505f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d30573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d549190613052565b6004805460055460405163449e815d60e01b8152939450670de0b6b3a7640000936001600160a01b039092169263449e815d92612db5927f000000000000000000000000000000000000000000000000000000000000000092909101613103565b6020604051808303815f875af1158015611bbd573d5f803e3d5ffd5b5f80610d7083612ce6565b604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81527f0000000000000000000000000000000000000000000000000000000000000000606081901b60148301526e5af43d82803e903d91602b57fd5bf360881b60288301525f918360378285f59250506001600160a01b038216612e9d5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016107c4565b6040516001600160a01b0383811682528416907f1cfd6e6fe6d92716198ef80381fd40e4338b9a461cc4fc235c51b152f7f830159060200160405180910390a250919050565b6001600160a01b0381168114610d9f575f80fd5b5f60208284031215612f07575f80fd5b8135610d8d81612ee3565b803560ff81168114612f22575f80fd5b919050565b5f805f805f60a08688031215612f3b575f80fd5b8535612f4681612ee3565b945060208601359350612f5b60408701612f12565b94979396509394606081013594506080013592915050565b5f805f805f8060c08789031215612f88575f80fd5b8635612f9381612ee3565b95506020870135945060408701359350612faf60608801612f12565b92506080870135915060a087013590509295509295509295565b5f8060408385031215612fda575f80fd5b8235612fe581612ee3565b946020939093013593505050565b5f60208284031215613003575f80fd5b5035919050565b5f806040838503121561301b575f80fd5b50508035926020909101359150565b8015158114610d9f575f80fd5b5f60208284031215613047575f80fd5b8135610d8d8161302a565b5f60208284031215613062575f80fd5b5051919050565b60208082526010908201526f111150511312539157d156141254915160821b604082015260600190565b61190160f01b81526002810192909252602282015260420190565b6020808252600e908201526d24a72b20a624a22fa9a4a3a722a960911b604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b818103818111156130fd576130fd6130d6565b92915050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b5f60208284031215613150575f80fd5b8151610d8d8161302a565b6020808252601f908201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e00604082015260600190565b80820281158282048414176130fd576130fd6130d6565b5f826131c357634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156130fd576130fd6130d6565b5f600182016131ec576131ec6130d6565b506001019056fea2646970667358221220bc34eb91aee123effc6e41577addfec757512077cc1343ba76ecc5d0e2c9d6fa64736f6c63430008140033000000000000000000000000926df14a23be491164dcf93f4c468a50ef659d5b0000000000000000000000002b34548b865ad66a2b046cb82e59ee43f75b90fd000000000000000000000000e3ed95e130ad9e15643f5a5f232a3dae980784cd000000000000000000000000c06053fcad0a0df7cc32289a135bbea9030c010f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d7100000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000abe146cf570fd27ddd985895ce9b138a7110cce80000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106102e5575f3560e01c80637164695a11610195578063c5ebeaec116100e4578063d8dfeb451161009e578063e5cd8b6a11610079578063e5cd8b6a146106bd578063ea0593e4146106c5578063ebc9b94d146106ec578063fc7b9c18146106ff575f80fd5b8063d8dfeb451461067a578063e00f0a99146106a1578063e031a824146106b4575f80fd5b8063c5ebeaec146105f4578063c74e6d8014610607578063c7ed69cd1461061a578063c801861914610641578063cfad57a214610654578063d1220a3c14610667575f80fd5b80638951b0541161014f578063b75061bb1161012a578063b75061bb1461059e578063bcb4bbea146105b1578063bcbaf487146105ce578063bcead63e146105e1575f80fd5b80638951b0541461056557806397904e4214610578578063b6b55f251461058b575f80fd5b80637164695a146104f15780637adbf973146105045780637d32e793146105175780637dc0d1d01461052a5780637ecebe001461053d5780637f5007ed1461055c575f80fd5b80633644e515116102515780634ca8ff5a1161020b578063651afe83116101e6578063651afe83146104b95780636f1c4839146104cc5780636f48fbb6146104d55780636f8dd24c146104e8575f80fd5b80634ca8ff5a146104775780634ef64ee71461049e5780635a57b46f146104b1575f80fd5b80633644e515146104055780633e5537561461040d57806346e368d414610416578063477230b21461042957806347e7ef241461045157806348bde20c14610464575f80fd5b806324a3d622116102a257806324a3d622146103795780632c333e251461038c5780632e1a7d4d146103ad5780632ecd4e7d146103c057806334734dd3146103df5780633525f591146103f2575f80fd5b80630e81c403146102e957806312d43a51146102fe5780631e5a3a4b1461032d5780631ef08b751461034057806322867d7814610353578063236331e914610366575b5f80fd5b6102fc6102f7366004612ef7565b610708565b005b5f54610310906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6102fc61033b366004612f27565b6107a4565b6102fc61034e366004612f73565b610928565b6102fc610361366004612fc9565b610aa4565b6102fc610374366004612ef7565b610d1a565b600254610310906001600160a01b031681565b61039f61039a366004612ef7565b610d65565b604051908152602001610324565b6102fc6103bb366004612ff3565b610d94565b61039f6103ce366004612ef7565b600d6020525f908152604090205481565b6102fc6103ed366004612ff3565b610da2565b6102fc610400366004612f73565b610ef1565b61039f611064565b61039f60065481565b6102fc610424366004612ef7565b61116f565b610310610437366004612ef7565b600c6020525f90815260409020546001600160a01b031681565b6102fc61045f366004612fc9565b6111ba565b6102fc610472366004612ef7565b611315565b6103107f000000000000000000000000c06053fcad0a0df7cc32289a135bbea9030c010f81565b6103106104ac366004612ef7565b611360565b6102fc6113e3565b6102fc6104c7366004612fc9565b611404565b61039f60095481565b6102fc6104e3366004612ff3565b6117d1565b61039f60075481565b6102fc6104ff366004612ff3565b61185b565b6102fc610512366004612ef7565b6118f4565b6102fc610525366004612ff3565b61193f565b600454610310906001600160a01b031681565b61039f61054b366004612ef7565b600e6020525f908152604090205481565b61039f60055481565b6102fc610573366004612ff3565b611a20565b61039f610586366004612ef7565b611ad3565b6102fc610599366004612ff3565b611bfd565b6102fc6105ac36600461300a565b611c07565b600a546105be9060ff1681565b6040519015158152602001610324565b6102fc6105dc366004612fc9565b611c19565b600154610310906001600160a01b031681565b6102fc610602366004612ff3565b61220a565b61039f610615366004612ef7565b612215565b6103107f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d71081565b6102fc61064f366004613037565b6123c0565b6102fc610662366004612ef7565b6124b9565b6102fc610675366004612ff3565b612503565b6103107f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59981565b600354610310906001600160a01b031681565b61039f60085481565b6102fc61258e565b6103107f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce481565b6102fc6106fa36600461300a565b61259e565b61039f600b5481565b604051630d9167c160e21b81526001600160a01b0382811660048301525f917f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710909116906336459f0490602401602060405180830381865afa158015610770573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107949190613052565b90506107a08282611404565b5050565b428410156107cd5760405162461bcd60e51b81526004016107c490613069565b60405180910390fd5b5f60016107d8611064565b6001600160a01b0388165f818152600e602090815260409182902080546001810190915582517f8d1d73617555ca8eaa7b0817ffc5bca6d6180656a9e3bc96c20620c10b2254088184015233818501526060810194909452608084015260a08084018b90528251808503909101815260c084019092528151910120610860929160e001613093565b60408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156108bb573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116158015906108f15750856001600160a01b0316816001600160a01b0316145b61090d5760405162461bcd60e51b81526004016107c4906130ae565b610920863361091b896125b1565b6126df565b505050505050565b428410156109485760405162461bcd60e51b81526004016107c490613069565b5f6001610953611064565b6001600160a01b0389165f818152600e602090815260409182902080546001810190915582517f1f0bc49e000c018ca72680800f3b2f7ce61e76471cce3756387071d004b0eee98184015233818501526060810194909452608084018c905260a084015260c08084018b90528251808503909101815260e0840190925281519101206109e3929161010001613093565b60408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610a3e573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590610a745750866001600160a01b0316816001600160a01b0316145b610a905760405162461bcd60e51b81526004016107c4906130ae565b610a9b8733886128cc565b50505050505050565b6001600160a01b0382165f908152600d602052604090205460018201610ac8578091505b81811015610b185760405162461bcd60e51b815260206004820152601b60248201527f52657061796d656e742067726561746572207468616e2064656274000000000060448201526064016107c4565b6001600160a01b0383165f908152600d602052604081208054849290610b3f9084906130ea565b9250508190555081600b5f828254610b5791906130ea565b9091555050604051631b1a58c960e31b81526001600160a01b037f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710169063d8d2c64890610baa9086908690600401613103565b5f604051808303815f87803b158015610bc1575f80fd5b505af1158015610bd3573d5f803e3d5ffd5b50506003546001600160a01b0316159150610c4490505760035460405163081e664160e01b8152600481018490526001600160a01b039091169063081e6641906024015f604051808303815f87803b158015610c2d575f80fd5b505af1158015610c3f573d5f803e3d5ffd5b505050505b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce416906323b872dd90610c949033903090879060040161311c565b6020604051808303815f875af1158015610cb0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cd49190613140565b5060405182815233906001600160a01b038516907f05f2eeda0e08e4b437f487c8d7d29b14537d15e3488170dc3de5dbdf8dac46849060200160405180910390a3505050565b5f546001600160a01b03163314610d435760405162461bcd60e51b81526004016107c49061315b565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b5f80610d7083611ad3565b905061271060055482610d839190613192565b610d8d91906131a9565b9392505050565b610d9f3333836126df565b50565b5f546001600160a01b03163314610dcb5760405162461bcd60e51b81526004016107c49061315b565b5f81118015610de8575061271060085482610de691906131c8565b105b610e345760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964206c69717569646174696f6e20696e63656e7469766500000060448201526064016107c4565b600781905560055415610d9f575f600554600854612710610e5591906131c8565b600554610e64906127106130ea565b610e6e9190613192565b610e7891906131a9565b905080600754106107a05760405162461bcd60e51b815260206004820152603760248201527f4e6577206c69717569646174696f6e20706172616d20616c6c6f772070726f6660448201527f697461626c652073656c66206c69717569646174696f6e00000000000000000060648201526084016107c4565b42841015610f115760405162461bcd60e51b81526004016107c490613069565b5f6001610f1c611064565b6001600160a01b0389165f818152600e602090815260409182902080546001810190915582517f7dbda1635348f4206be1d85078da9f4a74703081e4fa6e174f3fd066c56189658184015233818501526060810194909452608084018c905260a084015260c08084018b90528251808503909101815260e084019092528151910120610fac929161010001613093565b60408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015611007573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b0381161580159061103d5750866001600160a01b0316816001600160a01b0316145b6110595760405162461bcd60e51b81526004016107c4906130ae565b610a9b8733886126df565b5f7f0000000000000000000000000000000000000000000000000000000000000001461461114a5750604080518082018252600a8152691110948813505492d15560b21b60209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f4fdd2304dc9d5c5a62691d8e7e6cf5fe56e23281f4652fb6b06b133c9c2b03b4818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b507fed03151cf71939d059f26e7b208233f12f8d400aa28a1d00edc3c03063a4b52f90565b5f546001600160a01b031633146111985760405162461bcd60e51b81526004016107c49061315b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b5f6111c483612be9565b6040516323b872dd60e01b81529091506001600160a01b037f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59916906323b872dd906112179033908590879060040161311c565b6020604051808303815f875af1158015611233573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112579190613140565b507f0000000000000000000000000000000000000000000000000000000000000000156112cd57806001600160a01b03166312c93f596040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156112b6575f80fd5b505af11580156112c8573d5f803e3d5ffd5b505050505b826001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c8360405161130891815260200190565b60405180910390a2505050565b5f546001600160a01b0316331461133e5760405162461bcd60e51b81526004016107c49061315b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81527f000000000000000000000000c06053fcad0a0df7cc32289a135bbea9030c010f606090811b60148301526f5af43d82803e903d91602b57fd5bf3ff60801b602883015230901b6038820152604c8101919091526037808220606c830152605591012090565b335f908152600e602052604081208054916113fd836131db565b9190505550565b604051630d9167c160e21b81526001600160a01b0383811660048301525f917f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710909116906336459f0490602401602060405180830381865afa15801561146c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114909190613052565b90505f81116114d25760405162461bcd60e51b815260206004820152600e60248201526d139bc8111094881919599a58da5d60921b60448201526064016107c4565b818110156115155760405162461bcd60e51b815260206004820152601060248201526f105b5bdd5b9d080f881919599a58da5d60821b60448201526064016107c4565b5f6127107f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d7106001600160a01b031663a10f84cb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611575573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115999190613052565b6115a39085613192565b6115ad91906131a9565b90505f612710600654836115c19190613192565b6115cb91906131a9565b6001600160a01b0386165f908152600d60205260408120805492935084929091906115f79084906131c8565b90915550506008546007545f916127109161161290836130ea565b61161c91906130ea565b61162588612ce6565b61162f9190613192565b61163991906131a9565b6001600160a01b0387165f908152600d60205260409020549091508110156116a35760405162461bcd60e51b815260206004820152601960248201527f457863656564656420636f6c6c61746572616c2076616c75650000000000000060448201526064016107c4565b82600b5f8282546116b491906131c8565b909155505060405163b2c0877560e01b81526001600160a01b03878116600483015233602483015260448201879052606482018490527f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710169063b2c08775906084015f604051808303815f87803b15801561172d575f80fd5b505af115801561173f573d5f803e3d5ffd5b505060405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce416925063a9059cbb91506117919033908690600401613103565b6020604051808303815f875af11580156117ad573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a9b9190613140565b5f546001600160a01b031633146117fa5760405162461bcd60e51b81526004016107c49061315b565b5f8111801561180a575061271081105b6118565760405162461bcd60e51b815260206004820152601f60248201527f496e76616c6964207265706c656e6973686d656e7420696e63656e746976650060448201526064016107c4565b600655565b5f546001600160a01b031633146118845760405162461bcd60e51b81526004016107c49061315b565b61271081106118d55760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420636f6c6c61746572616c20666163746f720000000000000060448201526064016107c4565b60058190558015610d9f575f600554600854612710610e5591906131c8565b5f546001600160a01b0316331461191d5760405162461bcd60e51b81526004016107c49061315b565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146119925760405162461bcd60e51b815260206004820152601660248201527513db9b1e481b195b99195c8818d85b881c9958d85b1b60521b60448201526064016107c4565b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce4169063a9059cbb906119e09033908590600401613103565b6020604051808303815f875af11580156119fc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107a09190613140565b5f546001600160a01b03163314611a495760405162461bcd60e51b81526004016107c49061315b565b5f81118015611a66575061271060075482611a6491906131c8565b105b611ab25760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206c69717569646174696f6e2066656500000000000000000060448201526064016107c4565b600881905560055415610d9f575f600554600854612710610e5591906131c8565b5f80611ade83611360565b90505f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b1d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b419190613052565b6004805460055460405163949c4fa360e01b8152939450670de0b6b3a7640000936001600160a01b039092169263949c4fa392611ba2927f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59992909101613103565b602060405180830381865afa158015611bbd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611be19190613052565b611beb9083613192565b611bf591906131a9565b949350505050565b610d9f33826111ba565b611c1082611bfd565b6107a08161220a565b5f8111611c685760405162461bcd60e51b815260206004820152601860248201527f4d75737420726570617920706f7369746976652064656274000000000000000060448201526064016107c4565b6001600160a01b0382165f908152600d602052604090205480611c8a84612dd1565b10611cce5760405162461bcd60e51b8152602060048201526014602482015273557365722064656274206973206865616c74687960601b60448201526064016107c4565b61271060095482611cdf9190613192565b611ce991906131a9565b821115611d385760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206c69717569646174696f6e20666163746f72000000000060448201526064016107c4565b6004805460055460405163449e815d60e01b81525f936001600160a01b039093169263449e815d92611d8c927f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5999201613103565b6020604051808303815f875af1158015611da8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611dcc9190613052565b90505f81611de285670de0b6b3a7640000613192565b611dec91906131a9565b905061271060075482611dff9190613192565b611e0991906131a9565b611e1390826131c8565b6001600160a01b0386165f908152600d6020526040812080549293508692909190611e3f9084906130ea565b9250508190555083600b5f828254611e5791906130ea565b9091555050604051631b1a58c960e31b81526001600160a01b037f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710169063d8d2c64890611eaa9088908890600401613103565b5f604051808303815f87803b158015611ec1575f80fd5b505af1158015611ed3573d5f803e3d5ffd5b50506003546001600160a01b0316159150611f4490505760035460405163081e664160e01b8152600481018690526001600160a01b039091169063081e6641906024015f604051808303815f87803b158015611f2d575f80fd5b505af1158015611f3f573d5f803e3d5ffd5b505050505b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce416906323b872dd90611f949033903090899060040161311c565b6020604051808303815f875af1158015611fb0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fd49190613140565b505f611fdf86611360565b604051636203b43b60e11b81529091506001600160a01b0382169063c4076876906120109033908690600401613103565b5f604051808303815f87803b158015612027575f80fd5b505af1158015612039573d5f803e3d5ffd5b505050505f60085411156121bc575f6127106008548588670de0b6b3a76400006120639190613192565b61206d91906131a9565b6120779190613192565b61208191906131a9565b90505f826001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120e49190613052565b9050818110612152575f54604051636203b43b60e11b81526001600160a01b038581169263c40768769261212092909116908690600401613103565b5f604051808303815f87803b158015612137575f80fd5b505af1158015612149573d5f803e3d5ffd5b505050506121b9565b80156121b9575f54604051636203b43b60e11b81526001600160a01b038581169263c40768769261218b92909116908590600401613103565b5f604051808303815f87803b1580156121a2575f80fd5b505af11580156121b4573d5f803e3d5ffd5b505050505b50505b604080518681526020810184905233916001600160a01b038916917ff3fa0eaee8f258c23b013654df25d1527f98a5c7ccd5e951dd77caca400ef972910160405180910390a3505050505050565b610d9f3333836128cc565b5f8061222083611360565b90505f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561225f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122839190613052565b9050805f0361229557505f9392505050565b6001600160a01b0384165f908152600d6020526040812054908190036122bd57509392505050565b6005545f036122d057505f949350505050565b6005546004805460405163949c4fa360e01b81525f93926001600160a01b039092169163949c4fa391612327917f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59991869101613103565b602060405180830381865afa158015612342573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123669190613052565b61237884670de0b6b3a7640000613192565b61238291906131a9565b61238e90612710613192565b61239891906131a9565b90508083116123ac57505f95945050505050565b6123b681846130ea565b9695505050505050565b801561244d576002546001600160a01b03163314806123e857505f546001600160a01b031633145b6124485760405162461bcd60e51b815260206004820152602b60248201527f4f6e6c7920706175736520677561726469616e206f7220676f7665726e616e6360448201526a652063616e20706175736560a81b60648201526084016107c4565b6124a6565b5f546001600160a01b031633146124a65760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920676f7665726e616e63652063616e20756e7061757365000000000060448201526064016107c4565b600a805460ff1916911515919091179055565b5f546001600160a01b031633146124e25760405162461bcd60e51b81526004016107c49061315b565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f546001600160a01b0316331461252c5760405162461bcd60e51b81526004016107c49061315b565b5f8111801561253d57506127108111155b6125895760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964206c69717569646174696f6e20666163746f7200000000000060448201526064016107c4565b600955565b61259c333361091b336125b1565b565b6125a83383610aa4565b6107a081610d94565b5f806125bc83611360565b90505f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156125fb573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061261f9190613052565b9050805f0361263157505f9392505050565b6001600160a01b0384165f908152600d60205260408120549081900361265957509392505050565b6005545f0361266c57505f949350505050565b6005546004805460405163449e815d60e01b81525f93926001600160a01b039092169163449e815d916126c3917f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59991869101613103565b6020604051808303815f875af1158015612342573d5f803e3d5ffd5b5f6126e9846125b1565b90508181101561273b5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e74207769746864726177616c206c696d697400000060448201526064016107c4565b604051630d9167c160e21b81526001600160a01b0385811660048301527f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d71016906336459f0490602401602060405180830381865afa15801561279f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127c39190613052565b156128105760405162461bcd60e51b815260206004820152601f60248201527f43616e277420776974686472617720776974682044425220646566696369740060448201526064016107c4565b5f61281a85612be9565b604051636203b43b60e11b81529091506001600160a01b0382169063c40768769061284b9087908790600401613103565b5f604051808303815f87803b158015612862575f80fd5b505af1158015612874573d5f803e3d5ffd5b50505050836001600160a01b0316856001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb856040516128bd91815260200190565b60405180910390a35050505050565b600a5460ff16156129155760405162461bcd60e51b8152602060048201526013602482015272109bdc9c9bddda5b99c81a5cc81c185d5cd959606a1b60448201526064016107c4565b6003546001600160a01b0316156129e65760035460405163368f515360e21b81526001600160a01b039091169063da3d454c9061295a9033908790869060040161311c565b6020604051808303815f875af1158015612976573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061299a9190613140565b6129e65760405162461bcd60e51b815260206004820152601b60248201527f44656e69656420627920626f72726f7720636f6e74726f6c6c6572000000000060448201526064016107c4565b5f6129f084612dd1565b6001600160a01b0385165f908152600d6020526040812080549293508492909190612a1c9084906131c8565b90915550506001600160a01b0384165f908152600d6020526040902054811015612a805760405162461bcd60e51b8152602060048201526015602482015274115e18d9595919590818dc99591a5d081b1a5b5a5d605a1b60448201526064016107c4565b81600b5f828254612a9191906131c8565b909155505060405163f7f11fb760e01b81526001600160a01b037f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710169063f7f11fb790612ae49087908690600401613103565b5f604051808303815f87803b158015612afb575f80fd5b505af1158015612b0d573d5f803e3d5ffd5b505060405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce416925063a9059cbb9150612b5f9086908690600401613103565b6020604051808303815f875af1158015612b7b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b9f9190613140565b50836001600160a01b03167fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a3675083604051612bdb91815260200190565b60405180910390a250505050565b6001600160a01b038181165f908152600c602052604081205490911615612c2857506001600160a01b039081165f908152600c60205260409020541690565b5f612c3283612ddc565b60405163485cc95560e01b81526001600160a01b037f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5998116600483015285811660248301529192509082169063485cc955906044015f604051808303815f87803b158015612c9e575f80fd5b505af1158015612cb0573d5f803e3d5ffd5b505050506001600160a01b039283165f908152600c6020526040902080546001600160a01b031916938216939093179092555090565b5f80612cf183611360565b90505f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d30573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d549190613052565b6004805460055460405163449e815d60e01b8152939450670de0b6b3a7640000936001600160a01b039092169263449e815d92612db5927f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59992909101613103565b6020604051808303815f875af1158015611bbd573d5f803e3d5ffd5b5f80610d7083612ce6565b604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81527f000000000000000000000000c06053fcad0a0df7cc32289a135bbea9030c010f606081901b60148301526e5af43d82803e903d91602b57fd5bf360881b60288301525f918360378285f59250506001600160a01b038216612e9d5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016107c4565b6040516001600160a01b0383811682528416907f1cfd6e6fe6d92716198ef80381fd40e4338b9a461cc4fc235c51b152f7f830159060200160405180910390a250919050565b6001600160a01b0381168114610d9f575f80fd5b5f60208284031215612f07575f80fd5b8135610d8d81612ee3565b803560ff81168114612f22575f80fd5b919050565b5f805f805f60a08688031215612f3b575f80fd5b8535612f4681612ee3565b945060208601359350612f5b60408701612f12565b94979396509394606081013594506080013592915050565b5f805f805f8060c08789031215612f88575f80fd5b8635612f9381612ee3565b95506020870135945060408701359350612faf60608801612f12565b92506080870135915060a087013590509295509295509295565b5f8060408385031215612fda575f80fd5b8235612fe581612ee3565b946020939093013593505050565b5f60208284031215613003575f80fd5b5035919050565b5f806040838503121561301b575f80fd5b50508035926020909101359150565b8015158114610d9f575f80fd5b5f60208284031215613047575f80fd5b8135610d8d8161302a565b5f60208284031215613062575f80fd5b5051919050565b60208082526010908201526f111150511312539157d156141254915160821b604082015260600190565b61190160f01b81526002810192909252602282015260420190565b6020808252600e908201526d24a72b20a624a22fa9a4a3a722a960911b604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b818103818111156130fd576130fd6130d6565b92915050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b5f60208284031215613150575f80fd5b8151610d8d8161302a565b6020808252601f908201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e00604082015260600190565b80820281158282048414176130fd576130fd6130d6565b5f826131c357634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156130fd576130fd6130d6565b5f600182016131ec576131ec6130d6565b506001019056fea2646970667358221220bc34eb91aee123effc6e41577addfec757512077cc1343ba76ecc5d0e2c9d6fa64736f6c63430008140033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.