🎡Events
Events are emitted for on-chain tracking and frontend integration:
DuelCreated(uint256 indexed duelId, address asset, uint256 duration, uint8 percentage, bool isUp): New duel created.
Staked(uint256 indexed duelId, address staker, uint256 duelAmount, uint256 usdcAmount, bool sideFor): Stake added.
DuelResolved(uint256 indexed duelId, bool winnerFor, uint256 burnAmount, uint256 swappedEth, uint256 usdcFee): Duel resolved with fee details.
Payout(address recipient, uint256 duelAmount, uint256 usdcAmount): Winnings claimed.
Last updated