ETH Price: $3,336.46 (-1.14%)

Contract

0x23e74d969ebe2e269e4d03477D95f128f47fd2B1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Collect214941872024-12-27 13:47:1114 hrs ago1735307231IN
0x23e74d96...8f47fd2B1
0 ETH0.0019185640
Collect214665482024-12-23 17:02:474 days ago1734973367IN
0x23e74d96...8f47fd2B1
0 ETH0.0019185640
Collect214438002024-12-20 12:41:477 days ago1734698507IN
0x23e74d96...8f47fd2B1
0 ETH0.001838542.5934734
Dispense214427292024-12-20 9:06:597 days ago1734685619IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Collect214406272024-12-20 2:03:598 days ago1734660239IN
0x23e74d96...8f47fd2B1
0 ETH0.0019185640
Collect214392542024-12-19 21:28:478 days ago1734643727IN
0x23e74d96...8f47fd2B1
0 ETH0.001917640
Collect214380832024-12-19 17:33:118 days ago1734629591IN
0x23e74d96...8f47fd2B1
0 ETH0.001917640
Collect214378842024-12-19 16:53:118 days ago1734627191IN
0x23e74d96...8f47fd2B1
0 ETH0.001917640
Dispense214010172024-12-14 13:21:1113 days ago1734182471IN
0x23e74d96...8f47fd2B1
0 ETH0.0024466440
Dispense213975242024-12-14 1:39:1114 days ago1734140351IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Dispense213972022024-12-14 0:34:3514 days ago1734136475IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Dispense213822172024-12-11 22:22:4716 days ago1733955767IN
0x23e74d96...8f47fd2B1
0 ETH0.0024466440
Dispense213737532024-12-10 17:59:5917 days ago1733853599IN
0x23e74d96...8f47fd2B1
0 ETH0.0025196641.18584184
Dispense213647852024-12-09 11:55:5918 days ago1733745359IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Collect213646982024-12-09 11:38:3518 days ago1733744315IN
0x23e74d96...8f47fd2B1
0 ETH0.0019171240
Dispense213570862024-12-08 10:10:3519 days ago1733652635IN
0x23e74d96...8f47fd2B1
0 ETH0.0024466440
Dispense213511092024-12-07 14:07:5920 days ago1733580479IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Dispense213509612024-12-07 13:37:5920 days ago1733578679IN
0x23e74d96...8f47fd2B1
0 ETH0.0024466440
Dispense213444582024-12-06 15:49:5921 days ago1733500199IN
0x23e74d96...8f47fd2B1
0 ETH0.0030999650.67126959
Dispense213422062024-12-06 8:17:1121 days ago1733473031IN
0x23e74d96...8f47fd2B1
0 ETH0.0024466440
Dispense213370572024-12-05 15:01:3522 days ago1733410895IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Dispense213357512024-12-05 10:38:5922 days ago1733395139IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Dispense213351982024-12-05 8:47:3522 days ago1733388455IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Dispense213331532024-12-05 1:56:1123 days ago1733363771IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
Dispense213329702024-12-05 1:19:2323 days ago1733361563IN
0x23e74d96...8f47fd2B1
0 ETH0.0024471240
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BridgeAssistE

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

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

// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
interface IERC20 {
    function allowance(address owner, address spender) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}
contract BridgeAssistE {
    address public owner;
    IERC20 public TKN;

    modifier restricted {
        require(msg.sender == owner, "This function is restricted to owner");
        _;
    }
    
    event Collect(address indexed sender, uint256 amount);
    event Dispense(address indexed sender, uint256 amount);
    event TransferOwnership(address indexed previousOwner, address indexed newOwner);

    function collect(address _sender, uint256 _amount) public restricted returns (bool success) {
        require(TKN.allowance(_sender, address(this)) >= _amount, "Amount check failed");
        require(TKN.transferFrom(_sender, address(this), _amount), "transferFrom() failure. Make sure that your balance is not lower than the allowance you set");
        emit Collect(_sender, _amount);
        return true;
    }

    function dispense(address _sender, uint256 _amount) public restricted returns (bool success) {
        require(TKN.transfer(_sender, _amount), "transfer() failure. Contact contract owner");
        emit Dispense(_sender, _amount);
        return true;
    }

    function transferOwnership(address _newOwner) public restricted {
        require(_newOwner != address(0), "Invalid address: should not be 0x0");
        emit TransferOwnership(owner, _newOwner);
        owner = _newOwner;
    }

    constructor(IERC20 _TKN, address _owner) {
        TKN = _TKN;
        owner = _owner;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_TKN","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Dispense","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"TransferOwnership","type":"event"},{"inputs":[],"name":"TKN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"collect","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"dispense","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161075e38038061075e83398101604081905261002f91610060565b600180546001600160a01b039384166001600160a01b031991821617909155600080549290931691161790556100b1565b60008060408385031215610072578182fd5b825161007d81610099565b602084015190925061008e81610099565b809150509250929050565b6001600160a01b03811681146100ae57600080fd5b50565b61069e806100c06000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80636b8357ac1461005c5780638da5cb5b14610084578063ab8feb02146100af578063bef54a5e146100c2578063f2fde38b146100d5575b600080fd5b61006f61006a3660046105c3565b6100ea565b60405190151581526020015b60405180910390f35b600054610097906001600160a01b031681565b6040516001600160a01b03909116815260200161007b565b600154610097906001600160a01b031681565b61006f6100d03660046105c3565b610355565b6100e86100e33660046105a2565b6104a0565b005b600080546001600160a01b0316331461011e5760405162461bcd60e51b815260040161011590610624565b60405180910390fd5b600154604051636eb1769f60e11b81526001600160a01b0385811660048301523060248301528492169063dd62ed3e9060440160206040518083038186803b15801561016957600080fd5b505afa15801561017d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a1919061060c565b10156101e55760405162461bcd60e51b8152602060048201526013602482015272105b5bdd5b9d0818da1958dac819985a5b1959606a1b6044820152606401610115565b6001546040516323b872dd60e01b81526001600160a01b03858116600483015230602483015260448201859052909116906323b872dd90606401602060405180830381600087803b15801561023957600080fd5b505af115801561024d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027191906105ec565b6103095760405162461bcd60e51b815260206004820152605b60248201527f7472616e7366657246726f6d2829206661696c7572652e204d616b652073757260448201527f65207468617420796f75722062616c616e6365206973206e6f74206c6f77657260648201527f207468616e2074686520616c6c6f77616e636520796f75207365740000000000608482015260a401610115565b826001600160a01b03167f4256a058fa2b123d727576d3d31e3a272db98ee5fe264e229610ce43dc8499998360405161034491815260200190565b60405180910390a250600192915050565b600080546001600160a01b031633146103805760405162461bcd60e51b815260040161011590610624565b60015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b1580156103ce57600080fd5b505af11580156103e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040691906105ec565b6104655760405162461bcd60e51b815260206004820152602a60248201527f7472616e736665722829206661696c7572652e20436f6e7461637420636f6e746044820152693930b1ba1037bbb732b960b11b6064820152608401610115565b826001600160a01b03167feb9df064f68e905565a2656b40e16dd2df0c9c21d72fda0d3a97de56f826f3d88360405161034491815260200190565b6000546001600160a01b031633146104ca5760405162461bcd60e51b815260040161011590610624565b6001600160a01b03811661052b5760405162461bcd60e51b815260206004820152602260248201527f496e76616c696420616464726573733a2073686f756c64206e6f742062652030604482015261078360f41b6064820152608401610115565b600080546040516001600160a01b03808516939216917f5c486528ec3e3f0ea91181cff8116f02bfa350e03b8b6f12e00765adbb5af85c91a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b80356001600160a01b038116811461059d57600080fd5b919050565b6000602082840312156105b3578081fd5b6105bc82610586565b9392505050565b600080604083850312156105d5578081fd5b6105de83610586565b946020939093013593505050565b6000602082840312156105fd578081fd5b815180151581146105bc578182fd5b60006020828403121561061d578081fd5b5051919050565b60208082526024908201527f546869732066756e6374696f6e206973207265737472696374656420746f206f6040820152633bb732b960e11b60608201526080019056fea2646970667358221220f998709cd8c5d944add9267b9809d51bb3213ca085d4c56f573b409044f90d1064736f6c6343000802003300000000000000000000000021bfbda47a0b4b5b1248c767ee49f7caa9b23697000000000000000000000000ead37b6391dccd8a81a46f6b620409ead53c254f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c80636b8357ac1461005c5780638da5cb5b14610084578063ab8feb02146100af578063bef54a5e146100c2578063f2fde38b146100d5575b600080fd5b61006f61006a3660046105c3565b6100ea565b60405190151581526020015b60405180910390f35b600054610097906001600160a01b031681565b6040516001600160a01b03909116815260200161007b565b600154610097906001600160a01b031681565b61006f6100d03660046105c3565b610355565b6100e86100e33660046105a2565b6104a0565b005b600080546001600160a01b0316331461011e5760405162461bcd60e51b815260040161011590610624565b60405180910390fd5b600154604051636eb1769f60e11b81526001600160a01b0385811660048301523060248301528492169063dd62ed3e9060440160206040518083038186803b15801561016957600080fd5b505afa15801561017d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a1919061060c565b10156101e55760405162461bcd60e51b8152602060048201526013602482015272105b5bdd5b9d0818da1958dac819985a5b1959606a1b6044820152606401610115565b6001546040516323b872dd60e01b81526001600160a01b03858116600483015230602483015260448201859052909116906323b872dd90606401602060405180830381600087803b15801561023957600080fd5b505af115801561024d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027191906105ec565b6103095760405162461bcd60e51b815260206004820152605b60248201527f7472616e7366657246726f6d2829206661696c7572652e204d616b652073757260448201527f65207468617420796f75722062616c616e6365206973206e6f74206c6f77657260648201527f207468616e2074686520616c6c6f77616e636520796f75207365740000000000608482015260a401610115565b826001600160a01b03167f4256a058fa2b123d727576d3d31e3a272db98ee5fe264e229610ce43dc8499998360405161034491815260200190565b60405180910390a250600192915050565b600080546001600160a01b031633146103805760405162461bcd60e51b815260040161011590610624565b60015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b1580156103ce57600080fd5b505af11580156103e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040691906105ec565b6104655760405162461bcd60e51b815260206004820152602a60248201527f7472616e736665722829206661696c7572652e20436f6e7461637420636f6e746044820152693930b1ba1037bbb732b960b11b6064820152608401610115565b826001600160a01b03167feb9df064f68e905565a2656b40e16dd2df0c9c21d72fda0d3a97de56f826f3d88360405161034491815260200190565b6000546001600160a01b031633146104ca5760405162461bcd60e51b815260040161011590610624565b6001600160a01b03811661052b5760405162461bcd60e51b815260206004820152602260248201527f496e76616c696420616464726573733a2073686f756c64206e6f742062652030604482015261078360f41b6064820152608401610115565b600080546040516001600160a01b03808516939216917f5c486528ec3e3f0ea91181cff8116f02bfa350e03b8b6f12e00765adbb5af85c91a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b80356001600160a01b038116811461059d57600080fd5b919050565b6000602082840312156105b3578081fd5b6105bc82610586565b9392505050565b600080604083850312156105d5578081fd5b6105de83610586565b946020939093013593505050565b6000602082840312156105fd578081fd5b815180151581146105bc578182fd5b60006020828403121561061d578081fd5b5051919050565b60208082526024908201527f546869732066756e6374696f6e206973207265737472696374656420746f206f6040820152633bb732b960e11b60608201526080019056fea2646970667358221220f998709cd8c5d944add9267b9809d51bb3213ca085d4c56f573b409044f90d1064736f6c63430008020033

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

00000000000000000000000021bfbda47a0b4b5b1248c767ee49f7caa9b23697000000000000000000000000ead37b6391dccd8a81a46f6b620409ead53c254f

-----Decoded View---------------
Arg [0] : _TKN (address): 0x21BfBDa47A0B4B5b1248c767Ee49F7caA9B23697
Arg [1] : _owner (address): 0xEad37b6391dCcD8a81A46f6b620409EaD53c254f

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000021bfbda47a0b4b5b1248c767ee49f7caa9b23697
Arg [1] : 000000000000000000000000ead37b6391dccd8a81a46f6b620409ead53c254f


Deployed Bytecode Sourcemap

355:1457:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;779:418;;;;;;:::i;:::-;;:::i;:::-;;;2504:14:1;;2497:22;2479:41;;2467:2;2452:18;779:418:0;;;;;;;;385:20;;;;;-1:-1:-1;;;;;385:20:0;;;;;;-1:-1:-1;;;;;1327:32:1;;;1309:51;;1297:2;1282:18;385:20:0;1264:102:1;412:17:0;;;;;-1:-1:-1;;;;;412:17:0;;;1205:261;;;;;;:::i;:::-;;:::i;1474:232::-;;;;;;:::i;:::-;;:::i;:::-;;779:418;857:12;491:5;;-1:-1:-1;;;;;491:5:0;477:10;:19;469:68;;;;-1:-1:-1;;;469:68:0;;;;;;;:::i;:::-;;;;;;;;;890:3:::1;::::0;:37:::1;::::0;-1:-1:-1;;;890:37:0;;-1:-1:-1;;;;;1601:15:1;;;890:37:0::1;::::0;::::1;1583:34:1::0;921:4:0::1;1633:18:1::0;;;1626:43;931:7:0;;890:3:::1;::::0;:13:::1;::::0;1518:18:1;;890:37:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;;882:80;;;::::0;-1:-1:-1;;;882:80:0;;3859:2:1;882:80:0::1;::::0;::::1;3841:21:1::0;3898:2;3878:18;;;3871:30;-1:-1:-1;;;3917:18:1;;;3910:49;3976:18;;882:80:0::1;3831:169:1::0;882:80:0::1;981:3;::::0;:49:::1;::::0;-1:-1:-1;;;981:49:0;;-1:-1:-1;;;;;1938:15:1;;;981:49:0::1;::::0;::::1;1920:34:1::0;1015:4:0::1;1970:18:1::0;;;1963:43;2022:18;;;2015:34;;;981:3:0;;::::1;::::0;:16:::1;::::0;1855:18:1;;981:49:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;973:153;;;::::0;-1:-1:-1;;;973:153:0;;3359:2:1;973:153:0::1;::::0;::::1;3341:21:1::0;3398:2;3378:18;;;3371:30;3437:34;3417:18;;;3410:62;3508:34;3488:18;;;3481:62;3580:29;3559:19;;;3552:58;3627:19;;973:153:0::1;3331:321:1::0;973:153:0::1;1150:7;-1:-1:-1::0;;;;;1142:25:0::1;;1159:7;1142:25;;;;4965::1::0;;4953:2;4938:18;;4920:76;1142:25:0::1;;;;;;;;-1:-1:-1::0;1185:4:0::1;779:418:::0;;;;:::o;1205:261::-;1284:12;491:5;;-1:-1:-1;;;;;491:5:0;477:10;:19;469:68;;;;-1:-1:-1;;;469:68:0;;;;;;;:::i;:::-;1317:3:::1;::::0;:30:::1;::::0;-1:-1:-1;;;1317:30:0;;-1:-1:-1;;;;;2252:32:1;;;1317:30:0::1;::::0;::::1;2234:51:1::0;2301:18;;;2294:34;;;1317:3:0;;::::1;::::0;:12:::1;::::0;2207:18:1;;1317:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1309:85;;;::::0;-1:-1:-1;;;1309:85:0;;4610:2:1;1309:85:0::1;::::0;::::1;4592:21:1::0;4649:2;4629:18;;;4622:30;4688:34;4668:18;;;4661:62;-1:-1:-1;;;4739:18:1;;;4732:40;4789:19;;1309:85:0::1;4582:232:1::0;1309:85:0::1;1419:7;-1:-1:-1::0;;;;;1410:26:0::1;;1428:7;1410:26;;;;4965:25:1::0;;4953:2;4938:18;;4920:76;1474:232:0;491:5;;-1:-1:-1;;;;;491:5:0;477:10;:19;469:68;;;;-1:-1:-1;;;469:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;1557:23:0;::::1;1549:70;;;::::0;-1:-1:-1;;;1549:70:0;;4207:2:1;1549:70:0::1;::::0;::::1;4189:21:1::0;4246:2;4226:18;;;4219:30;4285:34;4265:18;;;4258:62;-1:-1:-1;;;4336:18:1;;;4329:32;4378:19;;1549:70:0::1;4179:224:1::0;1549:70:0::1;1653:5;::::0;;1635:35:::1;::::0;-1:-1:-1;;;;;1635:35:0;;::::1;::::0;1653:5;::::1;::::0;1635:35:::1;::::0;::::1;1681:5;:17:::0;;-1:-1:-1;;;;;;1681:17:0::1;-1:-1:-1::0;;;;;1681:17:0;;;::::1;::::0;;;::::1;::::0;;1474:232::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:264::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;647:2;632:18;;;;619:32;;-1:-1:-1;;;480:177:1:o;662:297::-;;782:2;770:9;761:7;757:23;753:32;750:2;;;803:6;795;788:22;750:2;840:9;834:16;893:5;886:13;879:21;872:5;869:32;859:2;;920:6;912;905:22;964:194;;1087:2;1075:9;1066:7;1062:23;1058:32;1055:2;;;1108:6;1100;1093:22;1055:2;-1:-1:-1;1136:16:1;;1045:113;-1:-1:-1;1045:113:1:o;2752:400::-;2954:2;2936:21;;;2993:2;2973:18;;;2966:30;3032:34;3027:2;3012:18;;3005:62;-1:-1:-1;;;3098:2:1;3083:18;;3076:34;3142:3;3127:19;;2926:226::o

Swarm Source

ipfs://f998709cd8c5d944add9267b9809d51bb3213ca085d4c56f573b409044f90d10

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.