Contract 0xebcbc6b9b782f3dfd61fff70b2aaa0ae8d8b2a8d

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xebdfb1206cbf7f534e72b063b3a9573a6fc523a3dd29d617a0aeb94aafeacb7dApprove Migratio...128503332021-11-22 2:30:0463 days 1 hr agoDeri Finance: Deployer IN  0xebcbc6b9b782f3dfd61fff70b2aaa0ae8d8b2a8d0 BNB0.000268505
0x5546d6db0f7fe685e733539367be6a718d33c98e640f513443047f27f32cb6a0Prepare Migratio...127382742021-11-18 1:42:5767 days 2 hrs agoDeri Finance: Deployer IN  0xebcbc6b9b782f3dfd61fff70b2aaa0ae8d8b2a8d0 BNB0.000327865
0x12324951a5c252d8263e67f5af410e0b4c50e565facc471132b054ebc5ad9cc6Buy And Burn Der...127197922021-11-17 9:29:5367 days 19 hrs agoDeri Finance: Deployer IN  0xebcbc6b9b782f3dfd61fff70b2aaa0ae8d8b2a8d0 BNB0.00020009
0xa1592c0807d7fd4b6068bdfaa0183ab81cba38a5a1e02621584eb09ebe6ca7a00x6080604078842522021-05-31 9:06:02237 days 19 hrs agoDeri Finance: Deployer IN  Create: ProtocolFeeCollector0 BNB0.00611034
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProtocolFeeCollector

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : ProtocolFeeCollector.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import '../interface/IERC20.sol';
import '../interface/IMigratable.sol';
import '../interface/IUniswapV2Router02.sol';
import '../library/SafeERC20.sol';
import '../utils/Migratable.sol';

contract ProtocolFeeCollector is Migratable {

    event BuyAndBurnDeri(uint256 bTokenAmount, uint256 deriAmount);

    using SafeERC20 for IERC20;

    // DERI token address
    address public deri;
    // BToken0 token address
    address public bToken;
    // burningDestination address, the DERI bought will be sent to this burningDestination
    address public burningDestination;
    // Uniswap like swapRouter address
    address public swapRouter;

    constructor (
        address deri_,
        address bToken_,
        address burningDestination_,
        address swapRouter_
    ) {
        deri = deri_;
        bToken = bToken_;
        burningDestination = burningDestination_;
        swapRouter = swapRouter_;

        IERC20(bToken_).safeApprove(swapRouter, type(uint256).max);

        _controller = msg.sender;
    }

    function approveMigration() external override _controller_ {
        require(_migrationTimestamp != 0 && block.timestamp >= _migrationTimestamp, 'ProtocolFeeCollector: migrationTimestamp not met yet');
        IERC20(bToken).safeApprove(_migrationDestination, type(uint256).max);
    }

    function executeMigration(address source) external override _controller_ {
        uint256 migrationTimestamp_ = IMigratable(source).migrationTimestamp();
        address migrationDestination_ = IMigratable(source).migrationDestination();

        require(migrationTimestamp_ != 0 && block.timestamp >= migrationTimestamp_, 'ProtocolFeeCollector: migrationTimestamp not met yet');
        require(migrationDestination_ == address(this), 'ProtocolFeeCollector: not migrationDestination');

        IERC20(bToken).safeTransferFrom(source, address(this), IERC20(bToken).balanceOf(source));

        emit ExecuteMigration(migrationTimestamp_, source, address(this));
    }

    function buyAndBurnDeri(uint256 amount) external _controller_ {
        uint256 bTokenBalance = IERC20(bToken).balanceOf(address(this));
        require(bTokenBalance >= amount, 'ProtocolFeeCollector.buyAndBurnDeri: amount exceed balance');

        address[] memory path = new address[](2);
        path[0] = bToken;
        path[1] = deri;

        uint256 deriBalance1 = IERC20(deri).balanceOf(burningDestination);
        IUniswapV2Router02(swapRouter).swapExactTokensForTokens(amount, 0, path, burningDestination, block.timestamp + 3600);
        uint256 deriBalance2 = IERC20(deri).balanceOf(burningDestination);

        emit BuyAndBurnDeri(amount, deriBalance2 - deriBalance1);
    }

}

File 2 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

interface IERC20 {

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    event Transfer(address indexed from, address indexed to, uint256 amount);

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transfer(address to, uint256 amount) external returns (bool);

    function transferFrom(address from, address to, uint256 amount) external returns (bool);

}

File 3 of 10 : IMigratable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import './IOwnable.sol';

interface IMigratable is IOwnable {

    event PrepareMigration(uint256 migrationTimestamp, address source, address target);

    event ExecuteMigration(uint256 migrationTimestamp, address source, address target);

    function migrationTimestamp() external view returns (uint256);

    function migrationDestination() external view returns (address);

    function prepareMigration(address target, uint256 graceDays) external;

    function approveMigration() external;

    function executeMigration(address source) external;

}

File 4 of 10 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 5 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import "../interface/IERC20.sol";
import "./Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {

    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender) - value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 10 : Migratable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import '../interface/IMigratable.sol';
import './Ownable.sol';

abstract contract Migratable is IMigratable, Ownable {

    // migration timestamp, zero means not set
    // migration timestamp can only be set with a grace period, e.x. 3-365 days, and the
    // migration destination must also be set when setting migration timestamp
    // users can use this grace period to verify the desination contract code
    uint256 _migrationTimestamp;

    // the destination address the source contract will migrate to, after the grace period
    address _migrationDestination;

    function migrationTimestamp() public override view returns (uint256) {
        return _migrationTimestamp;
    }

    function migrationDestination() public override view returns (address) {
        return _migrationDestination;
    }

    // prepare a migration process, the timestamp and desination will be set at this stage
    // and the migration grace period starts
    function prepareMigration(address target, uint256 graceDays) public override _controller_ {
        require(target != address(0), 'Migratable: target 0');
        require(graceDays >= 3 && graceDays <= 365, 'Migratable: graceDays must be 3-365');

        _migrationTimestamp = block.timestamp + graceDays * 1 days;
        _migrationDestination = target;

        emit PrepareMigration(_migrationTimestamp, address(this), _migrationDestination);
    }

}

File 7 of 10 : IOwnable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

interface IOwnable {

    function controller() external view returns (address);

    function setNewController(address newController) external;

    function claimNewController() external;

}

File 8 of 10 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 9 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import '../interface/IOwnable.sol';

abstract contract Ownable is IOwnable {

    address _controller;

    address _newController;

    modifier _controller_() {
        require(msg.sender == _controller, 'Ownable: only controller');
        _;
    }

    function controller() public override view returns (address) {
        return _controller;
    }

    function setNewController(address newController) public override _controller_ {
        _newController = newController;
    }

    // a claim step is needed to prevent set controller to a wrong address and forever lost control
    function claimNewController() public override {
        require(msg.sender == _newController, 'Ownable: not allowed');
        _controller = _newController;
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"deri_","type":"address"},{"internalType":"address","name":"bToken_","type":"address"},{"internalType":"address","name":"burningDestination_","type":"address"},{"internalType":"address","name":"swapRouter_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"bTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deriAmount","type":"uint256"}],"name":"BuyAndBurnDeri","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"migrationTimestamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"source","type":"address"},{"indexed":false,"internalType":"address","name":"target","type":"address"}],"name":"ExecuteMigration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"migrationTimestamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"source","type":"address"},{"indexed":false,"internalType":"address","name":"target","type":"address"}],"name":"PrepareMigration","type":"event"},{"inputs":[],"name":"approveMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burningDestination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyAndBurnDeri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimNewController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deri","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"source","type":"address"}],"name":"executeMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrationDestination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrationTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"graceDays","type":"uint256"}],"name":"prepareMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newController","type":"address"}],"name":"setNewController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040516200181e3803806200181e8339810160408190526200003491620004a2565b600480546001600160a01b03199081166001600160a01b0387811691909117909255600580548216868416908117909155600680548316868516179055600780549092169284169283179091556200009b91600019620000b8602090811b62000ab817901c565b5050600080546001600160a01b0319163317905550620005bf9050565b801580620001465750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156200010957600080fd5b505afa1580156200011e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000144919062000520565b155b620001be5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620002169185916200021b16565b505050565b600062000277826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620002f960201b62000c14179092919060201c565b805190915015620002165780806020019051810190620002989190620004fe565b620002165760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620001b5565b60606200030a848460008562000314565b90505b9392505050565b606082471015620003775760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620001b5565b843b620003c75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620001b5565b600080866001600160a01b03168587604051620003e5919062000539565b60006040518083038185875af1925050503d806000811462000424576040519150601f19603f3d011682016040523d82523d6000602084013e62000429565b606091505b5090925090506200043c82828662000447565b979650505050505050565b60608315620004585750816200030d565b825115620004695782518084602001fd5b8160405162461bcd60e51b8152600401620001b5919062000557565b80516001600160a01b03811681146200049d57600080fd5b919050565b60008060008060808587031215620004b8578384fd5b620004c38562000485565b9350620004d36020860162000485565b9250620004e36040860162000485565b9150620004f36060860162000485565b905092959194509250565b60006020828403121562000510578081fd5b815180151581146200030d578182fd5b60006020828403121562000532578081fd5b5051919050565b600082516200054d8184602087016200058c565b9190910192915050565b6020815260008251806020840152620005788160408501602087016200058c565b601f01601f19169190910160400192915050565b60005b83811015620005a95781810151838201526020016200058f565b83811115620005b9576000848401525b50505050565b61124f80620005cf6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806379a87b191161008c578063c31c9c0711610066578063c31c9c0714610184578063eab38c1d14610197578063f77c4791146101aa578063ff353aad146101bb57600080fd5b806379a87b19146101585780637b725c1e14610169578063b716dc8a1461017157600080fd5b8063180f5842146100d4578063325564ec1461010457806351dfdb481461010e57806358c700a31461012157806359baef4014610132578063677528cb14610145575b600080fd5b6005546100e7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010c6101ce565b005b61010c61011c366004610e9e565b610251565b6002546040519081526020016100fb565b61010c610140366004610e9e565b6104e4565b61010c610153366004610ed6565b610530565b6003546001600160a01b03166100e7565b61010c61068d565b6006546100e7906001600160a01b031681565b6007546100e7906001600160a01b031681565b61010c6101a5366004610fe1565b610702565b6000546001600160a01b03166100e7565b6004546100e7906001600160a01b031681565b6000546001600160a01b031633146102015760405162461bcd60e51b81526004016101f890611060565b60405180910390fd5b6002541580159061021457506002544210155b6102305760405162461bcd60e51b81526004016101f890611097565b60035460055461024f916001600160a01b039182169116600019610ab8565b565b6000546001600160a01b0316331461027b5760405162461bcd60e51b81526004016101f890611060565b6000816001600160a01b03166358c700a36040518163ffffffff1660e01b815260040160206040518083038186803b1580156102b657600080fd5b505afa1580156102ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ee9190610ff9565b90506000826001600160a01b03166379a87b196040518163ffffffff1660e01b815260040160206040518083038186803b15801561032b57600080fd5b505afa15801561033f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103639190610eba565b905081158015906103745750814210155b6103905760405162461bcd60e51b81526004016101f890611097565b6001600160a01b03811630146103ff5760405162461bcd60e51b815260206004820152602e60248201527f50726f746f636f6c466565436f6c6c6563746f723a206e6f74206d696772617460448201526d34b7b72232b9ba34b730ba34b7b760911b60648201526084016101f8565b6005546040516370a0823160e01b81526001600160a01b0380861660048301526104989286923092909116906370a082319060240160206040518083038186803b15801561044c57600080fd5b505afa158015610460573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104849190610ff9565b6005546001600160a01b0316929190610c2d565b604080518381526001600160a01b0385166020820152308183015290517f18ce2512842fddee8c808fb717780a66007d1da9a942dd32625813c82d53c3429181900360600190a1505050565b6000546001600160a01b0316331461050e5760405162461bcd60e51b81526004016101f890611060565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461055a5760405162461bcd60e51b81526004016101f890611060565b6001600160a01b0382166105a75760405162461bcd60e51b815260206004820152601460248201527304d696772617461626c653a2074617267657420360641b60448201526064016101f8565b600381101580156105ba575061016d8111155b6106125760405162461bcd60e51b815260206004820152602360248201527f4d696772617461626c653a20677261636544617973206d75737420626520332d60448201526233363560e81b60648201526084016101f8565b61061f8162015180611173565b610629904261115b565b6002819055600380546001600160a01b0319166001600160a01b038516908117909155604080519283523060208401528201527fe2a3b7ba8269be3ca7ba4627f844bb9abd978e9b05d290dc89d4b107f9e3dda79060600160405180910390a15050565b6001546001600160a01b031633146106de5760405162461bcd60e51b815260206004820152601460248201527313dddb98589b194e881b9bdd08185b1b1bddd95960621b60448201526064016101f8565b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b0316331461072c5760405162461bcd60e51b81526004016101f890611060565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561077057600080fd5b505afa158015610784573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a89190610ff9565b9050818110156108205760405162461bcd60e51b815260206004820152603a60248201527f50726f746f636f6c466565436f6c6c6563746f722e627579416e644275726e4460448201527f6572693a20616d6f756e74206578636565642062616c616e636500000000000060648201526084016101f8565b604080516002808252606082018352600092602083019080368337505060055482519293506001600160a01b03169183915060009061086f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526004548251911690829060019081106108ae57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152600480546006546040516370a0823160e01b81529084169281019290925260009216906370a082319060240160206040518083038186803b15801561090857600080fd5b505afa15801561091c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109409190610ff9565b6007546006549192506001600160a01b03908116916338ed173991879160009187911661096f42610e1061115b565b6040518663ffffffff1660e01b815260040161098f9594939291906110eb565b600060405180830381600087803b1580156109a957600080fd5b505af11580156109bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109e59190810190610f01565b50600480546006546040516370a0823160e01b81526001600160a01b03918216938101939093526000929116906370a082319060240160206040518083038186803b158015610a3357600080fd5b505afa158015610a47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6b9190610ff9565b90507fe0aeed8d079395846d63efc90bce988b291e5fa500d3b41d31b1a3e3d129c4a585610a998484611192565b6040805192835260208301919091520160405180910390a15050505050565b801580610b415750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610b0757600080fd5b505afa158015610b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3f9190610ff9565b155b610bac5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016101f8565b6040516001600160a01b038316602482015260448101829052610c0f90849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610c6b565b505050565b6060610c238484600085610d3d565b90505b9392505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610c659085906323b872dd60e01b90608401610bd8565b50505050565b6000610cc0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c149092919063ffffffff16565b805190915015610c0f5780806020019051810190610cde9190610fc1565b610c0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101f8565b606082471015610d9e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101f8565b843b610dec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101f8565b600080866001600160a01b03168587604051610e089190611011565b60006040518083038185875af1925050503d8060008114610e45576040519150601f19603f3d011682016040523d82523d6000602084013e610e4a565b606091505b5091509150610e5a828286610e65565b979650505050505050565b60608315610e74575081610c26565b825115610e845782518084602001fd5b8160405162461bcd60e51b81526004016101f8919061102d565b600060208284031215610eaf578081fd5b8135610c2681611201565b600060208284031215610ecb578081fd5b8151610c2681611201565b60008060408385031215610ee8578081fd5b8235610ef381611201565b946020939093013593505050565b60006020808385031215610f13578182fd5b825167ffffffffffffffff80821115610f2a578384fd5b818501915085601f830112610f3d578384fd5b815181811115610f4f57610f4f6111eb565b8060051b604051601f19603f83011681018181108582111715610f7457610f746111eb565b604052828152858101935084860182860187018a1015610f92578788fd5b8795505b83861015610fb4578051855260019590950194938601938601610f96565b5098975050505050505050565b600060208284031215610fd2578081fd5b81518015158114610c26578182fd5b600060208284031215610ff2578081fd5b5035919050565b60006020828403121561100a578081fd5b5051919050565b600082516110238184602087016111a9565b9190910192915050565b602081526000825180602084015261104c8160408501602087016111a9565b601f01601f19169190910160400192915050565b60208082526018908201527f4f776e61626c653a206f6e6c7920636f6e74726f6c6c65720000000000000000604082015260600190565b60208082526034908201527f50726f746f636f6c466565436f6c6c6563746f723a206d6967726174696f6e546040820152731a5b595cdd185b5c081b9bdd081b595d081e595d60621b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b8181101561113a5784516001600160a01b031683529383019391830191600101611115565b50506001600160a01b03969096166060850152505050608001529392505050565b6000821982111561116e5761116e6111d5565b500190565b600081600019048311821515161561118d5761118d6111d5565b500290565b6000828210156111a4576111a46111d5565b500390565b60005b838110156111c45781810151838201526020016111ac565b83811115610c655750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461121657600080fd5b5056fea264697066735822122052b42ef418039ddc9d0a5e4e1c229224e9654735506aee0f47d90104000c005e64736f6c63430008040033000000000000000000000000e60eaf5a997dfae83739e035b005a33afdcc6df5000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d560000000000000000000000006c8d3f31b2ad1ae997afa20ead88cb67e93c6e1700000000000000000000000005ff2b0db69458a0750badebc4f9e13add608c7f

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

000000000000000000000000e60eaf5a997dfae83739e035b005a33afdcc6df5000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d560000000000000000000000006c8d3f31b2ad1ae997afa20ead88cb67e93c6e1700000000000000000000000005ff2b0db69458a0750badebc4f9e13add608c7f

-----Decoded View---------------
Arg [0] : deri_ (address): 0xe60eaf5a997dfae83739e035b005a33afdcc6df5
Arg [1] : bToken_ (address): 0xe9e7cea3dedca5984780bafc599bd69add087d56
Arg [2] : burningDestination_ (address): 0x6c8d3f31b2ad1ae997afa20ead88cb67e93c6e17
Arg [3] : swapRouter_ (address): 0x05ff2b0db69458a0750badebc4f9e13add608c7f

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000e60eaf5a997dfae83739e035b005a33afdcc6df5
Arg [1] : 000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d56
Arg [2] : 0000000000000000000000006c8d3f31b2ad1ae997afa20ead88cb67e93c6e17
Arg [3] : 00000000000000000000000005ff2b0db69458a0750badebc4f9e13add608c7f


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.