ETH Price: $3,150.92 (+4.63%)
Gas: 10 Gwei

Contract

0x933cBE81313d9dD523dF6dC9B899A7AF8Ba073e3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Send To Sale Han...195543812024-03-31 14:11:1114 days ago1711894271IN
0x933cBE81...F8Ba073e3
0 ETH0.0033430122.70068718
Send To Sale Han...195466722024-03-30 12:08:5915 days ago1711800539IN
0x933cBE81...F8Ba073e3
0 ETH0.0028276719.20129147
Send To Sale Han...194365502024-03-14 23:41:1130 days ago1710459671IN
0x933cBE81...F8Ba073e3
0 ETH0.0063032842.80234097
Send To Sale Han...193731822024-03-06 2:35:1139 days ago1709692511IN
0x933cBE81...F8Ba073e3
0 ETH0.0069570447.24169715
Send To Sale Han...193286442024-02-28 21:15:1146 days ago1709154911IN
0x933cBE81...F8Ba073e3
0 ETH0.0079708754.12608321
Send To Sale Han...191722932024-02-06 22:55:2368 days ago1707260123IN
0x933cBE81...F8Ba073e3
0 ETH0.0039262526.66116208
0x60c06040189404872024-01-05 10:29:47100 days ago1704450587IN
 Create: Auction
0 ETH0.0173615416.87574536

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Auction

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 1 : Auction.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.21;

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

interface IDBR is IERC20 {
    function mint(address,uint) external;
}

interface ISaleHandler {
    function onReceive() external;
    function getCapacity() external view returns (uint);
}

contract Auction {

    address public gov;
    address public operator;
    IDBR public immutable dbr;
    IERC20 public immutable dola;
    ISaleHandler public saleHandler;
    uint public dolaReserve;
    uint public dbrReserve;
    uint public dbrRatePerYear;
    uint public maxDbrRatePerYear;
    uint public lastUpdate;
    
    constructor (
        address _gov,
        address _operator,
        address _dbr,
        address _dola,
        address handler,
        uint _dolaReserve,
        uint _dbrReserve
    ) {
        require(_dolaReserve > 0, "Dola reserve must be positive");
        require(_dbrReserve > 0, "DBR reserve must be positive");
        gov = _gov;
        operator = _operator;
        dbr = IDBR(_dbr);
        dola = IERC20(_dola);
        saleHandler = ISaleHandler(handler);
        dolaReserve = _dolaReserve;
        dbrReserve = _dbrReserve;
    }

    modifier updateReserves {
        (dolaReserve, dbrReserve) = getCurrentReserves();
        lastUpdate = block.timestamp;
        _;
    }

    modifier onlyGov {
        require(msg.sender == gov, "onlyGov");
        _;
    }

    modifier onlyGovOrOperator {
        require(msg.sender == operator || msg.sender == gov, "onlyGov");
        _;
    }

    function getCurrentReserves() public view returns (uint _dolaReserve, uint _dbrReserve) {
        uint timeElapsed = block.timestamp - lastUpdate;
        if(timeElapsed > 0) {
            uint K = dolaReserve * dbrReserve;
            uint DbrsIn = timeElapsed * dbrRatePerYear / 365 days;
            _dbrReserve = dbrReserve + DbrsIn;
            _dolaReserve = K / _dbrReserve;
        } else {
            _dolaReserve = dolaReserve;
            _dbrReserve = dbrReserve;
        }
    }

    function setGov(address _gov) external onlyGov { gov = _gov; }
    function setOperator(address _operator) external onlyGov { operator = _operator; }
    function setSaleHandler(address _saleHandler) external onlyGov { saleHandler = ISaleHandler(_saleHandler); }

    function setMaxDbrRatePerYear(uint _maxRate) external onlyGov updateReserves {
        maxDbrRatePerYear = _maxRate;
        emit MaxRateUpdate(_maxRate);
        if(dbrRatePerYear > _maxRate) {
            dbrRatePerYear = _maxRate;
            emit RateUpdate(_maxRate);
        }
    }

    function setDbrRatePerYear(uint _rate) external onlyGovOrOperator updateReserves {
        require(_rate <= maxDbrRatePerYear, "Rate exceeds max");
        dbrRatePerYear = _rate;
        emit RateUpdate(_rate);
    }

    function setDolaReserve(uint _dolaReserve) external onlyGov updateReserves {
        require(_dolaReserve > 0, "Dola reserve must be positive");
        uint K = dolaReserve * dbrReserve;
        dolaReserve = _dolaReserve;
        dbrReserve = K / _dolaReserve;
    }

    function setDbrReserve(uint _dbrReserve) external onlyGov updateReserves {
        require(_dbrReserve > 0, "DBR reserve must be positive");
        uint K = dolaReserve * dbrReserve;
        dbrReserve = _dbrReserve;
        dolaReserve = K / _dbrReserve;
    }

    function overrideReserves(uint _dbrReserve, uint _dolaReserve) external onlyGov {
        require(_dolaReserve > 0, "Dola reserve must be positive");
        require(_dbrReserve > 0, "DBR reserve must be positive");
        dolaReserve = _dolaReserve;
        dbrReserve = _dbrReserve;
        lastUpdate = block.timestamp;
    }

    function buyDBR(uint exactDolaIn, uint exactDbrOut, address to) external updateReserves {
        uint K = dolaReserve * dbrReserve;
        dolaReserve += exactDolaIn;
        dbrReserve -= exactDbrOut;
        require(dolaReserve * dbrReserve >= K, "Invariant");
        dola.transferFrom(msg.sender, address(this), exactDolaIn);
        dbr.mint(to, exactDbrOut);
        emit Buy(msg.sender, to, exactDolaIn, exactDbrOut);
    }

    function sendToSaleHandler() public {
        require(address(saleHandler) != address(0), "No sale handler");
        uint bal = dola.balanceOf(address(this));
        require(bal > 0, "No DOLA to send");
        uint capacity = saleHandler.getCapacity();
        uint amount = bal > capacity ? capacity : bal;
        dola.transfer(address(saleHandler), amount);
        saleHandler.onReceive();
    }

    function sweep(address token, address destination, uint amount) external onlyGov {
        IERC20(token).transfer(destination, amount);
    }

    event Buy(address indexed caller, address indexed to, uint dolaIn, uint dbrOut);
    event RateUpdate(uint newRate);
    event MaxRateUpdate(uint newMaxRate);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_gov","type":"address"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_dbr","type":"address"},{"internalType":"address","name":"_dola","type":"address"},{"internalType":"address","name":"handler","type":"address"},{"internalType":"uint256","name":"_dolaReserve","type":"uint256"},{"internalType":"uint256","name":"_dbrReserve","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"dolaIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dbrOut","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxRate","type":"uint256"}],"name":"MaxRateUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"RateUpdate","type":"event"},{"inputs":[{"internalType":"uint256","name":"exactDolaIn","type":"uint256"},{"internalType":"uint256","name":"exactDbrOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"buyDBR","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dbr","outputs":[{"internalType":"contract IDBR","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dbrRatePerYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dbrReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dola","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dolaReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentReserves","outputs":[{"internalType":"uint256","name":"_dolaReserve","type":"uint256"},{"internalType":"uint256","name":"_dbrReserve","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDbrRatePerYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dbrReserve","type":"uint256"},{"internalType":"uint256","name":"_dolaReserve","type":"uint256"}],"name":"overrideReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleHandler","outputs":[{"internalType":"contract ISaleHandler","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sendToSaleHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setDbrRatePerYear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dbrReserve","type":"uint256"}],"name":"setDbrReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dolaReserve","type":"uint256"}],"name":"setDolaReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxRate","type":"uint256"}],"name":"setMaxDbrRatePerYear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_saleHandler","type":"address"}],"name":"setSaleHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b506040516200119438038062001194833981016040819052620000349162000152565b600082116200008a5760405162461bcd60e51b815260206004820152601d60248201527f446f6c612072657365727665206d75737420626520706f73697469766500000060448201526064015b60405180910390fd5b60008111620000dc5760405162461bcd60e51b815260206004820152601c60248201527f4442522072657365727665206d75737420626520706f73697469766500000000604482015260640162000081565b600080546001600160a01b039889166001600160a01b031991821617909155600180549789169782169790971790965593861660805291851660a0526002805491909516931692909217909255600355600455620001d5565b80516001600160a01b03811681146200014d57600080fd5b919050565b600080600080600080600060e0888a0312156200016e57600080fd5b620001798862000135565b9650620001896020890162000135565b9550620001996040890162000135565b9450620001a96060890162000135565b9350620001b96080890162000135565b925060a0880151915060c0880151905092959891949750929550565b60805160a051610f7d62000217600039600081816102d601528181610792015281816108f60152610adf0152600081816102800152610b7b0152610f7d6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638528d849116100b8578063c7ed69cd1161007c578063c7ed69cd1461027b578063cfad57a2146102a2578063d0164fef146102b5578063df5d7b63146102be578063ea0593e4146102d1578063f08ff7db146102f857600080fd5b80638528d8491461023a57806391f3f52214610243578063b23adea61461024c578063b3ab15fb1461025f578063c04637111461027257600080fd5b8063416dab161161010a578063416dab16146101c957806354901c38146101dc578063570ca735146101f957806362c067671461020c578063703b801f1461021f57806377607fa51461022757600080fd5b806305f47cbb1461014757806312d43a51146101635780631b2bca261461018e57806337e60313146101a3578063413d37a0146101b6575b600080fd5b61015060065481565b6040519081526020015b60405180910390f35b600054610176906001600160a01b031681565b6040516001600160a01b03909116815260200161015a565b6101a161019c366004610d86565b61030b565b005b6101a16101b1366004610d86565b6103c7565b6101a16101c4366004610d86565b61047a565b6101a16101d7366004610d9f565b610535565b6101e461060b565b6040805192835260208301919091520161015a565b600154610176906001600160a01b031681565b6101a161021a366004610ddd565b61068d565b6101a1610730565b6101a1610235366004610e19565b6109d1565b61015060035481565b61015060055481565b6101a161025a366004610e3b565b610a1d565b6101a161026d366004610e19565b610c23565b61015060075481565b6101767f000000000000000000000000000000000000000000000000000000000000000081565b6101a16102b0366004610e19565b610c6f565b61015060045481565b600254610176906001600160a01b031681565b6101767f000000000000000000000000000000000000000000000000000000000000000081565b6101a1610306366004610d86565b610cbb565b6000546001600160a01b0316331461033e5760405162461bcd60e51b815260040161033590610e70565b60405180910390fd5b61034661060b565b600455600355426007558061039d5760405162461bcd60e51b815260206004820152601d60248201527f446f6c612072657365727665206d75737420626520706f7369746976650000006044820152606401610335565b60006004546003546103af9190610ea7565b600383905590506103c08282610ec4565b6004555050565b6000546001600160a01b031633146103f15760405162461bcd60e51b815260040161033590610e70565b6103f961060b565b60045560035542600755806104505760405162461bcd60e51b815260206004820152601c60248201527f4442522072657365727665206d75737420626520706f736974697665000000006044820152606401610335565b60006004546003546104629190610ea7565b600483905590506104738282610ec4565b6003555050565b6000546001600160a01b031633146104a45760405162461bcd60e51b815260040161033590610e70565b6104ac61060b565b6004556003554260075560068190556040518181527fdd48935a72c29480e95e6fadc0d41e9c9550f94c828712180492c41b59082f7c9060200160405180910390a18060055411156105325760058190556040518181527f9b831dcbec52dfe52b187da18aae08651dfb726e9baf49d5d9eae6fa264db3a1906020015b60405180910390a15b50565b6000546001600160a01b0316331461055f5760405162461bcd60e51b815260040161033590610e70565b600081116105af5760405162461bcd60e51b815260206004820152601d60248201527f446f6c612072657365727665206d75737420626520706f7369746976650000006044820152606401610335565b600082116105ff5760405162461bcd60e51b815260206004820152601c60248201527f4442522072657365727665206d75737420626520706f736974697665000000006044820152606401610335565b60035560045542600755565b60008060006007544261061e9190610ee6565b9050801561067e5760006004546003546106389190610ea7565b905060006301e133806005548461064f9190610ea7565b6106599190610ec4565b9050806004546106699190610ef9565b93506106758483610ec4565b94505050509091565b60035492506004549150509091565b6000546001600160a01b031633146106b75760405162461bcd60e51b815260040161033590610e70565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015610706573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072a9190610f0c565b50505050565b6002546001600160a01b031661077a5760405162461bcd60e51b815260206004820152600f60248201526e27379039b0b632903430b7323632b960891b6044820152606401610335565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156107e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108059190610f2e565b9050600081116108495760405162461bcd60e51b815260206004820152600f60248201526e139bc81113d310481d1bc81cd95b99608a1b6044820152606401610335565b60025460408051633100003560e21b815290516000926001600160a01b03169163c40000d49160048083019260209291908290030181865afa158015610893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b79190610f2e565b905060008183116108c857826108ca565b815b60025460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529192507f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af115801561093f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109639190610f0c565b50600260009054906101000a90046001600160a01b03166001600160a01b0316638e708bca6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156109b457600080fd5b505af11580156109c8573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b031633146109fb5760405162461bcd60e51b815260040161033590610e70565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610a2561060b565b6004819055600382905542600755600091610a409190610ea7565b90508360036000828254610a549190610ef9565b925050819055508260046000828254610a6d9190610ee6565b90915550506004546003548291610a8391610ea7565b1015610abd5760405162461bcd60e51b8152602060048201526009602482015268125b9d985c9a585b9d60ba1b6044820152606401610335565b6040516323b872dd60e01b8152336004820152306024820152604481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b549190610f0c565b506040516340c10f1960e01b81526001600160a01b038381166004830152602482018590527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401600060405180830381600087803b158015610bbf57600080fd5b505af1158015610bd3573d6000803e3d6000fd5b505060408051878152602081018790526001600160a01b03861693503392507f89f5adc174562e07c9c9b1cae7109bbecb21cf9d1b2847e550042b8653c54a0e910160405180910390a350505050565b6000546001600160a01b03163314610c4d5760405162461bcd60e51b815260040161033590610e70565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610c995760405162461bcd60e51b815260040161033590610e70565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331480610cde57506000546001600160a01b031633145b610cfa5760405162461bcd60e51b815260040161033590610e70565b610d0261060b565b60045560035542600755600654811115610d515760405162461bcd60e51b815260206004820152601060248201526f0a4c2e8ca40caf0c6cacac8e640dac2f60831b6044820152606401610335565b60058190556040518181527f9b831dcbec52dfe52b187da18aae08651dfb726e9baf49d5d9eae6fa264db3a190602001610529565b600060208284031215610d9857600080fd5b5035919050565b60008060408385031215610db257600080fd5b50508035926020909101359150565b80356001600160a01b0381168114610dd857600080fd5b919050565b600080600060608486031215610df257600080fd5b610dfb84610dc1565b9250610e0960208501610dc1565b9150604084013590509250925092565b600060208284031215610e2b57600080fd5b610e3482610dc1565b9392505050565b600080600060608486031215610e5057600080fd5b8335925060208401359150610e6760408501610dc1565b90509250925092565b60208082526007908201526637b7363ca3b7bb60c91b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610ebe57610ebe610e91565b92915050565b600082610ee157634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610ebe57610ebe610e91565b80820180821115610ebe57610ebe610e91565b600060208284031215610f1e57600080fd5b81518015158114610e3457600080fd5b600060208284031215610f4057600080fd5b505191905056fea26469706673582212200518c5f4b25454682d5c2910b9e08777043ae0aeda5bf265e34adf1ecbb321d464736f6c63430008150033000000000000000000000000926df14a23be491164dcf93f4c468a50ef659d5b0000000000000000000000008f97cca30dbe80e7a8b462f1dd1a51c32accdfc8000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710000000000000000000000000865377367054516e17014ccded1e7d814edc9ce4000000000000000000000000b4497a7351e4915182b3e577b3a2f411fa66b27f0000000000000000000000000000000000000000000069e10de76676d08000000000000000000000000000000000000000000000000211654585005212800000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80638528d849116100b8578063c7ed69cd1161007c578063c7ed69cd1461027b578063cfad57a2146102a2578063d0164fef146102b5578063df5d7b63146102be578063ea0593e4146102d1578063f08ff7db146102f857600080fd5b80638528d8491461023a57806391f3f52214610243578063b23adea61461024c578063b3ab15fb1461025f578063c04637111461027257600080fd5b8063416dab161161010a578063416dab16146101c957806354901c38146101dc578063570ca735146101f957806362c067671461020c578063703b801f1461021f57806377607fa51461022757600080fd5b806305f47cbb1461014757806312d43a51146101635780631b2bca261461018e57806337e60313146101a3578063413d37a0146101b6575b600080fd5b61015060065481565b6040519081526020015b60405180910390f35b600054610176906001600160a01b031681565b6040516001600160a01b03909116815260200161015a565b6101a161019c366004610d86565b61030b565b005b6101a16101b1366004610d86565b6103c7565b6101a16101c4366004610d86565b61047a565b6101a16101d7366004610d9f565b610535565b6101e461060b565b6040805192835260208301919091520161015a565b600154610176906001600160a01b031681565b6101a161021a366004610ddd565b61068d565b6101a1610730565b6101a1610235366004610e19565b6109d1565b61015060035481565b61015060055481565b6101a161025a366004610e3b565b610a1d565b6101a161026d366004610e19565b610c23565b61015060075481565b6101767f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d71081565b6101a16102b0366004610e19565b610c6f565b61015060045481565b600254610176906001600160a01b031681565b6101767f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce481565b6101a1610306366004610d86565b610cbb565b6000546001600160a01b0316331461033e5760405162461bcd60e51b815260040161033590610e70565b60405180910390fd5b61034661060b565b600455600355426007558061039d5760405162461bcd60e51b815260206004820152601d60248201527f446f6c612072657365727665206d75737420626520706f7369746976650000006044820152606401610335565b60006004546003546103af9190610ea7565b600383905590506103c08282610ec4565b6004555050565b6000546001600160a01b031633146103f15760405162461bcd60e51b815260040161033590610e70565b6103f961060b565b60045560035542600755806104505760405162461bcd60e51b815260206004820152601c60248201527f4442522072657365727665206d75737420626520706f736974697665000000006044820152606401610335565b60006004546003546104629190610ea7565b600483905590506104738282610ec4565b6003555050565b6000546001600160a01b031633146104a45760405162461bcd60e51b815260040161033590610e70565b6104ac61060b565b6004556003554260075560068190556040518181527fdd48935a72c29480e95e6fadc0d41e9c9550f94c828712180492c41b59082f7c9060200160405180910390a18060055411156105325760058190556040518181527f9b831dcbec52dfe52b187da18aae08651dfb726e9baf49d5d9eae6fa264db3a1906020015b60405180910390a15b50565b6000546001600160a01b0316331461055f5760405162461bcd60e51b815260040161033590610e70565b600081116105af5760405162461bcd60e51b815260206004820152601d60248201527f446f6c612072657365727665206d75737420626520706f7369746976650000006044820152606401610335565b600082116105ff5760405162461bcd60e51b815260206004820152601c60248201527f4442522072657365727665206d75737420626520706f736974697665000000006044820152606401610335565b60035560045542600755565b60008060006007544261061e9190610ee6565b9050801561067e5760006004546003546106389190610ea7565b905060006301e133806005548461064f9190610ea7565b6106599190610ec4565b9050806004546106699190610ef9565b93506106758483610ec4565b94505050509091565b60035492506004549150509091565b6000546001600160a01b031633146106b75760405162461bcd60e51b815260040161033590610e70565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af1158015610706573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072a9190610f0c565b50505050565b6002546001600160a01b031661077a5760405162461bcd60e51b815260206004820152600f60248201526e27379039b0b632903430b7323632b960891b6044820152606401610335565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce46001600160a01b0316906370a0823190602401602060405180830381865afa1580156107e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108059190610f2e565b9050600081116108495760405162461bcd60e51b815260206004820152600f60248201526e139bc81113d310481d1bc81cd95b99608a1b6044820152606401610335565b60025460408051633100003560e21b815290516000926001600160a01b03169163c40000d49160048083019260209291908290030181865afa158015610893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b79190610f2e565b905060008183116108c857826108ca565b815b60025460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529192507f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce4169063a9059cbb906044016020604051808303816000875af115801561093f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109639190610f0c565b50600260009054906101000a90046001600160a01b03166001600160a01b0316638e708bca6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156109b457600080fd5b505af11580156109c8573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b031633146109fb5760405162461bcd60e51b815260040161033590610e70565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610a2561060b565b6004819055600382905542600755600091610a409190610ea7565b90508360036000828254610a549190610ef9565b925050819055508260046000828254610a6d9190610ee6565b90915550506004546003548291610a8391610ea7565b1015610abd5760405162461bcd60e51b8152602060048201526009602482015268125b9d985c9a585b9d60ba1b6044820152606401610335565b6040516323b872dd60e01b8152336004820152306024820152604481018590527f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce46001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b549190610f0c565b506040516340c10f1960e01b81526001600160a01b038381166004830152602482018590527f000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d71016906340c10f1990604401600060405180830381600087803b158015610bbf57600080fd5b505af1158015610bd3573d6000803e3d6000fd5b505060408051878152602081018790526001600160a01b03861693503392507f89f5adc174562e07c9c9b1cae7109bbecb21cf9d1b2847e550042b8653c54a0e910160405180910390a350505050565b6000546001600160a01b03163314610c4d5760405162461bcd60e51b815260040161033590610e70565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610c995760405162461bcd60e51b815260040161033590610e70565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331480610cde57506000546001600160a01b031633145b610cfa5760405162461bcd60e51b815260040161033590610e70565b610d0261060b565b60045560035542600755600654811115610d515760405162461bcd60e51b815260206004820152601060248201526f0a4c2e8ca40caf0c6cacac8e640dac2f60831b6044820152606401610335565b60058190556040518181527f9b831dcbec52dfe52b187da18aae08651dfb726e9baf49d5d9eae6fa264db3a190602001610529565b600060208284031215610d9857600080fd5b5035919050565b60008060408385031215610db257600080fd5b50508035926020909101359150565b80356001600160a01b0381168114610dd857600080fd5b919050565b600080600060608486031215610df257600080fd5b610dfb84610dc1565b9250610e0960208501610dc1565b9150604084013590509250925092565b600060208284031215610e2b57600080fd5b610e3482610dc1565b9392505050565b600080600060608486031215610e5057600080fd5b8335925060208401359150610e6760408501610dc1565b90509250925092565b60208082526007908201526637b7363ca3b7bb60c91b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610ebe57610ebe610e91565b92915050565b600082610ee157634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610ebe57610ebe610e91565b80820180821115610ebe57610ebe610e91565b600060208284031215610f1e57600080fd5b81518015158114610e3457600080fd5b600060208284031215610f4057600080fd5b505191905056fea26469706673582212200518c5f4b25454682d5c2910b9e08777043ae0aeda5bf265e34adf1ecbb321d464736f6c63430008150033

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

000000000000000000000000926df14a23be491164dcf93f4c468a50ef659d5b0000000000000000000000008f97cca30dbe80e7a8b462f1dd1a51c32accdfc8000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710000000000000000000000000865377367054516e17014ccded1e7d814edc9ce4000000000000000000000000b4497a7351e4915182b3e577b3a2f411fa66b27f0000000000000000000000000000000000000000000069e10de76676d08000000000000000000000000000000000000000000000000211654585005212800000

-----Decoded View---------------
Arg [0] : _gov (address): 0x926dF14a23BE491164dCF93f4c468A50ef659D5B
Arg [1] : _operator (address): 0x8F97cCA30Dbe80e7a8B462F1dD1a51C32accDfC8
Arg [2] : _dbr (address): 0xAD038Eb671c44b853887A7E32528FaB35dC5D710
Arg [3] : _dola (address): 0x865377367054516e17014CcdED1e7d814EDC9ce4
Arg [4] : handler (address): 0xB4497A7351e4915182b3E577B3A2f411FA66b27f
Arg [5] : _dolaReserve (uint256): 500000000000000000000000
Arg [6] : _dbrReserve (uint256): 2500000000000000000000000

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000926df14a23be491164dcf93f4c468a50ef659d5b
Arg [1] : 0000000000000000000000008f97cca30dbe80e7a8b462f1dd1a51c32accdfc8
Arg [2] : 000000000000000000000000ad038eb671c44b853887a7e32528fab35dc5d710
Arg [3] : 000000000000000000000000865377367054516e17014ccded1e7d814edc9ce4
Arg [4] : 000000000000000000000000b4497a7351e4915182b3e577b3a2f411fa66b27f
Arg [5] : 0000000000000000000000000000000000000000000069e10de76676d0800000
Arg [6] : 0000000000000000000000000000000000000000000211654585005212800000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

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