🔥
BurnHookBNB Chain

Contract Source

Full source of every core contract, identical to the version deployed and verified on BscScan. All contracts are non-upgradeable with no admin after launch.

src/interfaces/IXBurn.sol

XBurn interface

33 linessolc 0.8.26 · via-ir · optimizer 200sha256 94ded3c7a116d05e…
1// SPDX-License-Identifier: MIT
2pragma solidity ^0.8.26;
3
4import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
5
6/// @title IXBurn
7/// @notice Dividend share token (SushiBar model)
8interface IXBurn is IERC20 {
9 event Entered(address indexed user, uint256 burnAmount, uint256 xBurnMinted);
10 event Claimed(address indexed user, uint256 xBurnBurned, uint256 dividendOut);
11 event DividendReceived(uint256 amount, uint256 newDividendPool);
13 /// @notice Burn BURN to receive xBURN shares
14 function enter(uint256 burnAmount) external;
16 /// @notice Burn xBURN to redeem the corresponding dividend token (WETH/WBNB)
17 function claim(uint256 xBurnAmount) external;
19 /// @notice Called by the hook during a swap to inject the captured fee into the dividend pool
20 function notifyDividend(uint256 amount) external;
22 /// @notice The paired/dividend token address (WETH or WBNB)
23 function dividendToken() external view returns (IERC20);
25 /// @notice The total amount currently available in the dividend pool for distribution
26 function dividendPool() external view returns (uint256);
28 /// @notice The dividend amount corresponding to the user's current xBURN holdings
29 function pendingDividend(address user) external view returns (uint256);
31 /// @notice The amount of dividend token per xBURN share (wei, 18-digit precision)
32 function dividendPerShare() external view returns (uint256);