Contract 0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac9 3

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7ec6a374b2071a0e5595e6cd674d6b9cef40d14b243421d4fbf31aff6188e4c4Transfer From Wi...202077632021-10-14 11:23:457 days 18 hrs ago0x8d35bd9cab090af815d872e75d02d77ce826e481 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00194508
0x03158733a020c524330a8b7a7d7188328b88fee9e11d798bcfc6ee8ca3dbfa94Transfer From Wi...202069342021-10-14 10:50:567 days 18 hrs ago0x8d35bd9cab090af815d872e75d02d77ce826e481 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.0000901164
0x878a5557b9cf251370acdc81f41ddea2335fb95d4d0331a488710b991d1c6798Transfer From Wi...199096502021-10-06 14:11:1615 days 15 hrs ago0x9dbac64b64024a1c7accb76c847f8ae8c0e12659 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00208908
0xd8eba09f3b0751f4410afa60922e1424581f6e175a3ec14c7f36cdc8e71f7949Transfer From Wi...198307942021-10-04 11:17:3317 days 18 hrs ago0x8d35bd9cab090af815d872e75d02d77ce826e481 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000211201653
0x37286c8c765d27f5e40c9e2b6124d58bb05fe7d6730bacf02c07144d22647219Transfer From Wi...198255752021-10-04 7:52:3917 days 21 hrs ago0x8d35bd9cab090af815d872e75d02d77ce826e481 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00021427
0xf23ebc36b81aac3cc0ffe5e29bc2475e698dc739b40eae2be3d9d6f5f7e55f04Transfer From Wi...197265592021-10-01 17:32:2320 days 12 hrs ago0x75e10f8fa325ed8a0f7cd92ab959427d2430675f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000075347475
0x9d238c31832faccb4e55dac56386e4bdb898a4b19daa246322634d3557cfd058Transfer From Wi...197263312021-10-01 17:24:3120 days 12 hrs ago0x4fb08458199e80de9d8f39439d54e26d5f91e6db IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00024407901
0x2fa645cf034ce8d614223e1e7811c7a9f05db561063f41c17d41d619a0b73603Transfer From Wi...193887112021-09-22 15:37:3929 days 14 hrs ago0x8d35bd9cab090af815d872e75d02d77ce826e481 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00046077
0x4681d1c7b5de01aeac6bd75b39a8a5f7381f46b95b0b9fbd3e7070504cb707a4Transfer From Wi...193390762021-09-21 6:28:4430 days 23 hrs ago0x8d35bd9cab090af815d872e75d02d77ce826e481 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00009140184
0x27096cbbacafa94ae6c3cad47d46b122585de36626a14113680807211dcabfb2Transfer From Wi...192347172021-09-18 9:44:0333 days 20 hrs ago0x9dbac64b64024a1c7accb76c847f8ae8c0e12659 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000177958881
0x4d8c91f5d96abff4a35533c581b465ac6abf7e052f801aafe759cb9ff5b0778dTransfer From Wi...191552992021-09-16 1:42:4136 days 4 hrs ago0x4fb08458199e80de9d8f39439d54e26d5f91e6db IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.00073397
0x88862d70bc387d238997fb78d7baabf15068e0d5abcd6e8658fb683f06e2ded5Transfer From Wi...190908512021-09-14 8:15:2637 days 21 hrs ago0x75e10f8fa325ed8a0f7cd92ab959427d2430675f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000366985
0xb00a823cb5dc4e6c75a0af92db1268d16dc7411f00aaaa4f5f9df07b7ee2378dTransfer From Wi...188658452021-09-08 1:07:2144 days 4 hrs ago0x75e10f8fa325ed8a0f7cd92ab959427d2430675f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000168891
0x139e6f4fc0b62a9172cc751000a6904a857ec15779f1e95fd3487f629bd07933Transfer From Wi...186835262021-09-03 1:21:2549 days 4 hrs ago0x75e10f8fa325ed8a0f7cd92ab959427d2430675f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000168855
0xf26e211b988afacbac7eaeaf8fb41a6629243afa721f1a16fe8a41af4053d47fTransfer From Wi...186811942021-09-02 23:54:3449 days 5 hrs ago0x4fb08458199e80de9d8f39439d54e26d5f91e6db IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000146091
0x291760fe1915bb6e211f05995e5289f5facea82c057feefc02abf81617d2c811Transfer From Wi...185805382021-08-31 6:23:5851 days 23 hrs ago0x4fb08458199e80de9d8f39439d54e26d5f91e6db IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000168891
0x23803d5a54317a6101e565b8594a54891910b1ce87092916daa656871273cceeTransfer From Wi...185728682021-08-31 1:14:2352 days 4 hrs ago0x75e10f8fa325ed8a0f7cd92ab959427d2430675f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000168927
0x9307ecb4bc084addfd7b4e866423cd457cbc4610f983af67d0bf568c83220d00Transfer From Wi...184071492021-08-26 6:55:2056 days 22 hrs ago0x75e10f8fa325ed8a0f7cd92ab959427d2430675f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000260736
0xb35f84e27b3290cc4f5fb662c26e50cd5f48750bd0b13d0c5d3913dcad9cbc74Transfer From Wi...183925232021-08-25 20:40:2257 days 9 hrs ago0x88642a6c578132dc5934be1c7bb76d8fe6b38a7f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000168891
0xbd4eeaa56e598b8d777376809942370fa547e6744bdbb05a2a8955c43288d3b1Transfer From Wi...183882232021-08-25 17:32:4357 days 12 hrs ago0x88642a6c578132dc5934be1c7bb76d8fe6b38a7f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000168927
0x644675260fe54437204ec8ff780a4abf4c224def175a82153b824c290631f631Transfer From Wi...183744922021-08-25 8:09:1957 days 21 hrs ago0x88642a6c578132dc5934be1c7bb76d8fe6b38a7f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.0002422497
0x0a9931400c38fc5e49a256aa170e7814401b4c4fadea2eae8c0ffc32752eede9Transfer From Wi...183735472021-08-25 7:22:3957 days 22 hrs ago0x88642a6c578132dc5934be1c7bb76d8fe6b38a7f IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000146127
0xfa41a5ef9444da2787f249a6e85965ed7dd370dcb8a4bd3f07aa957f1d75f490Transfer From Wi...177907792021-08-09 11:18:1773 days 18 hrs ago0x8d35bd9cab090af815d872e75d02d77ce826e481 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000194436
0x670f9c9e61b3ecdafbf1a9b2a9ef4d2ffd6e3a00b50c5e4a1d1b14afa4c132beTransfer From Wi...176424312021-08-05 9:15:1777 days 20 hrs ago0x4e64c2d06d19d13061e62e291b2c4e9fe5679b93 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000221352
0x808bbe140e566597dca7dc2489c7c75f21e3c2d5944a43021034b9014f952ab1Transfer From Wi...176209332021-08-04 18:17:3678 days 11 hrs ago0x4e64c2d06d19d13061e62e291b2c4e9fe5679b93 IN  0x0dfbee143b42b41efc5a6f87bfd1ffc78c2f0ac90 MATIC0.000221352
[ 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.