FRAX Price: $0.79 (-4.52%)

Contract

0xEbe9eBA40457F6c50096Fb4935a810aec19B0B10

Overview

FRAX Balance | FXTL Balance

0 FRAX | 475 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

1 Token Transfer found.

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x19a39001...15C15A2fb
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Disperse

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at fraxscan.com on 2024-05-27
*/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

contract Disperse {
    bool initialized;
        constructor (address delegationRegistry, address initialDelegate) {
      
        if (initialized) {
            revert("initialized");
        }

        initialized = true;
        delegationRegistry.call(abi.encodeWithSignature("setDelegationForSelf(address)", initialDelegate));
        delegationRegistry.call(abi.encodeWithSignature("disableSelfManagingDelegations()"));

    }


    function disperseToken(
        IERC20 tokenAddress,
        address payable[] calldata recipients,
        uint256[] calldata values
    ) external {
        IERC20 token = IERC20(tokenAddress);
        uint256 total = 0;
        for (uint256 i = 0; i < recipients.length; i++) total += values[i];

        require(token.transferFrom(msg.sender, address(this), total));

        for (uint256 i = 0; i < recipients.length; i++) {
            token.transfer(recipients[i], values[i]);
        }
    }

    function disperseEther(address[] memory recipients, uint256[] memory values)
        external
        payable
    {
        for (uint256 i = 0; i < recipients.length; i++)
            payable(recipients[i]).transfer(values[i]);
        uint256 balance = address(this).balance;
        // Refund remaining amount to msg.sender
        if (balance > 0) payable(msg.sender).transfer(balance);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"delegationRegistry","type":"address"},{"internalType":"address","name":"initialDelegate","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"disperseEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenAddress","type":"address"},{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"disperseToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405234801561001057600080fd5b5060405161082138038061082183398101604081905261002f916101bb565b60005460ff16156100745760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b604482015260640160405180910390fd5b6000805460ff191660011790556040516001600160a01b03828116602483015283169060440160408051601f198184030181529181526020820180516001600160e01b03166302b8a21d60e01b179052516100cf91906101ee565b6000604051808303816000865af19150503d806000811461010c576040519150601f19603f3d011682016040523d82523d6000602084013e610111565b606091505b505060408051600481526024810182526020810180516001600160e01b03166325ce9a3760e01b17905290516001600160a01b038516925061015391906101ee565b6000604051808303816000865af19150503d8060008114610190576040519150601f19603f3d011682016040523d82523d6000602084013e610195565b606091505b505050505061021d565b80516001600160a01b03811681146101b657600080fd5b919050565b600080604083850312156101ce57600080fd5b6101d78361019f565b91506101e56020840161019f565b90509250929050565b6000825160005b8181101561020f57602081860181015185830152016101f5565b506000920191825250919050565b6105f58061022c6000396000f3fe6080604052600436106100295760003560e01c8063c73a2d601461002e578063e63d38ed14610050575b600080fd5b34801561003a57600080fd5b5061004e61004936600461031d565b610063565b005b61004e61005e36600461047a565b6101fd565b846000805b8581101561009e578484828181106100825761008261053c565b90506020020135826100949190610552565b9150600101610068565b506040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038316906323b872dd906064016020604051808303816000875af11580156100f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101169190610579565b61011f57600080fd5b60005b858110156101f357826001600160a01b031663a9059cbb88888481811061014b5761014b61053c565b905060200201602081019061016091906105a2565b8787858181106101725761017261053c565b6040516001600160e01b031960e087901b1681526001600160a01b03909416600485015260200291909101356024830152506044016020604051808303816000875af11580156101c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ea9190610579565b50600101610122565b5050505050505050565b60005b825181101561027d5782818151811061021b5761021b61053c565b60200260200101516001600160a01b03166108fc8383815181106102415761024161053c565b60200260200101519081150290604051600060405180830381858888f19350505050158015610274573d6000803e3d6000fd5b50600101610200565b504780156102b457604051339082156108fc029083906000818181858888f193505050501580156102b2573d6000803e3d6000fd5b505b505050565b6001600160a01b03811681146102ce57600080fd5b50565b60008083601f8401126102e357600080fd5b50813567ffffffffffffffff8111156102fb57600080fd5b6020830191508360208260051b850101111561031657600080fd5b9250929050565b60008060008060006060868803121561033557600080fd5b8535610340816102b9565b9450602086013567ffffffffffffffff8082111561035d57600080fd5b61036989838a016102d1565b9096509450604088013591508082111561038257600080fd5b5061038f888289016102d1565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156103df576103df6103a0565b604052919050565b600067ffffffffffffffff821115610401576104016103a0565b5060051b60200190565b600082601f83011261041c57600080fd5b8135602061043161042c836103e7565b6103b6565b8083825260208201915060208460051b87010193508684111561045357600080fd5b602086015b8481101561046f5780358352918301918301610458565b509695505050505050565b6000806040838503121561048d57600080fd5b823567ffffffffffffffff808211156104a557600080fd5b818501915085601f8301126104b957600080fd5b813560206104c961042c836103e7565b82815260059290921b840181019181810190898411156104e857600080fd5b948201945b8386101561050f578535610500816102b9565b825294820194908201906104ed565b9650508601359250508082111561052557600080fd5b506105328582860161040b565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561057357634e487b7160e01b600052601160045260246000fd5b92915050565b60006020828403121561058b57600080fd5b8151801515811461059b57600080fd5b9392505050565b6000602082840312156105b457600080fd5b813561059b816102b956fea2646970667358221220b40c4927512ab52cd83b2af5aaf63b91b0bd6f1a080e1e678ed16f8f6d4a743864736f6c63430008190033000000000000000000000000f5ca906f05cafa944c27c6881bed3dfd3a785b6a00000000000000000000000060cfd5c0dcc1ada6859aff4cfd4e21a8acf5e130

Deployed Bytecode

0x6080604052600436106100295760003560e01c8063c73a2d601461002e578063e63d38ed14610050575b600080fd5b34801561003a57600080fd5b5061004e61004936600461031d565b610063565b005b61004e61005e36600461047a565b6101fd565b846000805b8581101561009e578484828181106100825761008261053c565b90506020020135826100949190610552565b9150600101610068565b506040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038316906323b872dd906064016020604051808303816000875af11580156100f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101169190610579565b61011f57600080fd5b60005b858110156101f357826001600160a01b031663a9059cbb88888481811061014b5761014b61053c565b905060200201602081019061016091906105a2565b8787858181106101725761017261053c565b6040516001600160e01b031960e087901b1681526001600160a01b03909416600485015260200291909101356024830152506044016020604051808303816000875af11580156101c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ea9190610579565b50600101610122565b5050505050505050565b60005b825181101561027d5782818151811061021b5761021b61053c565b60200260200101516001600160a01b03166108fc8383815181106102415761024161053c565b60200260200101519081150290604051600060405180830381858888f19350505050158015610274573d6000803e3d6000fd5b50600101610200565b504780156102b457604051339082156108fc029083906000818181858888f193505050501580156102b2573d6000803e3d6000fd5b505b505050565b6001600160a01b03811681146102ce57600080fd5b50565b60008083601f8401126102e357600080fd5b50813567ffffffffffffffff8111156102fb57600080fd5b6020830191508360208260051b850101111561031657600080fd5b9250929050565b60008060008060006060868803121561033557600080fd5b8535610340816102b9565b9450602086013567ffffffffffffffff8082111561035d57600080fd5b61036989838a016102d1565b9096509450604088013591508082111561038257600080fd5b5061038f888289016102d1565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156103df576103df6103a0565b604052919050565b600067ffffffffffffffff821115610401576104016103a0565b5060051b60200190565b600082601f83011261041c57600080fd5b8135602061043161042c836103e7565b6103b6565b8083825260208201915060208460051b87010193508684111561045357600080fd5b602086015b8481101561046f5780358352918301918301610458565b509695505050505050565b6000806040838503121561048d57600080fd5b823567ffffffffffffffff808211156104a557600080fd5b818501915085601f8301126104b957600080fd5b813560206104c961042c836103e7565b82815260059290921b840181019181810190898411156104e857600080fd5b948201945b8386101561050f578535610500816102b9565b825294820194908201906104ed565b9650508601359250508082111561052557600080fd5b506105328582860161040b565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561057357634e487b7160e01b600052601160045260246000fd5b92915050565b60006020828403121561058b57600080fd5b8151801515811461059b57600080fd5b9392505050565b6000602082840312156105b457600080fd5b813561059b816102b956fea2646970667358221220b40c4927512ab52cd83b2af5aaf63b91b0bd6f1a080e1e678ed16f8f6d4a743864736f6c63430008190033

Deployed Bytecode Sourcemap

2861:1384:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;3317:513;;;;;;;;;;-1:-1:-1;3317:513:0;;;;;:::i;:::-;;:::i;:::-;;3838:404;;;;;;:::i;:::-;;:::i;3317:513::-;3503:12;3481;;3555:66;3575:21;;;3555:66;;;3612:6;;3619:1;3612:9;;;;;;;:::i;:::-;;;;;;;3603:18;;;;;:::i;:::-;;-1:-1:-1;3598:3:0;;3555:66;;;-1:-1:-1;3642:52:0;;-1:-1:-1;;;3642:52:0;;3661:10;3642:52;;;4596:34:1;3681:4:0;4646:18:1;;;4639:43;4698:18;;;4691:34;;;-1:-1:-1;;;;;3642:18:0;;;;;4531::1;;3642:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3634:61;;;;;;3713:9;3708:115;3728:21;;;3708:115;;;3771:5;-1:-1:-1;;;;;3771:14:0;;3786:10;;3797:1;3786:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;3801:6;;3808:1;3801:9;;;;;;;:::i;:::-;3771:40;;-1:-1:-1;;;;;;3771:40:0;;;;;;;-1:-1:-1;;;;;5486:32:1;;;3771:40:0;;;5468:51:1;3801:9:0;;;;;;;5535:18:1;;;5528:34;-1:-1:-1;5441:18:1;;3771:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;3751:3:0;;3708:115;;;;3470:360;;3317:513;;;;;:::o;3838:404::-;3971:9;3966:103;3990:10;:17;3986:1;:21;3966:103;;;4035:10;4046:1;4035:13;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;4027:31:0;:42;4059:6;4066:1;4059:9;;;;;;;;:::i;:::-;;;;;;;4027:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4009:3:0;;3966:103;;;-1:-1:-1;4098:21:0;4184:11;;4180:54;;4197:37;;4205:10;;4197:37;;;;;4226:7;;4197:37;;;;4226:7;4205:10;4197:37;;;;;;;;;;;;;;;;;;;;;4180:54;3955:287;3838:404;;:::o;14:139:1:-;-1:-1:-1;;;;;97:31:1;;87:42;;77:70;;143:1;140;133:12;77:70;14:139;:::o;158:375::-;229:8;239:6;293:3;286:4;278:6;274:17;270:27;260:55;;311:1;308;301:12;260:55;-1:-1:-1;334:20:1;;377:18;366:30;;363:50;;;409:1;406;399:12;363:50;446:4;438:6;434:17;422:29;;506:3;499:4;489:6;486:1;482:14;474:6;470:27;466:38;463:47;460:67;;;523:1;520;513:12;460:67;158:375;;;;;:::o;538:953::-;690:6;698;706;714;722;775:2;763:9;754:7;750:23;746:32;743:52;;;791:1;788;781:12;743:52;830:9;817:23;849:39;882:5;849:39;:::i;:::-;907:5;-1:-1:-1;963:2:1;948:18;;935:32;986:18;1016:14;;;1013:34;;;1043:1;1040;1033:12;1013:34;1082:78;1152:7;1143:6;1132:9;1128:22;1082:78;:::i;:::-;1179:8;;-1:-1:-1;1056:104:1;-1:-1:-1;1267:2:1;1252:18;;1239:32;;-1:-1:-1;1283:16:1;;;1280:36;;;1312:1;1309;1302:12;1280:36;;1351:80;1423:7;1412:8;1401:9;1397:24;1351:80;:::i;:::-;538:953;;;;-1:-1:-1;538:953:1;;-1:-1:-1;1450:8:1;;1325:106;538:953;-1:-1:-1;;;538:953:1:o;1496:127::-;1557:10;1552:3;1548:20;1545:1;1538:31;1588:4;1585:1;1578:15;1612:4;1609:1;1602:15;1628:275;1699:2;1693:9;1764:2;1745:13;;-1:-1:-1;;1741:27:1;1729:40;;1799:18;1784:34;;1820:22;;;1781:62;1778:88;;;1846:18;;:::i;:::-;1882:2;1875:22;1628:275;;-1:-1:-1;1628:275:1:o;1908:183::-;1968:4;2001:18;1993:6;1990:30;1987:56;;;2023:18;;:::i;:::-;-1:-1:-1;2068:1:1;2064:14;2080:4;2060:25;;1908:183::o;2096:668::-;2150:5;2203:3;2196:4;2188:6;2184:17;2180:27;2170:55;;2221:1;2218;2211:12;2170:55;2257:6;2244:20;2283:4;2307:60;2323:43;2363:2;2323:43;:::i;:::-;2307:60;:::i;:::-;2389:3;2413:2;2408:3;2401:15;2441:4;2436:3;2432:14;2425:21;;2498:4;2492:2;2489:1;2485:10;2477:6;2473:23;2469:34;2455:48;;2526:3;2518:6;2515:15;2512:35;;;2543:1;2540;2533:12;2512:35;2579:4;2571:6;2567:17;2593:142;2609:6;2604:3;2601:15;2593:142;;;2675:17;;2663:30;;2713:12;;;;2626;;2593:142;;;-1:-1:-1;2753:5:1;2096:668;-1:-1:-1;;;;;;2096:668:1:o;2769:1223::-;2887:6;2895;2948:2;2936:9;2927:7;2923:23;2919:32;2916:52;;;2964:1;2961;2954:12;2916:52;3004:9;2991:23;3033:18;3074:2;3066:6;3063:14;3060:34;;;3090:1;3087;3080:12;3060:34;3128:6;3117:9;3113:22;3103:32;;3173:7;3166:4;3162:2;3158:13;3154:27;3144:55;;3195:1;3192;3185:12;3144:55;3231:2;3218:16;3253:4;3277:60;3293:43;3333:2;3293:43;:::i;3277:60::-;3371:15;;;3453:1;3449:10;;;;3441:19;;3437:28;;;3402:12;;;;3477:19;;;3474:39;;;3509:1;3506;3499:12;3474:39;3533:11;;;;3553:225;3569:6;3564:3;3561:15;3553:225;;;3649:3;3636:17;3666:39;3699:5;3666:39;:::i;:::-;3718:18;;3586:12;;;;3756;;;;3553:225;;;3797:5;-1:-1:-1;;3840:18:1;;3827:32;;-1:-1:-1;;3871:16:1;;;3868:36;;;3900:1;3897;3890:12;3868:36;;3923:63;3978:7;3967:8;3956:9;3952:24;3923:63;:::i;:::-;3913:73;;;2769:1223;;;;;:::o;3997:127::-;4058:10;4053:3;4049:20;4046:1;4039:31;4089:4;4086:1;4079:15;4113:4;4110:1;4103:15;4129:222;4194:9;;;4215:10;;;4212:133;;;4267:10;4262:3;4258:20;4255:1;4248:31;4302:4;4299:1;4292:15;4330:4;4327:1;4320:15;4212:133;4129:222;;;;:::o;4736:277::-;4803:6;4856:2;4844:9;4835:7;4831:23;4827:32;4824:52;;;4872:1;4869;4862:12;4824:52;4904:9;4898:16;4957:5;4950:13;4943:21;4936:5;4933:32;4923:60;;4979:1;4976;4969:12;4923:60;5002:5;4736:277;-1:-1:-1;;;4736:277:1:o;5018:263::-;5085:6;5138:2;5126:9;5117:7;5113:23;5109:32;5106:52;;;5154:1;5151;5144:12;5106:52;5193:9;5180:23;5212:39;5245:5;5212:39;:::i

Swarm Source

ipfs://b40c4927512ab52cd83b2af5aaf63b91b0bd6f1a080e1e678ed16f8f6d4a7438

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.