ETH Price: $2,523.25 (-5.06%)

Contract

0x5929953541902a282330149B673612f1410B1d1e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Cast186594082023-11-27 0:27:11340 days ago1701044831IN
0x59299535...1410B1d1e
0 ETH0.0100461231.86958388
Cast126498362021-06-17 4:39:171232 days ago1623904757IN
0x59299535...1410B1d1e
0 ETH0.0102107814
Cast126498262021-06-17 4:37:011232 days ago1623904621IN
0x59299535...1410B1d1e
0 ETH0.0394441114
Cast126209292021-06-12 17:16:131237 days ago1623518173IN
0x59299535...1410B1d1e
0 ETH0.0053273118
Cast126209182021-06-12 17:13:191237 days ago1623517999IN
0x59299535...1410B1d1e
0 ETH0.0124398117
Cast126164822021-06-12 0:25:561238 days ago1623457556IN
0x59299535...1410B1d1e
0 ETH0.0094252411
Cast126164692021-06-12 0:23:351238 days ago1623457415IN
0x59299535...1410B1d1e
0 ETH0.0112847511
Cast126164612021-06-12 0:21:341238 days ago1623457294IN
0x59299535...1410B1d1e
0 ETH0.0108956215
Cast126079762021-06-10 17:00:161239 days ago1623344416IN
0x59299535...1410B1d1e
0 ETH0.0055462152
Cast126079632021-06-10 16:57:521239 days ago1623344272IN
0x59299535...1410B1d1e
0 ETH0.0282370643
Cast126078412021-06-10 16:27:311239 days ago1623342451IN
0x59299535...1410B1d1e
0 ETH0.0717978146
Cast125835772021-06-06 22:11:081243 days ago1623017468IN
0x59299535...1410B1d1e
0 ETH0.0023483318
Cast125835772021-06-06 22:11:081243 days ago1623017468IN
0x59299535...1410B1d1e
0 ETH0.0015187816
Cast125835752021-06-06 22:10:161243 days ago1623017416IN
0x59299535...1410B1d1e
0 ETH0.0105274816
Cast125835702021-06-06 22:08:521243 days ago1623017332IN
0x59299535...1410B1d1e
0 ETH0.0123456218
Cast125835632021-06-06 22:07:141243 days ago1623017234IN
0x59299535...1410B1d1e
0 ETH0.0292525719
Cast125557432021-06-02 14:59:261247 days ago1622645966IN
0x59299535...1410B1d1e
0 ETH0.0158219352
Cast125557322021-06-02 14:56:121247 days ago1622645772IN
0x59299535...1410B1d1e
0 ETH0.0411903347
Cast125511282021-06-01 21:51:291248 days ago1622584289IN
0x59299535...1410B1d1e
0 ETH0.0491009331
Cast125511182021-06-01 21:48:361248 days ago1622584116IN
0x59299535...1410B1d1e
0 ETH0.0100037528
Cast125007882021-05-25 2:25:271255 days ago1621909527IN
0x59299535...1410B1d1e
0 ETH0.0071418663
Cast125007852021-05-25 2:23:471255 days ago1621909427IN
0x59299535...1410B1d1e
0 ETH0.0365325464
Cast124976522021-05-24 14:55:431256 days ago1621868143IN
0x59299535...1410B1d1e
0 ETH0.020720475
Cast124976502021-05-24 14:55:071256 days ago1621868107IN
0x59299535...1410B1d1e
0 ETH0.0216138775
Cast124976422021-05-24 14:53:371256 days ago1621868017IN
0x59299535...1410B1d1e
0 ETH0.0902331267
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
126498262021-06-17 4:37:011232 days ago1623904621
0x59299535...1410B1d1e
0.00002628 ETH
126164822021-06-12 0:25:561238 days ago1623457556
0x59299535...1410B1d1e
0.03096612 ETH
126164822021-06-12 0:25:561238 days ago1623457556
0x59299535...1410B1d1e
0.03096612 ETH
126164692021-06-12 0:23:351238 days ago1623457415
0x59299535...1410B1d1e
0.0125 ETH
126164692021-06-12 0:23:351238 days ago1623457415
0x59299535...1410B1d1e
0.0125 ETH
126164612021-06-12 0:21:341238 days ago1623457294
0x59299535...1410B1d1e
0.00657371 ETH
126164612021-06-12 0:21:341238 days ago1623457294
0x59299535...1410B1d1e
0.0066 ETH
126078412021-06-10 16:27:311239 days ago1623342451
0x59299535...1410B1d1e
197.07997732 ETH
126078412021-06-10 16:27:311239 days ago1623342451
0x59299535...1410B1d1e
197.07997732 ETH
126078412021-06-10 16:27:311239 days ago1623342451
0x59299535...1410B1d1e
197.07997732 ETH
126078412021-06-10 16:27:311239 days ago1623342451
0x59299535...1410B1d1e
197.07997732 ETH
125835632021-06-06 22:07:141243 days ago1623017234
0x59299535...1410B1d1e
318.08612558 ETH
125835632021-06-06 22:07:141243 days ago1623017234
0x59299535...1410B1d1e
318.08612558 ETH
125835632021-06-06 22:07:141243 days ago1623017234
0x59299535...1410B1d1e
318.08612558 ETH
125835632021-06-06 22:07:141243 days ago1623017234
0x59299535...1410B1d1e
318.08612558 ETH
125511282021-06-01 21:51:291248 days ago1622584289
0x59299535...1410B1d1e
190.7962 ETH
125511282021-06-01 21:51:291248 days ago1622584289
0x59299535...1410B1d1e
190.7962 ETH
125511282021-06-01 21:51:291248 days ago1622584289
0x59299535...1410B1d1e
190.7962 ETH
125511282021-06-01 21:51:291248 days ago1622584289
0x59299535...1410B1d1e
190.7962 ETH
124976422021-05-24 14:53:371256 days ago1621868017
0x59299535...1410B1d1e
1,852.83 ETH
124976422021-05-24 14:53:371256 days ago1621868017
0x59299535...1410B1d1e
1,852.83 ETH
124976422021-05-24 14:53:371256 days ago1621868017
0x59299535...1410B1d1e
1,852.83 ETH
124976422021-05-24 14:53:371256 days ago1621868017
0x59299535...1410B1d1e
1,852.83 ETH
124976152021-05-24 14:48:011256 days ago1621867681
0x59299535...1410B1d1e
400.19 ETH
124976152021-05-24 14:48:011256 days ago1621867681
0x59299535...1410B1d1e
400.19 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.