Contract 0x3f3e77421e30271568ef7a0ab5c5f2667675341e

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3408c9575231b0630c9fefd003aa2220050790b6b4c7df6933dbd48ef65fd9f5Process Mint122851702022-05-17 6:04:068 days 20 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000148564327 ETH
0x6f9bc5873129c6c8d82560108f6f3008ee20bd4cccd68fbf497f5102be74bcb2Set Handler121963502022-05-16 7:36:299 days 18 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000124084282 ETH
0x24ebda7882dabe4f2b3003e22f7212261f435af74df8d679c52f8deb4c2cfe85Set Handler121963072022-05-16 7:35:569 days 18 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000123494219 ETH
0x774eff9e39d85dab035293e631907843928a630bf25b4dc7ae423010b24725d9Signal Set Handl...119658392022-05-13 8:32:3112 days 17 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000793624763 ETH
0xffb64577ad87746abbd5a2d27cd779c1bf52d695e57467e5d8edbbf89cfd0f35Signal Set Handl...119657842022-05-13 8:31:3112 days 17 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000795512275 ETH
0x12e8a9bd678293caff7efd9431f12cb8cfb51da46f6ba87040524c16fa7b7b33Signal Mint119643072022-05-13 7:58:3712 days 18 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000808927343 ETH
0xaa9e7681be3f02d1150d4f95dd750f2337906156abd837b767941b83bf1148f7Batch Set Bonus ...117813362022-05-11 9:42:4514 days 16 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.00034113545 ETH
0xb43806b1b344e9df031418588d6943e9f1346c053f237ed60a22d8237ef637fdSet Handler117543602022-05-11 3:35:1914 days 22 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000253607211 ETH
0xc49724219504eeb2118246bf6bfc8a7899bd3df15a01b3b6d44546df88baabbcSignal Set Handl...115763882022-05-09 7:57:5816 days 18 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000148823119 ETH
0xe1f297290030fdfd87895ea50407df691a54768faa45223c1dc73338a3fdf790Set In Private T...111631042022-05-04 9:19:5121 days 16 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000259413392 ETH
0xa37e10257e18647065e9fe4d34f7445bafcaf396c9b8336d96861552f929cc92Set In Private T...111621742022-05-04 9:04:2221 days 17 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000234907871 ETH
0xd69962bbd77897408e5a04309437b563f417c014188f1245e551e58cb1e3ac0fSet In Private T...109069302022-04-30 13:04:1925 days 13 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000240510289 ETH
0xbc65e05e18e3bc9162655234a9bfefbb3cfcd3a7c45dba22292dc7923cea06c7Set In Private T...109067032022-04-30 12:59:4625 days 13 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000217224582 ETH
0x2d12a28b09499e2b7ee4eeb13f276e0e0159e2f56a97141ac9ec016ba59f98efSet In Private T...107306042022-04-28 10:15:4827 days 15 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.00025088611 ETH
0xa437cfca8d51ee5ff0df1ec06d1200ea22244b8c7463e28596a144b82aaa75b2Set In Private T...107302232022-04-28 10:08:4427 days 16 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000226658786 ETH
0x2e8e485a5928816893f33d940210d2d22f687f5bb4d374dd30107d19c6c41124Process Mint107261692022-04-28 9:07:3627 days 17 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000252562418 ETH
0xde4a0ca0b04e08f2e6f9a77ceee34467a37f9591b49592779736362227b58030Signal Mint106355172022-04-27 7:07:0628 days 19 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000284850938 ETH
0x1c551c5e48beb57587b1b2e4c294593809bf7845a04bc2ccd7a3954a27e6c74fSet Handler105638592022-04-26 6:20:2029 days 19 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000282117881 ETH
0xb1b4ea0b6ba7e9577539484dedc202e14145b21e58a9bf011d03e3c291563f6cProcess Mint105636422022-04-26 6:12:5829 days 20 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000262865241 ETH
0x7584dddc7775b39d3c340b8e3f4b0318f3c722ef4bfa2ef023b6aa7d443b2143Set In Private T...101418282022-04-20 3:31:5835 days 22 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000224232644 ETH
0xd68765913ce5c6809f7aae7a1e63c3cf47bba857e3c5a1cde018b3c7cdd7cef9Set In Private T...101415982022-04-20 3:29:1535 days 22 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000202579166 ETH
0xa46d9ede00fc4c85f692f77ea34b1562c0d165a58e981ca9befd06a0f37d6badSignal Mint100821402022-04-19 7:15:2536 days 18 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000204727379 ETH
0x42abd83694a08f734a9b35d24e6c8411da3d7e6e0e2033939970201d513ceb6dSignal Set Handl...100818382022-04-19 7:11:1436 days 19 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000200854562 ETH
0xdd0da6f3aa2f246c919be043f15107642a5875ef0a47a2540a1586ef08cb0591Process Mint100725842022-04-19 4:04:4036 days 22 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000210386486 ETH
0xb6d884c5750c88085ce0bf38c2dded0f6c4e81ed2b2a4b939baf79669812601bSignal Mint100042112022-04-18 3:27:1637 days 22 hrs ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0x3f3e77421e30271568ef7a0ab5c5f2667675341e0 ETH0.000180831252 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x3408c9575231b0630c9fefd003aa2220050790b6b4c7df6933dbd48ef65fd9f5122851702022-05-17 6:04:068 days 20 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x3408c9575231b0630c9fefd003aa2220050790b6b4c7df6933dbd48ef65fd9f5122851702022-05-17 6:04:068 days 20 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x3408c9575231b0630c9fefd003aa2220050790b6b4c7df6933dbd48ef65fd9f5122851702022-05-17 6:04:068 days 20 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x6f9bc5873129c6c8d82560108f6f3008ee20bd4cccd68fbf497f5102be74bcb2121963502022-05-16 7:36:299 days 18 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0x1addd80e6039594ee970e5872d247bf0414c89030 ETH
0x24ebda7882dabe4f2b3003e22f7212261f435af74df8d679c52f8deb4c2cfe85121963072022-05-16 7:35:569 days 18 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0x4e971a87900b931ff39d1aad67697f49835400b60 ETH
0xaa9e7681be3f02d1150d4f95dd750f2337906156abd837b767941b83bf1148f7117813362022-05-11 9:42:4514 days 16 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0x199070ddfd1cfb69173aa2f7e20906f26b3630040 ETH
0xaa9e7681be3f02d1150d4f95dd750f2337906156abd837b767941b83bf1148f7117813362022-05-11 9:42:4514 days 16 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0x199070ddfd1cfb69173aa2f7e20906f26b3630040 ETH
0xb43806b1b344e9df031418588d6943e9f1346c053f237ed60a22d8237ef637fd117543602022-05-11 3:35:1914 days 22 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xe1f297290030fdfd87895ea50407df691a54768faa45223c1dc73338a3fdf790111631042022-05-04 9:19:5121 days 16 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xa37e10257e18647065e9fe4d34f7445bafcaf396c9b8336d96861552f929cc92111621742022-05-04 9:04:2221 days 17 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xd69962bbd77897408e5a04309437b563f417c014188f1245e551e58cb1e3ac0f109069302022-04-30 13:04:1925 days 13 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xbc65e05e18e3bc9162655234a9bfefbb3cfcd3a7c45dba22292dc7923cea06c7109067032022-04-30 12:59:4625 days 13 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x2d12a28b09499e2b7ee4eeb13f276e0e0159e2f56a97141ac9ec016ba59f98ef107306042022-04-28 10:15:4827 days 15 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xa437cfca8d51ee5ff0df1ec06d1200ea22244b8c7463e28596a144b82aaa75b2107302232022-04-28 10:08:4427 days 16 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x2e8e485a5928816893f33d940210d2d22f687f5bb4d374dd30107d19c6c41124107261692022-04-28 9:07:3627 days 17 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x2e8e485a5928816893f33d940210d2d22f687f5bb4d374dd30107d19c6c41124107261692022-04-28 9:07:3627 days 17 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x2e8e485a5928816893f33d940210d2d22f687f5bb4d374dd30107d19c6c41124107261692022-04-28 9:07:3627 days 17 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x1c551c5e48beb57587b1b2e4c294593809bf7845a04bc2ccd7a3954a27e6c74f105638592022-04-26 6:20:2029 days 19 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xb1b4ea0b6ba7e9577539484dedc202e14145b21e58a9bf011d03e3c291563f6c105636422022-04-26 6:12:5829 days 20 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xb1b4ea0b6ba7e9577539484dedc202e14145b21e58a9bf011d03e3c291563f6c105636422022-04-26 6:12:5829 days 20 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xb1b4ea0b6ba7e9577539484dedc202e14145b21e58a9bf011d03e3c291563f6c105636422022-04-26 6:12:5829 days 20 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0x7584dddc7775b39d3c340b8e3f4b0318f3c722ef4bfa2ef023b6aa7d443b2143101418282022-04-20 3:31:5835 days 22 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xd68765913ce5c6809f7aae7a1e63c3cf47bba857e3c5a1cde018b3c7cdd7cef9101415982022-04-20 3:29:1535 days 22 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xdd0da6f3aa2f246c919be043f15107642a5875ef0a47a2540a1586ef08cb0591100725842022-04-19 4:04:4036 days 22 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
0xdd0da6f3aa2f246c919be043f15107642a5875ef0a47a2540a1586ef08cb0591100725842022-04-19 4:04:4036 days 22 hrs ago 0x3f3e77421e30271568ef7a0ab5c5f2667675341e 0xf42ae1d54fd613c9bb14810b0588faaa09a426ca0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Timelock

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 14 : Timelock.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./interfaces/ITimelockTarget.sol";
import "./interfaces/ITimelock.sol";
import "./interfaces/IHandlerTarget.sol";
import "../access/interfaces/IAdmin.sol";
import "../core/interfaces/IVault.sol";
import "../core/interfaces/IVaultPriceFeed.sol";
import "../core/interfaces/IRouter.sol";
import "../tokens/interfaces/IYieldToken.sol";
import "../tokens/interfaces/IBaseToken.sol";
import "../tokens/interfaces/IMintable.sol";
import "../staking/interfaces/IVester.sol";

import "../libraries/math/SafeMath.sol";
import "../libraries/token/IERC20.sol";

contract Timelock is ITimelock {
    using SafeMath for uint256;

    uint256 public constant PRICE_PRECISION = 10 ** 30;
    uint256 public constant MAX_BUFFER = 5 days;
    uint256 public constant MAX_FEE_BASIS_POINTS = 300; // 3%

    uint256 public buffer;
    address public admin;

    address public tokenManager;
    address public rewardManager;
    address public mintReceiver;
    uint256 public maxTokenSupply;

    mapping (bytes32 => uint256) public pendingActions;
    mapping (address => bool) public excludedTokens;

    event SignalPendingAction(bytes32 action);
    event SignalApprove(address token, address spender, uint256 amount, bytes32 action);
    event SignalMint(address token, address receiver, uint256 amount, bytes32 action);
    event SignalSetGov(address target, address gov, bytes32 action);
    event SignalSetHandler(address target, address handler, bool isActive, bytes32 action);
    event SignalSetPriceFeed(address vault, address priceFeed, bytes32 action);
    event SignalAddPlugin(address router, address plugin, bytes32 action);
    event SignalVaultSetTokenConfig(
        address vault,
        address token,
        uint256 tokenDecimals,
        uint256 tokenWeight,
        uint256 minProfitBps,
        uint256 maxUsdgAmount,
        bool isStable,
        bool isShortable
    );
    event ClearAction(bytes32 action);

    modifier onlyAdmin() {
        require(msg.sender == admin, "Timelock: forbidden");
        _;
    }

    modifier onlyTokenManager() {
        require(msg.sender == tokenManager, "Timelock: forbidden");
        _;
    }

    modifier onlyRewardManager() {
        require(msg.sender == rewardManager, "Timelock: forbidden");
        _;
    }

    constructor(
        address _admin,
        uint256 _buffer,
        address _rewardManager,
        address _tokenManager,
        address _mintReceiver,
        uint256 _maxTokenSupply
    ) public {
        require(_buffer <= MAX_BUFFER, "Timelock: invalid _buffer");
        admin = _admin;
        buffer = _buffer;
        rewardManager = _rewardManager;
        tokenManager = _tokenManager;
        mintReceiver = _mintReceiver;
        maxTokenSupply = _maxTokenSupply;
    }

    function setAdmin(address _admin) external override onlyTokenManager {
        admin = _admin;
    }

    function setExternalAdmin(address _target, address _admin) external onlyAdmin {
        require(_target != address(this), "Timelock: invalid _target");
        IAdmin(_target).setAdmin(_admin);
    }

    function setBuffer(uint256 _buffer) external onlyAdmin {
        require(_buffer <= MAX_BUFFER, "Timelock: invalid _buffer");
        require(_buffer > buffer, "Timelock: buffer cannot be decreased");
        buffer = _buffer;
    }

    function mint(address _token, uint256 _amount) external onlyAdmin {
        _mint(_token, mintReceiver, _amount);
    }

    function setFees(
        address _vault,
        uint256 _taxBasisPoints,
        uint256 _stableTaxBasisPoints,
        uint256 _mintBurnFeeBasisPoints,
        uint256 _swapFeeBasisPoints,
        uint256 _stableSwapFeeBasisPoints,
        uint256 _marginFeeBasisPoints,
        uint256 _liquidationFeeUsd,
        uint256 _minProfitTime,
        bool _hasDynamicFees
    ) external onlyAdmin {
        require(_taxBasisPoints < MAX_FEE_BASIS_POINTS, "Timelock: invalid _taxBasisPoints");
        require(_stableTaxBasisPoints < MAX_FEE_BASIS_POINTS, "Timelock: invalid _stableTaxBasisPoints");
        require(_mintBurnFeeBasisPoints < MAX_FEE_BASIS_POINTS, "Timelock: invalid _mintBurnFeeBasisPoints");
        require(_swapFeeBasisPoints < MAX_FEE_BASIS_POINTS, "Timelock: invalid _swapFeeBasisPoints");
        require(_stableSwapFeeBasisPoints < MAX_FEE_BASIS_POINTS, "Timelock: invalid _stableSwapFeeBasisPoints");
        require(_marginFeeBasisPoints < MAX_FEE_BASIS_POINTS, "Timelock: invalid _marginFeeBasisPoints");
        require(_liquidationFeeUsd < 10 * PRICE_PRECISION, "Timelock: invalid _liquidationFeeUsd");

        IVault(_vault).setFees(
            _taxBasisPoints,
            _stableTaxBasisPoints,
            _mintBurnFeeBasisPoints,
            _swapFeeBasisPoints,
            _stableSwapFeeBasisPoints,
            _marginFeeBasisPoints,
            _liquidationFeeUsd,
            _minProfitTime,
            _hasDynamicFees
        );
    }

    function setTokenConfig(
        address _vault,
        address _token,
        uint256 _tokenWeight,
        uint256 _minProfitBps,
        uint256 _maxUsdgAmount
    ) external onlyAdmin {
        require(_minProfitBps <= 500, "Timelock: invalid _minProfitBps");

        IVault vault = IVault(_vault);
        require(vault.whitelistedTokens(_token), "Timelock: token not yet whitelisted");

        uint256 tokenDecimals = vault.tokenDecimals(_token);
        bool isStable = vault.stableTokens(_token);
        bool isShortable = vault.shortableTokens(_token);

        IVault(_vault).setTokenConfig(
            _token,
            tokenDecimals,
            _tokenWeight,
            _minProfitBps,
            _maxUsdgAmount,
            isStable,
            isShortable
        );
    }

    function removeAdmin(address _token, address _account) external onlyAdmin {
        IYieldToken(_token).removeAdmin(_account);
    }

    function setBufferAmount(address _vault, address _token, uint256 _amount) external onlyAdmin {
        IVault(_vault).setBufferAmount(_token, _amount);
    }

    function setIsAmmEnabled(address _priceFeed, bool _isEnabled) external onlyAdmin {
        IVaultPriceFeed(_priceFeed).setIsAmmEnabled(_isEnabled);
    }

    function setIsSecondaryPriceEnabled(address _priceFeed, bool _isEnabled) external onlyAdmin {
        IVaultPriceFeed(_priceFeed).setIsSecondaryPriceEnabled(_isEnabled);
    }

    function setMaxStrictPriceDeviation(address _priceFeed, uint256 _maxStrictPriceDeviation) external onlyAdmin {
        IVaultPriceFeed(_priceFeed).setMaxStrictPriceDeviation(_maxStrictPriceDeviation);
    }

    function setUseV2Pricing(address _priceFeed, bool _useV2Pricing) external onlyAdmin {
        IVaultPriceFeed(_priceFeed).setUseV2Pricing(_useV2Pricing);
    }

    function setAdjustment(address _priceFeed, address _token, bool _isAdditive, uint256 _adjustmentBps) external onlyAdmin {
        IVaultPriceFeed(_priceFeed).setAdjustment(_token, _isAdditive, _adjustmentBps);
    }

    function setSpreadBasisPoints(address _priceFeed, address _token, uint256 _spreadBasisPoints) external onlyAdmin {
        IVaultPriceFeed(_priceFeed).setSpreadBasisPoints(_token, _spreadBasisPoints);
    }

    function setSpreadThresholdBasisPoints(address _priceFeed, uint256 _spreadThresholdBasisPoints) external onlyAdmin {
        IVaultPriceFeed(_priceFeed).setSpreadThresholdBasisPoints(_spreadThresholdBasisPoints);
    }

    function setFavorPrimaryPrice(address _priceFeed, bool _favorPrimaryPrice) external onlyAdmin {
        IVaultPriceFeed(_priceFeed).setFavorPrimaryPrice(_favorPrimaryPrice);
    }

    function setPriceSampleSpace(address _priceFeed,uint256 _priceSampleSpace) external onlyAdmin {
        require(_priceSampleSpace <= 5, "Invalid _priceSampleSpace");
        IVaultPriceFeed(_priceFeed).setPriceSampleSpace(_priceSampleSpace);
    }

    function setIsSwapEnabled(address _vault, bool _isSwapEnabled) external onlyAdmin {
        IVault(_vault).setIsSwapEnabled(_isSwapEnabled);
    }

    function setIsLeverageEnabled(address _vault, bool _isLeverageEnabled) external onlyAdmin {
        IVault(_vault).setIsLeverageEnabled(_isLeverageEnabled);
    }

    function setMaxGasPrice(address _vault,uint256 _maxGasPrice) external onlyAdmin {
        require(_maxGasPrice > 5000000000, "Invalid _maxGasPrice");
        IVault(_vault).setMaxGasPrice(_maxGasPrice);
    }

    function withdrawFees(address _vault,address _token, address _receiver) external onlyAdmin {
        IVault(_vault).withdrawFees(_token, _receiver);
    }

    function addExcludedToken(address _token) external onlyAdmin {
        excludedTokens[_token] = true;
    }

    function setInPrivateTransferMode(address _token, bool _inPrivateTransferMode) external onlyAdmin {
        if (excludedTokens[_token]) {
            // excludedTokens can only have their transfers enabled
            require(_inPrivateTransferMode == false, "Timelock: invalid _inPrivateTransferMode");
        }

        IBaseToken(_token).setInPrivateTransferMode(_inPrivateTransferMode);
    }

    function managedSetHandler(address _target, address _handler, bool _isActive) external override onlyRewardManager {
        IHandlerTarget(_target).setHandler(_handler, _isActive);
    }

    function managedSetMinter(address _target, address _minter, bool _isActive) external override onlyRewardManager {
        IMintable(_target).setMinter(_minter, _isActive);
    }

    function batchSetBonusRewards(address _vester, address[] memory _accounts, uint256[] memory _amounts) external onlyAdmin {
        require(_accounts.length == _amounts.length, "Timelock: invalid lengths");

        if (!IHandlerTarget(_vester).isHandler(address(this))) {
            IHandlerTarget(_vester).setHandler(address(this), true);
        }

        for (uint256 i = 0; i < _accounts.length; i++) {
            address account = _accounts[i];
            uint256 amount = _amounts[i];
            IVester(_vester).setBonusRewards(account, amount);
        }
    }

    function transferIn(address _sender, address _token, uint256 _amount) external onlyAdmin {
        IERC20(_token).transferFrom(_sender, address(this), _amount);
    }

    function signalApprove(address _token, address _spender, uint256 _amount) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("approve", _token, _spender, _amount));
        _setPendingAction(action);
        emit SignalApprove(_token, _spender, _amount, action);
    }

    function approve(address _token, address _spender, uint256 _amount) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("approve", _token, _spender, _amount));
        _validateAction(action);
        _clearAction(action);
        IERC20(_token).approve(_spender, _amount);
    }

    function signalMint(address _token, address _receiver, uint256 _amount) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("mint", _token, _receiver, _amount));
        _setPendingAction(action);
        emit SignalMint(_token, _receiver, _amount, action);
    }

    function processMint(address _token, address _receiver, uint256 _amount) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("mint", _token, _receiver, _amount));
        _validateAction(action);
        _clearAction(action);

        _mint(_token, _receiver, _amount);
    }

    function signalSetGov(address _target, address _gov) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("setGov", _target, _gov));
        _setPendingAction(action);
        emit SignalSetGov(_target, _gov, action);
    }

    function setGov(address _target, address _gov) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("setGov", _target, _gov));
        _validateAction(action);
        _clearAction(action);
        ITimelockTarget(_target).setGov(_gov);
    }

    function signalSetHandler(address _target, address _handler, bool _isActive) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("setHandler", _target, _handler, _isActive));
        _setPendingAction(action);
        emit SignalSetHandler(_target, _handler, _isActive, action);
    }

    function setHandler(address _target, address _handler, bool _isActive) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("setHandler", _target, _handler, _isActive));
        _validateAction(action);
        _clearAction(action);
        IHandlerTarget(_target).setHandler(_handler, _isActive);
    }

    function signalSetPriceFeed(address _vault, address _priceFeed) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("setPriceFeed", _vault, _priceFeed));
        _setPendingAction(action);
        emit SignalSetPriceFeed(_vault, _priceFeed, action);
    }

    function setPriceFeed(address _vault, address _priceFeed) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("setPriceFeed", _vault, _priceFeed));
        _validateAction(action);
        _clearAction(action);
        IVault(_vault).setPriceFeed(_priceFeed);
    }

    function signalAddPlugin(address _router, address _plugin) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("addPlugin", _router, _plugin));
        _setPendingAction(action);
        emit SignalAddPlugin(_router, _plugin, action);
    }

    function addPlugin(address _router, address _plugin) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked("addPlugin", _router, _plugin));
        _validateAction(action);
        _clearAction(action);
        IRouter(_router).addPlugin(_plugin);
    }

    function signalVaultSetTokenConfig(
        address _vault,
        address _token,
        uint256 _tokenDecimals,
        uint256 _tokenWeight,
        uint256 _minProfitBps,
        uint256 _maxUsdgAmount,
        bool _isStable,
        bool _isShortable
    ) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked(
            "vaultSetTokenConfig",
            _vault,
            _token,
            _tokenDecimals,
            _tokenWeight,
            _minProfitBps,
            _maxUsdgAmount,
            _isStable,
            _isShortable
        ));

        _setPendingAction(action);

        emit SignalVaultSetTokenConfig(
            _vault,
            _token,
            _tokenDecimals,
            _tokenWeight,
            _minProfitBps,
            _maxUsdgAmount,
            _isStable,
            _isShortable
        );
    }

    function vaultSetTokenConfig(
        address _vault,
        address _token,
        uint256 _tokenDecimals,
        uint256 _tokenWeight,
        uint256 _minProfitBps,
        uint256 _maxUsdgAmount,
        bool _isStable,
        bool _isShortable
    ) external onlyAdmin {
        bytes32 action = keccak256(abi.encodePacked(
            "vaultSetTokenConfig",
            _vault,
            _token,
            _tokenDecimals,
            _tokenWeight,
            _minProfitBps,
            _maxUsdgAmount,
            _isStable,
            _isShortable
        ));

        _validateAction(action);
        _clearAction(action);

        IVault(_vault).setTokenConfig(
            _token,
            _tokenDecimals,
            _tokenWeight,
            _minProfitBps,
            _maxUsdgAmount,
            _isStable,
            _isShortable
        );
    }

    function cancelAction(bytes32 _action) external onlyAdmin {
        _clearAction(_action);
    }

    function _mint(address _token, address _receiver, uint256 _amount) private {
        IMintable mintable = IMintable(_token);

        if (!mintable.isMinter(address(this))) {
            mintable.setMinter(address(this), true);
        }

        mintable.mint(_receiver, _amount);
        require(IERC20(_token).totalSupply() <= maxTokenSupply, "Timelock: maxTokenSupply exceeded");
    }

    function _setPendingAction(bytes32 _action) private {
        pendingActions[_action] = block.timestamp.add(buffer);
        emit SignalPendingAction(_action);
    }

    function _validateAction(bytes32 _action) private view {
        require(pendingActions[_action] != 0, "Timelock: action not signalled");
        require(pendingActions[_action] < block.timestamp, "Timelock: action time not yet passed");
    }

    function _clearAction(bytes32 _action) private {
        require(pendingActions[_action] != 0, "Timelock: invalid _action");
        delete pendingActions[_action];
        emit ClearAction(_action);
    }
}

File 2 of 14 : ITimelockTarget.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface ITimelockTarget {
    function setGov(address _gov) external;
    function withdrawToken(address _token, address _account, uint256 _amount) external;
}

File 3 of 14 : ITimelock.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface ITimelock {
    function setAdmin(address _admin) external;
    function managedSetHandler(address _target, address _handler, bool _isActive) external;
    function managedSetMinter(address _target, address _minter, bool _isActive) external;
}

File 4 of 14 : IHandlerTarget.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IHandlerTarget {
    function isHandler(address _account) external returns (bool);
    function setHandler(address _handler, bool _isActive) external;
}

File 5 of 14 : IAdmin.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IAdmin {
    function setAdmin(address _admin) external;
}

File 6 of 14 : IVault.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IVault {
    function isInitialized() external view returns (bool);
    function isSwapEnabled() external view returns (bool);
    function isLeverageEnabled() external view returns (bool);

    function setError(uint256 _errorCode, string calldata _error) external;

    function router() external view returns (address);
    function usdg() external view returns (address);
    function gov() external view returns (address);

    function whitelistedTokenCount() external view returns (uint256);
    function maxLeverage() external view returns (uint256);

    function minProfitTime() external view returns (uint256);
    function hasDynamicFees() external view returns (bool);
    function fundingInterval() external view returns (uint256);
    function totalTokenWeights() external view returns (uint256);

    function inManagerMode() external view returns (bool);
    function inPrivateLiquidationMode() external view returns (bool);

    function maxGasPrice() external view returns (uint256);

    function approvedRouters(address _account, address _router) external view returns (bool);
    function isLiquidator(address _account) external view returns (bool);
    function isManager(address _account) external view returns (bool);

    function minProfitBasisPoints(address _token) external view returns (uint256);
    function tokenBalances(address _token) external view returns (uint256);
    function lastFundingTimes(address _token) external view returns (uint256);

    function setInManagerMode(bool _inManagerMode) external;
    function setManager(address _manager, bool _isManager) external;
    function setIsSwapEnabled(bool _isSwapEnabled) external;
    function setIsLeverageEnabled(bool _isLeverageEnabled) external;
    function setMaxGasPrice(uint256 _maxGasPrice) external;
    function setBufferAmount(address _token, uint256 _amount) external;

    function setFees(
        uint256 _taxBasisPoints,
        uint256 _stableTaxBasisPoints,
        uint256 _mintBurnFeeBasisPoints,
        uint256 _swapFeeBasisPoints,
        uint256 _stableSwapFeeBasisPoints,
        uint256 _marginFeeBasisPoints,
        uint256 _liquidationFeeUsd,
        uint256 _minProfitTime,
        bool _hasDynamicFees
    ) external;

    function setTokenConfig(
        address _token,
        uint256 _tokenDecimals,
        uint256 _redemptionBps,
        uint256 _minProfitBps,
        uint256 _maxUsdgAmount,
        bool _isStable,
        bool _isShortable
    ) external;

    function setPriceFeed(address _priceFeed) external;
    function withdrawFees(address _token, address _receiver) external returns (uint256);

    function directPoolDeposit(address _token) external;
    function buyUSDG(address _token, address _receiver) external returns (uint256);
    function sellUSDG(address _token, address _receiver) external returns (uint256);
    function swap(address _tokenIn, address _tokenOut, address _receiver) external returns (uint256);
    function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external;
    function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256);
    function tokenToUsdMin(address _token, uint256 _tokenAmount) external view returns (uint256);

    function priceFeed() external view returns (address);
    function fundingRateFactor() external view returns (uint256);
    function stableFundingRateFactor() external view returns (uint256);
    function cumulativeFundingRates(address _token) external view returns (uint256);
    function getNextFundingRate(address _token) external view returns (uint256);
    function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256);

    function liquidationFeeUsd() external view returns (uint256);
    function taxBasisPoints() external view returns (uint256);
    function stableTaxBasisPoints() external view returns (uint256);
    function mintBurnFeeBasisPoints() external view returns (uint256);
    function swapFeeBasisPoints() external view returns (uint256);
    function stableSwapFeeBasisPoints() external view returns (uint256);
    function marginFeeBasisPoints() external view returns (uint256);

    function allWhitelistedTokensLength() external view returns (uint256);
    function allWhitelistedTokens(uint256) external view returns (address);
    function whitelistedTokens(address _token) external view returns (bool);
    function stableTokens(address _token) external view returns (bool);
    function shortableTokens(address _token) external view returns (bool);
    function feeReserves(address _token) external view returns (uint256);
    function globalShortSizes(address _token) external view returns (uint256);
    function globalShortAveragePrices(address _token) external view returns (uint256);
    function tokenDecimals(address _token) external view returns (uint256);
    function tokenWeights(address _token) external view returns (uint256);
    function guaranteedUsd(address _token) external view returns (uint256);
    function poolAmounts(address _token) external view returns (uint256);
    function bufferAmounts(address _token) external view returns (uint256);
    function reservedAmounts(address _token) external view returns (uint256);
    function usdgAmounts(address _token) external view returns (uint256);
    function maxUsdgAmounts(address _token) external view returns (uint256);
    function getRedemptionAmount(address _token, uint256 _usdgAmount) external view returns (uint256);
    function getMaxPrice(address _token) external view returns (uint256);
    function getMinPrice(address _token) external view returns (uint256);

    function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) external view returns (bool, uint256);
    function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256);
}

File 7 of 14 : IVaultPriceFeed.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IVaultPriceFeed {
    function adjustmentBasisPoints(address _token) external view returns (uint256);
    function isAdjustmentAdditive(address _token) external view returns (bool);
    function setAdjustment(address _token, bool _isAdditive, uint256 _adjustmentBps) external;
    function setUseV2Pricing(bool _useV2Pricing) external;
    function setIsAmmEnabled(bool _isEnabled) external;
    function setIsSecondaryPriceEnabled(bool _isEnabled) external;
    function setSpreadBasisPoints(address _token, uint256 _spreadBasisPoints) external;
    function setSpreadThresholdBasisPoints(uint256 _spreadThresholdBasisPoints) external;
    function setFavorPrimaryPrice(bool _favorPrimaryPrice) external;
    function setPriceSampleSpace(uint256 _priceSampleSpace) external;
    function setMaxStrictPriceDeviation(uint256 _maxStrictPriceDeviation) external;
    function getPrice(address _token, bool _maximise, bool _includeAmmPrice, bool _useSwapPricing) external view returns (uint256);
    function getAmmPrice(address _token) external view returns (uint256);
    function getPrimaryPrice(address _token, bool _maximise) external view returns (uint256);
}

File 8 of 14 : IRouter.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IRouter {
    function addPlugin(address _plugin) external;
    function pluginTransfer(address _token, address _account, address _receiver, uint256 _amount) external;
    function pluginIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external;
    function pluginDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256);
    function swap(address[] memory _path, uint256 _amountIn, uint256 _minOut, address _receiver) external;
}

File 9 of 14 : IYieldToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IYieldToken {
    function totalStaked() external view returns (uint256);
    function stakedBalance(address _account) external view returns (uint256);
    function removeAdmin(address _account) external;
}

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

pragma solidity 0.6.12;

interface IBaseToken {
    function totalStaked() external view returns (uint256);
    function stakedBalance(address _account) external view returns (uint256);
    function removeAdmin(address _account) external;
    function setInPrivateTransferMode(bool _inPrivateTransferMode) external;
}

File 11 of 14 : IMintable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IMintable {
    function isMinter(address _account) external returns (bool);
    function setMinter(address _minter, bool _isActive) external;
    function mint(address _account, uint256 _amount) external;
    function burn(address _account, uint256 _amount) external;
}

File 12 of 14 : IVester.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IVester {
    function claimForAccount(address _account, address _receiver) external returns (uint256);

    function transferredAverageStakedAmounts(address _account) external view returns (uint256);
    function transferredCumulativeRewards(address _account) external view returns (uint256);
    function cumulativeRewardDeductions(address _account) external view returns (uint256);
    function bonusRewards(address _account) external view returns (uint256);

    function transferStakeValues(address _sender, address _receiver) external;
    function setTransferredAverageStakedAmounts(address _account, uint256 _amount) external;
    function setTransferredCumulativeRewards(address _account, uint256 _amount) external;
    function setCumulativeRewardDeductions(address _account, uint256 _amount) external;
    function setBonusRewards(address _account, uint256 _amount) external;

    function getMaxVestableAmount(address _account) external view returns (uint256);
    function getCombinedAverageStakedAmount(address _account) external view returns (uint256);
}

File 13 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

pragma solidity 0.6.12;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint256","name":"_buffer","type":"uint256"},{"internalType":"address","name":"_rewardManager","type":"address"},{"internalType":"address","name":"_tokenManager","type":"address"},{"internalType":"address","name":"_mintReceiver","type":"address"},{"internalType":"uint256","name":"_maxTokenSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"ClearAction","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"router","type":"address"},{"indexed":false,"internalType":"address","name":"plugin","type":"address"},{"indexed":false,"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"SignalAddPlugin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"SignalApprove","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"SignalMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"SignalPendingAction","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"address","name":"gov","type":"address"},{"indexed":false,"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"SignalSetGov","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"address","name":"handler","type":"address"},{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"},{"indexed":false,"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"SignalSetHandler","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"address","name":"priceFeed","type":"address"},{"indexed":false,"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"SignalSetPriceFeed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenDecimals","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenWeight","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minProfitBps","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxUsdgAmount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isStable","type":"bool"},{"indexed":false,"internalType":"bool","name":"isShortable","type":"bool"}],"name":"SignalVaultSetTokenConfig","type":"event"},{"inputs":[],"name":"MAX_BUFFER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"addExcludedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_plugin","type":"address"}],"name":"addPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vester","type":"address"},{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"batchSetBonusRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_action","type":"bytes32"}],"name":"cancelAction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"managedSetHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"managedSetMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"pendingActions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"processMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_isAdditive","type":"bool"},{"internalType":"uint256","name":"_adjustmentBps","type":"uint256"}],"name":"setAdjustment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buffer","type":"uint256"}],"name":"setBuffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setBufferAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"address","name":"_admin","type":"address"}],"name":"setExternalAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"bool","name":"_favorPrimaryPrice","type":"bool"}],"name":"setFavorPrimaryPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"uint256","name":"_taxBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_stableTaxBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_mintBurnFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_swapFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_stableSwapFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_marginFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_liquidationFeeUsd","type":"uint256"},{"internalType":"uint256","name":"_minProfitTime","type":"uint256"},{"internalType":"bool","name":"_hasDynamicFees","type":"bool"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_inPrivateTransferMode","type":"bool"}],"name":"setInPrivateTransferMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"setIsAmmEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"bool","name":"_isLeverageEnabled","type":"bool"}],"name":"setIsLeverageEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"setIsSecondaryPriceEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"bool","name":"_isSwapEnabled","type":"bool"}],"name":"setIsSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"uint256","name":"_maxGasPrice","type":"uint256"}],"name":"setMaxGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"uint256","name":"_maxStrictPriceDeviation","type":"uint256"}],"name":"setMaxStrictPriceDeviation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_priceFeed","type":"address"}],"name":"setPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"uint256","name":"_priceSampleSpace","type":"uint256"}],"name":"setPriceSampleSpace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_spreadBasisPoints","type":"uint256"}],"name":"setSpreadBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"uint256","name":"_spreadThresholdBasisPoints","type":"uint256"}],"name":"setSpreadThresholdBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenWeight","type":"uint256"},{"internalType":"uint256","name":"_minProfitBps","type":"uint256"},{"internalType":"uint256","name":"_maxUsdgAmount","type":"uint256"}],"name":"setTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"bool","name":"_useV2Pricing","type":"bool"}],"name":"setUseV2Pricing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_plugin","type":"address"}],"name":"signalAddPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"signalApprove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"signalMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"address","name":"_gov","type":"address"}],"name":"signalSetGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"signalSetHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_priceFeed","type":"address"}],"name":"signalSetPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenDecimals","type":"uint256"},{"internalType":"uint256","name":"_tokenWeight","type":"uint256"},{"internalType":"uint256","name":"_minProfitBps","type":"uint256"},{"internalType":"uint256","name":"_maxUsdgAmount","type":"uint256"},{"internalType":"bool","name":"_isStable","type":"bool"},{"internalType":"bool","name":"_isShortable","type":"bool"}],"name":"signalVaultSetTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenDecimals","type":"uint256"},{"internalType":"uint256","name":"_tokenWeight","type":"uint256"},{"internalType":"uint256","name":"_minProfitBps","type":"uint256"},{"internalType":"uint256","name":"_maxUsdgAmount","type":"uint256"},{"internalType":"bool","name":"_isStable","type":"bool"},{"internalType":"bool","name":"_isShortable","type":"bool"}],"name":"vaultSetTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405162003bf838038062003bf8833981810160405260c081101561003557600080fd5b508051602082015160408301516060840151608085015160a0909501519394929391929091620697808511156100b2576040805162461bcd60e51b815260206004820152601960248201527f54696d656c6f636b3a20696e76616c6964205f62756666657200000000000000604482015290519081900360640190fd5b600180546001600160a01b039788166001600160a01b031991821617909155600095909555600380549487169486169490941790935560028054928616928516929092179091556004805491909416921691909117909155600555613adb806200011d6000396000f3fe608060405234801561001057600080fd5b50600436106102665760003560e01c80629a698e1461026b57806309cc9a08146103a05780630e9587f3146103d65780630f4ef8a61461040e5780631154e80814610432578063117cf2041461046a57806314aea3071461049857806324ccbe30146104c4578063268959e5146104fc5780632877f4c31461052a5780632965c8c714610556578063296b07e5146105845780632a709b14146105c25780633e9accf9146105ca57806340c10f191461060c578063454ffa46146106385780634befe2ca1461066657806350f7c2041461068057806351a6de0d1461068857806353b6bfdd146106b657806355ef1395146106e45780635843752f146107125780635dae88411461074057806361d075691461077a57806369623ae2146107825780636e5227d4146107b0578063704b6c021461081157806376e1128614610837578063781cc3d3146108655780637b9fb2271461088257806380894d62146108b057806386803c72146108de5780638bf22c461461090c57806395082d2514610938578063996a7a1e14610940578063a0a316a21461096e578063adc7ea371461099a578063bc8a8ab9146109b7578063c7bb26a0146109ed578063cd2b1230146109f5578063d63a352e14610a23578063d7c2e92f14610a5b578063da29012014610a81578063db1c844114610ab9578063dce6e18d14610b12578063e1de680914610b48578063e1f21c6714610b7e578063e30569e514610bb4578063e3cbeb0f14610bd1578063e4652f4914610c2a578063e7b0a3a114610c60578063edaafe2014610c96578063f851a44014610c9e575b600080fd5b61039e6004803603606081101561028157600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102ab57600080fd5b8201836020820111156102bd57600080fd5b803590602001918460208302840111600160201b831117156102de57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561032d57600080fd5b82018360208201111561033f57600080fd5b803590602001918460208302840111600160201b8311171561036057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610ca6945050505050565b005b61039e600480360360608110156103b657600080fd5b506001600160a01b03813581169160208101359091169060400135610ee3565b61039e600480360360608110156103ec57600080fd5b506001600160a01b038135811691602081013582169160409091013516610fe2565b6104166110c0565b604080516001600160a01b039092168252519081900360200190f35b61039e6004803603606081101561044857600080fd5b506001600160a01b0381358116916020810135909116906040013515156110cf565b61039e6004803603604081101561048057600080fd5b506001600160a01b0381351690602001351515611200565b61039e600480360360408110156104ae57600080fd5b506001600160a01b0381351690602001356112b1565b61039e600480360360608110156104da57600080fd5b506001600160a01b038135811691602081013590911690604001351515611344565b61039e6004803603604081101561051257600080fd5b506001600160a01b038135811691602001351661144d565b61039e6004803603604081101561054057600080fd5b506001600160a01b0381351690602001356114e9565b61039e6004803603604081101561056c57600080fd5b506001600160a01b03813516906020013515156115ce565b61039e6004803603608081101561059a57600080fd5b506001600160a01b038135811691602081013590911690604081013515159060600135611663565b610416611711565b61039e600480360360a08110156105e057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060800135611720565b61039e6004803603604081101561062257600080fd5b506001600160a01b038135169060200135611a85565b61039e6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515611aee565b61066e611b83565b60408051918252519081900360200190f35b61066e611b89565b61039e6004803603604081101561069e57600080fd5b506001600160a01b0381358116916020013516611b8f565b61039e600480360360408110156106cc57600080fd5b506001600160a01b0381358116916020013516611ca6565b61039e600480360360408110156106fa57600080fd5b506001600160a01b0381358116916020013516611d9a565b61039e6004803603604081101561072857600080fd5b506001600160a01b0381351690602001351515611e90565b6107666004803603602081101561075657600080fd5b50356001600160a01b0316611f25565b604080519115158252519081900360200190f35b61066e611f3a565b61039e6004803603604081101561079857600080fd5b506001600160a01b0381358116916020013516611f41565b61039e60048036036101408110156107c757600080fd5b506001600160a01b038135169060208101359060408101359060608101359060808101359060a08101359060c08101359060e081013590610100810135906101200135151561203e565b61039e6004803603602081101561082757600080fd5b50356001600160a01b03166122fc565b61039e6004803603604081101561084d57600080fd5b506001600160a01b038135811691602001351661236b565b61039e6004803603602081101561087b57600080fd5b503561246a565b61039e6004803603604081101561089857600080fd5b506001600160a01b03813516906020013515156124c3565b61039e600480360360408110156108c657600080fd5b506001600160a01b0381358116916020013516612558565b61039e600480360360408110156108f457600080fd5b506001600160a01b038135169060200135151561264e565b61039e6004803603604081101561092257600080fd5b506001600160a01b038135169060200135612741565b61066e612824565b61039e6004803603604081101561095657600080fd5b506001600160a01b0381358116916020013516612834565b61039e6004803603604081101561098457600080fd5b506001600160a01b038135169060200135612925565b61039e600480360360208110156109b057600080fd5b50356129b8565b61039e600480360360608110156109cd57600080fd5b506001600160a01b03813581169160208101359091169060400135612a9e565b610416612b5a565b61039e60048036036040811015610a0b57600080fd5b506001600160a01b0381351690602001351515612b69565b61039e60048036036060811015610a3957600080fd5b506001600160a01b038135811691602081013590911690604001351515612bfe565b61039e60048036036020811015610a7157600080fd5b50356001600160a01b0316612ca4565b61039e60048036036060811015610a9757600080fd5b506001600160a01b038135811691602081013590911690604001351515612d15565b61039e6004803603610100811015610ad057600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060c081013515159060e001351515612dbb565b61039e60048036036060811015610b2857600080fd5b506001600160a01b03813581169160208101359091169060400135612f18565b61039e60048036036060811015610b5e57600080fd5b506001600160a01b0381358116916020810135909116906040013561301a565b61039e60048036036060811015610b9457600080fd5b506001600160a01b038135811691602081013590911690604001356130be565b61066e60048036036020811015610bca57600080fd5b50356131f3565b61039e6004803603610100811015610be857600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060c081013515159060e001351515613205565b61039e60048036036060811015610c4057600080fd5b506001600160a01b03813581169160208101359091169060400135613367565b61039e60048036036060811015610c7657600080fd5b506001600160a01b0381358116916020810135909116906040013561340d565b61066e6134b1565b6104166134b7565b6001546001600160a01b03163314610cf3576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b8051825114610d45576040805162461bcd60e51b815260206004820152601960248201527854696d656c6f636b3a20696e76616c6964206c656e6774687360381b604482015290519081900360640190fd5b604080516346ea87af60e01b815230600482015290516001600160a01b038516916346ea87af9160248083019260209291908290030181600087803b158015610d8d57600080fd5b505af1158015610da1573d6000803e3d6000fd5b505050506040513d6020811015610db757600080fd5b5051610e245760408051639cb7de4b60e01b81523060048201526001602482015290516001600160a01b03851691639cb7de4b91604480830192600092919082900301818387803b158015610e0b57600080fd5b505af1158015610e1f573d6000803e3d6000fd5b505050505b60005b8251811015610edd576000838281518110610e3e57fe5b602002602001015190506000838381518110610e5657fe5b60200260200101519050856001600160a01b03166341f2272483836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610eb757600080fd5b505af1158015610ecb573d6000803e3d6000fd5b505060019094019350610e2792505050565b50505050565b6001546001600160a01b03163314610f30576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b60408051631b5a5b9d60e21b6020808301919091526001600160601b0319606087811b8216602485015286901b166038830152604c80830185905283518084039091018152606c9092019092528051910120610f8b816134c6565b604080516001600160a01b038087168252851660208201528082018490526060810183905290517f23d37bec99db82564427c9bbfe48ad7434bccf413a40fd357fb838c90a0d68289181900360800190a150505050565b6001546001600160a01b0316331461102f576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b826001600160a01b031663f255527883836040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050602060405180830381600087803b15801561108f57600080fd5b505af11580156110a3573d6000803e3d6000fd5b505050506040513d60208110156110b957600080fd5b5050505050565b6003546001600160a01b031681565b6001546001600160a01b0316331461111c576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516939b2ba2430b7323632b960b11b6020808301919091526001600160601b0319606087811b8216602a85015286901b16603e83015283151560f81b605283015282516033818403018152605390920190925280519101206111808161351f565b611189816135cb565b836001600160a01b0316639cb7de4b84846040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b1580156111e257600080fd5b505af11580156111f6573d6000803e3d6000fd5b5050505050505050565b6001546001600160a01b0316331461124d576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b03166330455ede826040518263ffffffff1660e01b8152600401808215158152602001915050600060405180830381600087803b15801561129557600080fd5b505af11580156112a9573d6000803e3d6000fd5b505050505050565b6001546001600160a01b031633146112fe576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b031663b731dd87826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561129557600080fd5b6001546001600160a01b03163314611391576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516939b2ba2430b7323632b960b11b6020808301919091526001600160601b0319606087811b8216602a85015286901b16603e83015283151560f81b605283015282516033818403018152605390920190925280519101206113f5816134c6565b604080516001600160a01b03808716825285166020820152831515818301526060810183905290517f1929c4e13b0dbbad7856b9ce1fc9dca98c7bf7cedd56e22c04dd60ad1d34fe4b9181900360800190a150505050565b6001546001600160a01b0316331461149a576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b0316631785f53c826040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561129557600080fd5b6001546001600160a01b03163314611536576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b6005811115611588576040805162461bcd60e51b8152602060048201526019602482015278496e76616c6964205f707269636553616d706c65537061636560381b604482015290519081900360640190fd5b816001600160a01b0316632fa03b8f826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561129557600080fd5b6001546001600160a01b0316331461161b576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b031663eb1c92a9826040518263ffffffff1660e01b8152600401808215158152602001915050600060405180830381600087803b15801561129557600080fd5b6001546001600160a01b031633146116b0576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b836001600160a01b031663d694376c8484846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183151581526020018281526020019350505050600060405180830381600087803b1580156111e257600080fd5b6002546001600160a01b031681565b6001546001600160a01b0316331461176d576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b6101f48211156117c4576040805162461bcd60e51b815260206004820152601f60248201527f54696d656c6f636b3a20696e76616c6964205f6d696e50726f66697442707300604482015290519081900360640190fd5b60408051630daf9c2160e41b81526001600160a01b0386811660048301529151879283169163daf9c210916024808301926020929190829003018186803b15801561180e57600080fd5b505afa158015611822573d6000803e3d6000fd5b505050506040513d602081101561183857600080fd5b50516118755760405162461bcd60e51b81526004018080602001828103825260238152602001806139336023913960400191505060405180910390fd5b6000816001600160a01b0316638ee573ac876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118c457600080fd5b505afa1580156118d8573d6000803e3d6000fd5b505050506040513d60208110156118ee57600080fd5b5051604080516342b60b0360e01b81526001600160a01b0389811660048301529151929350600092918516916342b60b0391602480820192602092909190829003018186803b15801561194057600080fd5b505afa158015611954573d6000803e3d6000fd5b505050506040513d602081101561196a57600080fd5b50516040805163db3555fb60e01b81526001600160a01b038a8116600483015291519293506000929186169163db3555fb91602480820192602092909190829003018186803b1580156119bc57600080fd5b505afa1580156119d0573d6000803e3d6000fd5b505050506040513d60208110156119e657600080fd5b505160408051633c5a6e3560e01b81526001600160a01b038b8116600483015260248201879052604482018b9052606482018a90526084820189905285151560a483015283151560c48301529151929350908b1691633c5a6e359160e48082019260009290919082900301818387803b158015611a6257600080fd5b505af1158015611a76573d6000803e3d6000fd5b50505050505050505050505050565b6001546001600160a01b03163314611ad2576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b600454611aea9083906001600160a01b031683613670565b5050565b6001546001600160a01b03163314611b3b576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b031663fd34ec40826040518263ffffffff1660e01b8152600401808215158152602001915050600060405180830381600087803b15801561129557600080fd5b61012c81565b60055481565b6001546001600160a01b03163314611bdc576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516539b2ba23b7bb60d11b6020808301919091526001600160601b0319606086811b8216602685015285901b16603a8301528251602e818403018152604e9092019092528051910120611c318161351f565b611c3a816135cb565b826001600160a01b031663cfad57a2836040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611c8957600080fd5b505af1158015611c9d573d6000803e3d6000fd5b50505050505050565b6001546001600160a01b03163314611cf3576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516830b23228363ab3b4b760b91b6020808301919091526001600160601b0319606086811b8216602985015285901b16603d8301528251603181840301815260519092019092528051910120611d4b816134c6565b604080516001600160a01b0380861682528416602082015280820183905290517fc0ad20f21e0e6b9c02a7ecfb229e39b214cb1914a4d6f202e7f9ec7ffb9445f69181900360600190a1505050565b6001546001600160a01b03163314611de7576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b6001600160a01b038216301415611e41576040805162461bcd60e51b8152602060048201526019602482015278151a5b595b1bd8dace881a5b9d985b1a590817dd185c99d95d603a1b604482015290519081900360640190fd5b816001600160a01b031663704b6c02826040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561129557600080fd5b6001546001600160a01b03163314611edd576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b0316639917dc74826040518263ffffffff1660e01b8152600401808215158152602001915050600060405180830381600087803b15801561129557600080fd5b60076020526000908152604090205460ff1681565b6206978081565b6001546001600160a01b03163314611f8e576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516830b23228363ab3b4b760b91b6020808301919091526001600160601b0319606086811b8216602985015285901b16603d8301528251603181840301815260519092019092528051910120611fe68161351f565b611fef816135cb565b826001600160a01b031663d8867fc8836040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611c8957600080fd5b6001546001600160a01b0316331461208b576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b61012c89106120cb5760405162461bcd60e51b81526004018080602001828103825260218152602001806139126021913960400191505060405180910390fd5b61012c881061210b5760405162461bcd60e51b815260040180806020018281038252602781526020018061397e6027913960400191505060405180910390fd5b61012c871061214b5760405162461bcd60e51b81526004018080602001828103825260298152602001806139a56029913960400191505060405180910390fd5b61012c861061218b5760405162461bcd60e51b81526004018080602001828103825260258152602001806138c66025913960400191505060405180910390fd5b61012c85106121cb5760405162461bcd60e51b815260040180806020018281038252602b815260200180613a7b602b913960400191505060405180910390fd5b61012c841061220b5760405162461bcd60e51b81526004018080602001828103825260278152602001806138eb6027913960400191505060405180910390fd5b68fc6f7c40458122964d601f1b83106122555760405162461bcd60e51b81526004018080602001828103825260248152602001806139f26024913960400191505060405180910390fd5b604080516320759c0160e11b8152600481018b9052602481018a905260448101899052606481018890526084810187905260a4810186905260c4810185905260e4810184905282151561010482015290516001600160a01b038c16916340eb38029161012480830192600092919082900301818387803b1580156122d857600080fd5b505af11580156122ec573d6000803e3d6000fd5b5050505050505050505050505050565b6002546001600160a01b03163314612349576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146123b8576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516b1cd95d141c9a58d95199595960a21b6020808301919091526001600160601b0319606086811b8216602c85015285901b168284015282516034818403018152605490920190925280519101206124128161351f565b61241b816135cb565b826001600160a01b031663724e78da836040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611c8957600080fd5b6001546001600160a01b031633146124b7576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b6124c0816135cb565b50565b6001546001600160a01b03163314612510576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b031663604f37e9826040518263ffffffff1660e01b8152600401808215158152602001915050600060405180830381600087803b15801561129557600080fd5b6001546001600160a01b031633146125a5576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516b1cd95d141c9a58d95199595960a21b6020808301919091526001600160601b0319606086811b8216602c85015285901b168284015282516034818403018152605490920190925280519101206125ff816134c6565b604080516001600160a01b0380861682528416602082015280820183905290517fb878dd4b5762f4118ad54995be907dd2bcd915d942e4ac75580fba9b4ee4727f9181900360600190a1505050565b6001546001600160a01b0316331461269b576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526007602052604090205460ff16156126f95780156126f95760405162461bcd60e51b81526004018080602001828103825260288152602001806139566028913960400191505060405180910390fd5b816001600160a01b0316635a47a1a7826040518263ffffffff1660e01b8152600401808215158152602001915050600060405180830381600087803b15801561129557600080fd5b6001546001600160a01b0316331461278e576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b64012a05f20081116127de576040805162461bcd60e51b8152602060048201526014602482015273496e76616c6964205f6d6178476173507269636560601b604482015290519081900360640190fd5b816001600160a01b031663d2fa635e826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561129557600080fd5b68327cb2734119d3b7a9601e1b81565b6001546001600160a01b03163314612881576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516539b2ba23b7bb60d11b6020808301919091526001600160601b0319606086811b8216602685015285901b16603a8301528251602e818403018152604e90920190925280519101206128d6816134c6565b604080516001600160a01b0380861682528416602082015280820183905290517f2701a94fd55a560e291f3c54d36580040670d6fde558a77a75d619e38139f7139181900360600190a1505050565b6001546001600160a01b03163314612972576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b0316632fbfe3d3826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561129557600080fd5b6001546001600160a01b03163314612a05576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b62069780811115612a59576040805162461bcd60e51b81526020600482015260196024820152782a34b6b2b637b1b59d1034b73b30b634b2102fb13ab33332b960391b604482015290519081900360640190fd5b6000548111612a995760405162461bcd60e51b8152600401808060200182810382526024815260200180613a166024913960400191505060405180910390fd5b600055565b6001546001600160a01b03163314612aeb576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b60408051631b5a5b9d60e21b6020808301919091526001600160601b0319606087811b8216602485015286901b166038830152604c80830185905283518084039091018152606c9092019092528051910120612b468161351f565b612b4f816135cb565b610edd848484613670565b6004546001600160a01b031681565b6001546001600160a01b03163314612bb6576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b816001600160a01b0316637c2eb9f7826040518263ffffffff1660e01b8152600401808215158152602001915050600060405180830381600087803b15801561129557600080fd5b6003546001600160a01b03163314612c4b576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b826001600160a01b0316639cb7de4b83836040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b158015611c8957600080fd5b6001546001600160a01b03163314612cf1576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6003546001600160a01b03163314612d62576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b826001600160a01b031663cf456ae783836040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b158015611c8957600080fd5b6001546001600160a01b03163314612e08576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b60408051727661756c74536574546f6b656e436f6e66696760681b6020808301919091526001600160601b031960608c811b821660338501528b901b166047830152605b8201899052607b8201889052609b820187905260bb820186905284151560f890811b60db840152841515901b60dc830152825160bd81840301815260dd9092019092528051910120612e9d816134c6565b604080516001600160a01b03808c1682528a166020820152808201899052606081018890526080810187905260a0810186905284151560c082015283151560e082015290517f3510e9d8245371c6c1061c33781ce16bd0eafa03cd3d0781865036520af4c743918190036101000190a1505050505050505050565b6001546001600160a01b03163314612f65576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b6040805166617070726f766560c81b6020808301919091526001600160601b0319606087811b8216602785015286901b16603b830152604f80830185905283518084039091018152606f9092019092528051910120612fc3816134c6565b604080516001600160a01b038087168252851660208201528082018490526060810183905290517f6af9d86ba7407a934e941ed8ae5f779369a88fe8ba2cd1c204185d6f8a8287fd9181900360800190a150505050565b6001546001600160a01b03163314613067576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b826001600160a01b0316638585f4d283836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015611c8957600080fd5b6001546001600160a01b0316331461310b576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b6040805166617070726f766560c81b6020808301919091526001600160601b0319606087811b8216602785015286901b16603b830152604f80830185905283518084039091018152606f90920190925280519101206131698161351f565b613172816135cb565b836001600160a01b031663095ea7b384846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156131c957600080fd5b505af11580156131dd573d6000803e3d6000fd5b505050506040513d60208110156112a957600080fd5b60066020526000908152604090205481565b6001546001600160a01b03163314613252576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b60408051727661756c74536574546f6b656e436f6e66696760681b6020808301919091526001600160601b031960608c811b821660338501528b901b166047830152605b8201899052607b8201889052609b820187905260bb820186905284151560f890811b60db840152841515901b60dc830152825160bd81840301815260dd90920190925280519101206132e78161351f565b6132f0816135cb565b60408051633c5a6e3560e01b81526001600160a01b038a81166004830152602482018a905260448201899052606482018890526084820187905285151560a483015284151560c48301529151918b1691633c5a6e359160e48082019260009290919082900301818387803b158015611a6257600080fd5b6001546001600160a01b031633146133b4576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b604080516323b872dd60e01b81526001600160a01b038581166004830152306024830152604482018490529151918416916323b872dd916064808201926020929091908290030181600087803b15801561108f57600080fd5b6001546001600160a01b0316331461345a576040805162461bcd60e51b81526020600482015260136024820152600080516020613a3a833981519152604482015290519081900360640190fd5b826001600160a01b0316639b88938083836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015611c8957600080fd5b60005481565b6001546001600160a01b031681565b6000546134d4904290613866565b60008281526006602090815260409182902092909255805183815290517f5fb9c0ecf7b4a28c4c480212e868f9da7f373a2ed4d23498b0be6aadf35242fb929181900390910190a150565b60008181526006602052604090205461357f576040805162461bcd60e51b815260206004820152601e60248201527f54696d656c6f636b3a20616374696f6e206e6f74207369676e616c6c65640000604482015290519081900360640190fd5b60008181526006602052604090205442116124c05760405162461bcd60e51b81526004018080602001828103825260248152602001806139ce6024913960400191505060405180910390fd5b600081815260066020526040902054613627576040805162461bcd60e51b81526020600482015260196024820152782a34b6b2b637b1b59d1034b73b30b634b2102fb0b1ba34b7b760391b604482015290519081900360640190fd5b600081815260066020908152604080832092909255815183815291517f194ed6dd5e37e2acc44a19455c3f208c4831ee695fe362d9c4ef2d316bc53aec9281900390910190a150565b604080516355138f0d60e11b8152306004820152905184916001600160a01b0383169163aa271e1a916024808201926020929091908290030181600087803b1580156136bb57600080fd5b505af11580156136cf573d6000803e3d6000fd5b505050506040513d60208110156136e557600080fd5b5051613752576040805163cf456ae760e01b81523060048201526001602482015290516001600160a01b0383169163cf456ae791604480830192600092919082900301818387803b15801561373957600080fd5b505af115801561374d573d6000803e3d6000fd5b505050505b806001600160a01b03166340c10f1984846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156137a957600080fd5b505af11580156137bd573d6000803e3d6000fd5b50505050600554846001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156137fd57600080fd5b505afa158015613811573d6000803e3d6000fd5b505050506040513d602081101561382757600080fd5b50511115610edd5760405162461bcd60e51b8152600401808060200182810382526021815260200180613a5a6021913960400191505060405180910390fd5b6000828201838110156138be576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b939250505056fe54696d656c6f636b3a20696e76616c6964205f737761704665654261736973506f696e747354696d656c6f636b3a20696e76616c6964205f6d617267696e4665654261736973506f696e747354696d656c6f636b3a20696e76616c6964205f7461784261736973506f696e747354696d656c6f636b3a20746f6b656e206e6f74207965742077686974656c697374656454696d656c6f636b3a20696e76616c6964205f696e507269766174655472616e736665724d6f646554696d656c6f636b3a20696e76616c6964205f737461626c655461784261736973506f696e747354696d656c6f636b3a20696e76616c6964205f6d696e744275726e4665654261736973506f696e747354696d656c6f636b3a20616374696f6e2074696d65206e6f74207965742070617373656454696d656c6f636b3a20696e76616c6964205f6c69717569646174696f6e46656555736454696d656c6f636b3a206275666665722063616e6e6f742062652064656372656173656454696d656c6f636b3a20666f7262696464656e0000000000000000000000000054696d656c6f636b3a206d6178546f6b656e537570706c7920657863656564656454696d656c6f636b3a20696e76616c6964205f737461626c65537761704665654261736973506f696e7473a264697066735822122019f3c03f26768f80c0f50b373f9d2383184129648e2999f893e555b407b0d60c64736f6c634300060c003300000000000000000000000049b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b0000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000b9fcd526e11aa577591d776baa051dc335728d650000000000000000000000004e29d2ee6973e5bd093df40ef9d0b28bd56c9e4e00000000000000000000000050f22389c10fcc3ba9b1ab9bcdafe40448a357fb0000000000000000000000000000000000000000000af5cbf0741b4c95400000

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

00000000000000000000000049b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b0000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000b9fcd526e11aa577591d776baa051dc335728d650000000000000000000000004e29d2ee6973e5bd093df40ef9d0b28bd56c9e4e00000000000000000000000050f22389c10fcc3ba9b1ab9bcdafe40448a357fb0000000000000000000000000000000000000000000af5cbf0741b4c95400000

-----Decoded View---------------
Arg [0] : _admin (address): 0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b
Arg [1] : _buffer (uint256): 3600
Arg [2] : _rewardManager (address): 0xb9fcd526e11aa577591d776baa051dc335728d65
Arg [3] : _tokenManager (address): 0x4e29d2ee6973e5bd093df40ef9d0b28bd56c9e4e
Arg [4] : _mintReceiver (address): 0x50f22389c10fcc3ba9b1ab9bcdafe40448a357fb
Arg [5] : _maxTokenSupply (uint256): 13250000000000000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000049b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000e10
Arg [2] : 000000000000000000000000b9fcd526e11aa577591d776baa051dc335728d65
Arg [3] : 0000000000000000000000004e29d2ee6973e5bd093df40ef9d0b28bd56c9e4e
Arg [4] : 00000000000000000000000050f22389c10fcc3ba9b1ab9bcdafe40448a357fb
Arg [5] : 0000000000000000000000000000000000000000000af5cbf0741b4c95400000


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.