Contract 0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac9 9

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x65729d7aab8bb4223bc474f810975ca961c5febf110968288d86b46c9bdbbc64Transfer From Wi...365843782022-12-08 16:24:3612 hrs 34 mins ago0xb864250ff5ea1779e4aaf04097d1d5a20da6c107 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.007833010015 106.919234184
0x1f45b32e1760a68ab57378a2d80dff9e7229d2d8cf34261cd314a68b292b43a2Transfer From Wi...365843422022-12-08 16:23:2412 hrs 35 mins ago0xb864250ff5ea1779e4aaf04097d1d5a20da6c107 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.005305657299 94.431917771
0x8277070cadbc77be1b08b766d1e6d171304cb8b02f0ea3047b5f4a8882d1fd65Transfer From Wi...365201492022-12-07 2:39:032 days 2 hrs ago0x89ffac8955fa100d97bc371f667925d8c484bb84 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.003107873708 56.415504152
0xed4de5b274e795feee0a90ee2487c199ec135c9154eb55c533926a61d99de7fbTransfer From Wi...365171392022-12-07 0:53:062 days 4 hrs ago0xaeae4259c9889eeeb6609768d838ec28fb3c6ddc IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.004103626957 50.173335744
0xa46fbe760bb09fda4c88672e91310835f2efd1ec8d8c82eca73ec2d3d8996c6fTransfer From Wi...364579912022-12-05 14:22:483 days 14 hrs ago0x4a03fbde8019d3388e83a78ec6f7b160afb850d4 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002448791227 30.028464206
0xafe567fdc5f4cc261124d42a3b7522506b58d7a611aeca52bb61a03e8c234f9bTransfer From Wi...364230472022-12-04 17:33:064 days 11 hrs ago0xfa0f6da29c63ab5fd100f87d0bbc7e9f4356a1ec IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.003347931905 51.744670185
0x4774e9e1adc99df70e171695c5a97c4707367e0364c7d21863bf137560c3efa4Transfer From Wi...363732282022-12-03 11:46:555 days 17 hrs ago0xfa0f6da29c63ab5fd100f87d0bbc7e9f4356a1ec IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.004066629486 49.713689158
0x2e4748b074d2bcdf412f794f6a24dcb63739923008879f8d83dfbaf0984cb842Transfer From Wi...363461392022-12-02 19:34:026 days 9 hrs ago0xb1d229741797536194f54892cb3aa7545fbf1450 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002800556134 32.213998053
0xdf00a64b16a8083b1e15b0b2232b56ee1686d223558e986c2d88fd345c54ab8bTransfer From Wi...363442402022-12-02 18:23:086 days 10 hrs ago0xa86059823717fe4cc998699044b66be2e4dc67c5 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002657320992 41.070787043
0x9fe1a727ae3a6278caef3dfc6497204caa84f40c153d42b469db9927699cafa5Transfer From Wi...363256192022-12-02 7:02:536 days 21 hrs ago0x1e00d69a0d3308c1207587497d530f99ec38dda5 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002935380539 45.368395231
0xf2e897abe45e29b0c6e125f64d40452e8d9cc537cf68bff5c651de4858844237Transfer From Wi...363255842022-12-02 7:01:436 days 21 hrs ago0x1e00d69a0d3308c1207587497d530f99ec38dda5 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002854553135 44.119150174
0x77e37c1872799e2618523eefbe860164cc375361c587ee48a9aadac67863419cTransfer From Wi...363255352022-12-02 7:00:016 days 21 hrs ago0x1e00d69a0d3308c1207587497d530f99ec38dda5 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.004396980083 45.001228999
0xfa1c95ae206071dfcbc88b2a7f7e00ada678747c3a5f2fcb8b889ad9e7142caaTransfer From Wi...363255102022-12-02 6:59:116 days 21 hrs ago0x1e00d69a0d3308c1207587497d530f99ec38dda5 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.004581942411 46.900000117
0x6e9f40b21df675ae0810ff5d3a7c712586dc5f38b1e7bc7103e16d279e786f9cTransfer From Wi...363251972022-12-02 6:48:256 days 22 hrs ago0x1e00d69a0d3308c1207587497d530f99ec38dda5 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.003738978743 43.137416857
0x35126fcf974d50b2f9969e1d8b577f3c349811dee8f73ea36593499e888bc58bTransfer From Wi...363162982022-12-02 1:37:227 days 3 hrs ago0xb1d229741797536194f54892cb3aa7545fbf1450 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.003743213206 50.991202803
0x35d3ee9531424d97b6fed0c7cac5b9eb05d294cf2093a810dcabf108915702a8Transfer From Wi...363059472022-12-01 19:40:387 days 9 hrs ago0x969aeb1a3cfcd44c8f509e87b845aee66ad15a83 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00421899717 45.410483175
0x46f1305ccd26dfaf9549932b938c3cb39006ac17b038117aabc6b48848fa43fdTransfer From Wi...363057422022-12-01 19:31:587 days 9 hrs ago0x969aeb1a3cfcd44c8f509e87b845aee66ad15a83 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.004561470866 46.690456794
0xdd926395d254be34c0b1dfd74b351569059770c021ca8dc115db6286653fe42dTransfer From Wi...363000242022-12-01 16:09:387 days 12 hrs ago0x1abe1d7d691a9c113e4b3a91e2a931c5b6c02178 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.005310332221 54.355677009
0xc122292445b8e91f64de73d1ce987097129e31ba128700580bac14d43cb39545Transfer From Wi...362913922022-12-01 10:58:457 days 17 hrs ago0xb5d557c628091730bfc2ad305ee527739c3ec66c IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.003551689174 43.070616463
0x1ebb6659af09c7a4060e8540cb10bf30ca60e07e698c85945af1801937abe70aTransfer From Wi...362800562022-12-01 4:20:288 days 38 mins ago0xd4f8385ebb3316003968f4d34e37204af4a67c4a IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002454144204 30.005797898
0x399dc493d5a958657fdd37f4d51d02b9210a1f10ba6a5d88a705b89a3ea1ebf7Transfer From Wi...362798112022-12-01 4:12:068 days 46 mins ago0xd4f8385ebb3316003968f4d34e37204af4a67c4a IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002456731226 30.03302193
0x47db2cf3b77c5a37b6310b10f1197eb56bd8a4a533038700a9ae27a68e14d875Transfer From Wi...362797812022-12-01 4:10:598 days 47 mins ago0xd4f8385ebb3316003968f4d34e37204af4a67c4a IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00253211675 30.954594085
0xf1a33975bd339e5ea97560c896fa47c7857384d9693d7bdeeb285421229bce4aTransfer From Wi...362797492022-12-01 4:09:558 days 48 mins ago0xd4f8385ebb3316003968f4d34e37204af4a67c4a IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002707650912 33.100462247
0x5458697acb347f8aa302f8e8e97d7291011545cedf69af2ba1dbcc2d321c43aaTransfer From Wi...362797212022-12-01 4:08:558 days 49 mins ago0xd4f8385ebb3316003968f4d34e37204af4a67c4a IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002727482301 33.342896803
0x13fd8d185a481db7079cd1c2b08869f708265a49ecbb5a4311ab274fbe9d4b48Transfer From Wi...362796802022-12-01 4:07:338 days 51 mins ago0xd4f8385ebb3316003968f4d34e37204af4a67c4a IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.002568137621 31.394941647
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC20FeeProxy

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : ERC20FeeProxy.sol
pragma solidity ^0.5.0;


/**
 * @title ERC20FeeProxy
 * @notice This contract performs an ERC20 token transfer, with a Fee sent to a third address and stores a reference
 */
contract ERC20FeeProxy {
  // Event to declare a transfer with a reference
  event TransferWithReferenceAndFee(
    address tokenAddress,
    address to,
    uint256 amount,
    bytes indexed paymentReference,
    uint256 feeAmount,
    address feeAddress
  );

  // Fallback function returns funds to the sender
  function() external payable {
    revert("not payable fallback");
  }

  /**
    * @notice Performs a ERC20 token transfer with a reference and a transfer to a second address for the payment of a fee
    * @param _tokenAddress Address of the ERC20 token smart contract
    * @param _to Transfer recipient
    * @param _amount Amount to transfer
    * @param _paymentReference Reference of the payment related
    * @param _feeAmount The amount of the payment fee
    * @param _feeAddress The fee recipient
    */
  function transferFromWithReferenceAndFee(
    address _tokenAddress,
    address _to,
    uint256 _amount,
    bytes calldata _paymentReference,
    uint256 _feeAmount,
    address _feeAddress
    ) external
    {
    require(safeTransferFrom(_tokenAddress, _to, _amount), "payment transferFrom() failed");
    if (_feeAmount > 0 && _feeAddress != address(0)) {
      require(safeTransferFrom(_tokenAddress, _feeAddress, _feeAmount), "fee transferFrom() failed");
    }
    emit TransferWithReferenceAndFee(
      _tokenAddress,
      _to,
      _amount,
      _paymentReference,
      _feeAmount,
      _feeAddress
    );
  }

  /**
   * @notice Call transferFrom ERC20 function and validates the return data of a ERC20 contract call.
   * @dev This is necessary because of non-standard ERC20 tokens that don't have a return value.
   * @return The return value of the ERC20 call, returning true for non-standard tokens
   */
  function safeTransferFrom(address _tokenAddress, address _to, uint256 _amount) internal returns (bool result) {
    /* solium-disable security/no-inline-assembly */
    // check if the address is a contract
    assembly {
      if iszero(extcodesize(_tokenAddress)) { revert(0, 0) }
    }
    
    // solium-disable-next-line security/no-low-level-calls
    (bool success, ) = _tokenAddress.call(abi.encodeWithSignature(
      "transferFrom(address,address,uint256)",
      msg.sender,
      _to,
      _amount
    ));

    assembly {
        switch returndatasize()
        case 0 { // not a standard erc20
            result := 1
        }
        case 32 { // standard erc20
            returndatacopy(0, 0, 32)
            result := mload(0)
        }
        default { // anything else, should revert for safety
            revert(0, 0)
        }
    }

    require(success, "transferFrom() has been reverted");

    /* solium-enable security/no-inline-assembly */
    return result;
  }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bytes","name":"paymentReference","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"feeAddress","type":"address"}],"name":"TransferWithReferenceAndFee","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_paymentReference","type":"bytes"},{"internalType":"uint256","name":"_feeAmount","type":"uint256"},{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"transferFromWithReferenceAndFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061065f806100206000396000f3fe60806040526004361061001e5760003560e01c8063c219a14d1461008c575b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f6e6f742070617961626c652066616c6c6261636b00000000000000000000000081525060200191505060405180910390fd5b34801561009857600080fd5b50610184600480360360c08110156100af57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561011657600080fd5b82018360208201111561012857600080fd5b8035906020019184600183028401116401000000008311171561014a57600080fd5b909192939192939080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610186565b005b6101918787876103c6565b610203576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f7061796d656e74207472616e7366657246726f6d2829206661696c656400000081525060200191505060405180910390fd5b6000821180156102405750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b156102c3576102508782846103c6565b6102c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f666565207472616e7366657246726f6d2829206661696c65640000000000000081525060200191505060405180910390fd5b5b838360405180838380828437808301925050509250505060405180910390207f9f16cbcc523c67a60c450e5ffe4f3b7b6dbe772e7abcadb2686ce029a9a0a2b68888888686604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019550505050505060405180910390a250505050505050565b6000833b6103d357600080fd5b60008473ffffffffffffffffffffffffffffffffffffffff16338585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506040516020818303038152906040527f23b872dd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b6020831061051557805182526020820191506020810190506020830392506104f2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610577576040519150601f19603f3d011682016040523d82523d6000602084013e61057c565b606091505b505090503d60008114610596576020811461059f57600080fd5b600192506105ab565b60206000803e60005192505b508061061f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f7472616e7366657246726f6d282920686173206265656e20726576657274656481525060200191505060405180910390fd5b81915050939250505056fea265627a7a7231582089cdf8d431ab30ff8aab66ffa1e078473aba984faa249d4e38325a2fabd3968f64736f6c63430005110032

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.