ETH Price: $4,009.52 (+3.00%)

Contract

0x97FFf40C5254f8Fff89Cf7eE26E590885A5c097B
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Cast126739522021-06-20 22:37:481275 days ago1624228668IN
0x97FFf40C...85A5c097B
0 ETH0.0086157712
Cast125321572021-05-29 23:09:441297 days ago1622329784IN
0x97FFf40C...85A5c097B
0 ETH0.0035972418
Cast125064072021-05-25 23:20:371301 days ago1621984837IN
0x97FFf40C...85A5c097B
0 ETH0.0067956134
Cast124906532021-05-23 12:57:571303 days ago1621774677IN
0x97FFf40C...85A5c097B
0 ETH0.01781149221
Cast124906282021-05-23 12:52:181303 days ago1621774338IN
0x97FFf40C...85A5c097B
0 ETH0.03904953192
Cast124905132021-05-23 12:25:531304 days ago1621772753IN
0x97FFf40C...85A5c097B
0 ETH0.0118509962
Cast124905022021-05-23 12:23:491304 days ago1621772629IN
0x97FFf40C...85A5c097B
0 ETH0.0115911258
Transfer124904902021-05-23 12:21:461304 days ago1621772506IN
0x97FFf40C...85A5c097B
20 ETH0.0021103689
Cast124860922021-05-22 19:48:381304 days ago1621712918IN
0x97FFf40C...85A5c097B
0 ETH0.0683465736
Cast124651582021-05-19 13:42:051307 days ago1621431725IN
0x97FFf40C...85A5c097B
0 ETH0.197643931,034
Transfer124651252021-05-19 13:34:591307 days ago1621431299IN
0x97FFf40C...85A5c097B
60 ETH0.035449441,495
Cast124478882021-05-16 21:19:501310 days ago1621199990IN
0x97FFf40C...85A5c097B
0 ETH0.02007022105
Transfer124478692021-05-16 21:16:321310 days ago1621199792IN
0x97FFf40C...85A5c097B
24 ETH0.00248976105
Cast124228622021-05-13 0:43:281314 days ago1620866608IN
0x97FFf40C...85A5c097B
0 ETH0.03872783413
Cast124228432021-05-13 0:39:321314 days ago1620866372IN
0x97FFf40C...85A5c097B
0 ETH0.08726124330
Cast123825162021-05-06 19:02:321320 days ago1620327752IN
0x97FFf40C...85A5c097B
0 ETH0.00636779
Cast123825032021-05-06 18:58:511320 days ago1620327531IN
0x97FFf40C...85A5c097B
0 ETH0.0164872881.07
Cast123253872021-04-27 23:20:251329 days ago1619565625IN
0x97FFf40C...85A5c097B
0 ETH0.0038748439
Cast121999962021-04-08 15:31:441348 days ago1617895904IN
0x97FFf40C...85A5c097B
0 ETH0.01108019136
Cast121995312021-04-08 13:51:571348 days ago1617889917IN
0x97FFf40C...85A5c097B
0 ETH0.02560467100.10000023
Cast120370392021-03-14 13:48:401373 days ago1615729720IN
0x97FFf40C...85A5c097B
0 ETH0.00783092115
Cast117056062021-01-22 13:35:291424 days ago1611322529IN
0x97FFf40C...85A5c097B
0 ETH0.0068987170
Cast117028622021-01-22 3:15:581425 days ago1611285358IN
0x97FFf40C...85A5c097B
0 ETH0.0087729670
Transfer117026192021-01-22 2:20:111425 days ago1611282011IN
0x97FFf40C...85A5c097B
10 ETH0.01070969491
Cast116794362021-01-18 13:07:511428 days ago1610975271IN
0x97FFf40C...85A5c097B
0 ETH0.0143627550
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
124906532021-05-23 12:57:571303 days ago1621774677
0x97FFf40C...85A5c097B
50 ETH
124906282021-05-23 12:52:181303 days ago1621774338
0x97FFf40C...85A5c097B
50 ETH
124905132021-05-23 12:25:531304 days ago1621772753
0x97FFf40C...85A5c097B
20 ETH
124860922021-05-22 19:48:381304 days ago1621712918
0x97FFf40C...85A5c097B
20 ETH
124860922021-05-22 19:48:381304 days ago1621712918
0x97FFf40C...85A5c097B
20 ETH
124860922021-05-22 19:48:381304 days ago1621712918
0x97FFf40C...85A5c097B
20 ETH
124860922021-05-22 19:48:381304 days ago1621712918
0x97FFf40C...85A5c097B
20 ETH
124651582021-05-19 13:42:051307 days ago1621431725
0x97FFf40C...85A5c097B
60 ETH
124478882021-05-16 21:19:501310 days ago1621199990
0x97FFf40C...85A5c097B
24 ETH
123825162021-05-06 19:02:321320 days ago1620327752
0x97FFf40C...85A5c097B
15 ETH
123825032021-05-06 18:58:511320 days ago1620327531
0x97FFf40C...85A5c097B
15 ETH
120370392021-03-14 13:48:401373 days ago1615729720
0x97FFf40C...85A5c097B
10 ETH
116357782021-01-11 20:21:591435 days ago1610396519
0x97FFf40C...85A5c097B
55 ETH
116357782021-01-11 20:21:591435 days ago1610396519
0x97FFf40C...85A5c097B
55 ETH
116357782021-01-11 20:21:591435 days ago1610396519
0x97FFf40C...85A5c097B
55 ETH
116357782021-01-11 20:21:591435 days ago1610396519
0x97FFf40C...85A5c097B
55 ETH
116292542021-01-10 20:18:361436 days ago1610309916
0x97FFf40C...85A5c097B
33 ETH
116292542021-01-10 20:18:361436 days ago1610309916
0x97FFf40C...85A5c097B
33 ETH
116292542021-01-10 20:18:361436 days ago1610309916
0x97FFf40C...85A5c097B
33 ETH
116292542021-01-10 20:18:361436 days ago1610309916
0x97FFf40C...85A5c097B
33 ETH
116292432021-01-10 20:16:401436 days ago1610309800
0x97FFf40C...85A5c097B
33 ETH
116292432021-01-10 20:16:401436 days ago1610309800
0x97FFf40C...85A5c097B
33 ETH
114609852020-12-16 0:48:261462 days ago1608079706
0x97FFf40C...85A5c097B
100 ETH
114604392020-12-15 22:47:041462 days ago1608072424
0x97FFf40C...85A5c097B
100 ETH
111734722020-11-01 20:58:511506 days ago1604264331
0x97FFf40C...85A5c097B
12.80022305 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.