ETH Price: $3,151.73 (-1.45%)
 
Transaction Hash
Method
Block
From
To
Cast155919402022-09-22 22:42:59859 days ago1663886579IN
0x45d76975...C0571147F
0 ETH0.000512765
Cast123050182021-04-24 20:09:231375 days ago1619294963IN
0x45d76975...C0571147F
0 ETH0.004895250
Cast123035862021-04-24 14:51:161375 days ago1619275876IN
0x45d76975...C0571147F
0 ETH0.0125900555
Cast122200982021-04-11 17:42:201388 days ago1618162940IN
0x45d76975...C0571147F
0 ETH0.0044787568
Cast117437772021-01-28 10:31:011461 days ago1611829861IN
0x45d76975...C0571147F
0 ETH0.0061460464
Cast117437242021-01-28 10:16:401461 days ago1611829000IN
0x45d76975...C0571147F
0 ETH0.0058779653
Cast117437242021-01-28 10:16:401461 days ago1611829000IN
0x45d76975...C0571147F
0 ETH0.0057972953
Cast117437052021-01-28 10:12:171461 days ago1611828737IN
0x45d76975...C0571147F
0 ETH0.0176998253
Cast117411942021-01-28 0:51:531462 days ago1611795113IN
0x45d76975...C0571147F
0 ETH0.0115817556
Cast117276322021-01-25 22:35:151464 days ago1611614115IN
0x45d76975...C0571147F
0 ETH0.04842289122
Cast117265202021-01-25 18:30:241464 days ago1611599424IN
0x45d76975...C0571147F
0 ETH0.0142374358
Cast116859772021-01-19 13:21:401470 days ago1611062500IN
0x45d76975...C0571147F
0 ETH0.0086428890.00000145
Cast116859662021-01-19 13:19:251470 days ago1611062365IN
0x45d76975...C0571147F
0 ETH0.0288254480
Cast116323392021-01-11 7:50:021479 days ago1610351402IN
0x45d76975...C0571147F
0 ETH0.01152384120
Cast116319952021-01-11 6:38:361479 days ago1610347116IN
0x45d76975...C0571147F
0 ETH0.05400729149.89285714
Cast116243042021-01-10 2:15:371480 days ago1610244937IN
0x45d76975...C0571147F
0 ETH0.0067222470
Cast116242852021-01-10 2:11:171480 days ago1610244677IN
0x45d76975...C0571147F
0 ETH0.0252222670
Cast116179322021-01-09 2:34:001481 days ago1610159640IN
0x45d76975...C0571147F
0 ETH0.0088154888.00000134
Cast116166122021-01-08 21:49:161481 days ago1610142556IN
0x45d76975...C0571147F
0 ETH0.021488358.00000112
Cast116045362021-01-07 1:22:541483 days ago1609982574IN
0x45d76975...C0571147F
0 ETH0.01131347113.05
Cast116045272021-01-07 1:20:461483 days ago1609982446IN
0x45d76975...C0571147F
0 ETH0.04104348101.20000171
Cast115862012021-01-04 5:48:131486 days ago1609739293IN
0x45d76975...C0571147F
0 ETH0.01913361191.00000112
Cast115861582021-01-04 5:38:051486 days ago1609738685IN
0x45d76975...C0571147F
0 ETH0.0892876241
Cast115642512020-12-31 21:10:161489 days ago1609449016IN
0x45d76975...C0571147F
0 ETH0.009338742.00000112
Cast115259152020-12-26 0:08:541495 days ago1608941334IN
0x45d76975...C0571147F
0 ETH0.007721668
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
117437772021-01-28 10:31:011461 days ago1611829861
0x45d76975...C0571147F
100.07215526 ETH
117437052021-01-28 10:12:171461 days ago1611828737
0x45d76975...C0571147F
100.07215526 ETH
116859772021-01-19 13:21:401470 days ago1611062500
0x45d76975...C0571147F
20 ETH
116859662021-01-19 13:19:251470 days ago1611062365
0x45d76975...C0571147F
20 ETH
116323392021-01-11 7:50:021479 days ago1610351402
0x45d76975...C0571147F
10 ETH
116319952021-01-11 6:38:361479 days ago1610347116
0x45d76975...C0571147F
10 ETH
116243042021-01-10 2:15:371480 days ago1610244937
0x45d76975...C0571147F
30 ETH
116242852021-01-10 2:11:171480 days ago1610244677
0x45d76975...C0571147F
30 ETH
116179322021-01-09 2:34:001481 days ago1610159640
0x45d76975...C0571147F
30 ETH
116166122021-01-08 21:49:161481 days ago1610142556
0x45d76975...C0571147F
30 ETH
115862012021-01-04 5:48:131486 days ago1609739293
0x45d76975...C0571147F
30 ETH
115861582021-01-04 5:38:051486 days ago1609738685
0x45d76975...C0571147F
30 ETH
115258372020-12-25 23:50:061495 days ago1608940206
0x45d76975...C0571147F
80 ETH
115258282020-12-25 23:48:331495 days ago1608940113
0x45d76975...C0571147F
80 ETH
115226382020-12-25 11:50:451495 days ago1608897045
0x45d76975...C0571147F
50 ETH
114779102020-12-18 15:13:181502 days ago1608304398
0x45d76975...C0571147F
10 ETH
113630782020-11-30 23:18:191520 days ago1606778299
0x45d76975...C0571147F
15 ETH
113629962020-11-30 23:03:011520 days ago1606777381
0x45d76975...C0571147F
15 ETH
108073722020-09-06 10:16:071605 days ago1599387367
0x45d76975...C0571147F
100 ETH
108073332020-09-06 10:07:011605 days ago1599386821
0x45d76975...C0571147F
100 ETH
107855942020-09-03 2:15:501609 days ago1599099350
0x45d76975...C0571147F
50 ETH
107848902020-09-02 23:47:231609 days ago1599090443
0x45d76975...C0571147F
50 ETH
107692942020-08-31 14:43:191611 days ago1598884999
0x45d76975...C0571147F
50 ETH
107682112020-08-31 10:42:151611 days ago1598870535
0x45d76975...C0571147F
50 ETH
106195432020-08-08 13:49:101634 days ago1596894550
0x45d76975...C0571147F
140 ETH
View All Internal Transactions
Loading...
Loading

Minimal Proxy Contract for 0x939daad09fc4a9b8f8a9352a485dab2df4f4b3f8

Contract Name:
InstaAccount

Compiler Version
v0.6.0+commit.26b70077

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-03-26
*/

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;

/**
 * @title InstaAccount.
 * @dev DeFi Smart Account Wallet.
 */

interface IndexInterface {
    function connectors(uint version) external view returns (address);
    function check(uint version) external view returns (address);
    function list() external view returns (address);
}

interface ConnectorsInterface {
    function isConnector(address[] calldata logicAddr) external view returns (bool);
    function isStaticConnector(address[] calldata logicAddr) external view returns (bool);
}

interface CheckInterface {
    function isOk() external view returns (bool);
}

interface ListInterface {
    function addAuth(address user) external;
    function removeAuth(address user) external;
}


contract Record {

    event LogEnable(address indexed user);
    event LogDisable(address indexed user);
    event LogSwitchShield(bool _shield);

    // InstaIndex Address.
    address public constant instaIndex = 0x2971AdFa57b20E5a416aE5a708A8655A9c74f723;
    // The Account Module Version.
    uint public constant version = 1;
    // Auth Module(Address of Auth => bool).
    mapping (address => bool) private auth;
    // Is shield true/false.
    bool public shield;

    /**
     * @dev Check for Auth if enabled.
     * @param user address/user/owner.
     */
    function isAuth(address user) public view returns (bool) {
        return auth[user];
    }

    /**
     * @dev Change Shield State.
    */
    function switchShield(bool _shield) external {
        require(auth[msg.sender], "not-self");
        require(shield != _shield, "shield is set");
        shield = _shield;
        emit LogSwitchShield(shield);
    }

    /**
     * @dev Enable New User.
     * @param user Owner of the Smart Account.
    */
    function enable(address user) public {
        require(msg.sender == address(this) || msg.sender == instaIndex, "not-self-index");
        require(user != address(0), "not-valid");
        require(!auth[user], "already-enabled");
        auth[user] = true;
        ListInterface(IndexInterface(instaIndex).list()).addAuth(user);
        emit LogEnable(user);
    }

    /**
     * @dev Disable User.
     * @param user Owner of the Smart Account.
    */
    function disable(address user) public {
        require(msg.sender == address(this), "not-self");
        require(user != address(0), "not-valid");
        require(auth[user], "already-disabled");
        delete auth[user];
        ListInterface(IndexInterface(instaIndex).list()).removeAuth(user);
        emit LogDisable(user);
    }

}

contract InstaAccount is Record {

    event LogCast(address indexed origin, address indexed sender, uint value);

    receive() external payable {}

     /**
     * @dev Delegate the calls to Connector And this function is ran by cast().
     * @param _target Target to of Connector.
     * @param _data CallData of function in Connector.
    */
    function spell(address _target, bytes memory _data) internal {
        require(_target != address(0), "target-invalid");
        assembly {
            let succeeded := delegatecall(gas(), _target, add(_data, 0x20), mload(_data), 0, 0)

            switch iszero(succeeded)
                case 1 {
                    // throw if delegatecall failed
                    let size := returndatasize()
                    returndatacopy(0x00, 0x00, size)
                    revert(0x00, size)
                }
        }
    }

    /**
     * @dev This is the main function, Where all the different functions are called
     * from Smart Account.
     * @param _targets Array of Target(s) to of Connector.
     * @param _datas Array of Calldata(S) of function.
    */
    function cast(
        address[] calldata _targets,
        bytes[] calldata _datas,
        address _origin
    )
    external
    payable
    {
        require(isAuth(msg.sender) || msg.sender == instaIndex, "permission-denied");
        require(_targets.length == _datas.length , "array-length-invalid");
        IndexInterface indexContract = IndexInterface(instaIndex);
        bool isShield = shield;
        if (!isShield) {
            require(ConnectorsInterface(indexContract.connectors(version)).isConnector(_targets), "not-connector");
        } else {
            require(ConnectorsInterface(indexContract.connectors(version)).isStaticConnector(_targets), "not-static-connector");
        }
        for (uint i = 0; i < _targets.length; i++) {
            spell(_targets[i], _datas[i]);
        }
        address _check = indexContract.check(version);
        if (_check != address(0) && !isShield) require(CheckInterface(_check).isOk(), "not-ok");
        emit LogCast(_origin, msg.sender, msg.value);
    }

}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"origin","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"LogCast","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"LogDisable","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"LogEnable","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_shield","type":"bool"}],"name":"LogSwitchShield","type":"event"},{"inputs":[{"internalType":"address[]","name":"_targets","type":"address[]"},{"internalType":"bytes[]","name":"_datas","type":"bytes[]"},{"internalType":"address","name":"_origin","type":"address"}],"name":"cast","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"disable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"enable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"instaIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isAuth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shield","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_shield","type":"bool"}],"name":"switchShield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.