ETH Price: $1,963.96 (-2.42%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Cast107874552020-09-03 9:12:592005 days ago1599124379IN
0x7F6DcC6B...C63E37599
0 ETH0.0256425300
Schedule107841902020-09-02 21:11:572006 days ago1599081117IN
0x7F6DcC6B...C63E37599
0 ETH0.02757152320

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
-107838032020-09-02 19:48:152006 days ago1599076095
0x7F6DcC6B...C63E37599
 Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DssSpell

Compiler Version
v0.5.12+commit.7709ece9

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, GNU AGPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2020-09-02
*/

// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.

pragma solidity 0.5.12;

interface DSPauseAbstract {
    function delay() external view returns (uint256);
    function plot(address, bytes32, bytes calldata, uint256) external;
    function exec(address, bytes32, bytes calldata, uint256) external returns (bytes memory);
}

interface VatAbstract {
    function file(bytes32, uint256) external;
    function file(bytes32, bytes32, uint256) external;
}

contract SpellAction {

    // MAINNET ADDRESSES
    //
    // The contracts in this list should correspond to MCD core contracts, verify
    // against the current release list at:
    //     https://changelog.makerdao.com/releases/mainnet/1.1.0/contracts.json

    address constant MCD_VAT = 0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B;

    // Decimals & precision
    uint256 constant THOUSAND = 10 ** 3;
    uint256 constant MILLION  = 10 ** 6;
    uint256 constant WAD      = 10 ** 18;
    uint256 constant RAY      = 10 ** 27;
    uint256 constant RAD      = 10 ** 45;

    function execute() external {
        /*** Risk Parameter Adjustments ***/

        // set the global debt ceiling to 708,000,000
        // 588 (current DC) + 120 (ETH-A increase)
        VatAbstract(MCD_VAT).file("Line", 708 * MILLION * RAD);

        // Set the ETH-A debt ceiling
        //
        // Existing debt: 420 million
        // New debt ceiling: 540 million
        uint256 ETH_A_LINE = 540 * MILLION * RAD;
        VatAbstract(MCD_VAT).file("ETH-A", "line", ETH_A_LINE);

    }
}

contract DssSpell {
    DSPauseAbstract public pause =
        DSPauseAbstract(0xbE286431454714F511008713973d3B053A2d38f3);
    address         public action;
    bytes32         public tag;
    uint256         public eta;
    bytes           public sig;
    uint256         public expiration;
    bool            public done;

    // Provides a descriptive tag for bot consumption
    // This should be modified weekly to provide a summary of the actions
    // Hash: seth keccak -- "$(wget https://raw.githubusercontent.com/makerdao/community/b95693cd9ac1150669e4477fd1a5faef1c79bf98/governance/votes/Executive%20vote%20-%20September%202%2C%202020.md -q -O - 2>/dev/null)"
    string constant public description =
        "2020-09-02 MakerDAO Executive Spell | Hash: 0xf870017b12e881587834d2de36a5cebe4c53e0d120efcc1fdbb4002bd2f15317";

    constructor() public {
        sig = abi.encodeWithSignature("execute()");
        action = address(new SpellAction());
        bytes32 _tag;
        address _action = action;
        assembly { _tag := extcodehash(_action) }
        tag = _tag;
        expiration = now + 30 days;
    }

    // modifier officeHours {
    //     uint day = (now / 1 days + 3) % 7;
    //     require(day < 5, "Can only be cast on a weekday");
    //     uint hour = now / 1 hours % 24;
    //     require(hour >= 14 && hour < 21, "Outside office hours");
    //     _;
    // }

    function schedule() public {
        require(now <= expiration, "This contract has expired");
        require(eta == 0, "This spell has already been scheduled");
        eta = now + DSPauseAbstract(pause).delay();
        pause.plot(action, tag, sig, eta);
    }

    function cast() public /*officeHours*/ {
        require(!done, "spell-already-cast");
        done = true;
        pause.exec(action, tag, sig, eta);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[],"name":"action","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"cast","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"done","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"eta","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"expiration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pause","outputs":[{"internalType":"contract DSPauseAbstract","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"schedule","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tag","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"}]

6080604052600080546001600160a01b03191673be286431454714f511008713973d3b053a2d38f317905534801561003657600080fd5b50604080516004808252602482019092526020810180516001600160e01b03167f614619540000000000000000000000000000000000000000000000000000000017815290516100879291906100e2565b5060405161009490610160565b604051809103906000f0801580156100b0573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b039283161790819055163f6002554262278d000160055561018a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012357805160ff1916838001178555610150565b82800160010185558215610150579182015b82811115610150578251825591602001919060010190610135565b5061015c92915061016d565b5090565b6101b88061093583390190565b61018791905b8082111561015c5760008155600101610173565b90565b61079c806101996000396000f3fe608060405234801561001057600080fd5b506004361061008d5760003560e01c8062a7029b146100925780630a7a1c4d1461010f5780634665096d1461013357806351f910661461014d5780637284e416146101555780638456cb591461015d57806396d373e514610165578063ae8421e11461016f578063b0604a261461018b578063f7992d8514610193575b600080fd5b61009a61019b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100d45781810151838201526020016100bc565b50505050905090810190601f1680156101015780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610117610229565b604080516001600160a01b039092168252519081900360200190f35b61013b610238565b60408051918252519081900360200190f35b61013b61023e565b61009a610244565b610117610260565b61016d61026f565b005b6101776104a9565b604080519115158252519081900360200190f35b61016d6104b2565b61013b6106ce565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102215780601f106101f657610100808354040283529160200191610221565b820191906000526020600020905b81548152906001019060200180831161020457829003601f168201915b505050505081565b6001546001600160a01b031681565b60055481565b60025481565b6040518060a00160405280606e81526020016106fa606e913981565b6000546001600160a01b031681565b60065460ff16156102bc576040805162461bcd60e51b81526020600482015260126024820152711cdc195b1b0b585b1c9958591e4b58d85cdd60721b604482015290519081900360640190fd5b6006805460ff1916600190811790915560005481546002805460035460405163168ccd6760e01b81526001600160a01b039485166004828101828152602484018690526064840185905260806044850190815282546000199b811615610100029b909b01909a169690960460848401819052969097169763168ccd67979196949591949192909160a490910190859080156103985780601f1061036d57610100808354040283529160200191610398565b820191906000526020600020905b81548152906001019060200180831161037b57829003601f168201915b505095505050505050600060405180830381600087803b1580156103bb57600080fd5b505af11580156103cf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156103f857600080fd5b8101908080516040519392919084600160201b82111561041757600080fd5b90830190602082018581111561042c57600080fd5b8251600160201b81118282018810171561044557600080fd5b82525081516020918201929091019080838360005b8381101561047257818101518382015260200161045a565b50505050905090810190601f16801561049f5780820380516001836020036101000a031916815260200191505b5060405250505050565b60065460ff1681565b600554421115610505576040805162461bcd60e51b8152602060048201526019602482015278151a1a5cc818dbdb9d1c9858dd081a185cc8195e1c1a5c9959603a1b604482015290519081900360640190fd5b600354156105445760405162461bcd60e51b81526004018080602001828103825260258152602001806106d56025913960400191505060405180910390fd5b6000809054906101000a90046001600160a01b03166001600160a01b0316636a42b8f86040518163ffffffff1660e01b815260040160206040518083038186803b15801561059157600080fd5b505afa1580156105a5573d6000803e3d6000fd5b505050506040513d60208110156105bb57600080fd5b50514201600381905560005460018054600280546040516346d2fbbb60e01b81526001600160a01b03938416600482810182815260248401859052606484018a90526080604485019081528254600019998116156101000299909901909816959095046084840181905295909716976346d2fbbb9791969395919490939092909160a490910190859080156106915780601f1061066657610100808354040283529160200191610691565b820191906000526020600020905b81548152906001019060200180831161067457829003601f168201915b505095505050505050600060405180830381600087803b1580156106b457600080fd5b505af11580156106c8573d6000803e3d6000fd5b50505050565b6003548156fe54686973207370656c6c2068617320616c7265616479206265656e207363686564756c6564323032302d30392d3032204d616b657244414f20457865637574697665205370656c6c207c20486173683a20307866383730303137623132653838313538373833346432646533366135636562653463353365306431323065666363316664626234303032626432663135333137a265627a7a72315820bf3a8efdc38881eb5cb626f20bca3c53c77efca8a51d604bf4c4384136b5db0b64736f6c634300050c0032608060405234801561001057600080fd5b50610198806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80636146195414610030575b600080fd5b61003861003a565b005b60408051630a6ba04560e21b8152634c696e6560e01b60048201526f3b228a10bdf1c71ce2e7e9800c4504ad60351b602482015290517335d1b3f3d7966a1dfe207aa4514c12a259a0492b916329ae811491604480830192600092919082900301818387803b1580156100ac57600080fd5b505af11580156100c0573d6000803e3d6000fd5b505060408051630d05943f60e11b8152644554482d4160d81b6004820152636c696e6560e01b60248201526f2d1a57f2bc434116082eb66eae3d51ab60351b6044820181905291519193507335d1b3f3d7966a1dfe207aa4514c12a259a0492b9250631a0b287e91606480830192600092919082900301818387803b15801561014857600080fd5b505af115801561015c573d6000803e3d6000fd5b505050505056fea265627a7a723158201429ffc975d6c862757c07df56831aa4db288673e4368e565de8c2d7cafdbe2a64736f6c634300050c0032

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061008d5760003560e01c8062a7029b146100925780630a7a1c4d1461010f5780634665096d1461013357806351f910661461014d5780637284e416146101555780638456cb591461015d57806396d373e514610165578063ae8421e11461016f578063b0604a261461018b578063f7992d8514610193575b600080fd5b61009a61019b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100d45781810151838201526020016100bc565b50505050905090810190601f1680156101015780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610117610229565b604080516001600160a01b039092168252519081900360200190f35b61013b610238565b60408051918252519081900360200190f35b61013b61023e565b61009a610244565b610117610260565b61016d61026f565b005b6101776104a9565b604080519115158252519081900360200190f35b61016d6104b2565b61013b6106ce565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102215780601f106101f657610100808354040283529160200191610221565b820191906000526020600020905b81548152906001019060200180831161020457829003601f168201915b505050505081565b6001546001600160a01b031681565b60055481565b60025481565b6040518060a00160405280606e81526020016106fa606e913981565b6000546001600160a01b031681565b60065460ff16156102bc576040805162461bcd60e51b81526020600482015260126024820152711cdc195b1b0b585b1c9958591e4b58d85cdd60721b604482015290519081900360640190fd5b6006805460ff1916600190811790915560005481546002805460035460405163168ccd6760e01b81526001600160a01b039485166004828101828152602484018690526064840185905260806044850190815282546000199b811615610100029b909b01909a169690960460848401819052969097169763168ccd67979196949591949192909160a490910190859080156103985780601f1061036d57610100808354040283529160200191610398565b820191906000526020600020905b81548152906001019060200180831161037b57829003601f168201915b505095505050505050600060405180830381600087803b1580156103bb57600080fd5b505af11580156103cf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156103f857600080fd5b8101908080516040519392919084600160201b82111561041757600080fd5b90830190602082018581111561042c57600080fd5b8251600160201b81118282018810171561044557600080fd5b82525081516020918201929091019080838360005b8381101561047257818101518382015260200161045a565b50505050905090810190601f16801561049f5780820380516001836020036101000a031916815260200191505b5060405250505050565b60065460ff1681565b600554421115610505576040805162461bcd60e51b8152602060048201526019602482015278151a1a5cc818dbdb9d1c9858dd081a185cc8195e1c1a5c9959603a1b604482015290519081900360640190fd5b600354156105445760405162461bcd60e51b81526004018080602001828103825260258152602001806106d56025913960400191505060405180910390fd5b6000809054906101000a90046001600160a01b03166001600160a01b0316636a42b8f86040518163ffffffff1660e01b815260040160206040518083038186803b15801561059157600080fd5b505afa1580156105a5573d6000803e3d6000fd5b505050506040513d60208110156105bb57600080fd5b50514201600381905560005460018054600280546040516346d2fbbb60e01b81526001600160a01b03938416600482810182815260248401859052606484018a90526080604485019081528254600019998116156101000299909901909816959095046084840181905295909716976346d2fbbb9791969395919490939092909160a490910190859080156106915780601f1061066657610100808354040283529160200191610691565b820191906000526020600020905b81548152906001019060200180831161067457829003601f168201915b505095505050505050600060405180830381600087803b1580156106b457600080fd5b505af11580156106c8573d6000803e3d6000fd5b50505050565b6003548156fe54686973207370656c6c2068617320616c7265616479206265656e207363686564756c6564323032302d30392d3032204d616b657244414f20457865637574697665205370656c6c207c20486173683a20307866383730303137623132653838313538373833346432646533366135636562653463353365306431323065666363316664626234303032626432663135333137a265627a7a72315820bf3a8efdc38881eb5cb626f20bca3c53c77efca8a51d604bf4c4384136b5db0b64736f6c634300050c0032

Deployed Bytecode Sourcemap

2275:1882:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2275:1882:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2508:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2508:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2406:29;;;:::i;:::-;;;;-1:-1:-1;;;;;2406:29:0;;;;;;;;;;;;;;2541:33;;;:::i;:::-;;;;;;;;;;;;;;;;2442:26;;;:::i;2967:158::-;;;:::i;2300:99::-;;;:::i;3994:160::-;;;:::i;:::-;;2581:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;3719:267;;;:::i;2475:26::-;;;:::i;2508:::-;;;;;;;;;;;;;;;-1:-1:-1;;2508:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2406:29::-;;;-1:-1:-1;;;;;2406:29:0;;:::o;2541:33::-;;;;:::o;2442:26::-;;;;:::o;2967:158::-;;;;;;;;;;;;;;;;;;;:::o;2300:99::-;;;-1:-1:-1;;;;;2300:99:0;;:::o;3994:160::-;4053:4;;;;4052:5;4044:36;;;;;-1:-1:-1;;;4044:36:0;;;;;;;;;;;;-1:-1:-1;;;4044:36:0;;;;;;;;;;;;;;;4091:4;:11;;-1:-1:-1;;4091:11:0;4098:4;4091:11;;;;;;:4;4113:5;4124:6;;4132:3;;;4142;;4113:33;;-1:-1:-1;;;4113:33:0;;-1:-1:-1;;;;;4124:6:0;;;4137:3;4113:33;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4113:33:0;;;;4091:11;4113:33;;;;;;;;;;;;;;;;;;:5;;;;;:10;;4124:6;;4132:3;;4137;;4113:33;;;;;;;;;4137:3;;4113:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4113:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4113:33:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;4113:33:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;4113:33:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;4113:33:0;;420:4:-1;411:14;;;;4113:33:0;;;;;411:14:-1;4113:33:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4113:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3994:160::o;2581:27::-;;;;;;:::o;3719:267::-;3772:10;;3765:3;:17;;3757:55;;;;;-1:-1:-1;;;3757:55:0;;;;;;;;;;;;-1:-1:-1;;;3757:55:0;;;;;;;;;;;;;;;3831:3;;:8;3823:58;;;;-1:-1:-1;;;3823:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3920:5;;;;;;;;;-1:-1:-1;;;;;3920:5:0;-1:-1:-1;;;;;3904:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3904:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3904:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3904:30:0;3898:3;:36;3892:3;:42;;;3945:5;;;3956:6;;3964:3;;;3945:33;;-1:-1:-1;;;3945:33:0;;-1:-1:-1;;;;;3956:6:0;;;3969:3;3945:33;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3945:33:0;;;;:5;:33;;;;;;;;;;;;;;;;;;:5;;;;;:10;;3956:6;;3964:3;;3969;;3898:36;;3945:33;;;;;;;;;3969:3;;3945:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3945:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3945:33:0;;;;3719:267::o;2475:26::-;;;;:::o

Swarm Source

bzzr://1429ffc975d6c862757c07df56831aa4db288673e4368e565de8c2d7cafdbe2a

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.