ETH Price: $1,585.00 (+0.73%)
 

Overview

ETH Balance

0.082750343283830136 ETH

Eth Value

$131.16 (@ $1,585.00/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Distribute Aura222910792025-04-17 20:23:2323 mins ago1744921403IN
Aura: Sidechain Distributor
0.00133804 ETH0.000526181
Distribute Aura222682712025-04-14 15:58:353 days ago1744646315IN
Aura: Sidechain Distributor
0.00120656 ETH0.002601195
Distribute Aura222611182025-04-13 16:02:234 days ago1744560143IN
Aura: Sidechain Distributor
0.00122904 ETH0.000525121
Distribute Aura222589252025-04-13 8:42:114 days ago1744533731IN
Aura: Sidechain Distributor
0.00120634 ETH0.000508531
Distribute Aura222450922025-04-11 10:26:116 days ago1744367171IN
Aura: Sidechain Distributor
0.0012846 ETH0.001051272
Distribute Aura222325162025-04-09 16:23:118 days ago1744215791IN
Aura: Sidechain Distributor
0.00153228 ETH0.000509081
Distribute Aura222300042025-04-09 7:58:238 days ago1744185503IN
Aura: Sidechain Distributor
0.00138103 ETH0.000520231
Distribute Aura222182842025-04-07 16:42:2310 days ago1744044143IN
Aura: Sidechain Distributor
0.00129485 ETH0.001525613
Distribute Aura221977982025-04-04 19:58:3513 days ago1743796715IN
Aura: Sidechain Distributor
0.00111786 ETH0.000521121
Distribute Aura221920272025-04-04 0:40:1113 days ago1743727211IN
Aura: Sidechain Distributor
0.00110849 ETH0.0005351
Distribute Aura221906192025-04-03 19:58:1114 days ago1743710291IN
Aura: Sidechain Distributor
0.00110988 ETH0.000537331
Distribute Aura221705442025-04-01 0:41:5916 days ago1743468119IN
Aura: Sidechain Distributor
0.00110109 ETH0.0005351
Distribute Aura221704492025-04-01 0:22:5916 days ago1743466979IN
Aura: Sidechain Distributor
0.00122082 ETH0.000509081
Distribute Aura221616032025-03-30 18:45:2318 days ago1743360323IN
Aura: Sidechain Distributor
0.00109963 ETH0.000520231
Distribute Aura221347382025-03-27 0:42:3521 days ago1743036155IN
Aura: Sidechain Distributor
0.00096065 ETH0.000542731
Distribute Aura221267442025-03-25 21:58:3522 days ago1742939915IN
Aura: Sidechain Distributor
0.0009587 ETH0.000520231
Distribute Aura221227012025-03-25 8:23:1123 days ago1742890991IN
Aura: Sidechain Distributor
0.0010669 ETH0.000509081
Distribute Aura221024872025-03-22 12:42:2326 days ago1742647343IN
Aura: Sidechain Distributor
0.00102192 ETH0.0005351
Distribute Aura220978422025-03-21 21:08:5926 days ago1742591339IN
Aura: Sidechain Distributor
0.00102797 ETH0.000547591
Distribute Aura220928252025-03-21 4:23:1127 days ago1742530991IN
Aura: Sidechain Distributor
0.00113242 ETH0.000509081
Distribute Aura220882132025-03-20 12:56:2328 days ago1742475383IN
Aura: Sidechain Distributor
0.00101997 ETH0.00058291
Distribute Aura220618052025-03-16 20:23:2332 days ago1742156603IN
Aura: Sidechain Distributor
0.00113485 ETH0.000509081
Distribute Aura220605102025-03-16 16:02:2332 days ago1742140943IN
Aura: Sidechain Distributor
0.0010483 ETH0.000525121
Distribute Aura220571242025-03-16 4:41:5932 days ago1742100119IN
Aura: Sidechain Distributor
0.00102139 ETH0.000508531
Distribute Aura220479902025-03-14 22:06:1133 days ago1741989971IN
Aura: Sidechain Distributor
0.00108552 ETH0.000520231
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer222910792025-04-17 20:23:2323 mins ago1744921403
Aura: Sidechain Distributor
0.00012164 ETH
Distribute Aura222910792025-04-17 20:23:2323 mins ago1744921403
Aura: Sidechain Distributor
0.00133804 ETH
Transfer222682712025-04-14 15:58:353 days ago1744646315
Aura: Sidechain Distributor
0.00010968 ETH
Distribute Aura222682712025-04-14 15:58:353 days ago1744646315
Aura: Sidechain Distributor
0.00120656 ETH
Transfer222611182025-04-13 16:02:234 days ago1744560143
Aura: Sidechain Distributor
0.00011173 ETH
Distribute Aura222611182025-04-13 16:02:234 days ago1744560143
Aura: Sidechain Distributor
0.00122904 ETH
Transfer222589252025-04-13 8:42:114 days ago1744533731
Aura: Sidechain Distributor
0.00010966 ETH
Distribute Aura222589252025-04-13 8:42:114 days ago1744533731
Aura: Sidechain Distributor
0.00120634 ETH
Transfer222450922025-04-11 10:26:116 days ago1744367171
Aura: Sidechain Distributor
0.00011678 ETH
Distribute Aura222450922025-04-11 10:26:116 days ago1744367171
Aura: Sidechain Distributor
0.0012846 ETH
Transfer222325162025-04-09 16:23:118 days ago1744215791
Aura: Sidechain Distributor
0.00013929 ETH
Distribute Aura222325162025-04-09 16:23:118 days ago1744215791
Aura: Sidechain Distributor
0.00153228 ETH
Transfer222300042025-04-09 7:58:238 days ago1744185503
Aura: Sidechain Distributor
0.00012554 ETH
Distribute Aura222300042025-04-09 7:58:238 days ago1744185503
Aura: Sidechain Distributor
0.00138103 ETH
Transfer222182842025-04-07 16:42:2310 days ago1744044143
Aura: Sidechain Distributor
0.00011771 ETH
Distribute Aura222182842025-04-07 16:42:2310 days ago1744044143
Aura: Sidechain Distributor
0.00129485 ETH
Transfer221977982025-04-04 19:58:3513 days ago1743796715
Aura: Sidechain Distributor
0.00010162 ETH
Distribute Aura221977982025-04-04 19:58:3513 days ago1743796715
Aura: Sidechain Distributor
0.00111786 ETH
Transfer221920272025-04-04 0:40:1113 days ago1743727211
Aura: Sidechain Distributor
0.00010077 ETH
Distribute Aura221920272025-04-04 0:40:1113 days ago1743727211
Aura: Sidechain Distributor
0.00110849 ETH
Transfer221906192025-04-03 19:58:1114 days ago1743710291
Aura: Sidechain Distributor
0.00010089 ETH
Distribute Aura221906192025-04-03 19:58:1114 days ago1743710291
Aura: Sidechain Distributor
0.00110988 ETH
Transfer221705442025-04-01 0:41:5916 days ago1743468119
Aura: Sidechain Distributor
0.00010009 ETH
Distribute Aura221705442025-04-01 0:41:5916 days ago1743468119
Aura: Sidechain Distributor
0.00110109 ETH
Transfer221704492025-04-01 0:22:5916 days ago1743466979
Aura: Sidechain Distributor
0.00011098 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AuraDistributor

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 8 : AuraDistributor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import { AuraMath } from "../utils/AuraMath.sol";
import { Ownable } from "@openzeppelin/contracts-0.8/access/Ownable.sol";
import { IERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/utils/SafeERC20.sol";
import { IL1Coordinator } from "../sidechain/interfaces/IL1Coordinator.sol";

/**
 * @author Aura Finance
 * @title AuraDistributor
 * @dev Distribute AURA to the L2s wrapped in a L1Coordinator BAL balance check
 */
contract AuraDistributor is Ownable {
    using AuraMath for uint256;
    using SafeERC20 for IERC20;

    /* -------------------------------------------------------------------
       Storage 
    ------------------------------------------------------------------- */

    /// @dev The treasury address
    address public immutable treasury;

    /// @dev The token to send to the address
    address public immutable balToken;

    /// @dev The address to send the tokens to
    address public immutable l1Coordinator;

    /// @dev The distributor address
    address public distributor;

    /* -------------------------------------------------------------------
       Events 
    ------------------------------------------------------------------- */

    event Distribute(uint256 balBalanceBefore, uint256 totalFeeDebt, uint256 balShortfall);

    /* -------------------------------------------------------------------
       Constructor 
    ------------------------------------------------------------------- */

    /**
     * @param _treasury         The treasury address
     * @param _balToken         The BAL token address
     * @param _l1Coordinator    The L1Coordinator address
     * @param _distributor      The distributor address
     */
    constructor(
        address _treasury,
        address _balToken,
        address _l1Coordinator,
        address _distributor
    ) {
        treasury = _treasury;
        balToken = _balToken;
        l1Coordinator = _l1Coordinator;
        distributor = _distributor;
    }

    /* -------------------------------------------------------------------
       Setters 
    ------------------------------------------------------------------- */

    function setDistributor(address _distributor) external onlyOwner {
        distributor = _distributor;
    }

    /* -------------------------------------------------------------------
       Core 
    ------------------------------------------------------------------- */

    /**
     * @dev Distribute AURA tokens to the L1's
     */
    function distributeAura(
        uint16[] memory _srcChainId,
        address[] memory _zroPaymentAddress,
        address[] memory _sendFromZroPaymentAddress,
        bytes[] memory _sendFromAdapterParams,
        uint256[] memory _values
    ) external payable {
        require(msg.sender == distributor, "!distributor");

        uint256 srcChainIdLen = _srcChainId.length;
        require(
            srcChainIdLen == _zroPaymentAddress.length &&
                _zroPaymentAddress.length == _sendFromAdapterParams.length &&
                _sendFromAdapterParams.length == _sendFromZroPaymentAddress.length &&
                _sendFromZroPaymentAddress.length == _values.length,
            "!length"
        );

        uint256 balBalance = IERC20(balToken).balanceOf(l1Coordinator);
        uint256 totalFeeDebt = 0;

        for (uint256 i = 0; i < srcChainIdLen; i++) {
            uint16 srcChainId = _srcChainId[i];
            uint256 feeDebt = IL1Coordinator(l1Coordinator).feeDebtOf(srcChainId);
            uint256 distributedFeeDebt = IL1Coordinator(l1Coordinator).distributedFeeDebtOf(srcChainId);
            totalFeeDebt = totalFeeDebt.add(feeDebt.sub(distributedFeeDebt));
        }

        // If there is more feeDebt to settle than their is BAL in the
        // L1Coordinator then we need to send oversome BAL to cover
        uint256 balShortfall = totalFeeDebt > balBalance ? totalFeeDebt.sub(balBalance) : 0;
        if (balShortfall > 0) {
            IERC20(balToken).safeTransfer(l1Coordinator, balShortfall);
        }

        for (uint256 i = 0; i < srcChainIdLen; i++) {
            IL1Coordinator(l1Coordinator).distributeAura{ value: _values[i] }(
                _srcChainId[i],
                _zroPaymentAddress[i],
                _sendFromZroPaymentAddress[i],
                _sendFromAdapterParams[i]
            );
        }

        emit Distribute(balBalance, totalFeeDebt, balShortfall);
    }

    /**
     * @dev Withdraw ERC20 tokens to treasury
     * @param _token    The token address to withdraw
     * @param _amount   The amount of tokens to send
     */
    function withdrawERC20(address _token, uint256 _amount) external onlyOwner {
        IERC20(_token).safeTransfer(treasury, _amount);
    }

    /**
     * @dev Withdraw ETH balance to treasury
     */
    function withdrawEthBalance() external onlyOwner {
        address addr = address(this);
        (bool sent, ) = payable(treasury).call{ value: addr.balance }("");
        require(sent, "!withdrawn");
    }

    receive() external payable {}
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 3 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

    /**
     * @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);
}

File 4 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}

File 7 of 8 : IL1Coordinator.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/**
 * @title IL1Coordinator
 * @author  AuraFinance
 */
interface IL1Coordinator {
    function balToken() external view returns (address);

    function settleFeeDebt(uint16 srcChainId, uint256 amount) external;

    function feeDebtOf(uint16 srcChainId) external view returns (uint256);

    function distributedFeeDebtOf(uint16 srcChainId) external view returns (uint256);

    function distributeAura(
        uint16 _srcChainId,
        address _zroPaymentAddress,
        address _sendFromZroPaymentAddress,
        bytes memory _sendFromAdapterParams
    ) external payable;
}

File 8 of 8 : AuraMath.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math).
library AuraMath {
    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute.
        return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
    }

    function to224(uint256 a) internal pure returns (uint224 c) {
        require(a <= type(uint224).max, "AuraMath: uint224 Overflow");
        c = uint224(a);
    }

    function to128(uint256 a) internal pure returns (uint128 c) {
        require(a <= type(uint128).max, "AuraMath: uint128 Overflow");
        c = uint128(a);
    }

    function to112(uint256 a) internal pure returns (uint112 c) {
        require(a <= type(uint112).max, "AuraMath: uint112 Overflow");
        c = uint112(a);
    }

    function to96(uint256 a) internal pure returns (uint96 c) {
        require(a <= type(uint96).max, "AuraMath: uint96 Overflow");
        c = uint96(a);
    }

    function to32(uint256 a) internal pure returns (uint32 c) {
        require(a <= type(uint32).max, "AuraMath: uint32 Overflow");
        c = uint32(a);
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32.
library AuraMath32 {
    function sub(uint32 a, uint32 b) internal pure returns (uint32 c) {
        c = a - b;
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint112.
library AuraMath112 {
    function add(uint112 a, uint112 b) internal pure returns (uint112 c) {
        c = a + b;
    }

    function sub(uint112 a, uint112 b) internal pure returns (uint112 c) {
        c = a - b;
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint224.
library AuraMath224 {
    function add(uint224 a, uint224 b) internal pure returns (uint224 c) {
        c = a + b;
    }
}

Settings
{
  "metadata": {
    "bytecodeHash": "none"
  },
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_balToken","type":"address"},{"internalType":"address","name":"_l1Coordinator","type":"address"},{"internalType":"address","name":"_distributor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"balBalanceBefore","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalFeeDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balShortfall","type":"uint256"}],"name":"Distribute","type":"event"},{"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":"balToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_srcChainId","type":"uint16[]"},{"internalType":"address[]","name":"_zroPaymentAddress","type":"address[]"},{"internalType":"address[]","name":"_sendFromZroPaymentAddress","type":"address[]"},{"internalType":"bytes[]","name":"_sendFromAdapterParams","type":"bytes[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"distributeAura","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l1Coordinator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_distributor","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEthBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040523480156200001157600080fd5b5060405162001517380380620015178339810160408190526200003491620000e0565b6200003f3362000073565b6001600160a01b0393841660805291831660a052821660c052600180546001600160a01b031916919092161790556200013d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000db57600080fd5b919050565b60008060008060808587031215620000f757600080fd5b6200010285620000c3565b93506200011260208601620000c3565b92506200012260408601620000c3565b91506200013260608601620000c3565b905092959194509250565b60805160a05160c05161136c620001ab600039600081816101ca015281816103500152818161043c015281816104ce015281816105b901526105eb01526000818160de0152818161037b015261059701526000818161012e015281816108a30152610930015261136c6000f3fe6080604052600436106100c05760003560e01c80638da5cb5b11610074578063bfe109281161004e578063bfe109281461020c578063e8ddf15a1461022c578063f2fde38b1461024157600080fd5b80638da5cb5b1461019a57806394b9a192146101b8578063a1db9782146101ec57600080fd5b80636aa12577116100a55780636aa1257714610150578063715018a61461016557806375619ab51461017a57600080fd5b806338d54645146100cc57806361d027b31461011c57600080fd5b366100c757005b600080fd5b3480156100d857600080fd5b506101007f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b34801561012857600080fd5b506101007f000000000000000000000000000000000000000000000000000000000000000081565b61016361015e3660046110cc565b610261565b005b34801561017157600080fd5b5061016361074b565b34801561018657600080fd5b5061016361019536600461119e565b6107b1565b3480156101a657600080fd5b506000546001600160a01b0316610100565b3480156101c457600080fd5b506101007f000000000000000000000000000000000000000000000000000000000000000081565b3480156101f857600080fd5b506101636102073660046111b9565b61083a565b34801561021857600080fd5b50600154610100906001600160a01b031681565b34801561023857600080fd5b506101636108cc565b34801561024d57600080fd5b5061016361025c36600461119e565b6109ea565b6001546001600160a01b031633146102c05760405162461bcd60e51b815260206004820152600c60248201527f216469737472696275746f72000000000000000000000000000000000000000060448201526064015b60405180910390fd5b84518451811480156102d3575082518551145b80156102e0575083518351145b80156102ed575081518451145b6103395760405162461bcd60e51b815260206004820152600760248201527f216c656e6774680000000000000000000000000000000000000000000000000060448201526064016102b7565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156103c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e891906111e3565b90506000805b8381101561056757600089828151811061040a5761040a6111fc565b6020908102919091010151604051630302118f60e31b815261ffff821660048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906318108c7890602401602060405180830381865afa158015610483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a791906111e3565b6040516302852c4560e11b815261ffff841660048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063050a588a90602401602060405180830381865afa158015610515573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053991906111e3565b905061054f6105488383610acc565b8690610adf565b9450505050808061055f90611228565b9150506103ee565b506000828211610578576000610582565b6105828284610acc565b905080156105de576105de6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610aeb565b60005b848110156106fe577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630cda8ef587838151811061062a5761062a6111fc565b60200260200101518c8481518110610644576106446111fc565b60200260200101518c858151811061065e5761065e6111fc565b60200260200101518c8681518110610678576106786111fc565b60200260200101518c8781518110610692576106926111fc565b60200260200101516040518663ffffffff1660e01b81526004016106b9949392919061129f565b6000604051808303818588803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050505080806106f690611228565b9150506105e1565b5060408051848152602081018490529081018290527f9d48983e2f4e350e64eb0b622b5bb0a68827b859f248aa39cf780fdaee410e789060600160405180910390a1505050505050505050565b6000546001600160a01b031633146107a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b6107af6000610b57565b565b6000546001600160a01b0316331461080b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b6108c86001600160a01b0383167f000000000000000000000000000000000000000000000000000000000000000083610aeb565b5050565b6000546001600160a01b031633146109265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b60405130906000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908331908381818185875af1925050503d8060008114610994576040519150601f19603f3d011682016040523d82523d6000602084013e610999565b606091505b50509050806108c85760405162461bcd60e51b815260206004820152600a60248201527f2177697468647261776e0000000000000000000000000000000000000000000060448201526064016102b7565b6000546001600160a01b03163314610a445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b6001600160a01b038116610ac05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102b7565b610ac981610b57565b50565b6000610ad882846112df565b9392505050565b6000610ad882846112f6565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b179052610b52908490610bb4565b505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610c09826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c999092919063ffffffff16565b805190915015610b525780806020019051810190610c27919061130e565b610b525760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102b7565b6060610ca88484600085610cb0565b949350505050565b606082471015610d285760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102b7565b843b610d765760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b7565b600080866001600160a01b03168587604051610d929190611330565b60006040518083038185875af1925050503d8060008114610dcf576040519150601f19603f3d011682016040523d82523d6000602084013e610dd4565b606091505b5091509150610de4828286610def565b979650505050505050565b60608315610dfe575081610ad8565b825115610e0e5782518084602001fd5b8160405162461bcd60e51b81526004016102b7919061134c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610e6757610e67610e28565b604052919050565b600067ffffffffffffffff821115610e8957610e89610e28565b5060051b60200190565b600082601f830112610ea457600080fd5b81356020610eb9610eb483610e6f565b610e3e565b82815260059290921b84018101918181019086841115610ed857600080fd5b8286015b84811015610f0457803561ffff81168114610ef75760008081fd5b8352918301918301610edc565b509695505050505050565b80356001600160a01b0381168114610f2657600080fd5b919050565b600082601f830112610f3c57600080fd5b81356020610f4c610eb483610e6f565b82815260059290921b84018101918181019086841115610f6b57600080fd5b8286015b84811015610f0457610f8081610f0f565b8352918301918301610f6f565b6000601f8381840112610f9f57600080fd5b82356020610faf610eb483610e6f565b82815260059290921b85018101918181019087841115610fce57600080fd5b8287015b8481101561106557803567ffffffffffffffff80821115610ff35760008081fd5b818a0191508a603f8301126110085760008081fd5b8582013560408282111561101e5761101e610e28565b61102f828b01601f19168901610e3e565b92508183528c818386010111156110465760008081fd5b8181850189850137506000908201870152845250918301918301610fd2565b50979650505050505050565b600082601f83011261108257600080fd5b81356020611092610eb483610e6f565b82815260059290921b840181019181810190868411156110b157600080fd5b8286015b84811015610f0457803583529183019183016110b5565b600080600080600060a086880312156110e457600080fd5b853567ffffffffffffffff808211156110fc57600080fd5b61110889838a01610e93565b9650602088013591508082111561111e57600080fd5b61112a89838a01610f2b565b9550604088013591508082111561114057600080fd5b61114c89838a01610f2b565b9450606088013591508082111561116257600080fd5b61116e89838a01610f8d565b9350608088013591508082111561118457600080fd5b5061119188828901611071565b9150509295509295909350565b6000602082840312156111b057600080fd5b610ad882610f0f565b600080604083850312156111cc57600080fd5b6111d583610f0f565b946020939093013593505050565b6000602082840312156111f557600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561123c5761123c611212565b5060010190565b60005b8381101561125e578181015183820152602001611246565b8381111561126d576000848401525b50505050565b6000815180845261128b816020860160208601611243565b601f01601f19169290920160200192915050565b61ffff8516815260006001600160a01b038086166020840152808516604084015250608060608301526112d56080830184611273565b9695505050505050565b6000828210156112f1576112f1611212565b500390565b6000821982111561130957611309611212565b500190565b60006020828403121561132057600080fd5b81518015158114610ad857600080fd5b60008251611342818460208701611243565b9190910192915050565b602081526000610ad8602083018461127356fea164736f6c634300080b000a000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d000000000000000000000000aa54f3b282805822419265208e669d12372a3811000000000000000000000000fc3f4e28d914da71447d94829c48b1248c7c0b46

Deployed Bytecode

0x6080604052600436106100c05760003560e01c80638da5cb5b11610074578063bfe109281161004e578063bfe109281461020c578063e8ddf15a1461022c578063f2fde38b1461024157600080fd5b80638da5cb5b1461019a57806394b9a192146101b8578063a1db9782146101ec57600080fd5b80636aa12577116100a55780636aa1257714610150578063715018a61461016557806375619ab51461017a57600080fd5b806338d54645146100cc57806361d027b31461011c57600080fd5b366100c757005b600080fd5b3480156100d857600080fd5b506101007f000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d81565b6040516001600160a01b03909116815260200160405180910390f35b34801561012857600080fd5b506101007f000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca981565b61016361015e3660046110cc565b610261565b005b34801561017157600080fd5b5061016361074b565b34801561018657600080fd5b5061016361019536600461119e565b6107b1565b3480156101a657600080fd5b506000546001600160a01b0316610100565b3480156101c457600080fd5b506101007f000000000000000000000000aa54f3b282805822419265208e669d12372a381181565b3480156101f857600080fd5b506101636102073660046111b9565b61083a565b34801561021857600080fd5b50600154610100906001600160a01b031681565b34801561023857600080fd5b506101636108cc565b34801561024d57600080fd5b5061016361025c36600461119e565b6109ea565b6001546001600160a01b031633146102c05760405162461bcd60e51b815260206004820152600c60248201527f216469737472696275746f72000000000000000000000000000000000000000060448201526064015b60405180910390fd5b84518451811480156102d3575082518551145b80156102e0575083518351145b80156102ed575081518451145b6103395760405162461bcd60e51b815260206004820152600760248201527f216c656e6774680000000000000000000000000000000000000000000000000060448201526064016102b7565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000aa54f3b282805822419265208e669d12372a3811811660048301526000917f000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d909116906370a0823190602401602060405180830381865afa1580156103c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e891906111e3565b90506000805b8381101561056757600089828151811061040a5761040a6111fc565b6020908102919091010151604051630302118f60e31b815261ffff821660048201529091506000906001600160a01b037f000000000000000000000000aa54f3b282805822419265208e669d12372a381116906318108c7890602401602060405180830381865afa158015610483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a791906111e3565b6040516302852c4560e11b815261ffff841660048201529091506000906001600160a01b037f000000000000000000000000aa54f3b282805822419265208e669d12372a3811169063050a588a90602401602060405180830381865afa158015610515573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053991906111e3565b905061054f6105488383610acc565b8690610adf565b9450505050808061055f90611228565b9150506103ee565b506000828211610578576000610582565b6105828284610acc565b905080156105de576105de6001600160a01b037f000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d167f000000000000000000000000aa54f3b282805822419265208e669d12372a381183610aeb565b60005b848110156106fe577f000000000000000000000000aa54f3b282805822419265208e669d12372a38116001600160a01b0316630cda8ef587838151811061062a5761062a6111fc565b60200260200101518c8481518110610644576106446111fc565b60200260200101518c858151811061065e5761065e6111fc565b60200260200101518c8681518110610678576106786111fc565b60200260200101518c8781518110610692576106926111fc565b60200260200101516040518663ffffffff1660e01b81526004016106b9949392919061129f565b6000604051808303818588803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050505080806106f690611228565b9150506105e1565b5060408051848152602081018490529081018290527f9d48983e2f4e350e64eb0b622b5bb0a68827b859f248aa39cf780fdaee410e789060600160405180910390a1505050505050505050565b6000546001600160a01b031633146107a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b6107af6000610b57565b565b6000546001600160a01b0316331461080b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b6108c86001600160a01b0383167f000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca983610aeb565b5050565b6000546001600160a01b031633146109265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b60405130906000907f000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca96001600160a01b0316908331908381818185875af1925050503d8060008114610994576040519150601f19603f3d011682016040523d82523d6000602084013e610999565b606091505b50509050806108c85760405162461bcd60e51b815260206004820152600a60248201527f2177697468647261776e0000000000000000000000000000000000000000000060448201526064016102b7565b6000546001600160a01b03163314610a445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b7565b6001600160a01b038116610ac05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102b7565b610ac981610b57565b50565b6000610ad882846112df565b9392505050565b6000610ad882846112f6565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b179052610b52908490610bb4565b505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610c09826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c999092919063ffffffff16565b805190915015610b525780806020019051810190610c27919061130e565b610b525760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102b7565b6060610ca88484600085610cb0565b949350505050565b606082471015610d285760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102b7565b843b610d765760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b7565b600080866001600160a01b03168587604051610d929190611330565b60006040518083038185875af1925050503d8060008114610dcf576040519150601f19603f3d011682016040523d82523d6000602084013e610dd4565b606091505b5091509150610de4828286610def565b979650505050505050565b60608315610dfe575081610ad8565b825115610e0e5782518084602001fd5b8160405162461bcd60e51b81526004016102b7919061134c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610e6757610e67610e28565b604052919050565b600067ffffffffffffffff821115610e8957610e89610e28565b5060051b60200190565b600082601f830112610ea457600080fd5b81356020610eb9610eb483610e6f565b610e3e565b82815260059290921b84018101918181019086841115610ed857600080fd5b8286015b84811015610f0457803561ffff81168114610ef75760008081fd5b8352918301918301610edc565b509695505050505050565b80356001600160a01b0381168114610f2657600080fd5b919050565b600082601f830112610f3c57600080fd5b81356020610f4c610eb483610e6f565b82815260059290921b84018101918181019086841115610f6b57600080fd5b8286015b84811015610f0457610f8081610f0f565b8352918301918301610f6f565b6000601f8381840112610f9f57600080fd5b82356020610faf610eb483610e6f565b82815260059290921b85018101918181019087841115610fce57600080fd5b8287015b8481101561106557803567ffffffffffffffff80821115610ff35760008081fd5b818a0191508a603f8301126110085760008081fd5b8582013560408282111561101e5761101e610e28565b61102f828b01601f19168901610e3e565b92508183528c818386010111156110465760008081fd5b8181850189850137506000908201870152845250918301918301610fd2565b50979650505050505050565b600082601f83011261108257600080fd5b81356020611092610eb483610e6f565b82815260059290921b840181019181810190868411156110b157600080fd5b8286015b84811015610f0457803583529183019183016110b5565b600080600080600060a086880312156110e457600080fd5b853567ffffffffffffffff808211156110fc57600080fd5b61110889838a01610e93565b9650602088013591508082111561111e57600080fd5b61112a89838a01610f2b565b9550604088013591508082111561114057600080fd5b61114c89838a01610f2b565b9450606088013591508082111561116257600080fd5b61116e89838a01610f8d565b9350608088013591508082111561118457600080fd5b5061119188828901611071565b9150509295509295909350565b6000602082840312156111b057600080fd5b610ad882610f0f565b600080604083850312156111cc57600080fd5b6111d583610f0f565b946020939093013593505050565b6000602082840312156111f557600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561123c5761123c611212565b5060010190565b60005b8381101561125e578181015183820152602001611246565b8381111561126d576000848401525b50505050565b6000815180845261128b816020860160208601611243565b601f01601f19169290920160200192915050565b61ffff8516815260006001600160a01b038086166020840152808516604084015250608060608301526112d56080830184611273565b9695505050505050565b6000828210156112f1576112f1611212565b500390565b6000821982111561130957611309611212565b500190565b60006020828403121561132057600080fd5b81518015158114610ad857600080fd5b60008251611342818460208701611243565b9190910192915050565b602081526000610ad8602083018461127356fea164736f6c634300080b000a

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

000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d000000000000000000000000aa54f3b282805822419265208e669d12372a3811000000000000000000000000fc3f4e28d914da71447d94829c48b1248c7c0b46

-----Decoded View---------------
Arg [0] : _treasury (address): 0xfc78f8e1Af80A3bF5A1783BB59eD2d1b10f78cA9
Arg [1] : _balToken (address): 0xba100000625a3754423978a60c9317c58a424e3D
Arg [2] : _l1Coordinator (address): 0xaA54f3b282805822419265208e669d12372a3811
Arg [3] : _distributor (address): 0xFC3F4e28D914dA71447d94829C48b1248c7C0b46

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9
Arg [1] : 000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d
Arg [2] : 000000000000000000000000aa54f3b282805822419265208e669d12372a3811
Arg [3] : 000000000000000000000000fc3f4e28d914da71447d94829c48b1248c7c0b46


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
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.