ETH Price: $3,492.41 (+0.89%)
Gas: 9 Gwei

Contract

0x0fd54214013F45285E92583632E1124d4dAA049D
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60c06040161678362022-12-12 9:48:47582 days ago1670838527IN
 Create: DePayRouterV1PaymentFeeEvent01
0 ETH0.0104318723.19750915

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DePayRouterV1PaymentFeeEvent01

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-12-12
*/

// Root file: contracts/DePayRouterV1PaymentFeeEvent01.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.8.6 <0.9.0;
pragma abicoder v2;

contract DePayRouterV1PaymentFeeEvent01 {

  // The fee event.
  event Fee(
    address indexed sender,
    address payable indexed receiver,
    uint256 indexed amount,
    address token
  );

  // Indicates that this plugin does not require delegate call
  bool public immutable delegate = false;
  
  // Address of the router to make sure nobody else 
  // can call the payment event
  address public immutable router;

  // Pass the DePayRouterV1 address to make sure
  // only the original router can call this plugin.
  constructor (
    address _router
  ) {
    router = _router;
  }

  function execute(
    address[] calldata path,
    uint[] calldata amounts,
    address[] calldata addresses,
    string[] calldata data
  ) external payable returns(bool) {
    require(msg.sender == router, 'Only the DePayRouterV1 can call this plugin!');
    emit Fee(
      addresses[0], // sender
      payable(addresses[addresses.length-2]), // fee receiver
      amounts[4], // fee amount
      path[path.length-1] // token
    );
    return true;
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address payable","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"Fee","type":"event"},{"inputs":[],"name":"delegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"string[]","name":"data","type":"string[]"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405260001515608090151560f81b81525034801561001f57600080fd5b5060405161085e38038061085e83398181016040528101906100419190610093565b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250505061010e565b60008151905061008d816100f7565b92915050565b6000602082840312156100a9576100a86100f2565b5b60006100b78482850161007e565b91505092915050565b60006100cb826100d2565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b610100816100c0565b811461010b57600080fd5b50565b60805160f81c60a05160601c61071f61013f6000396000818160c3015261029901526000610275015261071f6000f3fe6080604052600436106100345760003560e01c8063b869495914610039578063c89e436114610069578063f887ea4014610094575b600080fd5b610053600480360381019061004e91906103ff565b6100bf565b6040516100609190610544565b60405180910390f35b34801561007557600080fd5b5061007e610273565b60405161008b9190610544565b60405180910390f35b3480156100a057600080fd5b506100a9610297565b6040516100b69190610529565b60405180910390f35b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461014f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101469061055f565b60405180910390fd5b868660048181106101635761016261063b565b5b90506020020135858560028888905061017c9190610590565b81811061018c5761018b61063b565b5b90506020020160208101906101a191906103d2565b73ffffffffffffffffffffffffffffffffffffffff16868660008181106101cb576101ca61063b565b5b90506020020160208101906101e091906103d2565b73ffffffffffffffffffffffffffffffffffffffff167fcc2b4c909cb6c2fe7b330ca20be67cd3499c504605467bfaa5059280aeb49f298c8c60018f8f90506102299190610590565b8181106102395761023861063b565b5b905060200201602081019061024e91906103d2565b60405161025b9190610529565b60405180910390a46001905098975050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000813590506102ca816106d2565b92915050565b60008083601f8401126102e6576102e561066f565b5b8235905067ffffffffffffffff8111156103035761030261066a565b5b60208301915083602082028301111561031f5761031e610674565b5b9250929050565b60008083601f84011261033c5761033b61066f565b5b8235905067ffffffffffffffff8111156103595761035861066a565b5b60208301915083602082028301111561037557610374610674565b5b9250929050565b60008083601f8401126103925761039161066f565b5b8235905067ffffffffffffffff8111156103af576103ae61066a565b5b6020830191508360208202830111156103cb576103ca610674565b5b9250929050565b6000602082840312156103e8576103e761067e565b5b60006103f6848285016102bb565b91505092915050565b6000806000806000806000806080898b03121561041f5761041e61067e565b5b600089013567ffffffffffffffff81111561043d5761043c610679565b5b6104498b828c016102d0565b9850985050602089013567ffffffffffffffff81111561046c5761046b610679565b5b6104788b828c0161037c565b9650965050604089013567ffffffffffffffff81111561049b5761049a610679565b5b6104a78b828c016102d0565b9450945050606089013567ffffffffffffffff8111156104ca576104c9610679565b5b6104d68b828c01610326565b92509250509295985092959890939650565b6104f1816105c4565b82525050565b610500816105d6565b82525050565b6000610513602c8361057f565b915061051e82610683565b604082019050919050565b600060208201905061053e60008301846104e8565b92915050565b600060208201905061055960008301846104f7565b92915050565b6000602082019050818103600083015261057881610506565b9050919050565b600082825260208201905092915050565b600061059b82610602565b91506105a683610602565b9250828210156105b9576105b861060c565b5b828203905092915050565b60006105cf826105e2565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b7f4f6e6c7920746865204465506179526f7574657256312063616e2063616c6c2060008201527f7468697320706c7567696e210000000000000000000000000000000000000000602082015250565b6106db816105c4565b81146106e657600080fd5b5056fea264697066735822122022704323d81400278df65aa703230e18604c48635a5ac46386c4762f9982d09164736f6c63430008070033000000000000000000000000ae60ac8e69414c2dc362d0e6a03af643d1d85b92

Deployed Bytecode

0x6080604052600436106100345760003560e01c8063b869495914610039578063c89e436114610069578063f887ea4014610094575b600080fd5b610053600480360381019061004e91906103ff565b6100bf565b6040516100609190610544565b60405180910390f35b34801561007557600080fd5b5061007e610273565b60405161008b9190610544565b60405180910390f35b3480156100a057600080fd5b506100a9610297565b6040516100b69190610529565b60405180910390f35b60007f000000000000000000000000ae60ac8e69414c2dc362d0e6a03af643d1d85b9273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461014f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101469061055f565b60405180910390fd5b868660048181106101635761016261063b565b5b90506020020135858560028888905061017c9190610590565b81811061018c5761018b61063b565b5b90506020020160208101906101a191906103d2565b73ffffffffffffffffffffffffffffffffffffffff16868660008181106101cb576101ca61063b565b5b90506020020160208101906101e091906103d2565b73ffffffffffffffffffffffffffffffffffffffff167fcc2b4c909cb6c2fe7b330ca20be67cd3499c504605467bfaa5059280aeb49f298c8c60018f8f90506102299190610590565b8181106102395761023861063b565b5b905060200201602081019061024e91906103d2565b60405161025b9190610529565b60405180910390a46001905098975050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000ae60ac8e69414c2dc362d0e6a03af643d1d85b9281565b6000813590506102ca816106d2565b92915050565b60008083601f8401126102e6576102e561066f565b5b8235905067ffffffffffffffff8111156103035761030261066a565b5b60208301915083602082028301111561031f5761031e610674565b5b9250929050565b60008083601f84011261033c5761033b61066f565b5b8235905067ffffffffffffffff8111156103595761035861066a565b5b60208301915083602082028301111561037557610374610674565b5b9250929050565b60008083601f8401126103925761039161066f565b5b8235905067ffffffffffffffff8111156103af576103ae61066a565b5b6020830191508360208202830111156103cb576103ca610674565b5b9250929050565b6000602082840312156103e8576103e761067e565b5b60006103f6848285016102bb565b91505092915050565b6000806000806000806000806080898b03121561041f5761041e61067e565b5b600089013567ffffffffffffffff81111561043d5761043c610679565b5b6104498b828c016102d0565b9850985050602089013567ffffffffffffffff81111561046c5761046b610679565b5b6104788b828c0161037c565b9650965050604089013567ffffffffffffffff81111561049b5761049a610679565b5b6104a78b828c016102d0565b9450945050606089013567ffffffffffffffff8111156104ca576104c9610679565b5b6104d68b828c01610326565b92509250509295985092959890939650565b6104f1816105c4565b82525050565b610500816105d6565b82525050565b6000610513602c8361057f565b915061051e82610683565b604082019050919050565b600060208201905061053e60008301846104e8565b92915050565b600060208201905061055960008301846104f7565b92915050565b6000602082019050818103600083015261057881610506565b9050919050565b600082825260208201905092915050565b600061059b82610602565b91506105a683610602565b9250828210156105b9576105b861060c565b5b828203905092915050565b60006105cf826105e2565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b7f4f6e6c7920746865204465506179526f7574657256312063616e2063616c6c2060008201527f7468697320706c7567696e210000000000000000000000000000000000000000602082015250565b6106db816105c4565b81146106e657600080fd5b5056fea264697066735822122022704323d81400278df65aa703230e18604c48635a5ac46386c4762f9982d09164736f6c63430008070033

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

000000000000000000000000ae60ac8e69414c2dc362d0e6a03af643d1d85b92

-----Decoded View---------------
Arg [0] : _router (address): 0xae60aC8e69414C2Dc362D0e6a03af643d1D85b92

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ae60ac8e69414c2dc362d0e6a03af643d1d85b92


Deployed Bytecode Sourcemap

153:1094:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;773:471;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;423:38;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;557:31;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;773:471;944:4;979:6;965:20;;:10;:20;;;957:77;;;;;;;;;;;;:::i;:::-;;;;;;;;;1152:7;;1160:1;1152:10;;;;;;;:::i;:::-;;;;;;;;1097:9;;1124:1;1107:9;;:16;;:18;;;;:::i;:::-;1097:29;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;1046:174;;1058:9;;1068:1;1058:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;1046:174;;;1185:4;;1202:1;1190:4;;:11;;:13;;;;:::i;:::-;1185:19;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;1046:174;;;;;;:::i;:::-;;;;;;;;1234:4;1227:11;;773:471;;;;;;;;;;:::o;423:38::-;;;:::o;557:31::-;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;7:139;;;;:::o;169:568::-;242:8;252:6;302:3;295:4;287:6;283:17;279:27;269:122;;310:79;;:::i;:::-;269:122;423:6;410:20;400:30;;453:18;445:6;442:30;439:117;;;475:79;;:::i;:::-;439:117;589:4;581:6;577:17;565:29;;643:3;635:4;627:6;623:17;613:8;609:32;606:41;603:128;;;650:79;;:::i;:::-;603:128;169:568;;;;;:::o;759:580::-;844:8;854:6;904:3;897:4;889:6;885:17;881:27;871:122;;912:79;;:::i;:::-;871:122;1025:6;1012:20;1002:30;;1055:18;1047:6;1044:30;1041:117;;;1077:79;;:::i;:::-;1041:117;1191:4;1183:6;1179:17;1167:29;;1245:3;1237:4;1229:6;1225:17;1215:8;1211:32;1208:41;1205:128;;;1252:79;;:::i;:::-;1205:128;759:580;;;;;:::o;1362:568::-;1435:8;1445:6;1495:3;1488:4;1480:6;1476:17;1472:27;1462:122;;1503:79;;:::i;:::-;1462:122;1616:6;1603:20;1593:30;;1646:18;1638:6;1635:30;1632:117;;;1668:79;;:::i;:::-;1632:117;1782:4;1774:6;1770:17;1758:29;;1836:3;1828:4;1820:6;1816:17;1806:8;1802:32;1799:41;1796:128;;;1843:79;;:::i;:::-;1796:128;1362:568;;;;;:::o;1936:329::-;1995:6;2044:2;2032:9;2023:7;2019:23;2015:32;2012:119;;;2050:79;;:::i;:::-;2012:119;2170:1;2195:53;2240:7;2231:6;2220:9;2216:22;2195:53;:::i;:::-;2185:63;;2141:117;1936:329;;;;:::o;2271:1709::-;2477:6;2485;2493;2501;2509;2517;2525;2533;2582:3;2570:9;2561:7;2557:23;2553:33;2550:120;;;2589:79;;:::i;:::-;2550:120;2737:1;2726:9;2722:17;2709:31;2767:18;2759:6;2756:30;2753:117;;;2789:79;;:::i;:::-;2753:117;2902:80;2974:7;2965:6;2954:9;2950:22;2902:80;:::i;:::-;2884:98;;;;2680:312;3059:2;3048:9;3044:18;3031:32;3090:18;3082:6;3079:30;3076:117;;;3112:79;;:::i;:::-;3076:117;3225:80;3297:7;3288:6;3277:9;3273:22;3225:80;:::i;:::-;3207:98;;;;3002:313;3382:2;3371:9;3367:18;3354:32;3413:18;3405:6;3402:30;3399:117;;;3435:79;;:::i;:::-;3399:117;3548:80;3620:7;3611:6;3600:9;3596:22;3548:80;:::i;:::-;3530:98;;;;3325:313;3705:2;3694:9;3690:18;3677:32;3736:18;3728:6;3725:30;3722:117;;;3758:79;;:::i;:::-;3722:117;3871:92;3955:7;3946:6;3935:9;3931:22;3871:92;:::i;:::-;3853:110;;;;3648:325;2271:1709;;;;;;;;;;;:::o;3986:118::-;4073:24;4091:5;4073:24;:::i;:::-;4068:3;4061:37;3986:118;;:::o;4110:109::-;4191:21;4206:5;4191:21;:::i;:::-;4186:3;4179:34;4110:109;;:::o;4225:366::-;4367:3;4388:67;4452:2;4447:3;4388:67;:::i;:::-;4381:74;;4464:93;4553:3;4464:93;:::i;:::-;4582:2;4577:3;4573:12;4566:19;;4225:366;;;:::o;4597:222::-;4690:4;4728:2;4717:9;4713:18;4705:26;;4741:71;4809:1;4798:9;4794:17;4785:6;4741:71;:::i;:::-;4597:222;;;;:::o;4825:210::-;4912:4;4950:2;4939:9;4935:18;4927:26;;4963:65;5025:1;5014:9;5010:17;5001:6;4963:65;:::i;:::-;4825:210;;;;:::o;5041:419::-;5207:4;5245:2;5234:9;5230:18;5222:26;;5294:9;5288:4;5284:20;5280:1;5269:9;5265:17;5258:47;5322:131;5448:4;5322:131;:::i;:::-;5314:139;;5041:419;;;:::o;5547:169::-;5631:11;5665:6;5660:3;5653:19;5705:4;5700:3;5696:14;5681:29;;5547:169;;;;:::o;5722:191::-;5762:4;5782:20;5800:1;5782:20;:::i;:::-;5777:25;;5816:20;5834:1;5816:20;:::i;:::-;5811:25;;5855:1;5852;5849:8;5846:34;;;5860:18;;:::i;:::-;5846:34;5905:1;5902;5898:9;5890:17;;5722:191;;;;:::o;5919:96::-;5956:7;5985:24;6003:5;5985:24;:::i;:::-;5974:35;;5919:96;;;:::o;6021:90::-;6055:7;6098:5;6091:13;6084:21;6073:32;;6021:90;;;:::o;6117:126::-;6154:7;6194:42;6187:5;6183:54;6172:65;;6117:126;;;:::o;6249:77::-;6286:7;6315:5;6304:16;;6249:77;;;:::o;6332:180::-;6380:77;6377:1;6370:88;6477:4;6474:1;6467:15;6501:4;6498:1;6491:15;6518:180;6566:77;6563:1;6556:88;6663:4;6660:1;6653:15;6687:4;6684:1;6677:15;6704:117;6813:1;6810;6803:12;6827:117;6936:1;6933;6926:12;6950:117;7059:1;7056;7049:12;7073:117;7182:1;7179;7172:12;7196:117;7305:1;7302;7295:12;7319:231;7459:34;7455:1;7447:6;7443:14;7436:58;7528:14;7523:2;7515:6;7511:15;7504:39;7319:231;:::o;7556:122::-;7629:24;7647:5;7629:24;:::i;:::-;7622:5;7619:35;7609:63;;7668:1;7665;7658:12;7609:63;7556:122;:::o

Swarm Source

ipfs://22704323d81400278df65aa703230e18604c48635a5ac46386c4762f9982d091

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  ]

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.