ETH Price: $3,468.71 (+2.98%)

Contract

0x899F9a0440fACe1397A1eE1e3F6bF3580a6633d1
 
Transaction Hash
Method
Block
From
To
Redeem Tokens134405102021-10-18 7:36:281163 days ago1634542588IN
0x899F9a04...80a6633d1
0 ETH0.0023916852.00098284
Redeem Tokens119674092021-03-03 20:16:331392 days ago1614802593IN
0x899F9a04...80a6633d1
0 ETH0.00458862125
Redeem Tokens118249382021-02-09 22:19:401414 days ago1612909180IN
0x899F9a04...80a6633d1
0 ETH0.00504954180
Redeem Tokens81055032019-07-07 17:28:161997 days ago1562520496IN
0x899F9a04...80a6633d1
0 ETH0.012
Redeem Tokens53489142018-03-30 12:38:402461 days ago1522413520IN
0x899F9a04...80a6633d1
0 ETH0.000074932
Redeem Tokens51107452018-02-18 4:57:042501 days ago1518929824IN
0x899F9a04...80a6633d1
0 ETH0.0010768641
Redeem Tokens50613882018-02-09 22:13:442510 days ago1518214424IN
0x899F9a04...80a6633d1
0 ETH0.000037521
Redeem Tokens50611462018-02-09 21:18:052510 days ago1518211085IN
0x899F9a04...80a6633d1
0 ETH0.000052461
Redeem Tokens47749802017-12-22 5:10:082559 days ago1513919408IN
0x899F9a04...80a6633d1
0 ETH0.0006321
Redeem Tokens47744782017-12-22 3:02:432559 days ago1513911763IN
0x899F9a04...80a6633d1
0 ETH0.0006321
Redeem Tokens47744132017-12-22 2:47:442559 days ago1513910864IN
0x899F9a04...80a6633d1
0 ETH0.0006321
Redeem Tokens47743812017-12-22 2:39:462559 days ago1513910386IN
0x899F9a04...80a6633d1
0 ETH0.0006321
Redeem Tokens47743752017-12-22 2:38:232559 days ago1513910303IN
0x899F9a04...80a6633d1
0 ETH0.0006321
Redeem Tokens47743632017-12-22 2:36:062559 days ago1513910166IN
0x899F9a04...80a6633d1
0 ETH0.0006321
Redeem Tokens47743502017-12-22 2:32:202559 days ago1513909940IN
0x899F9a04...80a6633d1
0 ETH0.0006321
Redeem Tokens47743302017-12-22 2:26:372560 days ago1513909597IN
0x899F9a04...80a6633d1
0 ETH0.0010521
Redeem Tokens47743082017-12-22 2:20:152560 days ago1513909215IN
0x899F9a04...80a6633d1
0 ETH0.0010521
Redeem Tokens47742792017-12-22 2:15:052560 days ago1513908905IN
0x899F9a04...80a6633d1
0 ETH0.0006321
Redeem Tokens47519552017-12-18 2:56:252563 days ago1513565785IN
0x899F9a04...80a6633d1
0 ETH0.0005508921
Redeem Tokens47509882017-12-17 23:03:012564 days ago1513551781IN
0x899F9a04...80a6633d1
0 ETH0.0005515621
Redeem Tokens47478092017-12-17 9:38:172564 days ago1513503497IN
0x899F9a04...80a6633d1
0 ETH0.0005508921
Redeem Tokens47332992017-12-14 21:36:052567 days ago1513287365IN
0x899F9a04...80a6633d1
0 ETH0.0005508921
Redeem Tokens47272752017-12-13 20:06:522568 days ago1513195612IN
0x899F9a04...80a6633d1
0 ETH0.0007879530
Redeem Tokens47131192017-12-11 8:36:062570 days ago1512981366IN
0x899F9a04...80a6633d1
0 ETH0.0005515621
Redeem Tokens46581922017-12-01 20:36:242580 days ago1512160584IN
0x899F9a04...80a6633d1
0 ETH0.0011653831
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
134405102021-10-18 7:36:281163 days ago1634542588
0x899F9a04...80a6633d1
0.16224066 ETH
118249382021-02-09 22:19:401414 days ago1612909180
0x899F9a04...80a6633d1
6.00082987 ETH
53489142018-03-30 12:38:402461 days ago1522413520
0x899F9a04...80a6633d1
0.3 ETH
51107452018-02-18 4:57:042501 days ago1518929824
0x899F9a04...80a6633d1
3.00041493 ETH
50613882018-02-09 22:13:442510 days ago1518214424
0x899F9a04...80a6633d1
0.00070744 ETH
50611462018-02-09 21:18:052510 days ago1518211085
0x899F9a04...80a6633d1
0.00000075 ETH
47519552017-12-18 2:56:252563 days ago1513565785
0x899F9a04...80a6633d1
0.40041493 ETH
47509882017-12-17 23:03:012564 days ago1513551781
0x899F9a04...80a6633d1
3.00041493 ETH
47478092017-12-17 9:38:172564 days ago1513503497
0x899F9a04...80a6633d1
1.00041493 ETH
47332992017-12-14 21:36:052567 days ago1513287365
0x899F9a04...80a6633d1
0.99045643 ETH
47272752017-12-13 20:06:522568 days ago1513195612
0x899F9a04...80a6633d1
3.00041493 ETH
47131192017-12-11 8:36:062570 days ago1512981366
0x899F9a04...80a6633d1
3.00041493 ETH
46581922017-12-01 20:36:242580 days ago1512160584
0x899F9a04...80a6633d1
0.59999999 ETH
46578632017-12-01 19:16:592580 days ago1512155819
0x899F9a04...80a6633d1
1.00041493 ETH
46557402017-12-01 11:03:102580 days ago1512126190
0x899F9a04...80a6633d1
2.54024896 ETH
45472442017-11-13 21:37:582598 days ago1510609078
0x899F9a04...80a6633d1
1.00041493 ETH
45391462017-11-12 14:14:582599 days ago1510496098
0x899F9a04...80a6633d1
1.00041493 ETH
45373672017-11-12 7:24:012599 days ago1510471441
0x899F9a04...80a6633d1
1.00041493 ETH
45257082017-11-10 11:00:232601 days ago1510311623
0x899F9a04...80a6633d1
0.08892116 ETH
45247822017-11-10 7:28:332601 days ago1510298913
0x899F9a04...80a6633d1
2.50041493 ETH
44961552017-11-05 16:48:582606 days ago1509900538
0x899F9a04...80a6633d1
1.00082987 ETH
44919812017-11-05 1:01:342607 days ago1509843694
0x899F9a04...80a6633d1
3.50041493 ETH
44895412017-11-04 15:35:262607 days ago1509809726
0x899F9a04...80a6633d1
0.50041493 ETH
44833192017-11-03 15:40:532608 days ago1509723653
0x899F9a04...80a6633d1
1.00041493 ETH
44642712017-10-31 13:38:152611 days ago1509457095
0x899F9a04...80a6633d1
0.06639004 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RedemptionContract

Compiler Version
v0.4.11+commit.68ef5810

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-09-08
*/

pragma solidity ^0.4.9;

contract Token {
  function transferFrom(address from, address to, uint256 value) returns (bool success);
}

contract RedemptionContract {
  address public funder;        // the account able to fund with ETH
  address public token;         // the token address
  uint public exchangeRate;     // number of tokens per ETH

  event Redemption(address redeemer, uint tokensDeposited, uint redemptionAmount);

  function RedemptionContract(address _token, uint _exchangeRate) {
    funder = msg.sender;
    token = _token;
    exchangeRate = _exchangeRate;
  }

  function () payable {
    require(msg.sender == funder);
  }

  function redeemTokens(uint amount) {
    // NOTE: redeemTokens will only work once the sender has approved 
    // the RedemptionContract address for the deposit amount 
    require(Token(token).transferFrom(msg.sender, this, amount));
    
    uint redemptionValue = amount / exchangeRate; 
    
    msg.sender.transfer(redemptionValue);
    
    Redemption(msg.sender, amount, redemptionValue);
  }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"funder","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"exchangeRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"redeemTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_exchangeRate","type":"uint256"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"redeemer","type":"address"},{"indexed":false,"name":"tokensDeposited","type":"uint256"},{"indexed":false,"name":"redemptionAmount","type":"uint256"}],"name":"Redemption","type":"event"}]

6060604052341561000c57fe5b6040516040806102fc8339810160405280516020909101515b60008054600160a060020a03338116600160a060020a031992831617909255600180549285169290911691909117905560028190555b50505b61028f8061006d6000396000f3006060604052361561005f5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663041ae88081146100845780633ba0b9a9146100b0578063a6e158f8146100d2578063fc0c546a146100e7575b6100825b60005433600160a060020a0390811691161461007f5760006000fd5b5b565b005b341561008c57fe5b610094610113565b60408051600160a060020a039092168252519081900360200190f35b34156100b857fe5b6100c0610122565b60408051918252519081900360200190f35b34156100da57fe5b610082600435610128565b005b34156100ef57fe5b610094610254565b60408051600160a060020a039092168252519081900360200190f35b600054600160a060020a031681565b60025481565b600154604080516000602091820181905282517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a0333811660048301523081166024830152604482018790529351919493909316926323b872dd92606480830193919282900301818787803b15156101a557fe5b6102c65a03f115156101b357fe5b505060405151151590506101c75760006000fd5b600254828115156101d457fe5b6040519190049150600160a060020a0333169082156108fc029083906000818181858888f19350505050151561020657fe5b60408051600160a060020a03331681526020810184905280820183905290517feebddeddf4ae1ee54a48517af27958e7666d69c7ba2e3e7c2b0ff87ef5f4491e9181900360600190a15b5050565b600154600160a060020a0316815600a165627a7a723058205be160f2e24647e617ea81db0acd29bf3c294b739d65128111be97e3d632abd6002900000000000000000000000002b9806a64cb05f02aa8dcc1c178b88159a61304000000000000000000000000000000000000000000000000000000000000096a

Deployed Bytecode

0x6060604052361561005f5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663041ae88081146100845780633ba0b9a9146100b0578063a6e158f8146100d2578063fc0c546a146100e7575b6100825b60005433600160a060020a0390811691161461007f5760006000fd5b5b565b005b341561008c57fe5b610094610113565b60408051600160a060020a039092168252519081900360200190f35b34156100b857fe5b6100c0610122565b60408051918252519081900360200190f35b34156100da57fe5b610082600435610128565b005b34156100ef57fe5b610094610254565b60408051600160a060020a039092168252519081900360200190f35b600054600160a060020a031681565b60025481565b600154604080516000602091820181905282517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a0333811660048301523081166024830152604482018790529351919493909316926323b872dd92606480830193919282900301818787803b15156101a557fe5b6102c65a03f115156101b357fe5b505060405151151590506101c75760006000fd5b600254828115156101d457fe5b6040519190049150600160a060020a0333169082156108fc029083906000818181858888f19350505050151561020657fe5b60408051600160a060020a03331681526020810184905280820183905290517feebddeddf4ae1ee54a48517af27958e7666d69c7ba2e3e7c2b0ff87ef5f4491e9181900360600190a15b5050565b600154600160a060020a0316815600a165627a7a723058205be160f2e24647e617ea81db0acd29bf3c294b739d65128111be97e3d632abd60029

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

00000000000000000000000002b9806a64cb05f02aa8dcc1c178b88159a61304000000000000000000000000000000000000000000000000000000000000096a

-----Decoded View---------------
Arg [0] : _token (address): 0x02B9806a64cB05F02AA8dcc1C178b88159A61304
Arg [1] : _exchangeRate (uint256): 2410

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000002b9806a64cb05f02aa8dcc1c178b88159a61304
Arg [1] : 000000000000000000000000000000000000000000000000000000000000096a


Swarm Source

bzzr://5be160f2e24647e617ea81db0acd29bf3c294b739d65128111be97e3d632abd6

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.