ETH Price: $3,513.00 (+2.81%)
Gas: 11 Gwei

Contract

0x6A12C2Cc8AF31f125484EB685F7c0bfcE280B919
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60c06040131518492021-09-03 9:08:561047 days ago1630660136IN
 Create: DePayRouterV1PaymentEvent02
0 ETH0.0282080799.0486924

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DePayRouterV1PaymentEvent02

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2021-09-03
*/

// Root file: contracts/DePayRouterV1PaymentEvent02.sol

// SPDX-License-Identifier: MIT

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

contract DePayRouterV1PaymentEvent02 {

  // The payment event.
  event Payment(
    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 Payment(
      addresses[0], // sender
      payable(addresses[addresses.length-1]), // receiver
      amounts[1], // amount
      path[path.length-1] // path
    );
    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":"Payment","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"}]

60c0604052600060805234801561001557600080fd5b506040516104d13803806104d183398101604081905261003491610049565b60601b6001600160601b03191660a052610079565b60006020828403121561005b57600080fd5b81516001600160a01b038116811461007257600080fd5b9392505050565b60805160f81c60a05160601c6104296100a86000396000818160a7015260ee01526000607301526104296000f3fe6080604052600436106100345760003560e01c8063b869495914610039578063c89e436114610061578063f887ea4014610095575b600080fd5b61004c6100473660046102f4565b6100e1565b60405190151581526020015b60405180910390f35b34801561006d57600080fd5b5061004c7f000000000000000000000000000000000000000000000000000000000000000081565b3480156100a157600080fd5b506100c97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610058565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101745760405162461bcd60e51b815260206004820152602c60248201527f4f6e6c7920746865204465506179526f7574657256312063616e2063616c6c2060448201526b7468697320706c7567696e2160a01b606482015260840160405180910390fd5b86866001818110610187576101876103dd565b60200291909101359050858561019e6001826103b8565b8181106101ad576101ad6103dd565b90506020020160208101906101c291906102c4565b6001600160a01b0316868660008181106101de576101de6103dd565b90506020020160208101906101f391906102c4565b6001600160a01b03167f83f5257fc3f5f94fa653d44d66c91bba315ce36d9c3c00b14278da4d3b6356478c8c61022a6001826103b8565b818110610239576102396103dd565b905060200201602081019061024e91906102c4565b6040516001600160a01b03909116815260200160405180910390a450600198975050505050505050565b60008083601f84011261028a57600080fd5b50813567ffffffffffffffff8111156102a257600080fd5b6020830191508360208260051b85010111156102bd57600080fd5b9250929050565b6000602082840312156102d657600080fd5b81356001600160a01b03811681146102ed57600080fd5b9392505050565b6000806000806000806000806080898b03121561031057600080fd5b883567ffffffffffffffff8082111561032857600080fd5b6103348c838d01610278565b909a50985060208b013591508082111561034d57600080fd5b6103598c838d01610278565b909850965060408b013591508082111561037257600080fd5b61037e8c838d01610278565b909650945060608b013591508082111561039757600080fd5b506103a48b828c01610278565b999c989b5096995094979396929594505050565b6000828210156103d857634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fdfea26469706673582212200ccbf57d9daee98eeefa4ecfc0bf38b171ff1e240e22df9c387adb87fd16ffb364736f6c63430008060033000000000000000000000000ae60ac8e69414c2dc362d0e6a03af643d1d85b92

Deployed Bytecode

0x6080604052600436106100345760003560e01c8063b869495914610039578063c89e436114610061578063f887ea4014610095575b600080fd5b61004c6100473660046102f4565b6100e1565b60405190151581526020015b60405180910390f35b34801561006d57600080fd5b5061004c7f000000000000000000000000000000000000000000000000000000000000000081565b3480156100a157600080fd5b506100c97f000000000000000000000000ae60ac8e69414c2dc362d0e6a03af643d1d85b9281565b6040516001600160a01b039091168152602001610058565b6000336001600160a01b037f000000000000000000000000ae60ac8e69414c2dc362d0e6a03af643d1d85b9216146101745760405162461bcd60e51b815260206004820152602c60248201527f4f6e6c7920746865204465506179526f7574657256312063616e2063616c6c2060448201526b7468697320706c7567696e2160a01b606482015260840160405180910390fd5b86866001818110610187576101876103dd565b60200291909101359050858561019e6001826103b8565b8181106101ad576101ad6103dd565b90506020020160208101906101c291906102c4565b6001600160a01b0316868660008181106101de576101de6103dd565b90506020020160208101906101f391906102c4565b6001600160a01b03167f83f5257fc3f5f94fa653d44d66c91bba315ce36d9c3c00b14278da4d3b6356478c8c61022a6001826103b8565b818110610239576102396103dd565b905060200201602081019061024e91906102c4565b6040516001600160a01b03909116815260200160405180910390a450600198975050505050505050565b60008083601f84011261028a57600080fd5b50813567ffffffffffffffff8111156102a257600080fd5b6020830191508360208260051b85010111156102bd57600080fd5b9250929050565b6000602082840312156102d657600080fd5b81356001600160a01b03811681146102ed57600080fd5b9392505050565b6000806000806000806000806080898b03121561031057600080fd5b883567ffffffffffffffff8082111561032857600080fd5b6103348c838d01610278565b909a50985060208b013591508082111561034d57600080fd5b6103598c838d01610278565b909850965060408b013591508082111561037257600080fd5b61037e8c838d01610278565b909650945060608b013591508082111561039757600080fd5b506103a48b828c01610278565b999c989b5096995094979396929594505050565b6000828210156103d857634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fdfea26469706673582212200ccbf57d9daee98eeefa4ecfc0bf38b171ff1e240e22df9c387adb87fd16ffb364736f6c63430008060033

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

150:1094:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:466;;;;;;:::i;:::-;;:::i;:::-;;;2471:14:1;;2464:22;2446:41;;2434:2;2419:18;775:466:0;;;;;;;;425:38;;;;;;;;;;;;;;;559:31;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2262:32:1;;;2244:51;;2232:2;2217:18;559:31:0;2199:102:1;775:466:0;946:4;967:10;-1:-1:-1;;;;;981:6:0;967:20;;959:77;;;;-1:-1:-1;;;959:77:0;;2700:2:1;959:77:0;;;2682:21:1;2739:2;2719:18;;;2712:30;2778:34;2758:18;;;2751:62;-1:-1:-1;;;2829:18:1;;;2822:42;2881:19;;959:77:0;;;;;;;;1154:7;;1162:1;1154:10;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;1103:9:0;;1113:18;1130:1;1103:9;1113:18;:::i;:::-;1103:29;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;1048:169:0;1064:9;;1074:1;1064:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;1048:169:0;;1183:4;;1188:13;1200:1;1183:4;1188:13;:::i;:::-;1183:19;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;1048:169;;-1:-1:-1;;;;;2262:32:1;;;2244:51;;2232:2;2217:18;1048:169:0;;;;;;;-1:-1:-1;1231:4:0;775:466;;;;;;;;;;:::o;14:367:1:-;77:8;87:6;141:3;134:4;126:6;122:17;118:27;108:2;;159:1;156;149:12;108:2;-1:-1:-1;182:20:1;;225:18;214:30;;211:2;;;257:1;254;247:12;211:2;294:4;286:6;282:17;270:29;;354:3;347:4;337:6;334:1;330:14;322:6;318:27;314:38;311:47;308:2;;;371:1;368;361:12;308:2;98:283;;;;;:::o;386:286::-;445:6;498:2;486:9;477:7;473:23;469:32;466:2;;;514:1;511;504:12;466:2;540:23;;-1:-1:-1;;;;;592:31:1;;582:42;;572:2;;638:1;635;628:12;572:2;661:5;456:216;-1:-1:-1;;;456:216:1:o;677:1416::-;883:6;891;899;907;915;923;931;939;992:3;980:9;971:7;967:23;963:33;960:2;;;1009:1;1006;999:12;960:2;1049:9;1036:23;1078:18;1119:2;1111:6;1108:14;1105:2;;;1135:1;1132;1125:12;1105:2;1174:70;1236:7;1227:6;1216:9;1212:22;1174:70;:::i;:::-;1263:8;;-1:-1:-1;1148:96:1;-1:-1:-1;1351:2:1;1336:18;;1323:32;;-1:-1:-1;1367:16:1;;;1364:2;;;1396:1;1393;1386:12;1364:2;1435:72;1499:7;1488:8;1477:9;1473:24;1435:72;:::i;:::-;1526:8;;-1:-1:-1;1409:98:1;-1:-1:-1;1614:2:1;1599:18;;1586:32;;-1:-1:-1;1630:16:1;;;1627:2;;;1659:1;1656;1649:12;1627:2;1698:72;1762:7;1751:8;1740:9;1736:24;1698:72;:::i;:::-;1789:8;;-1:-1:-1;1672:98:1;-1:-1:-1;1877:2:1;1862:18;;1849:32;;-1:-1:-1;1893:16:1;;;1890:2;;;1922:1;1919;1912:12;1890:2;;1961:72;2025:7;2014:8;2003:9;1999:24;1961:72;:::i;:::-;950:1143;;;;-1:-1:-1;950:1143:1;;-1:-1:-1;950:1143:1;;;;;;2052:8;-1:-1:-1;;;950:1143:1:o;2911:222::-;2951:4;2979:1;2976;2973:8;2970:2;;;3023:10;3018:3;3014:20;3011:1;3004:31;3058:4;3055:1;3048:15;3086:4;3083:1;3076:15;2970:2;-1:-1:-1;3118:9:1;;2960:173::o;3138:127::-;3199:10;3194:3;3190:20;3187:1;3180:31;3230:4;3227:1;3220:15;3254:4;3251:1;3244:15

Swarm Source

ipfs://0ccbf57d9daee98eeefa4ecfc0bf38b171ff1e240e22df9c387adb87fd16ffb3

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.