ETH Price: $2,262.11 (+7.30%)

Contract

0x2CC861aA34C7311CD18fCd145f7f7E04dF76F4a3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Distribute Funds246672462026-03-16 3:01:592 hrs ago1773630119IN
0x2CC861aA...4dF76F4a3
0 ETH0.000012290.04689538
Distribute Funds246641882026-03-15 16:48:3512 hrs ago1773593315IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007880.03386668
Distribute Funds246464632026-03-13 5:29:472 days ago1773379787IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007110.0305694
Distribute Funds246436882026-03-12 20:10:593 days ago1773346259IN
0x2CC861aA...4dF76F4a3
0 ETH0.000019580.07011856
Distribute Funds246366242026-03-11 20:30:474 days ago1773261047IN
0x2CC861aA...4dF76F4a3
0 ETH0.000011860.05095969
Distribute Funds246296092026-03-10 20:59:595 days ago1773176399IN
0x2CC861aA...4dF76F4a3
0 ETH0.000012320.05288421
Distribute Funds246251572026-03-10 6:02:475 days ago1773122567IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007680.0330435
Distribute Funds246234232026-03-10 0:14:116 days ago1773101651IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007960.03689704
Distribute Funds246172802026-03-09 3:39:117 days ago1773027551IN
0x2CC861aA...4dF76F4a3
0 ETH0.000019810.07087014
Distribute Funds246055572026-03-07 12:24:598 days ago1772886299IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007740.03325943
Distribute Funds246010472026-03-06 21:16:599 days ago1772831819IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007310.03384622
Distribute Funds245951042026-03-06 1:19:5910 days ago1772759999IN
0x2CC861aA...4dF76F4a3
0 ETH0.000006860.03186416
Distribute Funds245948942026-03-06 0:37:5910 days ago1772757479IN
0x2CC861aA...4dF76F4a3
0 ETH0.000008250.03543275
Distribute Funds245865662026-03-04 20:45:1111 days ago1772657111IN
0x2CC861aA...4dF76F4a3
0 ETH0.000018340.07885199
Distribute Funds245735552026-03-03 1:10:2313 days ago1772500223IN
0x2CC861aA...4dF76F4a3
0 ETH0.000008020.03444173
Distribute Funds245633482026-03-01 15:00:2314 days ago1772377223IN
0x2CC861aA...4dF76F4a3
0 ETH0.000010320.04427241
Distribute Funds245623752026-03-01 11:44:3514 days ago1772365475IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007590.03518713
Distribute Funds245603292026-03-01 4:53:4715 days ago1772340827IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007930.03406349
Distribute Funds245379382026-02-26 1:55:2318 days ago1772070923IN
0x2CC861aA...4dF76F4a3
0 ETH0.000012370.04430402
Distribute Funds245260022026-02-24 9:56:1119 days ago1771926971IN
0x2CC861aA...4dF76F4a3
0 ETH0.000012320.04580388
Distribute Funds245128652026-02-22 13:59:3521 days ago1771768775IN
0x2CC861aA...4dF76F4a3
0 ETH0.000011590.03976096
Distribute Funds245093472026-02-22 2:13:4722 days ago1771726427IN
0x2CC861aA...4dF76F4a3
0 ETH0.000008740.03128616
Distribute Funds245075202026-02-21 20:06:1122 days ago1771704371IN
0x2CC861aA...4dF76F4a3
0 ETH0.000008220.03415206
Distribute Funds245027002026-02-21 3:58:3523 days ago1771646315IN
0x2CC861aA...4dF76F4a3
0 ETH0.000007440.03194231
Distribute Funds244865312026-02-18 21:52:1125 days ago1771451531IN
0x2CC861aA...4dF76F4a3
0 ETH0.000012140.05205046
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer246672462026-03-16 3:01:592 hrs ago1773630119
0x2CC861aA...4dF76F4a3
0.00001267 ETH
Transfer246672462026-03-16 3:01:592 hrs ago1773630119
0x2CC861aA...4dF76F4a3
0.00001267 ETH
Transfer246641882026-03-15 16:48:3512 hrs ago1773593315
0x2CC861aA...4dF76F4a3
0.00000844 ETH
Transfer246641882026-03-15 16:48:3512 hrs ago1773593315
0x2CC861aA...4dF76F4a3
0.00000844 ETH
Transfer246635302026-03-15 14:36:5914 hrs ago1773585419
0x2CC861aA...4dF76F4a3
0.00004224 ETH
Transfer246635302026-03-15 14:36:5914 hrs ago1773585419
0x2CC861aA...4dF76F4a3
0.00004224 ETH
Transfer246621842026-03-15 10:06:3518 hrs ago1773569195
0x2CC861aA...4dF76F4a3
0.00002112 ETH
Transfer246621842026-03-15 10:06:3518 hrs ago1773569195
0x2CC861aA...4dF76F4a3
0.00002112 ETH
Transfer246621682026-03-15 10:03:2318 hrs ago1773569003
0x2CC861aA...4dF76F4a3
0.00004224 ETH
Transfer246621682026-03-15 10:03:2318 hrs ago1773569003
0x2CC861aA...4dF76F4a3
0.00004224 ETH
Transfer246620592026-03-15 9:41:3519 hrs ago1773567695
0x2CC861aA...4dF76F4a3
0.00002534 ETH
Transfer246620592026-03-15 9:41:3519 hrs ago1773567695
0x2CC861aA...4dF76F4a3
0.00002534 ETH
Transfer246595552026-03-15 1:18:5927 hrs ago1773537539
0x2CC861aA...4dF76F4a3
0.0001056 ETH
Transfer246595552026-03-15 1:18:5927 hrs ago1773537539
0x2CC861aA...4dF76F4a3
0.0001056 ETH
Transfer246563112026-03-14 14:26:2338 hrs ago1773498383
0x2CC861aA...4dF76F4a3
0.00001267 ETH
Transfer246563112026-03-14 14:26:2338 hrs ago1773498383
0x2CC861aA...4dF76F4a3
0.00001267 ETH
Transfer246552842026-03-14 11:00:3542 hrs ago1773486035
0x2CC861aA...4dF76F4a3
0.00004224 ETH
Transfer246552842026-03-14 11:00:3542 hrs ago1773486035
0x2CC861aA...4dF76F4a3
0.00004224 ETH
Transfer246550112026-03-14 10:05:3542 hrs ago1773482735
0x2CC861aA...4dF76F4a3
0.00000844 ETH
Transfer246550112026-03-14 10:05:3542 hrs ago1773482735
0x2CC861aA...4dF76F4a3
0.00000844 ETH
Transfer246550022026-03-14 10:03:4742 hrs ago1773482627
0x2CC861aA...4dF76F4a3
0.00003379 ETH
Transfer246550022026-03-14 10:03:4742 hrs ago1773482627
0x2CC861aA...4dF76F4a3
0.00003379 ETH
Transfer246549732026-03-14 9:57:5943 hrs ago1773482279
0x2CC861aA...4dF76F4a3
0.00004224 ETH
Transfer246549732026-03-14 9:57:5943 hrs ago1773482279
0x2CC861aA...4dF76F4a3
0.00004224 ETH
Transfer246489032026-03-13 13:39:592 days ago1773409199
0x2CC861aA...4dF76F4a3
0.00016473 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
DistributionWrapper

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./interfaces/IBlazeAuction.sol";
import "./interfaces/IBlazeStaking.sol";

contract DistributionWrapper is ReentrancyGuard {
    IBlazeAuction public blazeAuction;
    IBlazeStaking public blazeStaking;
    uint32 public stakingStartTimestamp;

    constructor(address _auction, address _staking) {
        require(_auction != address(0), "Invalid auction Addresses");
        require(_staking!= address(0), "Invalid stakingAddresses");
        blazeAuction = IBlazeAuction(_auction);        
        blazeStaking = IBlazeStaking(_staking);        
        stakingStartTimestamp = blazeStaking._deploymentTimeStamp();
    }

    receive() external payable {}

    function distributeFunds() external nonReentrant {
        uint32 currentDay = uint32(((block.timestamp - stakingStartTimestamp) / 1 days) + 1);

        uint256 beforeEthBalance = address(this).balance;

        blazeAuction.claimFees();
        blazeStaking.setFeeRewardsForAllCycle();

        uint256 next8Day = blazeStaking.getNextCycleDistributionDay(8);

        if(currentDay >= next8Day) {
            blazeStaking.distributeFeeRewardsForAll();
        }

        uint256 incentive = address(this).balance - beforeEthBalance;

        (bool sent, ) = payable(msg.sender).call{value: incentive}("");
        require(sent, "Failed to send Ether");
    }

    function claimFees() external nonReentrant {
        blazeAuction.claimFees();
    }

    function setFeeRewardsForAllCycle() external nonReentrant {
        blazeStaking.setFeeRewardsForAllCycle();
    }

    function distributeFeeRewardsForAll() external nonReentrant {
        blazeStaking.distributeFeeRewardsForAll();
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;

interface IBlazeAuction {
    function mintBlazeTokensForLP() external;
        
    function claimFees() external;
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;

interface IBlazeStaking {
    function setFeeRewardsForAllCycle() external;

    function distributeFeeRewardsForAll() external;

    function _deploymentTimeStamp() external view returns (uint32);

    function getNextCycleDistributionDay(uint16) external view returns (uint256);

    function getUser2888BlazeToken(address user, uint256 cycle) external view returns (uint256 blazeTokenStaked);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_auction","type":"address"},{"internalType":"address","name":"_staking","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"blazeAuction","outputs":[{"internalType":"contract IBlazeAuction","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blazeStaking","outputs":[{"internalType":"contract IBlazeStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeFeeRewardsForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setFeeRewardsForAllCycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingStartTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060405161083c38038061083c83398101604081905261002f916101b5565b60016000556001600160a01b03821661008f5760405162461bcd60e51b815260206004820152601960248201527f496e76616c69642061756374696f6e204164647265737365730000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166100e55760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207374616b696e6741646472657373657300000000000000006044820152606401610086565b600180546001600160a01b038085166001600160a01b03199283161790925560028054928416929091168217905560408051630c9bd72560e31b815290516364deb928916004808201926020929091908290030181865afa15801561014e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061017291906101e8565b600260146101000a81548163ffffffff021916908363ffffffff1602179055505050610215565b80516001600160a01b03811681146101b057600080fd5b919050565b600080604083850312156101c857600080fd5b6101d183610199565b91506101df60208401610199565b90509250929050565b6000602082840312156101fa57600080fd5b815163ffffffff8116811461020e57600080fd5b9392505050565b610618806102246000396000f3fe6080604052600436106100745760003560e01c806386491dd91161004e57806386491dd91461010d578063c2459ca814610122578063c36e60a914610142578063d294f0931461015757600080fd5b80633a6a4d2e146100805780635b2ef37e146100975780637402a85d146100d457600080fd5b3661007b57005b600080fd5b34801561008c57600080fd5b5061009561016c565b005b3480156100a357600080fd5b506002546100b7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100e057600080fd5b506002546100f890600160a01b900463ffffffff1681565b60405163ffffffff90911681526020016100cb565b34801561011957600080fd5b50610095610411565b34801561012e57600080fd5b506001546100b7906001600160a01b031681565b34801561014e57600080fd5b5061009561048b565b34801561016357600080fd5b506100956104e3565b61017461053b565b600254600090620151809061019690600160a01b900463ffffffff164261057b565b6101a09190610594565b6101ab9060016105b6565b6001546040805163d294f09360e01b8152905192935047926001600160a01b039092169163d294f0939160048082019260009290919082900301818387803b1580156101f657600080fd5b505af115801561020a573d6000803e3d6000fd5b50505050600260009054906101000a90046001600160a01b03166001600160a01b03166386491dd96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561025e57600080fd5b505af1158015610272573d6000803e3d6000fd5b505060025460405163a84dd99360e01b815260086004820152600093506001600160a01b03909116915063a84dd99390602401602060405180830381865afa1580156102c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e691906105c9565b9050808363ffffffff161061035e57600260009054906101000a90046001600160a01b03166001600160a01b031663c36e60a96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561034557600080fd5b505af1158015610359573d6000803e3d6000fd5b505050505b600061036a834761057b565b604051909150600090339083908381818185875af1925050503d80600081146103af576040519150601f19603f3d011682016040523d82523d6000602084013e6103b4565b606091505b50509050806104005760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015260640160405180910390fd5b505050505061040f6001600055565b565b61041961053b565b600260009054906101000a90046001600160a01b03166001600160a01b03166386491dd96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561046957600080fd5b505af115801561047d573d6000803e3d6000fd5b5050505061040f6001600055565b61049361053b565b600260009054906101000a90046001600160a01b03166001600160a01b031663c36e60a96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561046957600080fd5b6104eb61053b565b600160009054906101000a90046001600160a01b03166001600160a01b031663d294f0936040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561046957600080fd5b60026000540361055e57604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b634e487b7160e01b600052601160045260246000fd5b8181038181111561058e5761058e610565565b92915050565b6000826105b157634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561058e5761058e610565565b6000602082840312156105db57600080fd5b505191905056fea2646970667358221220eb75df31752b7dc29c9543838ce31f66cb8929944378e93e29726143e2a4188b64736f6c63430008180033000000000000000000000000200ed69de20fe522d08df5d7ce3d69aba4e02e74000000000000000000000000bc0043bc5b0c394d9d05d49768f9548f8cf9587b

Deployed Bytecode

0x6080604052600436106100745760003560e01c806386491dd91161004e57806386491dd91461010d578063c2459ca814610122578063c36e60a914610142578063d294f0931461015757600080fd5b80633a6a4d2e146100805780635b2ef37e146100975780637402a85d146100d457600080fd5b3661007b57005b600080fd5b34801561008c57600080fd5b5061009561016c565b005b3480156100a357600080fd5b506002546100b7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100e057600080fd5b506002546100f890600160a01b900463ffffffff1681565b60405163ffffffff90911681526020016100cb565b34801561011957600080fd5b50610095610411565b34801561012e57600080fd5b506001546100b7906001600160a01b031681565b34801561014e57600080fd5b5061009561048b565b34801561016357600080fd5b506100956104e3565b61017461053b565b600254600090620151809061019690600160a01b900463ffffffff164261057b565b6101a09190610594565b6101ab9060016105b6565b6001546040805163d294f09360e01b8152905192935047926001600160a01b039092169163d294f0939160048082019260009290919082900301818387803b1580156101f657600080fd5b505af115801561020a573d6000803e3d6000fd5b50505050600260009054906101000a90046001600160a01b03166001600160a01b03166386491dd96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561025e57600080fd5b505af1158015610272573d6000803e3d6000fd5b505060025460405163a84dd99360e01b815260086004820152600093506001600160a01b03909116915063a84dd99390602401602060405180830381865afa1580156102c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e691906105c9565b9050808363ffffffff161061035e57600260009054906101000a90046001600160a01b03166001600160a01b031663c36e60a96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561034557600080fd5b505af1158015610359573d6000803e3d6000fd5b505050505b600061036a834761057b565b604051909150600090339083908381818185875af1925050503d80600081146103af576040519150601f19603f3d011682016040523d82523d6000602084013e6103b4565b606091505b50509050806104005760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015260640160405180910390fd5b505050505061040f6001600055565b565b61041961053b565b600260009054906101000a90046001600160a01b03166001600160a01b03166386491dd96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561046957600080fd5b505af115801561047d573d6000803e3d6000fd5b5050505061040f6001600055565b61049361053b565b600260009054906101000a90046001600160a01b03166001600160a01b031663c36e60a96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561046957600080fd5b6104eb61053b565b600160009054906101000a90046001600160a01b03166001600160a01b031663d294f0936040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561046957600080fd5b60026000540361055e57604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b634e487b7160e01b600052601160045260246000fd5b8181038181111561058e5761058e610565565b92915050565b6000826105b157634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561058e5761058e610565565b6000602082840312156105db57600080fd5b505191905056fea2646970667358221220eb75df31752b7dc29c9543838ce31f66cb8929944378e93e29726143e2a4188b64736f6c63430008180033

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

000000000000000000000000200ed69de20fe522d08df5d7ce3d69aba4e02e74000000000000000000000000bc0043bc5b0c394d9d05d49768f9548f8cf9587b

-----Decoded View---------------
Arg [0] : _auction (address): 0x200ed69de20Fe522d08dF5d7CE3d69aba4e02e74
Arg [1] : _staking (address): 0xBc0043bc5b0c394D9d05d49768f9548F8CF9587b

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000200ed69de20fe522d08df5d7ce3d69aba4e02e74
Arg [1] : 000000000000000000000000bc0043bc5b0c394d9d05d49768f9548f8cf9587b


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.