Contract 0x3d35db83ff3166e1b7281374383a66fe58a636ee

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x1db5300039fefd7eb5c7e3c25fc222767c74aca8f816bb5234d820eb4dc6c71dBuy Bonds79780872021-06-03 15:35:41145 days 31 mins ago0xb318d55a9ffda7610908c59f0ca6856331ccb37b IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.001406555
0x240b7b97d5674f9d056080dc0180f9de78ac7e8b1d1f0a673880fe142a8c6e60Buy Bonds78361932021-05-29 16:56:05149 days 23 hrs ago0x83f905b926514d7d6f5f833450cc48e804f7ff2d IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.00068755
0x39a3974ff5aeafd3e21f01c684cbf9cf640e6b757662e887e05b547af1e31359Buy Bonds78360612021-05-29 16:49:29149 days 23 hrs ago0x83f905b926514d7d6f5f833450cc48e804f7ff2d IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.001532555
0xf0e7a6bab40cce3867d224208aa63ff4c13bb534b21323c1fd032ce3a4800dcaBuy Bonds76591412021-05-23 12:34:29156 days 3 hrs ago0xee5be303ae31fdd4dec7c1678b2d163592dc8e65 IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.002591555
0xa7f040c36c0f4949633944071c1ec71a34c8f38044f13aa419e79012426b037aAllocate Seignio...71056932021-05-03 16:35:41175 days 23 hrs ago0xe9f7703bb420c8986a28b16c4bd7e62bae6b734c IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000501895
0xbe2a6c684a2290b789fc3954ced6a6c7fc98d3f2f9033258ff02a69c47e24e1aAllocate Seignio...71056602021-05-03 16:34:02175 days 23 hrs ago0xe9f7703bb420c8986a28b16c4bd7e62bae6b734c IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000501895
0x3b9fbd65d7d8cb14cf2c99be8bd15796d5df4b4be727a209f1da0cd5ac6e5ff7Allocate Seignio...71056472021-05-03 16:33:23175 days 23 hrs ago0xe9f7703bb420c8986a28b16c4bd7e62bae6b734c IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000501895
0x47522b8dd66f33927c5450e860dc5e7b2b1c154eb1a447ab1fb28532c668c815Allocate Seignio...71056362021-05-03 16:32:50175 days 23 hrs ago0xe9f7703bb420c8986a28b16c4bd7e62bae6b734c IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000501895
0xd0b3a6e2c6eb8d4f7fa452755f432686b87f43ccab21ebdf9c91d66cad037904Allocate Seignio...71056222021-05-03 16:32:08175 days 23 hrs ago0xe9f7703bb420c8986a28b16c4bd7e62bae6b734c IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000501895
0x5240461980f9cfc8b97dedf372979160c5d9e9c6bc0201c9314beec3099a3424Allocate Seignio...71055912021-05-03 16:30:35175 days 23 hrs ago0xe9f7703bb420c8986a28b16c4bd7e62bae6b734c IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.0020489
0xa5271660d4b75926b00b76cf5a0b849fd63f468960734d37bc1084da47e223c6Buy Bonds66798342021-04-18 17:53:09190 days 22 hrs ago0xf17d19bffaa3edb97444bff06d03bcd3c09b152a IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000953555
0x663d2761dec9a3cd76207b0597b998568e773015a6a50ea216973615e175c4f7Buy Bonds66775312021-04-18 15:57:29191 days 10 mins ago0x047a3da63ddba6ce04de1c625bb90c65725136eb IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.00068761
0x2b94f4d44e6cc72448fdc189598cda6db0d87f34195d3443edfded645ffe4d94Buy Bonds66774372021-04-18 15:52:41191 days 14 mins ago0x047a3da63ddba6ce04de1c625bb90c65725136eb IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.00068761
0x57f16eec7e75c79ce40dd08b5696662fce5e9330f9d7639db95fa5cbbb7093c0Buy Bonds66774252021-04-18 15:52:03191 days 15 mins ago0x047a3da63ddba6ce04de1c625bb90c65725136eb IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.001070615
0x2ff80c95b38bc4d49f028db3d4f5755c192651744bfea6a48578e15490d29980Buy Bonds66546122021-04-17 20:49:36191 days 19 hrs ago0x03251ae9065a02d50230e02b137265157e101c20 IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.001058615
0x984e2944fb0f326b00f3b70fe97a5aaaa6d0094a45e9dd04e7e301ee16126cb1Buy Bonds66079172021-04-16 5:47:22193 days 10 hrs ago0xf17d19bffaa3edb97444bff06d03bcd3c09b152a IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000953615
0x43de29b9f4d16f17a3db17dc145233aa4a4c0fe19a85385271c25b70f9633693Buy Bonds66015982021-04-16 0:30:39193 days 15 hrs ago0x54ac4067f683a7d70cfc4f5e7fd701e93269d964 IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000953555
0x712f9d01ac02c9d3658126caab8a414a7700d5e236d3490e7e45772dddcd90b2Buy Bonds65922072021-04-15 16:40:43193 days 23 hrs ago0xdb53ecadcac9ee6465134cee42073c59a9252690 IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.001049555
0x2663b873aecdf13124b8d13550b50ab731af32346c157881624ce28250daba73Buy Bonds65819862021-04-15 8:09:19194 days 7 hrs ago0x3fa2382a43c7661a32ce214a7a10afe3fda53149 IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000953555
0x202378cff3680d6e508c42a071b7f8fb35970f7836aaac5cea8a68bf5943e67fBuy Bonds65709012021-04-14 22:54:14194 days 17 hrs ago0xf17d19bffaa3edb97444bff06d03bcd3c09b152a IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.001070615
0xcb89ed147bee79b640c2f009d54d5231a0bab96a2587338d7f32687da41b8d67Buy Bonds65532762021-04-14 8:11:49195 days 7 hrs ago0xf5499e61974befc6c35ea5f86787cad6808dc31f IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.001028615
0xeac06a03a1c46b0bc621e8615ac246e04591b53d1b8005f19d66cfc49abdbdeeBuy Bonds65426702021-04-13 23:21:31195 days 16 hrs ago0xcadf00027b1f630a6375aa3b93555cb6fc352fa9 IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000953615
0xde9f480dae33046c5c4a46a084ac6397b6f2f12833efe526d090897a10179472Buy Bonds65353752021-04-13 17:16:46195 days 22 hrs ago0x567d732302c857c8d0ef89272f2e29a2ccdfbeb3 IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.001028615
0x637d8f1c592bc7c402a065623e1c448f8c02c710384a8b1d8f80f9bc21bd2c9fBuy Bonds65289492021-04-13 11:55:28196 days 4 hrs ago0xe9a186f79a94b40ba63d8b5ba53d227a3a6dd9f3 IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000974555
0xee7e981c22e4699753794143ee22b5e9f3a21ec258b0b03f729528b5d4af2f45Allocate Seignio...65175962021-04-13 2:27:18196 days 13 hrs agoSoup Protocol: Deployer IN  0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB0.000501895
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x767c0fb2bfd9b8556acb28eba5bf9eed7ad3f90492a7bf40c83a66a5fdfc4b0754713112021-03-07 11:58:30233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x767c0fb2bfd9b8556acb28eba5bf9eed7ad3f90492a7bf40c83a66a5fdfc4b0754713112021-03-07 11:58:30233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xf870fbebf7489db7e90f53013a3dc75baa5e9783e89880b5f2394026688963be54713092021-03-07 11:58:24233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xfdb9b01779ab5323d537fd213cfc85222f199e826bbc1c24363b5825ff18610554712652021-03-07 11:56:12233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xfdb9b01779ab5323d537fd213cfc85222f199e826bbc1c24363b5825ff18610554712652021-03-07 11:56:12233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xbc70b3bb5248e243f4b82a1a5c17e255619348ea21b75fe46f733699d01695ff54712502021-03-07 11:55:27233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x4622101bd9a604346ab12bebabab92a1b914e7e2ca68182c50671e38487d8d7854712192021-03-07 11:53:54233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x4622101bd9a604346ab12bebabab92a1b914e7e2ca68182c50671e38487d8d7854712192021-03-07 11:53:54233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x4039d7da702b5070b8a5a838242bb5f7f0fcba61ecf384dc24fbe4d207edc0e454712112021-03-07 11:53:30233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x4039d7da702b5070b8a5a838242bb5f7f0fcba61ecf384dc24fbe4d207edc0e454712112021-03-07 11:53:30233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xdc0db830fca439b6128db655265d07403c278e577439e332189aa52b5564170a54711992021-03-07 11:52:54233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x74e45ae18c5ab7206f2117091c368b463cacf26b250fa9f17a21614e2ba5c6ce54711832021-03-07 11:52:06233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xb50e8bd2317d76776fb9c4f20844bd65e4abbd4d5f7eb7bd2389c58b87c0398254711492021-03-07 11:50:24233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xb50e8bd2317d76776fb9c4f20844bd65e4abbd4d5f7eb7bd2389c58b87c0398254711492021-03-07 11:50:24233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x5ad1808b189fc59f0e7a69281b7591c94c96a555cda161e6f25c4a71667c4cca54711222021-03-07 11:49:03233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x9ea306b439f81edd12119164636709a38d6ba944dbab4a5e915881196324125154710972021-03-07 11:47:48233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x9ea306b439f81edd12119164636709a38d6ba944dbab4a5e915881196324125154710972021-03-07 11:47:48233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xdbff5d1dac54c86c233c8c70ba9848327999861617647ca096603b4ff59a644654710492021-03-07 11:45:24233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0xdbff5d1dac54c86c233c8c70ba9848327999861617647ca096603b4ff59a644654710492021-03-07 11:45:24233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x3299dc04a17a62ab64c87a8ba48607325898fdbf599131f0f0062397c9f1d49454710372021-03-07 11:44:48233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x3e8931ad942f249284f569d73aa10aa6e4166efa1938162bf4c4dbc7f6ee23bd54709812021-03-07 11:42:00233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x3e8931ad942f249284f569d73aa10aa6e4166efa1938162bf4c4dbc7f6ee23bd54709812021-03-07 11:42:00233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x1cc758d7a113e0af914b6613f6968a2ac54e29b6f557f47fab923e1d4fcd7afb54709362021-03-07 11:39:45233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x1cc758d7a113e0af914b6613f6968a2ac54e29b6f557f47fab923e1d4fcd7afb54709362021-03-07 11:39:45233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
0x260756ee3b9e340617b286caf640b53aaac2876ae986086fa3f6967764d86b9d54709192021-03-07 11:38:54233 days 4 hrs ago 0x74ee3b0c391a2190d4fc275cd6c9e9c8dc109240 0x3d35db83ff3166e1b7281374383a66fe58a636ee0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Treasury

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion
File 1 of 15 : Treasury.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

import "./lib/Babylonian.sol";
import "./owner/Operator.sol";
import "./utils/ContractGuard.sol";
import "./interfaces/IBasisAsset.sol";
import "./interfaces/IOracle.sol";
import "./interfaces/IBoiler.sol";

/**
 * @title Basis Dollar Treasury contract
 * @notice Monetary policy logic to adjust supplies of basis dollar assets
 * @author Summer Smith & Rick Sanchez
 */
contract Treasury is ContractGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    /* ========= CONSTANT VARIABLES ======== */

    uint256 public constant PERIOD = 6 hours;

    /* ========== STATE VARIABLES ========== */

    // governance
    address public operator;

    // flags
    bool public migrated = false;
    bool public initialized = false;

    // epoch
    uint256 public startTime;
    uint256 public epoch = 0;
    uint256 public epochSupplyContractionLeft = 0;

    // core components
    address public dollar = address(0x94F559aE621F1c810F31a6a620Ad7376776fe09E);
    address public bond = address(0xD1d77a7ACd3AA1dBf6BA82D4104c7E8D13EB6133);
    address public share = address(0x69F27E70E820197A6e495219D9aC34C8C6dA7EeE);

    address public boiler;
    address public dollarOracle;

    // price
    uint256 public dollarPriceOne;
    uint256 public dollarPriceCeiling;

    uint256 public seigniorageSaved;

    uint256 public maxSupplyExpansionPercent;
    uint256 public maxSupplyExpansionPercentInDebtPhase;
    uint256 public bondDepletionFloorPercent;
    uint256 public seigniorageExpansionFloorPercent;
    uint256 public maxSupplyContractionPercent;
    uint256 public maxDeptRatioPercent;

    uint256 public constant bootstrapEpochs = 12; // 3 days
    uint256 public constant bootstrapSupplyExpansionPercent = 450; // 4.5%

    /* =================== Added variables (need to keep orders for proxy to work) =================== */
    uint256 public previousEpochDollarPrice;
    uint256 public constant premiumPercent = 6500;

    address public gameFund;
    uint256 public gameFundSharedPercent;

    /* =================== Events =================== */

    event Initialized(address indexed executor, uint256 at);
    event Migration(address indexed target);
    event RedeemedBonds(address indexed from, uint256 dollarAmount, uint256 bondAmount);
    event BoughtBonds(address indexed from, uint256 dollarAmount, uint256 bondAmount);
    event TreasuryFunded(uint256 timestamp, uint256 seigniorage);
    event BoilerFunded(uint256 timestamp, uint256 seigniorage);
    event GameFundFunded(uint256 timestamp, uint256 seigniorage);

    /* =================== Modifier =================== */

    modifier onlyOperator() {
        require(operator == msg.sender, "Treasury: caller is not the operator");
        _;
    }

    modifier checkCondition {
        require(!migrated, "Treasury: migrated");
        require(now >= startTime, "Treasury: not started yet");

        _;
    }

    modifier checkEpoch {
        require(now >= nextEpochPoint(), "Treasury: not opened yet");

        _;

        epoch = epoch.add(1);
        epochSupplyContractionLeft = (getDollarPrice() > dollarPriceCeiling) ? 0 : IERC20(dollar).totalSupply().mul(maxSupplyContractionPercent).div(10000);
    }

    modifier checkOperator {
        require(
            IBasisAsset(dollar).operator() == address(this) &&
                IBasisAsset(bond).operator() == address(this) &&
                IBasisAsset(share).operator() == address(this) &&
                Operator(boiler).operator() == address(this),
            "Treasury: need more permission"
        );

        _;
    }

    modifier notInitialized {
        require(!initialized, "Treasury: already initialized");

        _;
    }

    /* ========== VIEW FUNCTIONS ========== */

    // flags
    function isMigrated() public view returns (bool) {
        return migrated;
    }

    function isInitialized() public view returns (bool) {
        return initialized;
    }

    // epoch
    function nextEpochPoint() public view returns (uint256) {
        return startTime.add(epoch.mul(PERIOD));
    }

    // oracle
    function getDollarPrice() public view returns (uint256 dollarPrice) {
        try IOracle(dollarOracle).consult(dollar, 1e18) returns (uint144 price) {
            return uint256(price);
        } catch {
            revert("Treasury: failed to consult dollar price from the oracle");
        }
    }

    function getDollarUpdatedPrice() public view returns (uint256 _dollarPrice) {
        try IOracle(dollarOracle).twap(dollar, 1e18) returns (uint144 price) {
            return uint256(price);
        } catch {
            revert("Treasury: failed to consult dollar price from the oracle");
        }
    }

    // budget
    function getReserve() public view returns (uint256) {
        return seigniorageSaved;
    }

    function getBurnableDollarLeft() public view returns (uint256 _burnableDollarLeft) {
        uint256  _dollarPrice = getDollarPrice();
        if (_dollarPrice <= dollarPriceOne) {
            uint256 _dollarSupply = IERC20(dollar).totalSupply();
            uint256 _bondMaxSupply = _dollarSupply.mul(maxDeptRatioPercent).div(10000);
            uint256 _bondSupply = IERC20(bond).totalSupply();
            if (_bondMaxSupply > _bondSupply) {
                uint256 _maxMintableBond = _bondMaxSupply.sub(_bondSupply);
                uint256 _maxBurnableDollar = _maxMintableBond.mul(_dollarPrice).div(1e18);
                _burnableDollarLeft = Math.min(epochSupplyContractionLeft, _maxBurnableDollar);
            }
        }
    }

    function getRedeemableBonds() public view returns (uint256 _redeemableBonds) {
        uint256  _dollarPrice = getDollarPrice();
        if (_dollarPrice > dollarPriceCeiling) {
            uint256 _totalDollar = IERC20(dollar).balanceOf(address(this));
            uint256 _rate = getBondPremiumRate();
            if (_rate > 0) {
                _redeemableBonds = _totalDollar.mul(1e18).div(_rate);
            }
        }
    }

    function getBondPremiumRate() public view returns (uint256 _rate) {
        uint256 _dollarPrice = getDollarPrice();
        if (_dollarPrice > dollarPriceCeiling) {
            uint256 _premiumAmount = _dollarPrice.sub(dollarPriceOne).mul(premiumPercent).div(10000);
            _rate = dollarPriceOne.add(_premiumAmount);
        }
    }

    /* ========== GOVERNANCE ========== */

    function initialize(
        address _dollar,
        address _bond,
        address _share,
        uint256 _startTime
    ) public notInitialized {
        dollar = _dollar;
        bond = _bond;
        share = _share;
        startTime = _startTime;

        dollarPriceOne = 10**18;
        dollarPriceCeiling = dollarPriceOne.mul(101).div(100);

        maxSupplyExpansionPercent = 300; // Upto 3.0% supply for expansion
        maxSupplyExpansionPercentInDebtPhase = 300; // Upto 3.0% supply for expansion in debt phase
        bondDepletionFloorPercent = 10000; // 100% of Bond supply for depletion floor
        seigniorageExpansionFloorPercent = 3000; // At least 30% of expansion reserved for boiler
        maxSupplyContractionPercent = 300; // Upto 3.0% supply for contraction (to burn SOUP and mint SOUPB)
        maxDeptRatioPercent = 3500; // Upto 35% supply of SOUPB to purchase (SOUPB supply cannot exceed 35% supply of SOUP)

        // set seigniorageSaved to it's balance
        seigniorageSaved = IERC20(dollar).balanceOf(address(this));

        initialized = true;
        operator = msg.sender;
        emit Initialized(msg.sender, block.number);
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function setBoiler(address _boiler) external onlyOperator {
        boiler = _boiler;
    }

    function setDollarOracle(address _dollarOracle) external onlyOperator {
        dollarOracle = _dollarOracle;
    }

    function setGameFund(address _gameFund) external onlyOperator {
        require(_gameFund != address(0), "zero");
        gameFund = _gameFund;
    }

    function setGameFundSharedPercent(uint256 _gameFundSharedPercent) external onlyOperator {
        require(_gameFundSharedPercent <= 2000, "out of range"); // =< 20%
        gameFundSharedPercent = _gameFundSharedPercent;
    }

    function migrate(address target) external onlyOperator checkOperator {
        require(!migrated, "Treasury: migrated");

        // dollar
        Operator(dollar).transferOperator(target);
        Operator(dollar).transferOwnership(target);
        IERC20(dollar).transfer(target, IERC20(dollar).balanceOf(address(this)));

        // bond
        Operator(bond).transferOperator(target);
        Operator(bond).transferOwnership(target);
        IERC20(bond).transfer(target, IERC20(bond).balanceOf(address(this)));

        // share
        Operator(share).transferOperator(target);
        Operator(share).transferOwnership(target);
        IERC20(share).transfer(target, IERC20(share).balanceOf(address(this)));

        migrated = true;
        emit Migration(target);
    }

    /* ========== MUTABLE FUNCTIONS ========== */

    function _updateDollarPrice() internal {
        try IOracle(dollarOracle).update() {} catch {}
    }

    function buyBonds(uint256 _dollarAmount, uint256 targetPrice) external onlyOneBlock checkCondition checkOperator {
        require(_dollarAmount > 0, "Treasury: cannot purchase bonds with zero amount");

        uint256 dollarPrice = getDollarPrice();
        require(dollarPrice == targetPrice, "Treasury: dollar price moved");
        require(
            dollarPrice < dollarPriceOne, // price < $1
            "Treasury: dollarPrice not eligible for bond purchase"
        );

        require(_dollarAmount <= epochSupplyContractionLeft, "Treasury: not enough bond left to purchase");

        uint256 _bondAmount = _dollarAmount.mul(dollarPriceOne).div(1e18); // no discount
        uint256 dollarSupply = IERC20(dollar).totalSupply();
        uint256 newBondSupply = IERC20(bond).totalSupply().add(_bondAmount);
        require(newBondSupply <= dollarSupply.mul(maxDeptRatioPercent).div(10000), "over max debt ratio");

        IBasisAsset(dollar).burnFrom(msg.sender, _dollarAmount);
        IBasisAsset(bond).mint(msg.sender, _bondAmount);

        epochSupplyContractionLeft = epochSupplyContractionLeft.sub(_dollarAmount);
        _updateDollarPrice();

        emit BoughtBonds(msg.sender, _dollarAmount, _bondAmount);
    }

    function redeemBonds(uint256 _bondAmount, uint256 targetPrice) external onlyOneBlock checkCondition checkOperator {
        require(_bondAmount > 0, "Treasury: cannot redeem bonds with zero amount");

        uint256 dollarPrice = getDollarPrice();
        require(dollarPrice == targetPrice, "Treasury: dollar price moved");
        require(
            dollarPrice > dollarPriceCeiling, // price > $1.01
            "Treasury: dollarPrice not eligible for bond purchase"
        );

        uint256 _rate = getBondPremiumRate();
        require(_rate > 0, "Treasury: invalid bond rate");

        uint256 _dollarAmount = _bondAmount.mul(_rate).div(1e18);
        require(IERC20(dollar).balanceOf(address(this)) >= _dollarAmount, "Treasury: treasury has no more budget");

        seigniorageSaved = seigniorageSaved.sub(Math.min(seigniorageSaved, _dollarAmount));

        IBasisAsset(bond).burnFrom(msg.sender, _bondAmount);
        IERC20(dollar).safeTransfer(msg.sender, _dollarAmount);

        _updateDollarPrice();

        emit RedeemedBonds(msg.sender, _dollarAmount, _bondAmount);
    }

    function _sendToBoardRoom(uint256 _amount) internal {
        IBasisAsset(dollar).mint(address(this), _amount);
        if (gameFundSharedPercent > 0) {
            uint256 _gameFundSharedAmount = _amount.mul(gameFundSharedPercent).div(10000);
            IERC20(dollar).transfer(gameFund, _gameFundSharedAmount);
            emit GameFundFunded(now, _gameFundSharedAmount);
            _amount = _amount.sub(_gameFundSharedAmount);
        }
        IERC20(dollar).safeApprove(boiler, 0);
        IERC20(dollar).safeApprove(boiler, _amount);
        IBoiler(boiler).allocateSeigniorage(_amount);
        emit BoilerFunded(now, _amount);
    }

    function allocateSeigniorage() external onlyOneBlock checkCondition checkEpoch checkOperator {
        _updateDollarPrice();
        previousEpochDollarPrice = getDollarPrice();
        uint256 dollarSupply = IERC20(dollar).totalSupply().sub(seigniorageSaved);

        if (epoch < bootstrapEpochs) { // 12 first epochs with 4.5% expansion
            _sendToBoardRoom(dollarSupply.mul(bootstrapSupplyExpansionPercent).div(10000));
        } else {
            if (previousEpochDollarPrice > dollarPriceCeiling) {
                // Expansion ($SOUP Price > 1$): there is some seigniorage to be allocated
                uint256 bondSupply = IERC20(bond).totalSupply();
                uint256 _percentage = previousEpochDollarPrice.sub(dollarPriceOne);
                uint256 _savedForBond;
                uint256 _savedForBoardRoom;
                if (seigniorageSaved >= bondSupply.mul(bondDepletionFloorPercent).div(10000)) {// saved enough to pay dept, mint as usual rate
                    uint256 _mse = maxSupplyExpansionPercent.mul(1e14);
                    if (_percentage > _mse) {
                        _percentage = _mse;
                    }
                    _savedForBoardRoom = dollarSupply.mul(_percentage).div(1e18);
                } else {// have not saved enough to pay dept, mint more
                    uint256 _mse = maxSupplyExpansionPercentInDebtPhase.mul(1e14);
                    if (_percentage > _mse) {
                        _percentage = _mse;
                    }
                    uint256 _seigniorage = dollarSupply.mul(_percentage).div(1e18);
                    _savedForBoardRoom = _seigniorage.mul(seigniorageExpansionFloorPercent).div(10000);
                    _savedForBond = _seigniorage.sub(_savedForBoardRoom);
                }
                if (_savedForBoardRoom > 0) {
                    _sendToBoardRoom(_savedForBoardRoom);
                }
                if (_savedForBond > 0) {
                    seigniorageSaved = seigniorageSaved.add(_savedForBond);
                    IBasisAsset(dollar).mint(address(this), _savedForBond);
                    emit TreasuryFunded(now, _savedForBond);
                }
            }
        }
    }

    /* ========== BOARDROOM CONTROLLING FUNCTIONS ========== */

    function boilerSetOperator(address _operator) external onlyOperator {
        IBoiler(boiler).setOperator(_operator);
    }

    function boilerSetLockUp(uint256 _withdrawLockupEpochs, uint256 _rewardLockupEpochs) external onlyOperator {
        IBoiler(boiler).setLockUp(_withdrawLockupEpochs, _rewardLockupEpochs);
    }

    function boilerAllocateSeigniorage(uint256 amount) external onlyOperator {
        IBoiler(boiler).allocateSeigniorage(amount);
    }

    function boilerGovernanceRecoverUnsupported(address _token, uint256 _amount, address _to) external onlyOperator {
        IBoiler(boiler).governanceRecoverUnsupported(_token, _amount, _to);
    }
}

File 2 of 15 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

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

pragma solidity ^0.6.0;

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

File 4 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

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

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

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

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

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

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

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

File 5 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 15 : Babylonian.sol
pragma solidity ^0.6.0;

library Babylonian {
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
        // else z = 0
    }
}

File 7 of 15 : Operator.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Operator is Context, Ownable {
    address private _operator;

    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);

    constructor() internal {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);
    }

    function operator() public view returns (address) {
        return _operator;
    }

    modifier onlyOperator() {
        require(_operator == msg.sender, "operator: caller is not the operator");
        _;
    }

    function isOperator() public view returns (bool) {
        return _msgSender() == _operator;
    }

    function transferOperator(address newOperator_) public onlyOwner {
        _transferOperator(newOperator_);
    }

    function _transferOperator(address newOperator_) internal {
        require(newOperator_ != address(0), "operator: zero address given for new operator");
        emit OperatorTransferred(address(0), newOperator_);
        _operator = newOperator_;
    }
}

File 8 of 15 : ContractGuard.sol
pragma solidity 0.6.12;

contract ContractGuard {
    mapping(uint256 => mapping(address => bool)) private _status;

    function checkSameOriginReentranted() internal view returns (bool) {
        return _status[block.number][tx.origin];
    }

    function checkSameSenderReentranted() internal view returns (bool) {
        return _status[block.number][msg.sender];
    }

    modifier onlyOneBlock() {
        require(!checkSameOriginReentranted(), "ContractGuard: one block, one function");
        require(!checkSameSenderReentranted(), "ContractGuard: one block, one function");

        _;

        _status[block.number][tx.origin] = true;
        _status[block.number][msg.sender] = true;
    }
}

File 9 of 15 : IBasisAsset.sol
pragma solidity ^0.6.0;

interface IBasisAsset {
    function mint(address recipient, uint256 amount) external returns (bool);

    function burn(uint256 amount) external;

    function burnFrom(address from, uint256 amount) external;

    function isOperator() external returns (bool);

    function operator() external view returns (address);
}

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

pragma solidity 0.6.12;

interface IOracle {
    function update() external;

    function consult(address _token, uint256 _amountIn) external view returns (uint144 amountOut);

    function twap(address _token, uint256 _amountIn) external view returns (uint144 _amountOut);
}

File 11 of 15 : IBoiler.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IBoiler {
    function balanceOf(address _director) external view returns (uint256);

    function earned(address _director) external view returns (uint256);

    function canWithdraw(address _director) external view returns (bool);

    function canClaimReward(address _director) external view returns (bool);

    function epoch() external view returns (uint256);

    function nextEpochPoint() external view returns (uint256);

    function getDollarPrice() external view returns (uint256);

    function setOperator(address _operator) external;

    function setLockUp(uint256 _withdrawLockupEpochs, uint256 _rewardLockupEpochs) external;

    function stake(uint256 _amount) external;

    function withdraw(uint256 _amount) external;

    function exit() external;

    function claimReward() external;

    function allocateSeigniorage(uint256 _amount) external;

    function governanceRecoverUnsupported(address _token, uint256 _amount, address _to) external;
}

File 12 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @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 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

pragma solidity ^0.6.0;

import "../GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seigniorage","type":"uint256"}],"name":"BoilerFunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"dollarAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bondAmount","type":"uint256"}],"name":"BoughtBonds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seigniorage","type":"uint256"}],"name":"GameFundFunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"}],"name":"Migration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"dollarAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bondAmount","type":"uint256"}],"name":"RedeemedBonds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seigniorage","type":"uint256"}],"name":"TreasuryFunded","type":"event"},{"inputs":[],"name":"PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allocateSeigniorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"boiler","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"boilerAllocateSeigniorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"boilerGovernanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawLockupEpochs","type":"uint256"},{"internalType":"uint256","name":"_rewardLockupEpochs","type":"uint256"}],"name":"boilerSetLockUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"boilerSetOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bond","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondDepletionFloorPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bootstrapEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bootstrapSupplyExpansionPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dollarAmount","type":"uint256"},{"internalType":"uint256","name":"targetPrice","type":"uint256"}],"name":"buyBonds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dollar","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dollarOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dollarPriceCeiling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dollarPriceOne","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochSupplyContractionLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameFundSharedPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBondPremiumRate","outputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBurnableDollarLeft","outputs":[{"internalType":"uint256","name":"_burnableDollarLeft","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDollarPrice","outputs":[{"internalType":"uint256","name":"dollarPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDollarUpdatedPrice","outputs":[{"internalType":"uint256","name":"_dollarPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRedeemableBonds","outputs":[{"internalType":"uint256","name":"_redeemableBonds","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_dollar","type":"address"},{"internalType":"address","name":"_bond","type":"address"},{"internalType":"address","name":"_share","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMigrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDeptRatioPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyContractionPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyExpansionPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyExpansionPercentInDebtPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextEpochPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premiumPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"previousEpochDollarPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bondAmount","type":"uint256"},{"internalType":"uint256","name":"targetPrice","type":"uint256"}],"name":"redeemBonds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seigniorageExpansionFloorPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seigniorageSaved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_boiler","type":"address"}],"name":"setBoiler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dollarOracle","type":"address"}],"name":"setDollarOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gameFund","type":"address"}],"name":"setGameFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gameFundSharedPercent","type":"uint256"}],"name":"setGameFundSharedPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"share","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526001805461ffff60a01b1916905560006003819055600455600580546001600160a01b03199081167394f559ae621f1c810f31a6a620ad7376776fe09e1790915560068054821673d1d77a7acd3aa1dbf6ba82d4104c7e8d13eb6133179055600780549091167369f27e70e820197a6e495219d9ac34c8c6da7eee17905534801561008e57600080fd5b506142688061009e6000396000f3fe608060405234801561001057600080fd5b50600436106103365760003560e01c80638fbf92d8116101b2578063c8412d02116100f9578063e90b2454116100a2578063f179acde1161007c578063f179acde14610680578063f37d245814610688578063f8da1c3b14610690578063fcb6f0081461069857610336565b8063e90b245414610653578063f0e251241461065b578063f14698de1461067857610336565b8063d98f2495116100d3578063d98f24951461063b578063da3cfe9d14610643578063e1f095aa1461064b57610336565b8063c8412d02146105d1578063ce5494bb146105d9578063cf756fdf146105ff57610336565b8063aea997a91161015b578063b4d1d79511610135578063b4d1d795146105b9578063c5967c26146105c1578063c81982e8146105c957610336565b8063aea997a914610555578063b06faf621461058b578063b3ab15fb1461059357610336565b806399f85b181161018c57806399f85b18146105285780639bc25bdf14610530578063a8d5fd651461054d57610336565b80638fbf92d8146104f2578063900cf0cf1461051857806394bdf63e1461052057610336565b806351adeb571161028157806364c9ec6f1161022a57806378e979251161020457806378e97925146104d257806381d11eaf146104da57806382ef2dd4146104e2578063874106cc146104ea57610336565b806364c9ec6f146104ba578063723ee2c4146104c257806372c054f9146104ca57610336565b806359bf5d391161025b57806359bf5d39146104a25780635a0fc79c146104aa5780635b756179146104b257610336565b806351adeb571461046f57806354f04a1114610477578063570ca7351461049a57610336565b80631a5e2e54116102e3578063392e53cd116102bd578063392e53cd1461041d5780633d2587f114610425578063451111b71461044b57610336565b80631a5e2e54146103e757806322f832cd1461040d5780632c678c641461041557610336565b80630dbde3e3116103145780630dbde3e3146103a0578063118ebbf9146103a8578063158ef93e146103cb57610336565b806305314d521461033b5780630b16596a146103605780630db7eb0b14610386575b600080fd5b61035e6004803603604081101561035157600080fd5b50803590602001356106a0565b005b61035e6004803603602081101561037657600080fd5b50356001600160a01b0316610772565b61038e61083d565b60408051918252519081900360200190f35b61038e61089b565b61035e600480360360408110156103be57600080fd5b50803590602001356108a1565b6103d3610fc2565b604080519115158252519081900360200190f35b61035e600480360360208110156103fd57600080fd5b50356001600160a01b0316610fe4565b61038e611067565b6103d361106d565b6103d361108e565b61035e6004803603602081101561043b57600080fd5b50356001600160a01b03166110b1565b610453611134565b604080516001600160a01b039092168252519081900360200190f35b610453611143565b61035e6004803603604081101561048d57600080fd5b5080359060200135611152565b61045361198e565b61038e61199d565b61038e6119a3565b61035e6119a9565b6104536121ff565b61038e61220e565b61038e612214565b61038e6122ee565b61038e6122f4565b61038e6122fa565b61038e612300565b61035e6004803603602081101561050857600080fd5b50356001600160a01b0316612306565b61038e6123e6565b61038e6123ec565b61038e6123f2565b61035e6004803603602081101561054657600080fd5b5035612576565b610453612625565b61035e6004803603606081101561056b57600080fd5b506001600160a01b03813581169160208101359160409091013516612634565b6103d3612710565b61035e600480360360208110156105a957600080fd5b50356001600160a01b0316612731565b61038e6127b4565b61038e6127ba565b61038e6127e4565b61038e6128da565b61035e600480360360208110156105ef57600080fd5b50356001600160a01b03166128e0565b61035e6004803603608081101561061557600080fd5b506001600160a01b038135811691602081013582169160408201351690606001356132de565b61038e613523565b61038e613529565b61038e61352f565b61038e6135aa565b61035e6004803603602081101561067157600080fd5b50356135b0565b61038e613655565b61045361365a565b610453613669565b61038e613678565b61038e61367e565b6001546001600160a01b031633146106e95760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b600854604080517f2ffaaa09000000000000000000000000000000000000000000000000000000008152600481018590526024810184905290516001600160a01b0390921691632ffaaa099160448082019260009290919082900301818387803b15801561075657600080fd5b505af115801561076a573d6000803e3d6000fd5b505050505050565b6001546001600160a01b031633146107bb5760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b600854604080517fb3ab15fb0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301529151919092169163b3ab15fb91602480830192600092919082900301818387803b15801561082257600080fd5b505af1158015610836573d6000803e3d6000fd5b5050505050565b60008061084861352f565b9050600b5481111561089757600061088361271061087d611964610877600a548761368490919063ffffffff16565b906136cf565b90613728565b600a54909150610893908261376a565b9250505b5090565b60125481565b6108a96137c4565b156108e55760405162461bcd60e51b81526004018080602001828103825260268152602001806141ad6026913960400191505060405180910390fd5b6108ed6137e3565b156109295760405162461bcd60e51b81526004018080602001828103825260268152602001806141ad6026913960400191505060405180910390fd5b60015474010000000000000000000000000000000000000000900460ff1615610999576040805162461bcd60e51b815260206004820152601260248201527f54726561737572793a206d696772617465640000000000000000000000000000604482015290519081900360640190fd5b6002544210156109f0576040805162461bcd60e51b815260206004820152601960248201527f54726561737572793a206e6f7420737461727465642079657400000000000000604482015290519081900360640190fd5b6005546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015610a3457600080fd5b505afa158015610a48573d6000803e3d6000fd5b505050506040513d6020811015610a5e57600080fd5b50516001600160a01b0316148015610aec57506006546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015610ab557600080fd5b505afa158015610ac9573d6000803e3d6000fd5b505050506040513d6020811015610adf57600080fd5b50516001600160a01b0316145b8015610b6e57506007546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015610b3757600080fd5b505afa158015610b4b573d6000803e3d6000fd5b505050506040513d6020811015610b6157600080fd5b50516001600160a01b0316145b8015610bf057506008546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015610bb957600080fd5b505afa158015610bcd573d6000803e3d6000fd5b505050506040513d6020811015610be357600080fd5b50516001600160a01b0316145b610c41576040805162461bcd60e51b815260206004820152601e60248201527f54726561737572793a206e656564206d6f7265207065726d697373696f6e0000604482015290519081900360640190fd5b60008211610c805760405162461bcd60e51b815260040180806020018281038252602e815260200180614083602e913960400191505060405180910390fd5b6000610c8a61352f565b9050818114610ce0576040805162461bcd60e51b815260206004820152601c60248201527f54726561737572793a20646f6c6c6172207072696365206d6f76656400000000604482015290519081900360640190fd5b600b548111610d205760405162461bcd60e51b815260040180806020018281038252603481526020018061404f6034913960400191505060405180910390fd5b6000610d2a61083d565b905060008111610d81576040805162461bcd60e51b815260206004820152601b60248201527f54726561737572793a20696e76616c696420626f6e6420726174650000000000604482015290519081900360640190fd5b6000610d99670de0b6b3a764000061087d87856136cf565b600554604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935083926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610e0257600080fd5b505afa158015610e16573d6000803e3d6000fd5b505050506040513d6020811015610e2c57600080fd5b50511015610e6b5760405162461bcd60e51b81526004018080602001828103825260258152602001806140b16025913960400191505060405180910390fd5b610e83610e7a600c5483613802565b600c5490613684565b600c55600654604080517f79cc67900000000000000000000000000000000000000000000000000000000081523360048201526024810188905290516001600160a01b03909216916379cc67909160448082019260009290919082900301818387803b158015610ef257600080fd5b505af1158015610f06573d6000803e3d6000fd5b5050600554610f2292506001600160a01b031690503383613818565b610f2a61389d565b6040805182815260208101879052815133927f51e0d16595cabc591e64da08e45bb223577e5b9a39cd947b4ddc3472b2dd8878928290030190a2505043600090815260208181526040808320328452909152808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092553384529190922080549091169091179055505050565b6001547501000000000000000000000000000000000000000000900460ff1681565b6001546001600160a01b0316331461102d5760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60105481565b60015474010000000000000000000000000000000000000000900460ff1681565b6001547501000000000000000000000000000000000000000000900460ff165b90565b6001546001600160a01b031633146110fa5760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6009546001600160a01b031681565b6005546001600160a01b031681565b61115a6137c4565b156111965760405162461bcd60e51b81526004018080602001828103825260268152602001806141ad6026913960400191505060405180910390fd5b61119e6137e3565b156111da5760405162461bcd60e51b81526004018080602001828103825260268152602001806141ad6026913960400191505060405180910390fd5b60015474010000000000000000000000000000000000000000900460ff161561124a576040805162461bcd60e51b815260206004820152601260248201527f54726561737572793a206d696772617465640000000000000000000000000000604482015290519081900360640190fd5b6002544210156112a1576040805162461bcd60e51b815260206004820152601960248201527f54726561737572793a206e6f7420737461727465642079657400000000000000604482015290519081900360640190fd5b6005546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b1580156112e557600080fd5b505afa1580156112f9573d6000803e3d6000fd5b505050506040513d602081101561130f57600080fd5b50516001600160a01b031614801561139d57506006546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b15801561136657600080fd5b505afa15801561137a573d6000803e3d6000fd5b505050506040513d602081101561139057600080fd5b50516001600160a01b0316145b801561141f57506007546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b1580156113e857600080fd5b505afa1580156113fc573d6000803e3d6000fd5b505050506040513d602081101561141257600080fd5b50516001600160a01b0316145b80156114a157506008546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b15801561146a57600080fd5b505afa15801561147e573d6000803e3d6000fd5b505050506040513d602081101561149457600080fd5b50516001600160a01b0316145b6114f2576040805162461bcd60e51b815260206004820152601e60248201527f54726561737572793a206e656564206d6f7265207065726d697373696f6e0000604482015290519081900360640190fd5b600082116115315760405162461bcd60e51b81526004018080602001828103825260308152602001806140f76030913960400191505060405180910390fd5b600061153b61352f565b9050818114611591576040805162461bcd60e51b815260206004820152601c60248201527f54726561737572793a20646f6c6c6172207072696365206d6f76656400000000604482015290519081900360640190fd5b600a5481106115d15760405162461bcd60e51b815260040180806020018281038252603481526020018061404f6034913960400191505060405180910390fd5b6004548311156116125760405162461bcd60e51b815260040180806020018281038252602a815260200180614209602a913960400191505060405180910390fd5b6000611635670de0b6b3a764000061087d600a54876136cf90919063ffffffff16565b90506000600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561168757600080fd5b505afa15801561169b573d6000803e3d6000fd5b505050506040513d60208110156116b157600080fd5b5051600654604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905192935060009261174f9286926001600160a01b03909116916318160ddd91600480820192602092909190829003018186803b15801561171d57600080fd5b505afa158015611731573d6000803e3d6000fd5b505050506040513d602081101561174757600080fd5b50519061376a565b905061176c61271061087d601254856136cf90919063ffffffff16565b8111156117c0576040805162461bcd60e51b815260206004820152601360248201527f6f766572206d6178206465627420726174696f00000000000000000000000000604482015290519081900360640190fd5b600554604080517f79cc67900000000000000000000000000000000000000000000000000000000081523360048201526024810189905290516001600160a01b03909216916379cc67909160448082019260009290919082900301818387803b15801561182c57600080fd5b505af1158015611840573d6000803e3d6000fd5b5050600654604080517f40c10f190000000000000000000000000000000000000000000000000000000081523360048201526024810188905290516001600160a01b0390921693506340c10f1992506044808201926020929091908290030181600087803b1580156118b157600080fd5b505af11580156118c5573d6000803e3d6000fd5b505050506040513d60208110156118db57600080fd5b50506004546118ea9087613684565b6004556118f561389d565b6040805187815260208101859052815133927f73017f1b70789e2e66759eeb3c7ec11f59e6eedb55d921cfaec5410dd42a4799928290030190a2505043600090815260208181526040808320328452909152808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009182168117909255338452919092208054909116909117905550505050565b6001546001600160a01b031681565b600c5490565b600c5481565b6119b16137c4565b156119ed5760405162461bcd60e51b81526004018080602001828103825260268152602001806141ad6026913960400191505060405180910390fd5b6119f56137e3565b15611a315760405162461bcd60e51b81526004018080602001828103825260268152602001806141ad6026913960400191505060405180910390fd5b60015474010000000000000000000000000000000000000000900460ff1615611aa1576040805162461bcd60e51b815260206004820152601260248201527f54726561737572793a206d696772617465640000000000000000000000000000604482015290519081900360640190fd5b600254421015611af8576040805162461bcd60e51b815260206004820152601960248201527f54726561737572793a206e6f7420737461727465642079657400000000000000604482015290519081900360640190fd5b611b006127ba565b421015611b54576040805162461bcd60e51b815260206004820152601860248201527f54726561737572793a206e6f74206f70656e6564207965740000000000000000604482015290519081900360640190fd5b6005546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015611b9857600080fd5b505afa158015611bac573d6000803e3d6000fd5b505050506040513d6020811015611bc257600080fd5b50516001600160a01b0316148015611c5057506006546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015611c1957600080fd5b505afa158015611c2d573d6000803e3d6000fd5b505050506040513d6020811015611c4357600080fd5b50516001600160a01b0316145b8015611cd257506007546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015611c9b57600080fd5b505afa158015611caf573d6000803e3d6000fd5b505050506040513d6020811015611cc557600080fd5b50516001600160a01b0316145b8015611d5457506008546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015611d1d57600080fd5b505afa158015611d31573d6000803e3d6000fd5b505050506040513d6020811015611d4757600080fd5b50516001600160a01b0316145b611da5576040805162461bcd60e51b815260206004820152601e60248201527f54726561737572793a206e656564206d6f7265207065726d697373696f6e0000604482015290519081900360640190fd5b611dad61389d565b611db561352f565b6013819055506000611e43600c54600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e1157600080fd5b505afa158015611e25573d6000803e3d6000fd5b505050506040513d6020811015611e3b57600080fd5b505190613684565b9050600c6003541015611e6f57611e6a611e6561271061087d846101c26136cf565b613901565b6120ed565b600b5460135411156120ed57600654604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b158015611ed957600080fd5b505afa158015611eed573d6000803e3d6000fd5b505050506040513d6020811015611f0357600080fd5b5051600a54601354919250600091611f1a91613684565b9050600080611f3a61271061087d600f54876136cf90919063ffffffff16565b600c5410611f8457600d54600090611f5890655af3107a40006136cf565b905080841115611f66578093505b611f7c670de0b6b3a764000061087d88876136cf565b915050611fee565b600e54600090611f9a90655af3107a40006136cf565b905080841115611fa8578093505b6000611fc0670de0b6b3a764000061087d89886136cf565b9050611fdd61271061087d601054846136cf90919063ffffffff16565b9250611fe98184613684565b935050505b8015611ffd57611ffd81613901565b81156120e857600c54612010908361376a565b600c55600554604080517f40c10f190000000000000000000000000000000000000000000000000000000081523060048201526024810185905290516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b15801561208057600080fd5b505af1158015612094573d6000803e3d6000fd5b505050506040513d60208110156120aa57600080fd5b5050604080514281526020810184905281517ff705142bf09f04297640495ddf7c59b7fd6f51894c5aea9602d631cf05f0efc2929181900390910190a15b505050505b506003546120fc90600161376a565b600355600b5461210a61352f565b116121a05761219b61271061087d601154600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561216957600080fd5b505afa15801561217d573d6000803e3d6000fd5b505050506040513d602081101561219357600080fd5b5051906136cf565b6121a3565b60005b60045543600090815260208181526040808320328452909152808220805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092553384529190922080549091169091179055565b6006546001600160a01b031681565b600b5481565b60008061221f61352f565b9050600b5481111561089757600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561228f57600080fd5b505afa1580156122a3573d6000803e3d6000fd5b505050506040513d60208110156122b957600080fd5b5051905060006122c761083d565b905080156122e8576122e58161087d84670de0b6b3a76400006136cf565b93505b50505090565b60025481565b600f5481565b600e5481565b6101c281565b6001546001600160a01b0316331461234f5760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b6001600160a01b0381166123ac576040805162461bcd60e51b8152602060048083019190915260248201527f7a65726f00000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b601480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60035481565b600a5481565b6000806123fd61352f565b9050600a54811161089757600554604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561246657600080fd5b505afa15801561247a573d6000803e3d6000fd5b505050506040513d602081101561249057600080fd5b50516012549091506000906124ae906127109061087d9085906136cf565b90506000600660009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561250057600080fd5b505afa158015612514573d6000803e3d6000fd5b505050506040513d602081101561252a57600080fd5b505190508082111561256f5760006125428383613684565b9050600061255c670de0b6b3a764000061087d84896136cf565b905061256a60045482613802565b965050505b5050505090565b6001546001600160a01b031633146125bf5760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b600854604080517f97ffe1d70000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b03909216916397ffe1d79160248082019260009290919082900301818387803b15801561082257600080fd5b6007546001600160a01b031681565b6001546001600160a01b0316331461267d5760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b600854604080517f54575af40000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690528481166044830152915191909216916354575af491606480830192600092919082900301818387803b1580156126f357600080fd5b505af1158015612707573d6000803e3d6000fd5b50505050505050565b60015474010000000000000000000000000000000000000000900460ff1690565b6001546001600160a01b0316331461277a5760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b61546081565b60006127df6127d66154606003546136cf90919063ffffffff16565b6002549061376a565b905090565b600954600554604080517f6808a1280000000000000000000000000000000000000000000000000000000081526001600160a01b039283166004820152670de0b6b3a7640000602482015290516000939290921691636808a12891604480820192602092909190829003018186803b15801561285f57600080fd5b505afa92505050801561288457506040513d602081101561287f57600080fd5b505160015b6128bf5760405162461bcd60e51b81526004018080602001828103825260388152602001806141276038913960400191505060405180910390fd5b71ffffffffffffffffffffffffffffffffffff1690506110ae565b61196481565b6001546001600160a01b031633146129295760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b6005546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b15801561296d57600080fd5b505afa158015612981573d6000803e3d6000fd5b505050506040513d602081101561299757600080fd5b50516001600160a01b0316148015612a2557506006546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b1580156129ee57600080fd5b505afa158015612a02573d6000803e3d6000fd5b505050506040513d6020811015612a1857600080fd5b50516001600160a01b0316145b8015612aa757506007546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015612a7057600080fd5b505afa158015612a84573d6000803e3d6000fd5b505050506040513d6020811015612a9a57600080fd5b50516001600160a01b0316145b8015612b2957506008546040805163570ca73560e01b8152905130926001600160a01b03169163570ca735916004808301926020929190829003018186803b158015612af257600080fd5b505afa158015612b06573d6000803e3d6000fd5b505050506040513d6020811015612b1c57600080fd5b50516001600160a01b0316145b612b7a576040805162461bcd60e51b815260206004820152601e60248201527f54726561737572793a206e656564206d6f7265207065726d697373696f6e0000604482015290519081900360640190fd5b60015474010000000000000000000000000000000000000000900460ff1615612bea576040805162461bcd60e51b815260206004820152601260248201527f54726561737572793a206d696772617465640000000000000000000000000000604482015290519081900360640190fd5b600554604080517f29605e770000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152915191909216916329605e7791602480830192600092919082900301818387803b158015612c5157600080fd5b505af1158015612c65573d6000803e3d6000fd5b5050600554604080517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152915191909216935063f2fde38b9250602480830192600092919082900301818387803b158015612cd057600080fd5b505af1158015612ce4573d6000803e3d6000fd5b5050600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b03909216935063a9059cbb9250849184916370a08231916024808301926020929190829003018186803b158015612d5557600080fd5b505afa158015612d69573d6000803e3d6000fd5b505050506040513d6020811015612d7f57600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015612de857600080fd5b505af1158015612dfc573d6000803e3d6000fd5b505050506040513d6020811015612e1257600080fd5b5050600654604080517f29605e770000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152915191909216916329605e7791602480830192600092919082900301818387803b158015612e7b57600080fd5b505af1158015612e8f573d6000803e3d6000fd5b5050600654604080517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152915191909216935063f2fde38b9250602480830192600092919082900301818387803b158015612efa57600080fd5b505af1158015612f0e573d6000803e3d6000fd5b5050600654604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b03909216935063a9059cbb9250849184916370a08231916024808301926020929190829003018186803b158015612f7f57600080fd5b505afa158015612f93573d6000803e3d6000fd5b505050506040513d6020811015612fa957600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561301257600080fd5b505af1158015613026573d6000803e3d6000fd5b505050506040513d602081101561303c57600080fd5b5050600754604080517f29605e770000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152915191909216916329605e7791602480830192600092919082900301818387803b1580156130a557600080fd5b505af11580156130b9573d6000803e3d6000fd5b5050600754604080517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152915191909216935063f2fde38b9250602480830192600092919082900301818387803b15801561312457600080fd5b505af1158015613138573d6000803e3d6000fd5b5050600754604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b03909216935063a9059cbb9250849184916370a08231916024808301926020929190829003018186803b1580156131a957600080fd5b505afa1580156131bd573d6000803e3d6000fd5b505050506040513d60208110156131d357600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561323c57600080fd5b505af1158015613250573d6000803e3d6000fd5b505050506040513d602081101561326657600080fd5b5050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790556040516001600160a01b038216907f0caca70b66aed56b0630989a049110023c5a3f37e0ea4b6ce96fc747663f3ebc90600090a250565b6001547501000000000000000000000000000000000000000000900460ff161561334f576040805162461bcd60e51b815260206004820152601d60248201527f54726561737572793a20616c726561647920696e697469616c697a6564000000604482015290519081900360640190fd5b600580546001600160a01b038087167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092556006805486841690831617905560078054928516929091169190911790556002819055670de0b6b3a7640000600a8190556133c99060649061087d9060656136cf565b600b5561012c600d819055600e819055612710600f55610bb8601055601155610dac601255600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561345257600080fd5b505afa158015613466573d6000803e3d6000fd5b505050506040513d602081101561347c57600080fd5b5051600c55600180547fffffffffffffffffffffffff00000000000000000000000000000000000000007fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff90911675010000000000000000000000000000000000000000001716339081179091556040805143815290517f25ff68dd81b34665b5ba7e553ee5511bf6812e12adb4a7e2c0d9e26b3099ce799181900360200190a250505050565b600d5481565b60155481565b600954600554604080517f3ddac9530000000000000000000000000000000000000000000000000000000081526001600160a01b039283166004820152670de0b6b3a7640000602482015290516000939290921691633ddac95391604480820192602092909190829003018186803b15801561285f57600080fd5b60115481565b6001546001600160a01b031633146135f95760405162461bcd60e51b815260040180806020018281038252602481526020018061415f6024913960400191505060405180910390fd5b6107d0811115613650576040805162461bcd60e51b815260206004820152600c60248201527f6f7574206f662072616e67650000000000000000000000000000000000000000604482015290519081900360640190fd5b601555565b600c81565b6008546001600160a01b031681565b6014546001600160a01b031681565b60135481565b60045481565b60006136c683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613b9f565b90505b92915050565b6000826136de575060006136c9565b828202828482816136eb57fe5b04146136c65760405162461bcd60e51b81526004018080602001828103825260218152602001806140d66021913960400191505060405180910390fd5b60006136c683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613c36565b6000828201838110156136c6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b4360009081526020818152604080832032845290915290205460ff1690565b4360009081526020818152604080832033845290915290205460ff1690565b600081831061381157816136c6565b5090919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052613898908490613c9b565b505050565b600960009054906101000a90046001600160a01b03166001600160a01b031663a2e620456040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156138ed57600080fd5b505af19250505080156138fe575060015b50565b600554604080517f40c10f190000000000000000000000000000000000000000000000000000000081523060048201526024810184905290516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b15801561396e57600080fd5b505af1158015613982573d6000803e3d6000fd5b505050506040513d602081101561399857600080fd5b505060155415613aa85760006139bf61271061087d601554856136cf90919063ffffffff16565b600554601454604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b158015613a3357600080fd5b505af1158015613a47573d6000803e3d6000fd5b505050506040513d6020811015613a5d57600080fd5b5050604080514281526020810183905281517f27a57eedc6aee63aa2fed342a59738fa08e442ffb6dd61936a2bf9ad9cf0eb1f929181900390910190a1613aa48282613684565b9150505b600854600554613ac6916001600160a01b0391821691166000613d4c565b600854600554613ae3916001600160a01b03918216911683613d4c565b600854604080517f97ffe1d70000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b03909216916397ffe1d79160248082019260009290919082900301818387803b158015613b4957600080fd5b505af1158015613b5d573d6000803e3d6000fd5b5050604080514281526020810185905281517f322ffcf39a0ce882bdd40a482ffdb46bba5f51422dca1e9736b487cc7f0d964b9450908190039091019150a150565b60008184841115613c2e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613bf3578181015183820152602001613bdb565b50505050905090810190601f168015613c205780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183613c855760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613bf3578181015183820152602001613bdb565b506000838581613c9157fe5b0495945050505050565b6060613cf0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613ea69092919063ffffffff16565b80519091501561389857808060200190516020811015613d0f57600080fd5b50516138985760405162461bcd60e51b815260040180806020018281038252602a815260200180614183602a913960400191505060405180910390fd5b801580613deb5750604080517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015613dbd57600080fd5b505afa158015613dd1573d6000803e3d6000fd5b505050506040513d6020811015613de757600080fd5b5051155b613e265760405162461bcd60e51b81526004018080602001828103825260368152602001806141d36036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000179052613898908490613c9b565b6060613eb58484600085613ebd565b949350505050565b6060613ec885614048565b613f19576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310613f7657805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613f39565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613fd8576040519150601f19603f3d011682016040523d82523d6000602084013e613fdd565b606091505b50915091508115613ff1579150613eb59050565b8051156140015780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315613bf3578181015183820152602001613bdb565b3b15159056fe54726561737572793a20646f6c6c61725072696365206e6f7420656c696769626c6520666f7220626f6e6420707572636861736554726561737572793a2063616e6e6f742072656465656d20626f6e64732077697468207a65726f20616d6f756e7454726561737572793a20747265617375727920686173206e6f206d6f726520627564676574536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754726561737572793a2063616e6e6f7420707572636861736520626f6e64732077697468207a65726f20616d6f756e7454726561737572793a206661696c656420746f20636f6e73756c7420646f6c6c61722070726963652066726f6d20746865206f7261636c6554726561737572793a2063616c6c6572206973206e6f7420746865206f70657261746f725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6e5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636554726561737572793a206e6f7420656e6f75676820626f6e64206c65667420746f207075726368617365a26469706673582212206a8e5e9a01f4b27b5fe81394dfa7cde11299fdce4c67e85130a2d02f87aa97e464736f6c634300060c0033

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.