nova-prediction-market
SP2KZ109PC2HRFH8T37ZD8VAQF2DK38RTXQSBK80TSource Code
;; nova-prediction-market.clar
;; Betting on outcomes
;; CLARITY VERSION: 2
(define-map bets
{market-id: uint, user: principal, outcome: bool}
uint ;; amount
)
(define-public (place-bet (market-id uint) (outcome bool) (amount uint))
(begin
;; Transfer logic omitted
(map-set bets {market-id: market-id, user: tx-sender, outcome: outcome} amount)
(ok true)
)
)
Functions (1)
| Function | Access | Args |
|---|---|---|
| place-bet | public | market-id: uint, outcome: bool, amount: uint |