ETH Price: $3,699.70 (+4.35%)

Contract

0xa746c67eB7915Fa832a4C2076D403D4B68085431
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Age:30D
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Update your filters to view other transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZapDelegator

Compiler Version
v0.6.10+commit.00c0fcaf

Optimization Enabled:
No with 200 runs

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

pragma solidity 0.6.10;
pragma experimental ABIEncoderV2;


abstract contract YToken {
    function getPricePerFullShare() external view virtual returns (uint256);
}

contract ZapDelegator {
    address[] public _coins;
    address[] public _underlying_coins;
    address public curve;
    address public token;
    
    constructor(address[4] memory _coinsIn, address[4] memory _underlying_coinsIn, address _curve, address _pool_token) public {
        for (uint i = 0; i < 4; i++) {
            require(_underlying_coinsIn[i] != address(0));
            require(_coinsIn[i] != address(0));
            _coins.push(_coinsIn[i]);
            _underlying_coins.push(_underlying_coinsIn[i]);
        }
        curve = _curve;
        token = _pool_token;
    }
    
    function coins(int128 i) public view returns (address) {
        return _coins[uint256(i)];
    }
    
    function underlying_coins(int128 i) public view returns (address) {
        return _underlying_coins[uint256(i)];
    }

    fallback() external payable {
        address _target = 0xFCBa3E75865d2d561BE8D220616520c171F12851;

        assembly {
            let _calldataMemOffset := mload(0x40)
            let _callDataSZ := calldatasize()
            let _size := and(add(_callDataSZ, 0x1f), not(0x1f))
            mstore(0x40, add(_calldataMemOffset, _size))
            calldatacopy(_calldataMemOffset, 0x0, _callDataSZ)
            let _retval := delegatecall(gas(), _target, _calldataMemOffset, _callDataSZ, 0, 0)
            switch _retval
            case 0 {
                revert(0,0)
            } default {
                let _returndataMemoryOff := mload(0x40)
                mstore(0x40, add(_returndataMemoryOff, returndatasize()))
                returndatacopy(_returndataMemoryOff, 0x0, returndatasize())
                return(_returndataMemoryOff, returndatasize())
            }
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[4]","name":"_coinsIn","type":"address[4]"},{"internalType":"address[4]","name":"_underlying_coinsIn","type":"address[4]"},{"internalType":"address","name":"_curve","type":"address"},{"internalType":"address","name":"_pool_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_coins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_underlying_coins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int128","name":"i","type":"int128"}],"name":"coins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int128","name":"i","type":"int128"}],"name":"underlying_coins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051610884380380610884833981810160405281019061003291906102dd565b60008090505b60048110156101c857600073ffffffffffffffffffffffffffffffffffffffff1684826004811061006557fe5b602002015173ffffffffffffffffffffffffffffffffffffffff16141561008b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168582600481106100af57fe5b602002015173ffffffffffffffffffffffffffffffffffffffff1614156100d557600080fd5b60008582600481106100e357fe5b60200201519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600184826004811061015657fe5b60200201519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080600101915050610038565b5081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050506103db565b600081519050610263816103c4565b92915050565b600082601f83011261027a57600080fd5b600461028d61028882610370565b610343565b915081838560208402820111156102a357600080fd5b60005b838110156102d357816102b98882610254565b8452602084019350602083019250506001810190506102a6565b5050505092915050565b60008060008061014085870312156102f457600080fd5b600061030287828801610269565b945050608061031387828801610269565b93505061010061032587828801610254565b92505061012061033787828801610254565b91505092959194509250565b6000604051905081810181811067ffffffffffffffff8211171561036657600080fd5b8060405250919050565b600067ffffffffffffffff82111561038757600080fd5b602082029050919050565b600061039d826103a4565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6103cd81610392565b81146103d857600080fd5b50565b61049a806103ea6000396000f3fe6080604052600436106100595760003560e01c806323746eb8146100b25780637165485d146100ef578063b71fdd371461011a578063b739953e14610157578063c296c84f14610194578063fc0c546a146101d15761005a565b5b600073fcba3e75865d2d561be8d220616520c171f12851905060405136601f19601f82011680830160405281600084376000808385875af480600081146100ad576040513d81016040523d6000823e3d81f35b600080fd5b3480156100be57600080fd5b506100d960048036038101906100d49190610371565b6101fc565b6040516100e691906103d2565b60405180910390f35b3480156100fb57600080fd5b5061010461023f565b60405161011191906103d2565b60405180910390f35b34801561012657600080fd5b50610141600480360381019061013c919061039a565b610265565b60405161014e91906103d2565b60405180910390f35b34801561016357600080fd5b5061017e60048036038101906101799190610371565b6102a1565b60405161018b91906103d2565b60405180910390f35b3480156101a057600080fd5b506101bb60048036038101906101b6919061039a565b6102e5565b6040516101c891906103d2565b60405180910390f35b3480156101dd57600080fd5b506101e6610321565b6040516101f391906103d2565b60405180910390f35b60008082600f0b8154811061020d57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001818154811061027257fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600182600f0b815481106102b357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600081815481106102f257fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008135905061035681610436565b92915050565b60008135905061036b8161044d565b92915050565b60006020828403121561038357600080fd5b600061039184828501610347565b91505092915050565b6000602082840312156103ac57600080fd5b60006103ba8482850161035c565b91505092915050565b6103cc816103ed565b82525050565b60006020820190506103e760008301846103c3565b92915050565b60006103f88261040c565b9050919050565b600081600f0b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b61043f816103ff565b811461044a57600080fd5b50565b6104568161042c565b811461046157600080fd5b5056fea2646970667358221220b535d9f3d61fb50f2219e3b740794baed27044fddac718fe1c56eb5c6436e9b764736f6c634300060a00330000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000085d4780b73119b644ae5ecd22b3760000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000085d4780b73119b644ae5ecd22b376000000000000000000000000329239599afb305da0a2ec69c58f8a6697f9f88d00000000000000000000000077c6e4a580c0dce4e5c7a17d0bc077188a83a059

Deployed Bytecode

0x6080604052600436106100595760003560e01c806323746eb8146100b25780637165485d146100ef578063b71fdd371461011a578063b739953e14610157578063c296c84f14610194578063fc0c546a146101d15761005a565b5b600073fcba3e75865d2d561be8d220616520c171f12851905060405136601f19601f82011680830160405281600084376000808385875af480600081146100ad576040513d81016040523d6000823e3d81f35b600080fd5b3480156100be57600080fd5b506100d960048036038101906100d49190610371565b6101fc565b6040516100e691906103d2565b60405180910390f35b3480156100fb57600080fd5b5061010461023f565b60405161011191906103d2565b60405180910390f35b34801561012657600080fd5b50610141600480360381019061013c919061039a565b610265565b60405161014e91906103d2565b60405180910390f35b34801561016357600080fd5b5061017e60048036038101906101799190610371565b6102a1565b60405161018b91906103d2565b60405180910390f35b3480156101a057600080fd5b506101bb60048036038101906101b6919061039a565b6102e5565b6040516101c891906103d2565b60405180910390f35b3480156101dd57600080fd5b506101e6610321565b6040516101f391906103d2565b60405180910390f35b60008082600f0b8154811061020d57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001818154811061027257fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600182600f0b815481106102b357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600081815481106102f257fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008135905061035681610436565b92915050565b60008135905061036b8161044d565b92915050565b60006020828403121561038357600080fd5b600061039184828501610347565b91505092915050565b6000602082840312156103ac57600080fd5b60006103ba8482850161035c565b91505092915050565b6103cc816103ed565b82525050565b60006020820190506103e760008301846103c3565b92915050565b60006103f88261040c565b9050919050565b600081600f0b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b61043f816103ff565b811461044a57600080fd5b50565b6104568161042c565b811461046157600080fd5b5056fea2646970667358221220b535d9f3d61fb50f2219e3b740794baed27044fddac718fe1c56eb5c6436e9b764736f6c634300060a0033

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

0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000085d4780b73119b644ae5ecd22b3760000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000085d4780b73119b644ae5ecd22b376000000000000000000000000329239599afb305da0a2ec69c58f8a6697f9f88d00000000000000000000000077c6e4a580c0dce4e5c7a17d0bc077188a83a059

-----Decoded View---------------
Arg [0] : _coinsIn (address[4]): 0x6B175474E89094C44Da98b954EedeAC495271d0F,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xdAC17F958D2ee523a2206206994597C13D831ec7,0x0000000000085d4780B73119b644AE5ecd22b376
Arg [1] : _underlying_coinsIn (address[4]): 0x6B175474E89094C44Da98b954EedeAC495271d0F,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xdAC17F958D2ee523a2206206994597C13D831ec7,0x0000000000085d4780B73119b644AE5ecd22b376
Arg [2] : _curve (address): 0x329239599afB305DA0A2eC69c58F8a6697F9F88d
Arg [3] : _pool_token (address): 0x77C6E4a580c0dCE4E5c7a17d0bc077188a83A059

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [1] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [2] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [3] : 0000000000000000000000000000000000085d4780b73119b644ae5ecd22b376
Arg [4] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [5] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [6] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [7] : 0000000000000000000000000000000000085d4780b73119b644ae5ecd22b376
Arg [8] : 000000000000000000000000329239599afb305da0a2ec69c58f8a6697f9f88d
Arg [9] : 00000000000000000000000077c6e4a580c0dce4e5c7a17d0bc077188a83a059


Deployed Bytecode Sourcemap

175:1774:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1072:15;1090:42;1072:60;;1201:4;1195:11;1239:14;1312:4;1308:9;1301:4;1288:11;1284:22;1280:38;1369:5;1349:18;1345:30;1339:4;1332:44;1428:11;1423:3;1403:18;1390:50;1534:1;1531;1518:11;1498:18;1489:7;1482:5;1469:67;1557:7;1583:1;1578:52;;;;1692:4;1686:11;1754:16;1732:20;1728:43;1722:4;1715:57;1832:16;1827:3;1805:20;1790:59;1896:16;1874:20;1867:46;1578:52;1613:1;1611;1604:11;793:99;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;275:20;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;234:34;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;904:121;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;204:23;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;302:20;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;793:99;839:7;866:6;881:1;873:10;;866:18;;;;;;;;;;;;;;;;;;;;;;;;;859:25;;793:99;;;:::o;275:20::-;;;;;;;;;;;;;:::o;234:34::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;904:121::-;961:7;988:17;1014:1;1006:10;;988:29;;;;;;;;;;;;;;;;;;;;;;;;;981:36;;904:121;;;:::o;204:23::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;302:20::-;;;;;;;;;;;;;:::o;5:128:-1:-;;84:6;71:20;62:29;;96:32;122:5;96:32;;;56:77;;;;;140:130;;220:6;207:20;198:29;;232:33;259:5;232:33;;;192:78;;;;;277:239;;380:2;368:9;359:7;355:23;351:32;348:2;;;396:1;393;386:12;348:2;431:1;448:52;492:7;483:6;472:9;468:22;448:52;;;438:62;;410:96;342:174;;;;;523:241;;627:2;615:9;606:7;602:23;598:32;595:2;;;643:1;640;633:12;595:2;678:1;695:53;740:7;731:6;720:9;716:22;695:53;;;685:63;;657:97;589:175;;;;;771:113;854:24;872:5;854:24;;;849:3;842:37;836:48;;;891:222;;1018:2;1007:9;1003:18;995:26;;1032:71;1100:1;1089:9;1085:17;1076:6;1032:71;;;989:124;;;;;1120:91;;1182:24;1200:5;1182:24;;;1171:35;;1165:46;;;;1218:87;;1294:5;1290:2;1279:21;1268:32;;1262:43;;;;1312:121;;1385:42;1378:5;1374:54;1363:65;;1357:76;;;;1440:72;;1502:5;1491:16;;1485:27;;;;1519:115;1587:23;1604:5;1587:23;;;1580:5;1577:34;1567:2;;1625:1;1622;1615:12;1567:2;1561:73;;1641:117;1710:24;1728:5;1710:24;;;1703:5;1700:35;1690:2;;1749:1;1746;1739:12;1690:2;1684:74;

Swarm Source

ipfs://b535d9f3d61fb50f2219e3b740794baed27044fddac718fe1c56eb5c6436e9b7

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

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.