Each duel is stored in a Duel struct with sub-structs for organization:
Duel
asset: uint256 (ID of the crypto asset).
asset
startTime: uint256 (block timestamp when created).
startTime
startPrice: int256 (oracle price at start).
startPrice
duration: uint256 (seconds until end).
duration
percentage: uint8 (1-100% change required).
percentage
isUp: bool (true for price increase prediction).
isUp
resolved: bool (true after resolution).
resolved
winnerFor: bool (true if "for" side wins).
winnerFor
effectiveLosingDuel: uint256 (losing $DUEL pot after fees).
effectiveLosingDuel
effectiveLosingUsdc: uint256 (losing USDC pot after fees).
effectiveLosingUsdc
totalForDuel: uint256 (total $DUEL staked on "for").
totalForDuel
totalAgainstDuel: uint256 (total $DUEL staked on "against").
totalAgainstDuel
totalForUsdc: uint256 (total USDC staked on "for").
totalForUsdc
totalAgainstUsdc: uint256 (total USDC staked on "against").
totalAgainstUsdc
Last updated 2 months ago