tx · 5TPtRd4sSAVjzgD1WutFf25NPHbVccvE3m93JdHt9E8q

3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo:  -0.01400000 Waves

2019.08.16 12:16 [633442] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves

{ "type": 13, "id": "5TPtRd4sSAVjzgD1WutFf25NPHbVccvE3m93JdHt9E8q", "fee": 1400000, "feeAssetId": null, "timestamp": 1565947005239, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "tzpxFywbqMgBFL9MAuQMUFA4o35sHAmuHJrFM754smZWUCHW3wqYBjd4Wonp2H2MFWeWwUwxxzQmC8ac2hckGnK" ], "script": "base64:AAIDAAAAAAAAAAAAAAAPAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAMT1JBQ0xFV0FMTEVUAgAAACMzTkFjb2VXZFVUV244Y3NYSlBHNDd2MUZqdGpjZnF4YjV0dQAAAAANV0xUQlVSTldBTExFVAIAAAANd2x0YnVybndhbGxldAAAAAAOV0FWRVNLSVRXQUxMRVQCAAAABmRlZW1ydQAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAA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AAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GBpPRAU0=", "chainId": 84, "height": 633442, "spentComplexity": 0 } View: original | compacted Prev: 8dcxaEKqpyawCoPWdetifqJxWd3nmcBuJ6jGXGRx6UJy Next: BuLq7cxy2qBPy6EV6FHxnNgJCtSqVLRPpfX1nAcP1gsD Diff:
OldNewDifferences
124124 then true
125125 else (pmt.amount != 500000))
126126 then throw("You must pay 5 WLT to bet.")
127- else if (if (true)
128- then true
129- else if ((existingBetAccount != NONE))
130- then (existingBetAccount != account)
131- else false)
127+ else if (if ((existingBetAccount != NONE))
128+ then (existingBetAccount != account)
129+ else false)
132130 then throw(((((("Another user: " + existingBetAccount) + " did bet already on rate: ") + currencyValue) + " betID:") + toString(existingBetVoteId)))
133131 else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue), thisVoteId), DataEntry((("contest_" + toString(contestCurrNumber)) + "_votecounter"), thisVoteId)])
134132 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RUNNING = "RUNNING"
55
66 let CLOSED = "CLOSED"
77
88 let DAPPOWNER = "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo"
99
1010 let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu"
1111
1212 let WLTBURNWALLET = "wltburnwallet"
1313
1414 let WAVESKITWALLET = "deemru"
1515
1616 let WAVES = "WAVES"
1717
1818 let NONE = "NONE"
1919
2020 let FEE = 900000
2121
2222 let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7'
2323
2424 func getNumByKey (key) = {
2525 let num = match getInteger(this, key) {
2626 case a: Int =>
2727 a
2828 case _ =>
2929 0
3030 }
3131 num
3232 }
3333
3434
3535 func getStrByKey (key) = {
3636 let str = match getString(this, key) {
3737 case a: String =>
3838 a
3939 case _ =>
4040 NONE
4141 }
4242 str
4343 }
4444
4545
4646 func getContestStatus () = {
4747 let contestCurrNumber = getNumByKey("contest_currentnumber")
4848 getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
4949 }
5050
5151
5252 func getBetAccount (betId) = {
5353 let contestCurrNumber = getNumByKey("contest_currentnumber")
5454 getStrByKey((((("bet_" + toString(contestCurrNumber)) + "_") + toString(betId)) + "_owner"))
5555 }
5656
5757
5858 func getExtWAVESUSDCurrencyRate () = {
5959 let oracleAddress = extract(addressFromString("3PPTrTo3AzR56N7ArzbU3Bpq9zYMgcf39Mk"))
6060 let WAVESUSDCurrencyRate = match getInteger(oracleAddress, "waves_usd_2") {
6161 case a: Int =>
6262 a
6363 case _ =>
6464 0
6565 }
6666 WAVESUSDCurrencyRate
6767 }
6868
6969
7070 @Callable(i)
7171 func setContestStatus (contestNumber,contestStatus) = {
7272 let account = toBase58String(i.caller.bytes)
7373 if ((account != DAPPOWNER))
7474 then throw("Only dAPP Owner can set Contest Status.")
7575 else if (if ((contestStatus != RUNNING))
7676 then (contestStatus != CLOSED)
7777 else false)
7878 then throw(("Invalid status: " + contestStatus))
7979 else WriteSet([DataEntry((("contest_" + toString(contestNumber)) + "_status"), contestStatus)])
8080 }
8181
8282
8383
8484 @Callable(i)
8585 func setContestConfiguration (currencyTicker,contestStartHeight) = {
8686 let account = toBase58String(i.caller.bytes)
8787 let contestCurrNumber = getNumByKey("contest_currentnumber")
8888 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
8989 let contestNewNumber = (contestCurrNumber + 1)
9090 if ((account != DAPPOWNER))
9191 then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + account) + " dapp owner: ") + DAPPOWNER))
9292 else if ((height >= contestStartHeight))
9393 then throw(("Start Height must be greater than current Blockchain height: " + toString(height)))
9494 else if ((contestCurrStatus == RUNNING))
9595 then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus))
9696 else if ((currencyTicker != WAVES))
9797 then throw((("dAPP does not support currency: " + currencyTicker) + " yet."))
9898 else {
9999 let contestFinishHeight = (contestStartHeight + (7 * 1440))
100100 WriteSet([DataEntry("contest_currentnumber", contestNewNumber), DataEntry((("contest_" + toString(contestNewNumber)) + "_currency"), currencyTicker), DataEntry((("contest_" + toString(contestNewNumber)) + "_startheight"), contestStartHeight), DataEntry((("contest_" + toString(contestNewNumber)) + "_finishheight"), contestFinishHeight), DataEntry((("contest_" + toString(contestNewNumber)) + "_status"), RUNNING), DataEntry((("contest_" + toString(contestNewNumber)) + "_votecounter"), 0)])
101101 }
102102 }
103103
104104
105105
106106 @Callable(i)
107107 func bet (currencyValue) = {
108108 let account = toBase58String(i.caller.bytes)
109109 let pmt = extract(i.payment)
110110 let contestCurrNumber = getNumByKey("contest_currentnumber")
111111 let contestStartHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_startheight"))
112112 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
113113 let contestVoteCounter = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_votecounter"))
114114 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
115115 let thisVoteId = (contestVoteCounter + 1)
116116 let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
117117 let existingBetVoteId = getNumByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue))
118118 let existingBetAccount = getBetAccount(existingBetVoteId)
119119 if ((height > (contestFinishHeight - (2 * 1440))))
120120 then throw("You cannot bet anymore at this height.")
121121 else if ((contestCurrStatus != RUNNING))
122122 then throw("Invalid status: you cannot bet now.")
123123 else if (if ((pmt.assetId != WLT))
124124 then true
125125 else (pmt.amount != 500000))
126126 then throw("You must pay 5 WLT to bet.")
127- else if (if (true)
128- then true
129- else if ((existingBetAccount != NONE))
130- then (existingBetAccount != account)
131- else false)
127+ else if (if ((existingBetAccount != NONE))
128+ then (existingBetAccount != account)
129+ else false)
132130 then throw(((((("Another user: " + existingBetAccount) + " did bet already on rate: ") + currencyValue) + " betID:") + toString(existingBetVoteId)))
133131 else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue), thisVoteId), DataEntry((("contest_" + toString(contestCurrNumber)) + "_votecounter"), thisVoteId)])
134132 }
135133
136134
137135
138136 @Callable(i)
139137 func closecontest (currencyRate) = {
140138 let contestCurrNumber = getNumByKey("contest_currentnumber")
141139 let winningBetVoteId = getNumByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyRate))
142140 let winningBetAccount = getBetAccount(winningBetVoteId)
143141 let account = toBase58String(i.caller.bytes)
144142 let balance = wavesBalance(this)
145143 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
146144 let writeStatistics = WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winningBetAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_height"), height)])
147145 if ((account != DAPPOWNER))
148146 then throw("Only dAPP Owner can Close Contest.")
149147 else if ((contestCurrStatus != RUNNING))
150148 then throw(("Cannot close a contest in status: " + contestCurrStatus))
151149 else if ((winningBetAccount != NONE))
152150 then {
153151 let WLTShareRevenue = ((assetBalance(this, WLT) * 5) / 100)
154152 let WLTShareBurn = ((assetBalance(this, WLT) * 90) / 100)
155153 let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), (wavesBalance(this) - FEE), unit), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WLTBURNWALLET)), WLTShareBurn, WLT)])
156154 ScriptResult(WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winningBetAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_height"), height)]), winTransfer)
157155 }
158156 else WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winningBetAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_height"), height)])
159157 }
160158
161159
162160 @Verifier(tx)
163161 func verify () = match tx {
164162 case _: SetScriptTransaction|DataTransaction =>
165163 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
166164 case _: InvokeScriptTransaction =>
167165 true
168166 case _ =>
169167 true
170168 }
171169

github/deemru/w8io/026f985 
47.28 ms