// Raffle
Function Raffle() Uint64
10 dim deposit_count,winner as Uint64
20 LET deposit_count = LOAD("deposit_count")+1
25 IF DEROVALUE() == 0 THEN GOTO 110
30 STORE("depositor_address" …
// Lottery
Function Lottery() Uint64
10 dim deposit_count,winner as Uint64
20 LET deposit_count = LOAD("deposit_count")+1
25 IF DEROVALUE() == 0 THEN GOTO 110
30 STORE("depositor_addres…
/* Lottery Smart Contract Example in DVM-BASIC.
This lottery smart contract will give lottery wins on every second try in following default contract.
Make depost transaction to this SCID to play lot…
/* Lottery Smart Contract Example in DVM-BASIC.
This lottery smart contract will give lottery wins on every second try in following default contract.
Make depost transaction to this SCID to play lot…
/* Lottery Smart Contract Example in DVM-BASIC.
This lottery smart contract will give lottery wins on every second try in following default contract.
Make depost transaction to this SCID to play lot…
/* Lottery Smart Contract Example in DVM-BASIC.
This lottery smart contract will give lottery wins on every second try in following default contract.
Make depost transaction to this SCID to play lot…
// Lottery Smart Contract in DVM-BASIC. This lottery smart contract will give lottery wins every xth try.
Function Lottery(value Uint64) Uint64
10 dim deposit_count,winner as Uint64
20 LET …
// Issue tokens after depositing DERO (Convert DERO to TOKENX)
Function IssueTOKENX() Uint64
10 SEND_ASSET_TO_ADDRESS(SIGNER(),DEROVALUE(),SCID()) // Increment balance of user, without knowing …