ETH Price: $2,418.19 (-0.24%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x6080604088578942019-11-02 8:33:101829 days ago1572683590IN
 Create: GiftOfCompound
0.005 ETH0.005805533

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
88578942019-11-02 8:33:101829 days ago1572683590
0xf4D2Db9d...1CDfd7366
0.0035 ETH
88578942019-11-02 8:33:101829 days ago1572683590
0xf4D2Db9d...1CDfd7366
0.0015 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GiftOfCompound

Compiler Version
v0.4.26+commit.4563c3fc

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-11-02
*/

//generated by www.structuredeth.com/gift

pragma solidity ^0.4.26;

interface CompoundERC20 {
  function approve ( address spender, uint256 amount ) external returns ( bool );
  function mint ( uint256 mintAmount ) external returns ( uint256 );
  function totalSupply() public view returns (uint supply);
    function balanceOf(address _owner) public view returns (uint256 balance);
    function transfer(address _to, uint _value) public returns (bool success);
    function transferFrom(address _from, address _to, uint _value) public returns (bool success);
    function exchangeRateStored() public view returns (uint256 exchangeRate);
}
interface IKyberNetworkProxy {
    function maxGasPrice() external view returns(uint);
    
    function getUserCapInWei(address user) external view returns(uint);
    function getUserCapInTokenWei(address user, ERC20 token) external view returns(uint);
    function enabled() external view returns(bool);
    function info(bytes32 id) external view returns(uint);
    function getExpectedRate(ERC20 src, ERC20 dest, uint srcQty) external view returns (uint expectedRate, uint slippageRate);
    function tradeWithHint(ERC20 src, uint srcAmount, ERC20 dest, address destAddress, uint maxDestAmount, uint minConversionRate, address walletId, bytes hint) external payable returns(uint);
    function swapEtherToToken(ERC20 token, uint minRate) external payable returns (uint);
    function swapTokenToEther(ERC20 token, uint tokenQty, uint minRate) external returns (uint);
}


library SafeMath {
  function mul(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal constant returns (uint256) {
    assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

  function sub(uint256 a, uint256 b) internal constant returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}




interface ERC20 {
    function totalSupply() public view returns(uint supply);

    function balanceOf(address _owner) public view returns(uint balance);

    function transfer(address _to, uint _value) public returns(bool success);

    function transferFrom(address _from, address _to, uint _value) public returns(bool success);

    function approve(address _spender, uint _value) public returns(bool success);

    function allowance(address _owner, address _spender) public view returns(uint remaining);

    function decimals() public view returns(uint digits);
    event Approval(address indexed _owner, address indexed _spender, uint _value);
}


contract GiftOfCompound {
    
    using SafeMath for uint256;
    address theRecipient;
    address theSender;
    bytes PERM_HINT;
    uint256 initialCDaiAmount;
    uint256 theInterestRecipient;
    uint256 theInterestSender;

    uint256 initialDaiAmount;
    uint256 initialcDaiDaiRate;
    
    uint256 startedWithGiftAmount;
    uint256 internal PRECISION;
     
    CompoundERC20 cdai;
    
     modifier onlyGiftGroup() {
        if (msg.sender != theSender && msg.sender != theRecipient) {
            throw;
        }
        _;
    }
    
    //if smeone sends eth to this contract, throw it because it will just end up getting locked forever
    function() payable {
        throw;
    }
    
    
    
    
    
    

    constructor(address recipient, uint256 interestRecipient, uint256 interestSender) public payable {
        
        if(msg.value <= 0){
            throw;
        }
        
        theSender = msg.sender;
        theRecipient = recipient;
        
        PRECISION = 10 ** 27;
        theInterestSender = interestSender;
        theInterestRecipient = interestRecipient;
        
        //sum of the interest percentage must be 100 so everyone can get their funds
        if(theInterestRecipient.add(theInterestSender) != 100){
            throw;
        }
        
        startedWithGiftAmount = 0;
        
        initialCDaiAmount = giftWrap();
      
        
        
    }
    
    function transfer(address _to, uint256 _value) onlyGiftGroup  returns(bool)  {
        
           uint256  userHasAccessTo = amountEntitledTo(msg.sender);
           
             //you do not enough entitlement to the interest
            if(_value > userHasAccessTo){
                
                throw;
            }
            
            else if(_value <= initialCDaiAmount){
                require(cdai.transfer(_to, _value));
            }
            
          
            else{
                 require(cdai.transfer(_to, _value));
            }
            
            //set initial amount to current amount so that people can keep withdrawing and we can know if they are entiteld to the interest amount
            initialCDaiAmount = cdai.balanceOf(this);
            
        
            return true;
    }
        
    
    function giftWrap() internal returns (uint256){
      
        ERC20 dai = ERC20(0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359);
        address kyberProxyAddress = 0x818E6FECD516Ecc3849DAf6845e3EC868087B755;
        IKyberNetworkProxy kyberProxy = IKyberNetworkProxy(kyberProxyAddress);
        cdai = CompoundERC20(0xf5dce57282a584d2746faf1593d3121fcac444dc);
        
        theRecipient.send(1500000000000000);
        
        uint256 ethAmount1 = msg.value.sub(1500000000000000);
        
        PERM_HINT = "PERM";
        ERC20 eth = ERC20(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
        uint daiAmount = kyberProxy.tradeWithHint.value(ethAmount1)(eth, ethAmount1, dai, this, 8000000000000000000000000000000000000000000000000000000000000000, 0, 0x0000000000000000000000000000000000000004, PERM_HINT);
        dai.approve(address(cdai), 8000000000000000000000000000000000000000000000000000000);
        cdai.mint(daiAmount);
        
        uint256 cdaiAmount = cdai.balanceOf(this);
        startedWithGiftAmount = cdaiAmount;
        initialDaiAmount = daiAmount;
        initialcDaiDaiRate = cdai.exchangeRateStored();
        return cdaiAmount;
    }
    
    function amountEntitledTo(address qAddress) constant  returns (uint256){
          //uint256 perDaiGrowth = cdai.exchangeRateStored().sub(initialcDaiDaiRate);
          //uint256 currentCDAIInContract= cdai.balanceof(this);
          //uint256 totalInterestEarned = cdai.exchangeRateStored().mul(cdai.balanceOf(address(this))).div(PRECISION).sub(initialCDaiAmount);
          
          uint256 initialExchangeRate  =  initialcDaiDaiRate;
          uint multiplier = 10000000;
          uint256 currentExchangeRate  = cdai.exchangeRateStored().mul(multiplier); 
          
          uint256 valueChange = currentExchangeRate.div(initialExchangeRate);
          uint valueChange2 = valueChange.sub(multiplier);
          
          uint256 totalInterestEarned = initialCDaiAmount.mul(valueChange2).div(multiplier);
          
           uint256 usersPercentage;
            if(qAddress== theRecipient){
                usersPercentage = theInterestRecipient;
            }
            else if (qAddress == theSender){
                usersPercentage = theInterestSender;
                
            }
            else{
                return 0;
            }
            
            uint256 tInterestEntitledTo = totalInterestEarned.mul(usersPercentage).div(100);
            
            uint256 amountITo;
            
            if(qAddress== theRecipient){
                amountITo = initialCDaiAmount.add(tInterestEntitledTo);
            }
            if(qAddress== theSender){
                if(initialCDaiAmount == startedWithGiftAmount){
                    amountITo = initialCDaiAmount.add(tInterestEntitledTo);
                }
                else{
                    amountITo = tInterestEntitledTo;
                }
              
            }
            
           uint256 responseAmount = cdai.exchangeRateStored().div(amountITo);
            
            return responseAmount;
          
    }
    
    function getStartedWithGiftAmount() constant external returns (uint256){
        return startedWithGiftAmount;
    }
    
    function getStartedWithDaiValueAmount() constant external returns (uint256){
        return initialDaiAmount;
    }
    function getStartedWithCDaiDaiRate() constant external returns (uint256){
        return initialcDaiDaiRate;
    }
    
    
    
    function getRecipient() constant external returns (address){
        return theRecipient;
    }
    
    function getSender() constant external returns (address){
        return theSender;
    }
    
    function percentageInterestEntitledTo(address qAddress) constant external returns (uint256){
            uint256 usersPercentage;
            if(qAddress== theRecipient){
                usersPercentage = theInterestRecipient;
            }
            else if (qAddress == theSender){
                usersPercentage = theInterestSender;
                
            }
            else{
                return 0;
            }
            
           return usersPercentage;
    }
    
    
   
    
    function currentGiftAmount() constant external returns (uint256){
        uint256 cDaiMinted = cdai.balanceOf(this);
        return cDaiMinted;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"getRecipient","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStartedWithCDaiDaiRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStartedWithGiftAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentGiftAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getSender","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStartedWithDaiValueAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"qAddress","type":"address"}],"name":"amountEntitledTo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"qAddress","type":"address"}],"name":"percentageInterestEntitledTo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"recipient","type":"address"},{"name":"interestRecipient","type":"uint256"},{"name":"interestSender","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

60806040526040516060806200180f8339810180604052810190808051906020019092919080519060200190929190805190602001909291905050506000341115156200004b57600080fd5b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506b033b2e3c9fd0803ce80000006009819055508060058190555081600481905550606462000116600554600454620001536401000000000262000df0179091906401000000009004565b1415156200012357600080fd5b60006008819055506200014462000172640100000000026401000000009004565b600381905550505050620009c5565b60008082840190508381101515156200016857fe5b8091505092915050565b6000806000806000806000807389d24a6b4ccb1b6faa2625fe562bdd9a23260359965073818e6fecd516ecc3849daf6845e3ec868087b755955085945073f5dce57282a584d2746faf1593d3121fcac444dc600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6605543df729c0009081150290604051600060405180830381858888f19350505050506200028c6605543df729c00034620008fc6401000000000262000dd7179091906401000000009004565b93506040805190810160405280600481526020017f5045524d0000000000000000000000000000000000000000000000000000000081525060029080519060200190620002db92919062000916565b5073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee92508473ffffffffffffffffffffffffffffffffffffffff166329589f618585878b307a13726987666190aeec798abe93f11d65ee7f3400000000000000006000600460026040518a63ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018881526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818154600181600116156101000203166002900481526020019150805460018160011615610100020316600290048015620004c85780601f106200049c57610100808354040283529160200191620004c8565b820191906000526020600020905b815481529060010190602001808311620004aa57829003601f168201915b505099505050505050505050506020604051808303818588803b158015620004ef57600080fd5b505af115801562000504573d6000803e3d6000fd5b50505050506040513d60208110156200051c57600080fd5b810190808051906020019092919050505091508673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167653861e2053273628ccc8485b2fb3ec92000000000000006040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156200060c57600080fd5b505af115801562000621573d6000803e3d6000fd5b505050506040513d60208110156200063857600080fd5b810190808051906020019092919050505050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a0712d68836040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b158015620006dc57600080fd5b505af1158015620006f1573d6000803e3d6000fd5b505050506040513d60208110156200070857600080fd5b810190808051906020019092919050505050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015620007d857600080fd5b505af1158015620007ed573d6000803e3d6000fd5b505050506040513d60208110156200080457600080fd5b810190808051906020019092919050505090508060088190555081600681905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663182df0f56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015620008ac57600080fd5b505af1158015620008c1573d6000803e3d6000fd5b505050506040513d6020811015620008d857600080fd5b81019080805190602001909291905050506007819055508097505050505050505090565b60008282111515156200090b57fe5b818303905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200095957805160ff19168380011785556200098a565b828001600101855582156200098a579182015b82811115620009895782518255916020019190600101906200096c565b5b5090506200099991906200099d565b5090565b620009c291905b80821115620009be576000816000905550600101620009a4565b5090565b90565b610e3a80620009d56000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631b88094d1461009e5780632db17d68146100f55780634a8c086c146101205780634de6a4051461014b5780635e01eb5a146101765780639de6b6e4146101cd578063a9059cbb146101f8578063dfe9722f1461025d578063f1909985146102b4575b600080fd5b3480156100aa57600080fd5b506100b361030b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561010157600080fd5b5061010a610334565b6040518082815260200191505060405180910390f35b34801561012c57600080fd5b5061013561033e565b6040518082815260200191505060405180910390f35b34801561015757600080fd5b50610160610348565b6040518082815260200191505060405180910390f35b34801561018257600080fd5b5061018b61044c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101d957600080fd5b506101e2610476565b6040518082815260200191505060405180910390f35b34801561020457600080fd5b50610243600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610480565b604051808215151515815260200191505060405180910390f35b34801561026957600080fd5b5061029e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610880565b6040518082815260200191505060405180910390f35b3480156102c057600080fd5b506102f5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c8d565b6040518082815260200191505060405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600754905090565b6000600854905090565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561040857600080fd5b505af115801561041c573d6000803e3d6000fd5b505050506040513d602081101561043257600080fd5b810190808051906020019092919050505090508091505090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600654905090565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415801561052e57506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561053857600080fd5b61054133610880565b90508083111561055057600080fd5b6003548311151561066b57600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561062057600080fd5b505af1158015610634573d6000803e3d6000fd5b505050506040513d602081101561064a57600080fd5b8101908080519060200190929190505050151561066657600080fd5b610777565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561073057600080fd5b505af1158015610744573d6000803e3d6000fd5b505050506040513d602081101561075a57600080fd5b8101908080519060200190929190505050151561077657600080fd5b5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561083457600080fd5b505af1158015610848573d6000803e3d6000fd5b505050506040513d602081101561085e57600080fd5b8101908080519060200190929190505050600381905550600191505092915050565b6000806000806000806000806000806000600754995062989680985061096f89600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663182df0f56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561092657600080fd5b505af115801561093a573d6000803e3d6000fd5b505050506040513d602081101561095057600080fd5b8101908080519060200190929190505050610d6390919063ffffffff16565b97506109848a89610d9690919063ffffffff16565b96506109998988610dd790919063ffffffff16565b95506109c2896109b488600354610d6390919063ffffffff16565b610d9690919063ffffffff16565b94506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610a23576004549350610a8d565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610a83576005549350610a8c565b60009a50610c7e565b5b610ab36064610aa58688610d6390919063ffffffff16565b610d9690919063ffffffff16565b92506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610b2257610b1f83600354610df090919063ffffffff16565b91505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610ba5576008546003541415610ba057610b9983600354610df090919063ffffffff16565b9150610ba4565b8291505b5b610c7882600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663182df0f56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610c2f57600080fd5b505af1158015610c43573d6000803e3d6000fd5b505050506040513d6020811015610c5957600080fd5b8101908080519060200190929190505050610d9690919063ffffffff16565b9050809a505b50505050505050505050919050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cef576004549050610d59565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d4f576005549050610d58565b60009150610d5d565b5b8091505b50919050565b60008082840290506000841480610d845750828482811515610d8157fe5b04145b1515610d8c57fe5b8091505092915050565b600080600083111515610da557fe5b8284811515610db057fe5b0490508284811515610dbe57fe5b068184020184141515610dcd57fe5b8091505092915050565b6000828211151515610de557fe5b818303905092915050565b6000808284019050838110151515610e0457fe5b80915050929150505600a165627a7a72305820345f97fc86ba1033efe05fcb387ad8d4b2889a8d1e9b055cf80fe0ccf44c50340029000000000000000000000000761e688ab19111911e0e35671dade258b6e86993000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000000a

Deployed Bytecode

0x608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631b88094d1461009e5780632db17d68146100f55780634a8c086c146101205780634de6a4051461014b5780635e01eb5a146101765780639de6b6e4146101cd578063a9059cbb146101f8578063dfe9722f1461025d578063f1909985146102b4575b600080fd5b3480156100aa57600080fd5b506100b361030b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561010157600080fd5b5061010a610334565b6040518082815260200191505060405180910390f35b34801561012c57600080fd5b5061013561033e565b6040518082815260200191505060405180910390f35b34801561015757600080fd5b50610160610348565b6040518082815260200191505060405180910390f35b34801561018257600080fd5b5061018b61044c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101d957600080fd5b506101e2610476565b6040518082815260200191505060405180910390f35b34801561020457600080fd5b50610243600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610480565b604051808215151515815260200191505060405180910390f35b34801561026957600080fd5b5061029e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610880565b6040518082815260200191505060405180910390f35b3480156102c057600080fd5b506102f5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c8d565b6040518082815260200191505060405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600754905090565b6000600854905090565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561040857600080fd5b505af115801561041c573d6000803e3d6000fd5b505050506040513d602081101561043257600080fd5b810190808051906020019092919050505090508091505090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600654905090565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415801561052e57506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561053857600080fd5b61054133610880565b90508083111561055057600080fd5b6003548311151561066b57600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561062057600080fd5b505af1158015610634573d6000803e3d6000fd5b505050506040513d602081101561064a57600080fd5b8101908080519060200190929190505050151561066657600080fd5b610777565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561073057600080fd5b505af1158015610744573d6000803e3d6000fd5b505050506040513d602081101561075a57600080fd5b8101908080519060200190929190505050151561077657600080fd5b5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561083457600080fd5b505af1158015610848573d6000803e3d6000fd5b505050506040513d602081101561085e57600080fd5b8101908080519060200190929190505050600381905550600191505092915050565b6000806000806000806000806000806000600754995062989680985061096f89600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663182df0f56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561092657600080fd5b505af115801561093a573d6000803e3d6000fd5b505050506040513d602081101561095057600080fd5b8101908080519060200190929190505050610d6390919063ffffffff16565b97506109848a89610d9690919063ffffffff16565b96506109998988610dd790919063ffffffff16565b95506109c2896109b488600354610d6390919063ffffffff16565b610d9690919063ffffffff16565b94506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610a23576004549350610a8d565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610a83576005549350610a8c565b60009a50610c7e565b5b610ab36064610aa58688610d6390919063ffffffff16565b610d9690919063ffffffff16565b92506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610b2257610b1f83600354610df090919063ffffffff16565b91505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610ba5576008546003541415610ba057610b9983600354610df090919063ffffffff16565b9150610ba4565b8291505b5b610c7882600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663182df0f56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610c2f57600080fd5b505af1158015610c43573d6000803e3d6000fd5b505050506040513d6020811015610c5957600080fd5b8101908080519060200190929190505050610d9690919063ffffffff16565b9050809a505b50505050505050505050919050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cef576004549050610d59565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d4f576005549050610d58565b60009150610d5d565b5b8091505b50919050565b60008082840290506000841480610d845750828482811515610d8157fe5b04145b1515610d8c57fe5b8091505092915050565b600080600083111515610da557fe5b8284811515610db057fe5b0490508284811515610dbe57fe5b068184020184141515610dcd57fe5b8091505092915050565b6000828211151515610de557fe5b818303905092915050565b6000808284019050838110151515610e0457fe5b80915050929150505600a165627a7a72305820345f97fc86ba1033efe05fcb387ad8d4b2889a8d1e9b055cf80fe0ccf44c50340029

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

000000000000000000000000761e688ab19111911e0e35671dade258b6e86993000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : recipient (address): 0x761e688AB19111911e0E35671daDe258b6E86993
Arg [1] : interestRecipient (uint256): 90
Arg [2] : interestSender (uint256): 10

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000761e688ab19111911e0e35671dade258b6e86993
Arg [1] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a


Deployed Bytecode Sourcemap

2943:6835:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3658:5;;;8887:97;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8887:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;8747:116;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8747:116:0;;;;;;;;;;;;;;;;;;;;;;;8494:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8494:118:0;;;;;;;;;;;;;;;;;;;;;;;9623:152;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9623:152:0;;;;;;;;;;;;;;;;;;;;;;;8996:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8996:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;8624:117;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8624:117:0;;;;;;;;;;;;;;;;;;;;;;;4434:855;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4434:855:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6513:1969;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6513:1969:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9099:495;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9099:495:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8887:97;8938:7;8964:12;;;;;;;;;;;8957:19;;8887:97;:::o;8747:116::-;8811:7;8837:18;;8830:25;;8747:116;:::o;8494:118::-;8557:7;8583:21;;8576:28;;8494:118;:::o;9623:152::-;9679:7;9698:18;9719:4;;;;;;;;;;;:14;;;9734:4;9719:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9719:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;9719:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;9719:20:0;;;;;;;;;;;;;;;;9698:41;;9757:10;9750:17;;9623:152;;:::o;8996:91::-;9044:7;9070:9;;;;;;;;;;;9063:16;;8996:91;:::o;8624:117::-;8691:7;8717:16;;8710:23;;8624:117;:::o;4434:855::-;4504:4;4535:24;3419:9;;;;;;;;;;;3405:23;;:10;:23;;;;:53;;;;;3446:12;;;;;;;;;;;3432:26;;:10;:26;;;;3405:53;3401:91;;;3475:5;;;3401:91;4562:28;4579:10;4562:16;:28::i;:::-;4535:55;;4692:15;4683:6;:24;4680:335;;;4745:5;;;4680:335;4812:17;;4802:6;:27;;4799:216;;;4857:4;;;;;;;;;;;:13;;;4871:3;4876:6;4857:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4857:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4857:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4857:26:0;;;;;;;;;;;;;;;;4849:35;;;;;;;;4799:216;;;4972:4;;;;;;;;;;;:13;;;4986:3;4991:6;4972:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4972:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4972:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4972:26:0;;;;;;;;;;;;;;;;4964:35;;;;;;;;4799:216;5211:4;;;;;;;;;;;:14;;;5226:4;5211:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5211:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5211:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;5211:20:0;;;;;;;;;;;;;;;;5191:17;:40;;;;5277:4;5270:11;;4434:855;;;;;:::o;6513:1969::-;6576:7;6905:27;6968:15;7007:27;7105:19;7184:17;7256:27;7363:23;7723:27;7831:17;8347:22;6937:18;;6905:50;;6986:8;6968:26;;7038:41;7068:10;7038:4;;;;;;;;;;;:23;;;:25;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7038:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;7038:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;7038:25:0;;;;;;;;;;;;;;;;:29;;:41;;;;:::i;:::-;7007:72;;7127:44;7151:19;7127;:23;;:44;;;;:::i;:::-;7105:66;;7204:27;7220:10;7204:11;:15;;:27;;;;:::i;:::-;7184:47;;7286:51;7326:10;7286:35;7308:12;7286:17;;:21;;:35;;;;:::i;:::-;:39;;:51;;;;:::i;:::-;7256:81;;7415:12;;;;;;;;;;;7404:23;;:8;:23;;;7401:294;;;7465:20;;7447:38;;7401:294;;;7536:9;;;;;;;;;;;7524:21;;:8;:21;;;7520:175;;;7583:17;;7565:35;;7520:175;;;7678:1;7671:8;;;;7520:175;7401:294;7753:49;7798:3;7753:40;7777:15;7753:19;:23;;:40;;;;:::i;:::-;:44;;:49;;;;:::i;:::-;7723:79;;7891:12;;;;;;;;;;;7880:23;;:8;:23;;;7877:116;;;7935:42;7957:19;7935:17;;:21;;:42;;;;:::i;:::-;7923:54;;7877:116;8021:9;;;;;;;;;;;8010:20;;:8;:20;;;8007:313;;;8074:21;;8053:17;;:42;8050:239;;;8131:42;8153:19;8131:17;;:21;;:42;;;;:::i;:::-;8119:54;;8050:239;;;8250:19;8238:31;;8050:239;8007:313;8372:40;8402:9;8372:4;;;;;;;;;;;:23;;;:25;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8372:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;8372:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;8372:25:0;;;;;;;;;;;;;;;;:29;;:40;;;;:::i;:::-;8347:65;;8448:14;8441:21;;6513:1969;;;;;;;;;;;;;;:::o;9099:495::-;9182:7;9205:23;9257:12;;;;;;;;;;;9246:23;;:8;:23;;;9243:294;;;9307:20;;9289:38;;9243:294;;;9378:9;;;;;;;;;;;9366:21;;:8;:21;;;9362:175;;;9425:17;;9407:35;;9362:175;;;9520:1;9513:8;;;;9362:175;9243:294;9571:15;9564:22;;9099:495;;;;;:::o;1566:151::-;1628:7;1644:9;1660:1;1656;:5;1644:17;;1680:1;1675;:6;:20;;;;1694:1;1689;1685;:5;;;;;;;;:10;1675:20;1668:28;;;;;;1710:1;1703:8;;1566:151;;;;;:::o;1723:268::-;1785:7;1873:9;1812:1;1808;:5;1801:13;;;;;;1889:1;1885;:5;;;;;;;;1873:17;;1921:1;1917;:5;;;;;;;;1913:1;1909;:5;:13;1904:1;:18;1897:26;;;;;;1984:1;1977:8;;1723:268;;;;;:::o;1997:117::-;2059:7;2087:1;2082;:6;;2075:14;;;;;;2107:1;2103;:5;2096:12;;1997:117;;;;:::o;2120:137::-;2182:7;2198:9;2214:1;2210;:5;2198:17;;2234:1;2229;:6;;2222:14;;;;;;2250:1;2243:8;;2120:137;;;;;:::o

Swarm Source

bzzr://345f97fc86ba1033efe05fcb387ad8d4b2889a8d1e9b055cf80fe0ccf44c5034

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.