Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 481 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Distribute Funds | 21478793 | 2 hrs ago | IN | 0 ETH | 0.00093897 | ||||
Distribute Funds | 21478638 | 3 hrs ago | IN | 0 ETH | 0.00112963 | ||||
Distribute Funds | 21471780 | 26 hrs ago | IN | 0 ETH | 0.00027662 | ||||
Distribute Funds | 21471226 | 28 hrs ago | IN | 0 ETH | 0.00180539 | ||||
Distribute Funds | 21464501 | 2 days ago | IN | 0 ETH | 0.00030425 | ||||
Distribute Funds | 21464500 | 2 days ago | IN | 0 ETH | 0.00197509 | ||||
Distribute Funds | 21464285 | 2 days ago | IN | 0 ETH | 0.0015011 | ||||
Distribute Funds | 21455654 | 3 days ago | IN | 0 ETH | 0.00275859 | ||||
Distribute Funds | 21443387 | 5 days ago | IN | 0 ETH | 0.00665199 | ||||
Distribute Funds | 21435734 | 6 days ago | IN | 0 ETH | 0.0020427 | ||||
Distribute Funds | 21428618 | 7 days ago | IN | 0 ETH | 0.00387712 | ||||
Distribute Funds | 21417983 | 8 days ago | IN | 0 ETH | 0.00414267 | ||||
Distribute Funds | 21409795 | 9 days ago | IN | 0 ETH | 0.00191565 | ||||
Distribute Funds | 21396894 | 11 days ago | IN | 0 ETH | 0.00290447 | ||||
Distribute Funds | 21385911 | 13 days ago | IN | 0 ETH | 0.00303857 | ||||
Distribute Funds | 21377927 | 14 days ago | IN | 0 ETH | 0.00278638 | ||||
Distribute Funds | 21371324 | 15 days ago | IN | 0 ETH | 0.00508593 | ||||
Distribute Funds | 21370651 | 15 days ago | IN | 0 ETH | 0.00254759 | ||||
Distribute Funds | 21359677 | 16 days ago | IN | 0 ETH | 0.00251411 | ||||
Distribute Funds | 21350517 | 18 days ago | IN | 0 ETH | 0.00318457 | ||||
Distribute Funds | 21347744 | 18 days ago | IN | 0 ETH | 0.00275492 | ||||
Distribute Funds | 21343124 | 19 days ago | IN | 0 ETH | 0.00272333 | ||||
Distribute Funds | 21339691 | 19 days ago | IN | 0 ETH | 0.00431956 | ||||
Distribute Funds | 21328065 | 21 days ago | IN | 0 ETH | 0.00364859 | ||||
Distribute Funds | 21320679 | 22 days ago | IN | 0 ETH | 0.00450184 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21478793 | 2 hrs ago | 0.0009504 ETH | ||||
21478793 | 2 hrs ago | 0.0009504 ETH | ||||
21478638 | 3 hrs ago | 0.00124608 ETH | ||||
21478638 | 3 hrs ago | 0.00124608 ETH | ||||
21471780 | 26 hrs ago | 0.00238233 ETH | ||||
21471780 | 26 hrs ago | 0.00238233 ETH | ||||
21471226 | 28 hrs ago | 0.0019008 ETH | ||||
21471226 | 28 hrs ago | 0.0019008 ETH | ||||
21464500 | 2 days ago | 0.0020064 ETH | ||||
21464500 | 2 days ago | 0.0020064 ETH | ||||
21464285 | 2 days ago | 0.00152486 ETH | ||||
21464285 | 2 days ago | 0.00152486 ETH | ||||
21458413 | 2 days ago | 0.0024288 ETH | ||||
21458413 | 2 days ago | 0.0024288 ETH | ||||
21455654 | 3 days ago | 0.00313843 ETH | ||||
21455654 | 3 days ago | 0.00313843 ETH | ||||
21450035 | 4 days ago | 0.00247104 ETH | ||||
21450035 | 4 days ago | 0.00247104 ETH | ||||
21443387 | 5 days ago | 0.00544896 ETH | ||||
21443387 | 5 days ago | 0.00544896 ETH | ||||
21435734 | 6 days ago | 0.00207398 ETH | ||||
21435734 | 6 days ago | 0.00207398 ETH | ||||
21435007 | 6 days ago | 0.00310464 ETH | ||||
21435007 | 6 days ago | 0.00310464 ETH | ||||
21428618 | 7 days ago | 0.00223872 ETH |
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
Contract Source Code (Solidity Standard Json-Input format)
// 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.