ETH Price: $3,679.43 (+1.22%)

Token

ERC-20: ()
 

Overview

Max Total Supply

0 ERC-20:

Holders

0

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x6A522f3B...5aA6C631E
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 10000 runs

Other Settings:
shanghai EvmVersion
File 1 of 2 : Market.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "src/interfaces/IERC20.sol";

// 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 < 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 + 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);
}

File 2 of 2 : IERC20.sol
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);
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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"}]

61016060405273865377367054516e17014ccded1e7d814edc9ce460c0526113886009553480156200002f575f80fd5b50604051620042233803806200422383398101604081905262000052916200039b565b6127108410620000a95760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420636f6c6c61746572616c20666163746f720000000000000060448201526064015b60405180910390fd5b5f82118015620000ba575061271082105b620001085760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964206c69717569646174696f6e20696e63656e746976650000006044820152606401620000a0565b6127108310620001725760405162461bcd60e51b815260206004820152602e60248201527f5265706c656e6973686d656e7420696e63656e74697665206d7573742062652060448201526d6c657373207468616e203130302560901b6064820152608401620000a0565b5f80546001600160a01b03808e166001600160a01b031992831617909255600180548d8416908316179055600280548c841690831617905589821660805288821660a05287821660e0526004805492881692909116919091179055600584905560068390556007829055801515610100524661012052620002a9604080518082018252600a8152691110948813505492d15560b21b60209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f4fdd2304dc9d5c5a62691d8e7e6cf5fe56e23281f4652fb6b06b133c9c2b03b4818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b610140526005541562000372575f600554600854612710620002cc91906200048d565b600554620002dd90612710620004a9565b620002e99190620004bf565b620002f59190620004d9565b90508060075410620003705760405162461bcd60e51b815260206004820152603360248201527f4c69717569646174696f6e20706172616d20616c6c6f772070726f666974616260448201527f6c652073656c66206c69717569646174696f6e000000000000000000000000006064820152608401620000a0565b505b5050505050505050505050620004f9565b6001600160a01b038116811462000398575f80fd5b50565b5f805f805f805f805f805f6101608c8e031215620003b7575f80fd5b8b51620003c48162000383565b60208d0151909b50620003d78162000383565b60408d0151909a50620003ea8162000383565b60608d0151909950620003fd8162000383565b60808d0151909850620004108162000383565b60a08d0151909750620004238162000383565b60c08d0151909650620004368162000383565b8095505060e08c015193506101008c015192506101208c015191506101408c0151801515811462000465575f80fd5b809150509295989b509295989b9093969950565b634e487b7160e01b5f52601160045260245ffd5b80820180821115620004a357620004a362000479565b92915050565b81810381811115620004a357620004a362000479565b8082028115828204841417620004a357620004a362000479565b5f82620004f457634e487b7160e01b5f52601260045260245ffd5b500490565b60805160a05160c05160e051610100516101205161014051613c1b620006085f395f6114c901525f6113d001525f61163f01525f818161075e015281816115d0015281816120f50152818161232401528181612a8c01528181612f79015281816135f301526137d701525f81816107a901528181610ec401528181611b6e01528181611e7c0152818161258501526134c401525f81816106fe0152818161082101528181610dac015281816117e8015281816118fa01528181611ae40152818161246d01528181613068015261343001525f81816104c70152818161051f01528181611fee015281816126200152818161293801528181612e25015281816136d0015261386f0152613c1b5ff3fe608060405234801561000f575f80fd5b5060043610610330575f3560e01c80637164695a116101b3578063c5ebeaec116100f3578063d8dfeb451161009e578063e5cd8b6a11610079578063e5cd8b6a1461079c578063ea0593e4146107a4578063ebc9b94d146107cb578063fc7b9c18146107de575f80fd5b8063d8dfeb4514610759578063e00f0a9914610780578063e031a82414610793575f80fd5b8063c8018619116100ce578063c801861914610720578063cfad57a214610733578063d1220a3c14610746575f80fd5b8063c5ebeaec146106d3578063c74e6d80146106e6578063c7ed69cd146106f9575f80fd5b80638951b0541161015e578063b75061bb11610139578063b75061bb1461067d578063bcb4bbea14610690578063bcbaf487146106ad578063bcead63e146106c0575f80fd5b80638951b0541461064457806397904e4214610657578063b6b55f251461066a575f80fd5b80637dc0d1d01161018e5780637dc0d1d0146106095780637ecebe001461061c5780637f5007ed1461063b575f80fd5b80637164695a146105d05780637adbf973146105e35780637d32e793146105f6575f80fd5b80633644e5151161027e5780634ca8ff5a11610229578063651afe8311610204578063651afe83146105985780636f1c4839146105ab5780636f48fbb6146105b45780636f8dd24c146105c7575f80fd5b80634ca8ff5a146104c25780634ef64ee7146104e95780635a57b46f14610590575f80fd5b8063477230b211610259578063477230b21461047457806347e7ef241461049c57806348bde20c146104af575f80fd5b80633644e515146104505780633e5537561461045857806346e368d414610461575f80fd5b806324a3d622116102de5780632ecd4e7d116102b95780632ecd4e7d1461040b57806334734dd31461042a5780633525f5911461043d575f80fd5b806324a3d622146103c45780632c333e25146103d75780632e1a7d4d146103f8575f80fd5b80631ef08b751161030e5780631ef08b751461038b57806322867d781461039e578063236331e9146103b1575f80fd5b80630e81c4031461033457806312d43a51146103495780631e5a3a4b14610378575b5f80fd5b610347610342366004613979565b6107e7565b005b5f5461035b906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6103476103863660046139a9565b61089c565b6103476103993660046139f5565b610aaa565b6103476103ac366004613a4b565b610cb5565b6103476103bf366004613979565b610f7c565b60025461035b906001600160a01b031681565b6103ea6103e5366004613979565b61100f565b60405190815260200161036f565b610347610406366004613a75565b61103e565b6103ea610419366004613979565b600d6020525f908152604090205481565b610347610438366004613a75565b61104c565b61034761044b3660046139f5565b6111cb565b6103ea6113cd565b6103ea60065481565b61034761046f366004613979565b6114eb565b61035b610482366004613979565b600c6020525f90815260409020546001600160a01b031681565b6103476104aa366004613a4b565b61157e565b6103476104bd366004613979565b6116fa565b61035b7f000000000000000000000000000000000000000000000000000000000000000081565b61035b6104f7366004613979565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c8101919091526037808220606c830152605591012090565b61034761178d565b6103476105a6366004613a4b565b6117ae565b6103ea60095481565b6103476105c2366004613a75565b611be2565b6103ea60075481565b6103476105de366004613a75565b611c91565b6103476105f1366004613979565b611d5a565b610347610604366004613a75565b611ded565b60045461035b906001600160a01b031681565b6103ea61062a366004613979565b600e6020525f908152604090205481565b6103ea60055481565b610347610652366004613a75565b611eee565b6103ea610665366004613979565b611fc6565b610347610678366004613a75565b612199565b61034761068b366004613a8c565b6121a3565b600a5461069d9060ff1681565b604051901515815260200161036f565b6103476106bb366004613a4b565b6121b5565b60015461035b906001600160a01b031681565b6103476106e1366004613a75565b612905565b6103ea6106f4366004613979565b612910565b61035b7f000000000000000000000000000000000000000000000000000000000000000081565b61034761072e366004613ab9565b612b64565b610347610741366004613979565b612c8d565b610347610754366004613a75565b612d1f565b61035b7f000000000000000000000000000000000000000000000000000000000000000081565b60035461035b906001600160a01b031681565b6103ea60085481565b610347612dda565b61035b7f000000000000000000000000000000000000000000000000000000000000000081565b6103476107d9366004613a8c565b612dea565b6103ea600b5481565b6040517f36459f040000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906336459f0490602401602060405180830381865afa158015610868573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061088c9190613ad4565b905061089882826117ae565b5050565b428410156108f15760405162461bcd60e51b815260206004820152601060248201527f444541444c494e455f455850495245440000000000000000000000000000000060448201526064015b60405180910390fd5b5f60016108fc6113cd565b6001600160a01b0388165f818152600e602090815260409182902080546001810190915582517f8d1d73617555ca8eaa7b0817ffc5bca6d6180656a9e3bc96c20620c10b2254088184015233818501526060810194909452608084015260a08084018b90528251808503909101815260c0840190925281519101207f190100000000000000000000000000000000000000000000000000000000000060e083015260e28201929092526101028101919091526101220160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610a0d573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590610a435750856001600160a01b0316816001600160a01b0316145b610a8f5760405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016108e8565b610aa28633610a9d89612dfd565b612fd4565b505050505050565b42841015610afa5760405162461bcd60e51b815260206004820152601060248201527f444541444c494e455f455850495245440000000000000000000000000000000060448201526064016108e8565b5f6001610b056113cd565b6001600160a01b0389165f818152600e602090815260409182902080546001810190915582517f1f0bc49e000c018ca72680800f3b2f7ce61e76471cce3756387071d004b0eee98184015233818501526060810194909452608084018c905260a084015260c08084018b90528251808503909101815260e0840190925281519101207f19010000000000000000000000000000000000000000000000000000000000006101008301526101028201929092526101228101919091526101420160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610c1f573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590610c555750866001600160a01b0316816001600160a01b0316145b610ca15760405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016108e8565b610cac8733886131f6565b50505050505050565b6001600160a01b0382165f908152600d602052604090205460018201610cd9578091505b81811015610d295760405162461bcd60e51b815260206004820152601b60248201527f52657061796d656e742067726561746572207468616e2064656274000000000060448201526064016108e8565b6001600160a01b0383165f908152600d602052604081208054849290610d50908490613b18565b9250508190555081600b5f828254610d689190613b18565b90915550506040517fd8d2c6480000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063d8d2c648906044015f604051808303815f87803b158015610ded575f80fd5b505af1158015610dff573d5f803e3d5ffd5b50506003546001600160a01b0316159150610e899050576003546040517f081e6641000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063081e6641906024015f604051808303815f87803b158015610e72575f80fd5b505af1158015610e84573d5f803e3d5ffd5b505050505b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303815f875af1158015610f12573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f369190613b31565b5060405182815233906001600160a01b038516907f05f2eeda0e08e4b437f487c8d7d29b14537d15e3488170dc3de5dbdf8dac46849060200160405180910390a3505050565b5f546001600160a01b03163314610fd55760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f8061101a83611fc6565b90506127106005548261102d9190613b4c565b6110379190613b63565b9392505050565b611049333383612fd4565b50565b5f546001600160a01b031633146110a55760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b5f811180156110c25750612710600854826110c09190613b9b565b105b61110e5760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964206c69717569646174696f6e20696e63656e7469766500000060448201526064016108e8565b600781905560055415611049575f60055460085461271061112f9190613b9b565b60055461113e90612710613b18565b6111489190613b4c565b6111529190613b63565b905080600754106108985760405162461bcd60e51b815260206004820152603760248201527f4e6577206c69717569646174696f6e20706172616d20616c6c6f772070726f6660448201527f697461626c652073656c66206c69717569646174696f6e00000000000000000060648201526084016108e8565b4284101561121b5760405162461bcd60e51b815260206004820152601060248201527f444541444c494e455f455850495245440000000000000000000000000000000060448201526064016108e8565b5f60016112266113cd565b6001600160a01b0389165f818152600e602090815260409182902080546001810190915582517f7dbda1635348f4206be1d85078da9f4a74703081e4fa6e174f3fd066c56189658184015233818501526060810194909452608084018c905260a084015260c08084018b90528251808503909101815260e0840190925281519101207f19010000000000000000000000000000000000000000000000000000000000006101008301526101028201929092526101228101919091526101420160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015611340573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116158015906113765750866001600160a01b0316816001600160a01b0316145b6113c25760405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016108e8565b610cac873388612fd4565b5f7f000000000000000000000000000000000000000000000000000000000000000046146114c65750604080518082018252600a81527f444252204d41524b45540000000000000000000000000000000000000000000060209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f4fdd2304dc9d5c5a62691d8e7e6cf5fe56e23281f4652fb6b06b133c9c2b03b4818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b507f000000000000000000000000000000000000000000000000000000000000000090565b5f546001600160a01b031633146115445760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f6115888361357a565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038083166024830152604482018590529192507f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd906064016020604051808303815f875af1158015611618573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061163c9190613b31565b507f0000000000000000000000000000000000000000000000000000000000000000156116b257806001600160a01b03166312c93f596040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561169b575f80fd5b505af11580156116ad573d5f803e3d5ffd5b505050505b826001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c836040516116ed91815260200190565b60405180910390a2505050565b5f546001600160a01b031633146117535760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b335f908152600e602052604081208054916117a783613bae565b9190505550565b6040517f36459f040000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301525f917f0000000000000000000000000000000000000000000000000000000000000000909116906336459f0490602401602060405180830381865afa15801561182f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118539190613ad4565b90505f81116118a45760405162461bcd60e51b815260206004820152600e60248201527f4e6f20444252206465666963697400000000000000000000000000000000000060448201526064016108e8565b818110156118f45760405162461bcd60e51b815260206004820152601060248201527f416d6f756e74203e20646566696369740000000000000000000000000000000060448201526064016108e8565b5f6127107f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a10f84cb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611954573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119789190613ad4565b6119829085613b4c565b61198c9190613b63565b90505f612710600654836119a09190613b4c565b6119aa9190613b63565b6001600160a01b0386165f908152600d60205260408120805492935084929091906119d6908490613b9b565b90915550506008546007545f91612710916119f19083613b18565b6119fb9190613b18565b611a04886136a8565b611a0e9190613b4c565b611a189190613b63565b6001600160a01b0387165f908152600d6020526040902054909150811015611a825760405162461bcd60e51b815260206004820152601960248201527f457863656564656420636f6c6c61746572616c2076616c75650000000000000060448201526064016108e8565b82600b5f828254611a939190613b9b565b90915550506040517fb2c087750000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015233602483015260448201879052606482018490527f0000000000000000000000000000000000000000000000000000000000000000169063b2c08775906084015f604051808303815f87803b158015611b25575f80fd5b505af1158015611b37573d5f803e3d5ffd5b50506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316925063a9059cbb91506044016020604051808303815f875af1158015611bbe573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cac9190613b31565b5f546001600160a01b03163314611c3b5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b6127108110611c8c5760405162461bcd60e51b815260206004820152601f60248201527f496e76616c6964207265706c656e6973686d656e7420696e63656e746976650060448201526064016108e8565b600655565b5f546001600160a01b03163314611cea5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b6127108110611d3b5760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420636f6c6c61746572616c20666163746f720000000000000060448201526064016108e8565b60058190558015611049575f60055460085461271061112f9190613b9b565b5f546001600160a01b03163314611db35760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001546001600160a01b03163314611e475760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206c656e6465722063616e20726563616c6c0000000000000000000060448201526064016108e8565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303815f875af1158015611eca573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108989190613b31565b5f546001600160a01b03163314611f475760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b61271060075482611f589190613b9b565b10611fa55760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206c69717569646174696f6e2066656500000000000000000060448201526064016108e8565b600881905560055415611049575f60055460085461271061112f9190613b9b565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018290526037808220606c83015260559101205f905f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561209a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120be9190613ad4565b600480546005546040517f949c4fa30000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116948201949094526024810191909152929350670de0b6b3a76400009291169063949c4fa390604401602060405180830381865afa158015612159573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061217d9190613ad4565b6121879083613b4c565b6121919190613b63565b949350505050565b611049338261157e565b6121ac82612199565b61089881612905565b5f81116122045760405162461bcd60e51b815260206004820152601860248201527f4d75737420726570617920706f7369746976652064656274000000000000000060448201526064016108e8565b6001600160a01b0382165f908152600d6020526040902054806122268461383c565b106122735760405162461bcd60e51b815260206004820152601460248201527f557365722064656274206973206865616c74687900000000000000000000000060448201526064016108e8565b612710600954826122849190613b4c565b61228e9190613b63565b8211156122dd5760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206c69717569646174696f6e20666163746f72000000000060448201526064016108e8565b600480546005546040517f449e815d0000000000000000000000000000000000000000000000000000000081525f936001600160a01b039093169263449e815d9261235e927f000000000000000000000000000000000000000000000000000000000000000092016001600160a01b03929092168252602082015260400190565b6020604051808303815f875af115801561237a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061239e9190613ad4565b90505f816123b485670de0b6b3a7640000613b4c565b6123be9190613b63565b9050612710600754826123d19190613b4c565b6123db9190613b63565b6123e59082613b9b565b6001600160a01b0386165f908152600d6020526040812080549293508692909190612411908490613b18565b9250508190555083600b5f8282546124299190613b18565b90915550506040517fd8d2c6480000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690527f0000000000000000000000000000000000000000000000000000000000000000169063d8d2c648906044015f604051808303815f87803b1580156124ae575f80fd5b505af11580156124c0573d5f803e3d5ffd5b50506003546001600160a01b031615915061254a9050576003546040517f081e6641000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b039091169063081e6641906024015f604051808303815f87803b158015612533575f80fd5b505af1158015612545573d5f803e3d5ffd5b505050505b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303815f875af11580156125d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125f79190613b31565b506040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018690526037808220606c83015260559101205f906040517fc4076876000000000000000000000000000000000000000000000000000000008152336004820152602481018490529091506001600160a01b0382169063c4076876906044015f604051808303815f87803b1580156126f0575f80fd5b505af1158015612702573d5f803e3d5ffd5b505050505f60085411156128b7575f6127106008548588670de0b6b3a764000061272c9190613b4c565b6127369190613b63565b6127409190613b4c565b61274a9190613b63565b90505f826001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612789573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127ad9190613ad4565b9050818110612834575f546040517fc40768760000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152602481018490529084169063c4076876906044015f604051808303815f87803b158015612819575f80fd5b505af115801561282b573d5f803e3d5ffd5b505050506128b4565b80156128b4575f546040517fc40768760000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152602481018390529084169063c4076876906044015f604051808303815f87803b15801561289d575f80fd5b505af11580156128af573d5f803e3d5ffd5b505050505b50505b604080518681526020810184905233916001600160a01b038916917ff3fa0eaee8f258c23b013654df25d1527f98a5c7ccd5e951dd77caca400ef972910160405180910390a3505050505050565b6110493333836131f6565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018290526037808220606c83015260559101205f905f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a089190613ad4565b9050805f03612a1a57505f9392505050565b6001600160a01b0384165f908152600d602052604081205490819003612a4257509392505050565b6005545f03612a5557505f949350505050565b600554600480546040517f949c4fa30000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811693820193909352602481018490525f93929091169063949c4fa390604401602060405180830381865afa158015612ae6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b0a9190613ad4565b612b1c84670de0b6b3a7640000613b4c565b612b269190613b63565b612b3290612710613b4c565b612b3c9190613b63565b9050808311612b5057505f95945050505050565b612b5a8184613b18565b9695505050505050565b8015612c03576002546001600160a01b0316331480612b8c57505f546001600160a01b031633145b612bfe5760405162461bcd60e51b815260206004820152602b60248201527f4f6e6c7920706175736520677561726469616e206f7220676f7665726e616e6360448201527f652063616e20706175736500000000000000000000000000000000000000000060648201526084016108e8565b612c5c565b5f546001600160a01b03163314612c5c5760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920676f7665726e616e63652063616e20756e7061757365000000000060448201526064016108e8565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b5f546001600160a01b03163314612ce65760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b5f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f546001600160a01b03163314612d785760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b5f81118015612d8957506127108111155b612dd55760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964206c69717569646174696f6e20666163746f7200000000000060448201526064016108e8565b600955565b612de83333610a9d33612dfd565b565b612df43383610cb5565b6108988161103e565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018290526037808220606c83015260559101205f905f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ed1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ef59190613ad4565b9050805f03612f0757505f9392505050565b6001600160a01b0384165f908152600d602052604081205490819003612f2f57509392505050565b6005545f03612f4257505f949350505050565b600554600480546040517f449e815d0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811693820193909352602481018490525f93929091169063449e815d906044016020604051808303815f875af1158015612ae6573d5f803e3d5ffd5b5f612fde84612dfd565b9050818110156130305760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e74207769746864726177616c206c696d697400000060448201526064016108e8565b6040517f36459f040000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301527f000000000000000000000000000000000000000000000000000000000000000016906336459f0490602401602060405180830381865afa1580156130ad573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130d19190613ad4565b1561311e5760405162461bcd60e51b815260206004820152601f60248201527f43616e277420776974686472617720776974682044425220646566696369740060448201526064016108e8565b5f6131288561357a565b6040517fc40768760000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690529192509082169063c4076876906044015f604051808303815f87803b15801561318c575f80fd5b505af115801561319e573d5f803e3d5ffd5b50505050836001600160a01b0316856001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb856040516131e791815260200190565b60405180910390a35050505050565b600a5460ff16156132495760405162461bcd60e51b815260206004820152601360248201527f426f72726f77696e67206973207061757365640000000000000000000000000060448201526064016108e8565b6003546001600160a01b031615613339576003546040517fda3d454c0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038581166024830152604482018490529091169063da3d454c906064016020604051808303815f875af11580156132c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906132ed9190613b31565b6133395760405162461bcd60e51b815260206004820152601b60248201527f44656e69656420627920626f72726f7720636f6e74726f6c6c6572000000000060448201526064016108e8565b5f6133438461383c565b6001600160a01b0385165f908152600d602052604081208054929350849290919061336f908490613b9b565b90915550506001600160a01b0384165f908152600d60205260409020548110156133db5760405162461bcd60e51b815260206004820152601560248201527f457863656564656420637265646974206c696d6974000000000000000000000060448201526064016108e8565b81600b5f8282546133ec9190613b9b565b90915550506040517ff7f11fb70000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063f7f11fb7906044015f604051808303815f87803b158015613471575f80fd5b505af1158015613483573d5f803e3d5ffd5b50506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016925063a9059cbb91506044016020604051808303815f875af115801561350c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906135309190613b31565b50836001600160a01b03167fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a367508360405161356c91815260200190565b60405180910390a250505050565b6001600160a01b038181165f908152600c6020526040812054909116156135b957506001600160a01b039081165f908152600c60205260409020541690565b5f6135c383613847565b6040517f485cc9550000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015285811660248301529192509082169063485cc955906044015f604051808303815f87803b158015613648575f80fd5b505af115801561365a573d5f803e3d5ffd5b505050506001600160a01b039283165f908152600c6020526040902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938216939093179092555090565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018290526037808220606c83015260559101205f905f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561377c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137a09190613ad4565b600480546005546040517f449e815d0000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116948201949094526024810191909152929350670de0b6b3a76400009291169063449e815d906044016020604051808303815f875af1158015612159573d5f803e3d5ffd5b5f8061101a836136a8565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000606081901b60148301527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288301525f918360378285f59250506001600160a01b03821661391f5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016108e8565b6040516001600160a01b0383811682528416907f1cfd6e6fe6d92716198ef80381fd40e4338b9a461cc4fc235c51b152f7f830159060200160405180910390a250919050565b6001600160a01b0381168114611049575f80fd5b5f60208284031215613989575f80fd5b813561103781613965565b803560ff811681146139a4575f80fd5b919050565b5f805f805f60a086880312156139bd575f80fd5b85356139c881613965565b9450602086013593506139dd60408701613994565b94979396509394606081013594506080013592915050565b5f805f805f8060c08789031215613a0a575f80fd5b8635613a1581613965565b95506020870135945060408701359350613a3160608801613994565b92506080870135915060a087013590509295509295509295565b5f8060408385031215613a5c575f80fd5b8235613a6781613965565b946020939093013593505050565b5f60208284031215613a85575f80fd5b5035919050565b5f8060408385031215613a9d575f80fd5b50508035926020909101359150565b8015158114611049575f80fd5b5f60208284031215613ac9575f80fd5b813561103781613aac565b5f60208284031215613ae4575f80fd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115613b2b57613b2b613aeb565b92915050565b5f60208284031215613b41575f80fd5b815161103781613aac565b8082028115828204841417613b2b57613b2b613aeb565b5f82613b96577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b80820180821115613b2b57613b2b613aeb565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613bde57613bde613aeb565b506001019056fea26469706673582212201b82ef30e58f3c374b706da91f3af2ee7f99ac1075f9e8839ad441156b05f6f864736f6c63430008140033000000000000000000000000926df14a23be491164dcf93f4c468a50ef659d5b0000000000000000000000002b34548b865ad66a2b046cb82e59ee43f75b90fd000000000000000000000000e3ed95e130ad9e15643f5a5f232a3dae980784cd000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c3000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d7100000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b000000000000000000000000abe146cf570fd27ddd985895ce9b138a7110cce80000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610330575f3560e01c80637164695a116101b3578063c5ebeaec116100f3578063d8dfeb451161009e578063e5cd8b6a11610079578063e5cd8b6a1461079c578063ea0593e4146107a4578063ebc9b94d146107cb578063fc7b9c18146107de575f80fd5b8063d8dfeb4514610759578063e00f0a9914610780578063e031a82414610793575f80fd5b8063c8018619116100ce578063c801861914610720578063cfad57a214610733578063d1220a3c14610746575f80fd5b8063c5ebeaec146106d3578063c74e6d80146106e6578063c7ed69cd146106f9575f80fd5b80638951b0541161015e578063b75061bb11610139578063b75061bb1461067d578063bcb4bbea14610690578063bcbaf487146106ad578063bcead63e146106c0575f80fd5b80638951b0541461064457806397904e4214610657578063b6b55f251461066a575f80fd5b80637dc0d1d01161018e5780637dc0d1d0146106095780637ecebe001461061c5780637f5007ed1461063b575f80fd5b80637164695a146105d05780637adbf973146105e35780637d32e793146105f6575f80fd5b80633644e5151161027e5780634ca8ff5a11610229578063651afe8311610204578063651afe83146105985780636f1c4839146105ab5780636f48fbb6146105b45780636f8dd24c146105c7575f80fd5b80634ca8ff5a146104c25780634ef64ee7146104e95780635a57b46f14610590575f80fd5b8063477230b211610259578063477230b21461047457806347e7ef241461049c57806348bde20c146104af575f80fd5b80633644e515146104505780633e5537561461045857806346e368d414610461575f80fd5b806324a3d622116102de5780632ecd4e7d116102b95780632ecd4e7d1461040b57806334734dd31461042a5780633525f5911461043d575f80fd5b806324a3d622146103c45780632c333e25146103d75780632e1a7d4d146103f8575f80fd5b80631ef08b751161030e5780631ef08b751461038b57806322867d781461039e578063236331e9146103b1575f80fd5b80630e81c4031461033457806312d43a51146103495780631e5a3a4b14610378575b5f80fd5b610347610342366004613979565b6107e7565b005b5f5461035b906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6103476103863660046139a9565b61089c565b6103476103993660046139f5565b610aaa565b6103476103ac366004613a4b565b610cb5565b6103476103bf366004613979565b610f7c565b60025461035b906001600160a01b031681565b6103ea6103e5366004613979565b61100f565b60405190815260200161036f565b610347610406366004613a75565b61103e565b6103ea610419366004613979565b600d6020525f908152604090205481565b610347610438366004613a75565b61104c565b61034761044b3660046139f5565b6111cb565b6103ea6113cd565b6103ea60065481565b61034761046f366004613979565b6114eb565b61035b610482366004613979565b600c6020525f90815260409020546001600160a01b031681565b6103476104aa366004613a4b565b61157e565b6103476104bd366004613979565b6116fa565b61035b7f000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c381565b61035b6104f7366004613979565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c3606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c8101919091526037808220606c830152605591012090565b61034761178d565b6103476105a6366004613a4b565b6117ae565b6103ea60095481565b6103476105c2366004613a75565b611be2565b6103ea60075481565b6103476105de366004613a75565b611c91565b6103476105f1366004613979565b611d5a565b610347610604366004613a75565b611ded565b60045461035b906001600160a01b031681565b6103ea61062a366004613979565b600e6020525f908152604090205481565b6103ea60055481565b610347610652366004613a75565b611eee565b6103ea610665366004613979565b611fc6565b610347610678366004613a75565b612199565b61034761068b366004613a8c565b6121a3565b600a5461069d9060ff1681565b604051901515815260200161036f565b6103476106bb366004613a4b565b6121b5565b60015461035b906001600160a01b031681565b6103476106e1366004613a75565b612905565b6103ea6106f4366004613979565b612910565b61035b7f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d71081565b61034761072e366004613ab9565b612b64565b610347610741366004613979565b612c8d565b610347610754366004613a75565b612d1f565b61035b7f0000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b81565b60035461035b906001600160a01b031681565b6103ea60085481565b610347612dda565b61035b7f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce481565b6103476107d9366004613a8c565b612dea565b6103ea600b5481565b6040517f36459f040000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301525f917f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710909116906336459f0490602401602060405180830381865afa158015610868573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061088c9190613ad4565b905061089882826117ae565b5050565b428410156108f15760405162461bcd60e51b815260206004820152601060248201527f444541444c494e455f455850495245440000000000000000000000000000000060448201526064015b60405180910390fd5b5f60016108fc6113cd565b6001600160a01b0388165f818152600e602090815260409182902080546001810190915582517f8d1d73617555ca8eaa7b0817ffc5bca6d6180656a9e3bc96c20620c10b2254088184015233818501526060810194909452608084015260a08084018b90528251808503909101815260c0840190925281519101207f190100000000000000000000000000000000000000000000000000000000000060e083015260e28201929092526101028101919091526101220160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610a0d573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590610a435750856001600160a01b0316816001600160a01b0316145b610a8f5760405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016108e8565b610aa28633610a9d89612dfd565b612fd4565b505050505050565b42841015610afa5760405162461bcd60e51b815260206004820152601060248201527f444541444c494e455f455850495245440000000000000000000000000000000060448201526064016108e8565b5f6001610b056113cd565b6001600160a01b0389165f818152600e602090815260409182902080546001810190915582517f1f0bc49e000c018ca72680800f3b2f7ce61e76471cce3756387071d004b0eee98184015233818501526060810194909452608084018c905260a084015260c08084018b90528251808503909101815260e0840190925281519101207f19010000000000000000000000000000000000000000000000000000000000006101008301526101028201929092526101228101919091526101420160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610c1f573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590610c555750866001600160a01b0316816001600160a01b0316145b610ca15760405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016108e8565b610cac8733886131f6565b50505050505050565b6001600160a01b0382165f908152600d602052604090205460018201610cd9578091505b81811015610d295760405162461bcd60e51b815260206004820152601b60248201527f52657061796d656e742067726561746572207468616e2064656274000000000060448201526064016108e8565b6001600160a01b0383165f908152600d602052604081208054849290610d50908490613b18565b9250508190555081600b5f828254610d689190613b18565b90915550506040517fd8d2c6480000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018490527f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710169063d8d2c648906044015f604051808303815f87803b158015610ded575f80fd5b505af1158015610dff573d5f803e3d5ffd5b50506003546001600160a01b0316159150610e899050576003546040517f081e6641000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063081e6641906024015f604051808303815f87803b158015610e72575f80fd5b505af1158015610e84573d5f803e3d5ffd5b505050505b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390527f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce46001600160a01b0316906323b872dd906064016020604051808303815f875af1158015610f12573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f369190613b31565b5060405182815233906001600160a01b038516907f05f2eeda0e08e4b437f487c8d7d29b14537d15e3488170dc3de5dbdf8dac46849060200160405180910390a3505050565b5f546001600160a01b03163314610fd55760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f8061101a83611fc6565b90506127106005548261102d9190613b4c565b6110379190613b63565b9392505050565b611049333383612fd4565b50565b5f546001600160a01b031633146110a55760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b5f811180156110c25750612710600854826110c09190613b9b565b105b61110e5760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964206c69717569646174696f6e20696e63656e7469766500000060448201526064016108e8565b600781905560055415611049575f60055460085461271061112f9190613b9b565b60055461113e90612710613b18565b6111489190613b4c565b6111529190613b63565b905080600754106108985760405162461bcd60e51b815260206004820152603760248201527f4e6577206c69717569646174696f6e20706172616d20616c6c6f772070726f6660448201527f697461626c652073656c66206c69717569646174696f6e00000000000000000060648201526084016108e8565b4284101561121b5760405162461bcd60e51b815260206004820152601060248201527f444541444c494e455f455850495245440000000000000000000000000000000060448201526064016108e8565b5f60016112266113cd565b6001600160a01b0389165f818152600e602090815260409182902080546001810190915582517f7dbda1635348f4206be1d85078da9f4a74703081e4fa6e174f3fd066c56189658184015233818501526060810194909452608084018c905260a084015260c08084018b90528251808503909101815260e0840190925281519101207f19010000000000000000000000000000000000000000000000000000000000006101008301526101028201929092526101228101919091526101420160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015611340573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116158015906113765750866001600160a01b0316816001600160a01b0316145b6113c25760405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016108e8565b610cac873388612fd4565b5f7f000000000000000000000000000000000000000000000000000000000000000146146114c65750604080518082018252600a81527f444252204d41524b45540000000000000000000000000000000000000000000060209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f4fdd2304dc9d5c5a62691d8e7e6cf5fe56e23281f4652fb6b06b133c9c2b03b4818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b507fcbf4c6e092a713ccbfff71a4889a033d601e06fd6fabca7f60bb78357c4dea2f90565b5f546001600160a01b031633146115445760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f6115888361357a565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038083166024830152604482018590529192507f0000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b909116906323b872dd906064016020604051808303815f875af1158015611618573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061163c9190613b31565b507f0000000000000000000000000000000000000000000000000000000000000001156116b257806001600160a01b03166312c93f596040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561169b575f80fd5b505af11580156116ad573d5f803e3d5ffd5b505050505b826001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c836040516116ed91815260200190565b60405180910390a2505050565b5f546001600160a01b031633146117535760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b335f908152600e602052604081208054916117a783613bae565b9190505550565b6040517f36459f040000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301525f917f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710909116906336459f0490602401602060405180830381865afa15801561182f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118539190613ad4565b90505f81116118a45760405162461bcd60e51b815260206004820152600e60248201527f4e6f20444252206465666963697400000000000000000000000000000000000060448201526064016108e8565b818110156118f45760405162461bcd60e51b815260206004820152601060248201527f416d6f756e74203e20646566696369740000000000000000000000000000000060448201526064016108e8565b5f6127107f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d7106001600160a01b031663a10f84cb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611954573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119789190613ad4565b6119829085613b4c565b61198c9190613b63565b90505f612710600654836119a09190613b4c565b6119aa9190613b63565b6001600160a01b0386165f908152600d60205260408120805492935084929091906119d6908490613b9b565b90915550506008546007545f91612710916119f19083613b18565b6119fb9190613b18565b611a04886136a8565b611a0e9190613b4c565b611a189190613b63565b6001600160a01b0387165f908152600d6020526040902054909150811015611a825760405162461bcd60e51b815260206004820152601960248201527f457863656564656420636f6c6c61746572616c2076616c75650000000000000060448201526064016108e8565b82600b5f828254611a939190613b9b565b90915550506040517fb2c087750000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015233602483015260448201879052606482018490527f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710169063b2c08775906084015f604051808303815f87803b158015611b25575f80fd5b505af1158015611b37573d5f803e3d5ffd5b50506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590527f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce46001600160a01b0316925063a9059cbb91506044016020604051808303815f875af1158015611bbe573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cac9190613b31565b5f546001600160a01b03163314611c3b5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b6127108110611c8c5760405162461bcd60e51b815260206004820152601f60248201527f496e76616c6964207265706c656e6973686d656e7420696e63656e746976650060448201526064016108e8565b600655565b5f546001600160a01b03163314611cea5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b6127108110611d3b5760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420636f6c6c61746572616c20666163746f720000000000000060448201526064016108e8565b60058190558015611049575f60055460085461271061112f9190613b9b565b5f546001600160a01b03163314611db35760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001546001600160a01b03163314611e475760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206c656e6465722063616e20726563616c6c0000000000000000000060448201526064016108e8565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce46001600160a01b03169063a9059cbb906044016020604051808303815f875af1158015611eca573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108989190613b31565b5f546001600160a01b03163314611f475760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b61271060075482611f589190613b9b565b10611fa55760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206c69717569646174696f6e2066656500000000000000000060448201526064016108e8565b600881905560055415611049575f60055460085461271061112f9190613b9b565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c3606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018290526037808220606c83015260559101205f905f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561209a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120be9190613ad4565b600480546005546040517f949c4fa30000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b8116948201949094526024810191909152929350670de0b6b3a76400009291169063949c4fa390604401602060405180830381865afa158015612159573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061217d9190613ad4565b6121879083613b4c565b6121919190613b63565b949350505050565b611049338261157e565b6121ac82612199565b61089881612905565b5f81116122045760405162461bcd60e51b815260206004820152601860248201527f4d75737420726570617920706f7369746976652064656274000000000000000060448201526064016108e8565b6001600160a01b0382165f908152600d6020526040902054806122268461383c565b106122735760405162461bcd60e51b815260206004820152601460248201527f557365722064656274206973206865616c74687900000000000000000000000060448201526064016108e8565b612710600954826122849190613b4c565b61228e9190613b63565b8211156122dd5760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206c69717569646174696f6e20666163746f72000000000060448201526064016108e8565b600480546005546040517f449e815d0000000000000000000000000000000000000000000000000000000081525f936001600160a01b039093169263449e815d9261235e927f0000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b92016001600160a01b03929092168252602082015260400190565b6020604051808303815f875af115801561237a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061239e9190613ad4565b90505f816123b485670de0b6b3a7640000613b4c565b6123be9190613b63565b9050612710600754826123d19190613b4c565b6123db9190613b63565b6123e59082613b9b565b6001600160a01b0386165f908152600d6020526040812080549293508692909190612411908490613b18565b9250508190555083600b5f8282546124299190613b18565b90915550506040517fd8d2c6480000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690527f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710169063d8d2c648906044015f604051808303815f87803b1580156124ae575f80fd5b505af11580156124c0573d5f803e3d5ffd5b50506003546001600160a01b031615915061254a9050576003546040517f081e6641000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b039091169063081e6641906024015f604051808303815f87803b158015612533575f80fd5b505af1158015612545573d5f803e3d5ffd5b505050505b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018590527f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce46001600160a01b0316906323b872dd906064016020604051808303815f875af11580156125d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125f79190613b31565b506040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c3606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018690526037808220606c83015260559101205f906040517fc4076876000000000000000000000000000000000000000000000000000000008152336004820152602481018490529091506001600160a01b0382169063c4076876906044015f604051808303815f87803b1580156126f0575f80fd5b505af1158015612702573d5f803e3d5ffd5b505050505f60085411156128b7575f6127106008548588670de0b6b3a764000061272c9190613b4c565b6127369190613b63565b6127409190613b4c565b61274a9190613b63565b90505f826001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612789573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127ad9190613ad4565b9050818110612834575f546040517fc40768760000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152602481018490529084169063c4076876906044015f604051808303815f87803b158015612819575f80fd5b505af115801561282b573d5f803e3d5ffd5b505050506128b4565b80156128b4575f546040517fc40768760000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152602481018390529084169063c4076876906044015f604051808303815f87803b15801561289d575f80fd5b505af11580156128af573d5f803e3d5ffd5b505050505b50505b604080518681526020810184905233916001600160a01b038916917ff3fa0eaee8f258c23b013654df25d1527f98a5c7ccd5e951dd77caca400ef972910160405180910390a3505050505050565b6110493333836131f6565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c3606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018290526037808220606c83015260559101205f905f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a089190613ad4565b9050805f03612a1a57505f9392505050565b6001600160a01b0384165f908152600d602052604081205490819003612a4257509392505050565b6005545f03612a5557505f949350505050565b600554600480546040517f949c4fa30000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b811693820193909352602481018490525f93929091169063949c4fa390604401602060405180830381865afa158015612ae6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b0a9190613ad4565b612b1c84670de0b6b3a7640000613b4c565b612b269190613b63565b612b3290612710613b4c565b612b3c9190613b63565b9050808311612b5057505f95945050505050565b612b5a8184613b18565b9695505050505050565b8015612c03576002546001600160a01b0316331480612b8c57505f546001600160a01b031633145b612bfe5760405162461bcd60e51b815260206004820152602b60248201527f4f6e6c7920706175736520677561726469616e206f7220676f7665726e616e6360448201527f652063616e20706175736500000000000000000000000000000000000000000060648201526084016108e8565b612c5c565b5f546001600160a01b03163314612c5c5760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920676f7665726e616e63652063616e20756e7061757365000000000060448201526064016108e8565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b5f546001600160a01b03163314612ce65760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b5f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f546001600160a01b03163314612d785760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920676f762063616e2063616c6c20746869732066756e6374696f6e0060448201526064016108e8565b5f81118015612d8957506127108111155b612dd55760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964206c69717569646174696f6e20666163746f7200000000000060448201526064016108e8565b600955565b612de83333610a9d33612dfd565b565b612df43383610cb5565b6108988161103e565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c3606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018290526037808220606c83015260559101205f905f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ed1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ef59190613ad4565b9050805f03612f0757505f9392505050565b6001600160a01b0384165f908152600d602052604081205490819003612f2f57509392505050565b6005545f03612f4257505f949350505050565b600554600480546040517f449e815d0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b811693820193909352602481018490525f93929091169063449e815d906044016020604051808303815f875af1158015612ae6573d5f803e3d5ffd5b5f612fde84612dfd565b9050818110156130305760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e74207769746864726177616c206c696d697400000060448201526064016108e8565b6040517f36459f040000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301527f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d71016906336459f0490602401602060405180830381865afa1580156130ad573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130d19190613ad4565b1561311e5760405162461bcd60e51b815260206004820152601f60248201527f43616e277420776974686472617720776974682044425220646566696369740060448201526064016108e8565b5f6131288561357a565b6040517fc40768760000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690529192509082169063c4076876906044015f604051808303815f87803b15801561318c575f80fd5b505af115801561319e573d5f803e3d5ffd5b50505050836001600160a01b0316856001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb856040516131e791815260200190565b60405180910390a35050505050565b600a5460ff16156132495760405162461bcd60e51b815260206004820152601360248201527f426f72726f77696e67206973207061757365640000000000000000000000000060448201526064016108e8565b6003546001600160a01b031615613339576003546040517fda3d454c0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b038581166024830152604482018490529091169063da3d454c906064016020604051808303815f875af11580156132c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906132ed9190613b31565b6133395760405162461bcd60e51b815260206004820152601b60248201527f44656e69656420627920626f72726f7720636f6e74726f6c6c6572000000000060448201526064016108e8565b5f6133438461383c565b6001600160a01b0385165f908152600d602052604081208054929350849290919061336f908490613b9b565b90915550506001600160a01b0384165f908152600d60205260409020548110156133db5760405162461bcd60e51b815260206004820152601560248201527f457863656564656420637265646974206c696d6974000000000000000000000060448201526064016108e8565b81600b5f8282546133ec9190613b9b565b90915550506040517ff7f11fb70000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018490527f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710169063f7f11fb7906044015f604051808303815f87803b158015613471575f80fd5b505af1158015613483573d5f803e3d5ffd5b50506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690527f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce416925063a9059cbb91506044016020604051808303815f875af115801561350c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906135309190613b31565b50836001600160a01b03167fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a367508360405161356c91815260200190565b60405180910390a250505050565b6001600160a01b038181165f908152600c6020526040812054909116156135b957506001600160a01b039081165f908152600c60205260409020541690565b5f6135c383613847565b6040517f485cc9550000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b8116600483015285811660248301529192509082169063485cc955906044015f604051808303815f87803b158015613648575f80fd5b505af115801561365a573d5f803e3d5ffd5b505050506001600160a01b039283165f908152600c6020526040902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938216939093179092555090565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c3606090811b60148301527f5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000602883015230901b6038820152604c81018290526037808220606c83015260559101205f905f816001600160a01b031663b69ef8a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561377c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137a09190613ad4565b600480546005546040517f449e815d0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000008272e1a3dbef607c04aa6e5bd3a1a134c8ac063b8116948201949094526024810191909152929350670de0b6b3a76400009291169063449e815d906044016020604051808303815f875af1158015612159573d5f803e3d5ffd5b5f8061101a836136a8565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081527f000000000000000000000000cb21dc82c4346ce448808a8b9c51719f13ce00c3606081901b60148301527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288301525f918360378285f59250506001600160a01b03821661391f5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016108e8565b6040516001600160a01b0383811682528416907f1cfd6e6fe6d92716198ef80381fd40e4338b9a461cc4fc235c51b152f7f830159060200160405180910390a250919050565b6001600160a01b0381168114611049575f80fd5b5f60208284031215613989575f80fd5b813561103781613965565b803560ff811681146139a4575f80fd5b919050565b5f805f805f60a086880312156139bd575f80fd5b85356139c881613965565b9450602086013593506139dd60408701613994565b94979396509394606081013594506080013592915050565b5f805f805f8060c08789031215613a0a575f80fd5b8635613a1581613965565b95506020870135945060408701359350613a3160608801613994565b92506080870135915060a087013590509295509295509295565b5f8060408385031215613a5c575f80fd5b8235613a6781613965565b946020939093013593505050565b5f60208284031215613a85575f80fd5b5035919050565b5f8060408385031215613a9d575f80fd5b50508035926020909101359150565b8015158114611049575f80fd5b5f60208284031215613ac9575f80fd5b813561103781613aac565b5f60208284031215613ae4575f80fd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115613b2b57613b2b613aeb565b92915050565b5f60208284031215613b41575f80fd5b815161103781613aac565b8082028115828204841417613b2b57613b2b613aeb565b5f82613b96577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b80820180821115613b2b57613b2b613aeb565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613bde57613bde613aeb565b506001019056fea26469706673582212201b82ef30e58f3c374b706da91f3af2ee7f99ac1075f9e8839ad441156b05f6f864736f6c63430008140033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.