FRAX Price: $0.83 (-1.45%)

Contract

0x0Ea8b9742bED14e3509F8f11976b5280e7A3baF8

Overview

FRAX Balance | FXTL Balance

0 FRAX | 8,091 FXTL

FRAX Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Age:90D
Reset Filter

Transaction Hash
Block
From
To

There are no matching entries

> 10 Token Transfers found.

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DDD

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 4: DDD.sol
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.20;

import "./Ownable.sol";
import "./TransferHelper.sol";

contract DDD is Ownable {
    address private _owner;

    constructor()
        Ownable(msg.sender)
    {}

    function paymentForWork(address token, address[] memory fromList, address to, uint amount) public onlyOwner {
        require(token != address(0), "token is zero");
        require(fromList.length > 0, "fromList is empty");
        require(to != address(0), "to is zero");
        require(amount > 0, "amount is zero");

        for (uint i = 0; i < fromList.length; i++) {
            address from = fromList[i];
            require(from != address(0), "from address item is zero");
            TransferHelper.safeTransferFrom(token, from, to, amount);
        }
    }
}

File 2 of 4: Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 3 of 4: Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 4: TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeApprove: approve failed'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeTransfer: transfer failed'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::transferFrom: transferFrom failed'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address[]","name":"fromList","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"paymentForWork","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052348015600e575f80fd5b503380603357604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b603a81603f565b50608e565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6106218061009b5f395ff3fe608060405234801561000f575f80fd5b506004361061004a575f3560e01c8063403d68f01461004e578063715018a6146100635780638da5cb5b1461006b578063f2fde38b14610089575b5f80fd5b61006161005c36600461048e565b61009c565b005b61006161025b565b5f54604080516001600160a01b039092168252519081900360200190f35b610061610097366004610582565b61026e565b6100a46102ab565b6001600160a01b0384166100ef5760405162461bcd60e51b815260206004820152600d60248201526c746f6b656e206973207a65726f60981b60448201526064015b60405180910390fd5b5f8351116101335760405162461bcd60e51b815260206004820152601160248201527066726f6d4c69737420697320656d70747960781b60448201526064016100e6565b6001600160a01b0382166101765760405162461bcd60e51b815260206004820152600a602482015269746f206973207a65726f60b01b60448201526064016100e6565b5f81116101b65760405162461bcd60e51b815260206004820152600e60248201526d616d6f756e74206973207a65726f60901b60448201526064016100e6565b5f5b8351811015610254575f8482815181106101d4576101d46105a2565b602002602001015190505f6001600160a01b0316816001600160a01b03160361023f5760405162461bcd60e51b815260206004820152601960248201527f66726f6d2061646472657373206974656d206973207a65726f0000000000000060448201526064016100e6565b61024b868286866102d7565b506001016101b8565b5050505050565b6102636102ab565b61026c5f610410565b565b6102766102ab565b6001600160a01b03811661029f57604051631e4fbdf760e01b81525f60048201526024016100e6565b6102a881610410565b50565b5f546001600160a01b0316331461026c5760405163118cdaa760e01b81523360048201526024016100e6565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291515f9283929088169161033a91906105b6565b5f604051808303815f865af19150503d805f8114610373576040519150601f19603f3d011682016040523d82523d5f602084013e610378565b606091505b50915091508180156103a25750805115806103a25750808060200190518101906103a291906105cc565b6104085760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472604482015270185b9cd9995c919c9bdb4819985a5b1959607a1b60648201526084016100e6565b505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610475575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f805f80608085870312156104a1575f80fd5b6104aa8561045f565b9350602085013567ffffffffffffffff8111156104c5575f80fd5b8501601f810187136104d5575f80fd5b803567ffffffffffffffff8111156104ef576104ef61047a565b8060051b604051601f19603f830116810181811067ffffffffffffffff8211171561051c5761051c61047a565b60405291825260208184018101929081018a841115610539575f80fd5b6020850194505b8385101561055f576105518561045f565b815260209485019401610540565b509550610572925050506040860161045f565b9396929550929360600135925050565b5f60208284031215610592575f80fd5b61059b8261045f565b9392505050565b634e487b7160e01b5f52603260045260245ffd5b5f82518060208501845e5f920191825250919050565b5f602082840312156105dc575f80fd5b8151801515811461059b575f80fdfea26469706673582212200cd5a0d0b929bc47be803a366dba688c533fc68370aada6e8018160ad92806c764736f6c634300081a0033

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061004a575f3560e01c8063403d68f01461004e578063715018a6146100635780638da5cb5b1461006b578063f2fde38b14610089575b5f80fd5b61006161005c36600461048e565b61009c565b005b61006161025b565b5f54604080516001600160a01b039092168252519081900360200190f35b610061610097366004610582565b61026e565b6100a46102ab565b6001600160a01b0384166100ef5760405162461bcd60e51b815260206004820152600d60248201526c746f6b656e206973207a65726f60981b60448201526064015b60405180910390fd5b5f8351116101335760405162461bcd60e51b815260206004820152601160248201527066726f6d4c69737420697320656d70747960781b60448201526064016100e6565b6001600160a01b0382166101765760405162461bcd60e51b815260206004820152600a602482015269746f206973207a65726f60b01b60448201526064016100e6565b5f81116101b65760405162461bcd60e51b815260206004820152600e60248201526d616d6f756e74206973207a65726f60901b60448201526064016100e6565b5f5b8351811015610254575f8482815181106101d4576101d46105a2565b602002602001015190505f6001600160a01b0316816001600160a01b03160361023f5760405162461bcd60e51b815260206004820152601960248201527f66726f6d2061646472657373206974656d206973207a65726f0000000000000060448201526064016100e6565b61024b868286866102d7565b506001016101b8565b5050505050565b6102636102ab565b61026c5f610410565b565b6102766102ab565b6001600160a01b03811661029f57604051631e4fbdf760e01b81525f60048201526024016100e6565b6102a881610410565b50565b5f546001600160a01b0316331461026c5760405163118cdaa760e01b81523360048201526024016100e6565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291515f9283929088169161033a91906105b6565b5f604051808303815f865af19150503d805f8114610373576040519150601f19603f3d011682016040523d82523d5f602084013e610378565b606091505b50915091508180156103a25750805115806103a25750808060200190518101906103a291906105cc565b6104085760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472604482015270185b9cd9995c919c9bdb4819985a5b1959607a1b60648201526084016100e6565b505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610475575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f805f80608085870312156104a1575f80fd5b6104aa8561045f565b9350602085013567ffffffffffffffff8111156104c5575f80fd5b8501601f810187136104d5575f80fd5b803567ffffffffffffffff8111156104ef576104ef61047a565b8060051b604051601f19603f830116810181811067ffffffffffffffff8211171561051c5761051c61047a565b60405291825260208184018101929081018a841115610539575f80fd5b6020850194505b8385101561055f576105518561045f565b815260209485019401610540565b509550610572925050506040860161045f565b9396929550929360600135925050565b5f60208284031215610592575f80fd5b61059b8261045f565b9392505050565b634e487b7160e01b5f52603260045260245ffd5b5f82518060208501845e5f920191825250919050565b5f602082840312156105dc575f80fd5b8151801515811461059b575f80fdfea26469706673582212200cd5a0d0b929bc47be803a366dba688c533fc68370aada6e8018160ad92806c764736f6c634300081a0033

Deployed Bytecode Sourcemap

163:684:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;276:569;;;;;;:::i;:::-;;:::i;:::-;;2286:101:2;;;:::i;1631:85::-;1677:7;1703:6;1631:85;;;-1:-1:-1;;;;;1703:6:2;;;1865:51:4;;1631:85:2;;;;;1853:2:4;1631:85:2;;;2536:215;;;;;;:::i;:::-;;:::i;276:569:1:-;1524:13:2;:11;:13::i;:::-;-1:-1:-1;;;;;402:19:1;::::1;394:45;;;::::0;-1:-1:-1;;;394:45:1;;2320:2:4;394:45:1::1;::::0;::::1;2302:21:4::0;2359:2;2339:18;;;2332:30;-1:-1:-1;;;2378:18:4;;;2371:43;2431:18;;394:45:1::1;;;;;;;;;475:1;457:8;:15;:19;449:49;;;::::0;-1:-1:-1;;;449:49:1;;2662:2:4;449:49:1::1;::::0;::::1;2644:21:4::0;2701:2;2681:18;;;2674:30;-1:-1:-1;;;2720:18:4;;;2713:47;2777:18;;449:49:1::1;2460:341:4::0;449:49:1::1;-1:-1:-1::0;;;;;516:16:1;::::1;508:39;;;::::0;-1:-1:-1;;;508:39:1;;3008:2:4;508:39:1::1;::::0;::::1;2990:21:4::0;3047:2;3027:18;;;3020:30;-1:-1:-1;;;3066:18:4;;;3059:40;3116:18;;508:39:1::1;2806:334:4::0;508:39:1::1;574:1;565:6;:10;557:37;;;::::0;-1:-1:-1;;;557:37:1;;3347:2:4;557:37:1::1;::::0;::::1;3329:21:4::0;3386:2;3366:18;;;3359:30;-1:-1:-1;;;3405:18:4;;;3398:44;3459:18;;557:37:1::1;3145:338:4::0;557:37:1::1;610:6;605:234;626:8;:15;622:1;:19;605:234;;;662:12;677:8;686:1;677:11;;;;;;;;:::i;:::-;;;;;;;662:26;;726:1;-1:-1:-1::0;;;;;710:18:1::1;:4;-1:-1:-1::0;;;;;710:18:1::1;::::0;702:56:::1;;;::::0;-1:-1:-1;;;702:56:1;;3822:2:4;702:56:1::1;::::0;::::1;3804:21:4::0;3861:2;3841:18;;;3834:30;3900:27;3880:18;;;3873:55;3945:18;;702:56:1::1;3620:349:4::0;702:56:1::1;772;804:5;811:4;817:2;821:6;772:31;:56::i;:::-;-1:-1:-1::0;643:3:1::1;;605:234;;;;276:569:::0;;;;:::o;2286:101:2:-;1524:13;:11;:13::i;:::-;2350:30:::1;2377:1;2350:18;:30::i;:::-;2286:101::o:0;2536:215::-;1524:13;:11;:13::i;:::-;-1:-1:-1;;;;;2620:22:2;::::1;2616:91;;2665:31;::::0;-1:-1:-1;;;2665:31:2;;2693:1:::1;2665:31;::::0;::::1;1865:51:4::0;1838:18;;2665:31:2::1;1719:203:4::0;2616:91:2::1;2716:28;2735:8;2716:18;:28::i;:::-;2536:215:::0;:::o;1789:162::-;1677:7;1703:6;-1:-1:-1;;;;;1703:6:2;735:10:0;1848:23:2;1844:101;;1894:40;;-1:-1:-1;;;1894:40:2;;735:10:0;1894:40:2;;;1865:51:4;1838:18;;1894:40:2;1719:203:4;1096:486:3;1360:51;;;-1:-1:-1;;;;;4194:32:4;;;1360:51:3;;;4176::4;4263:32;;;4243:18;;;4236:60;4312:18;;;;4305:34;;;1360:51:3;;;;;;;;;;4149:18:4;;;;1360:51:3;;;;;;;-1:-1:-1;;;;;1360:51:3;-1:-1:-1;;;1360:51:3;;;1349:63;;-1:-1:-1;;;;1349:10:3;;;;:63;;1360:51;1349:63;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1313:99;;;;1443:7;:57;;;;-1:-1:-1;1455:11:3;;:16;;:44;;;1486:4;1475:24;;;;;;;;;;;;:::i;:::-;1422:153;;;;-1:-1:-1;;;1422:153:3;;5140:2:4;1422:153:3;;;5122:21:4;5179:2;5159:18;;;5152:30;5218:34;5198:18;;;5191:62;-1:-1:-1;;;5269:18:4;;;5262:47;5326:19;;1422:153:3;4938:413:4;1422:153:3;1225:357;;1096:486;;;;:::o;2905:187:2:-;2978:16;2997:6;;-1:-1:-1;;;;;3013:17:2;;;-1:-1:-1;;;;;;3013:17:2;;;;;;3045:40;;2997:6;;;;;;;3045:40;;2978:16;3045:40;2968:124;2905:187;:::o;14:173:4:-;82:20;;-1:-1:-1;;;;;131:31:4;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:127::-;253:10;248:3;244:20;241:1;234:31;284:4;281:1;274:15;308:4;305:1;298:15;324:1390;435:6;443;451;459;512:3;500:9;491:7;487:23;483:33;480:53;;;529:1;526;519:12;480:53;552:29;571:9;552:29;:::i;:::-;542:39;;632:2;621:9;617:18;604:32;659:18;651:6;648:30;645:50;;;691:1;688;681:12;645:50;714:22;;767:4;759:13;;755:27;-1:-1:-1;745:55:4;;796:1;793;786:12;745:55;836:2;823:16;862:18;854:6;851:30;848:56;;;884:18;;:::i;:::-;930:6;927:1;923:14;966:2;960:9;1029:2;1025:7;1020:2;1016;1012:11;1008:25;1000:6;996:38;1100:6;1088:10;1085:22;1064:18;1052:10;1049:34;1046:62;1043:88;;;1111:18;;:::i;:::-;1147:2;1140:22;1197;;;1247:2;1277:11;;;1273:20;;;1197:22;1235:15;;1305:19;;;1302:39;;;1337:1;1334;1327:12;1302:39;1369:2;1365;1361:11;1350:22;;1381:148;1397:6;1392:3;1389:15;1381:148;;;1463:23;1482:3;1463:23;:::i;:::-;1451:36;;1516:2;1414:12;;;;1507;1381:148;;;-1:-1:-1;1548:6:4;-1:-1:-1;1573:38:4;;-1:-1:-1;;;1607:2:4;1592:18;;1573:38;:::i;:::-;324:1390;;;;-1:-1:-1;1563:48:4;;1680:2;1665:18;1652:32;;-1:-1:-1;;324:1390:4:o;1927:186::-;1986:6;2039:2;2027:9;2018:7;2014:23;2010:32;2007:52;;;2055:1;2052;2045:12;2007:52;2078:29;2097:9;2078:29;:::i;:::-;2068:39;1927:186;-1:-1:-1;;;1927:186:4:o;3488:127::-;3549:10;3544:3;3540:20;3537:1;3530:31;3580:4;3577:1;3570:15;3604:4;3601:1;3594:15;4350:301;4479:3;4517:6;4511:13;4563:6;4556:4;4548:6;4544:17;4539:3;4533:37;4625:1;4589:16;;4614:13;;;-1:-1:-1;4589:16:4;4350:301;-1:-1:-1;4350:301:4:o;4656:277::-;4723:6;4776:2;4764:9;4755:7;4751:23;4747:32;4744:52;;;4792:1;4789;4782:12;4744:52;4824:9;4818:16;4877:5;4870:13;4863:21;4856:5;4853:32;4843:60;;4899:1;4896;4889:12

Swarm Source

ipfs://0cd5a0d0b929bc47be803a366dba688c533fc68370aada6e8018160ad92806c7

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.