tx · 8dcxaEKqpyawCoPWdetifqJxWd3nmcBuJ6jGXGRx6UJy

3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo:  -0.01400000 Waves

2019.08.16 12:14 [633440] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves

{ "type": 13, "id": "8dcxaEKqpyawCoPWdetifqJxWd3nmcBuJ6jGXGRx6UJy", "fee": 1400000, "feeAssetId": null, "timestamp": 1565946728477, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "s3QkCtsgbj2qiWn1RV9CvJfeynVC4jk1AepmWnmibdcpzgbk5DnSUQjQ8wBjn24ALrTpLHbQhwQ4JUNRSkTKK9X" ], "script": "base64:AAIDAAAAAAAAAAAAAAAPAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAMT1JBQ0xFV0FMTEVUAgAAACMzTkFjb2VXZFVUV244Y3NYSlBHNDd2MUZqdGpjZnF4YjV0dQAAAAANV0xUQlVSTldBTExFVAIAAAANd2x0YnVybndhbGxldAAAAAAOV0FWRVNLSVRXQUxMRVQCAAAABmRlZW1ydQAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUA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bmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GBtqlFcQ=", "chainId": 84, "height": 633440, "spentComplexity": 0 } View: original | compacted Prev: J3BPdZa5uKMC8EokSdDaePX22uHUkAfBHXUg9332JczU Next: 5TPtRd4sSAVjzgD1WutFf25NPHbVccvE3m93JdHt9E8q Diff:
OldNewDifferences
66 let CLOSED = "CLOSED"
77
88 let DAPPOWNER = "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo"
9+
10+let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu"
11+
12+let WLTBURNWALLET = "wltburnwallet"
13+
14+let WAVESKITWALLET = "deemru"
915
1016 let WAVES = "WAVES"
1117
144150 then throw(("Cannot close a contest in status: " + contestCurrStatus))
145151 else if ((winningBetAccount != NONE))
146152 then {
147- let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), (wavesBalance(this) - FEE), unit)])
153+ let WLTShareRevenue = ((assetBalance(this, WLT) * 5) / 100)
154+ let WLTShareBurn = ((assetBalance(this, WLT) * 90) / 100)
155+ 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)])
148156 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)
149157 }
150158 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)])
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"
9+
10+let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu"
11+
12+let WLTBURNWALLET = "wltburnwallet"
13+
14+let WAVESKITWALLET = "deemru"
915
1016 let WAVES = "WAVES"
1117
1218 let NONE = "NONE"
1319
1420 let FEE = 900000
1521
1622 let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7'
1723
1824 func getNumByKey (key) = {
1925 let num = match getInteger(this, key) {
2026 case a: Int =>
2127 a
2228 case _ =>
2329 0
2430 }
2531 num
2632 }
2733
2834
2935 func getStrByKey (key) = {
3036 let str = match getString(this, key) {
3137 case a: String =>
3238 a
3339 case _ =>
3440 NONE
3541 }
3642 str
3743 }
3844
3945
4046 func getContestStatus () = {
4147 let contestCurrNumber = getNumByKey("contest_currentnumber")
4248 getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
4349 }
4450
4551
4652 func getBetAccount (betId) = {
4753 let contestCurrNumber = getNumByKey("contest_currentnumber")
4854 getStrByKey((((("bet_" + toString(contestCurrNumber)) + "_") + toString(betId)) + "_owner"))
4955 }
5056
5157
5258 func getExtWAVESUSDCurrencyRate () = {
5359 let oracleAddress = extract(addressFromString("3PPTrTo3AzR56N7ArzbU3Bpq9zYMgcf39Mk"))
5460 let WAVESUSDCurrencyRate = match getInteger(oracleAddress, "waves_usd_2") {
5561 case a: Int =>
5662 a
5763 case _ =>
5864 0
5965 }
6066 WAVESUSDCurrencyRate
6167 }
6268
6369
6470 @Callable(i)
6571 func setContestStatus (contestNumber,contestStatus) = {
6672 let account = toBase58String(i.caller.bytes)
6773 if ((account != DAPPOWNER))
6874 then throw("Only dAPP Owner can set Contest Status.")
6975 else if (if ((contestStatus != RUNNING))
7076 then (contestStatus != CLOSED)
7177 else false)
7278 then throw(("Invalid status: " + contestStatus))
7379 else WriteSet([DataEntry((("contest_" + toString(contestNumber)) + "_status"), contestStatus)])
7480 }
7581
7682
7783
7884 @Callable(i)
7985 func setContestConfiguration (currencyTicker,contestStartHeight) = {
8086 let account = toBase58String(i.caller.bytes)
8187 let contestCurrNumber = getNumByKey("contest_currentnumber")
8288 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
8389 let contestNewNumber = (contestCurrNumber + 1)
8490 if ((account != DAPPOWNER))
8591 then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + account) + " dapp owner: ") + DAPPOWNER))
8692 else if ((height >= contestStartHeight))
8793 then throw(("Start Height must be greater than current Blockchain height: " + toString(height)))
8894 else if ((contestCurrStatus == RUNNING))
8995 then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus))
9096 else if ((currencyTicker != WAVES))
9197 then throw((("dAPP does not support currency: " + currencyTicker) + " yet."))
9298 else {
9399 let contestFinishHeight = (contestStartHeight + (7 * 1440))
94100 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)])
95101 }
96102 }
97103
98104
99105
100106 @Callable(i)
101107 func bet (currencyValue) = {
102108 let account = toBase58String(i.caller.bytes)
103109 let pmt = extract(i.payment)
104110 let contestCurrNumber = getNumByKey("contest_currentnumber")
105111 let contestStartHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_startheight"))
106112 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
107113 let contestVoteCounter = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_votecounter"))
108114 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
109115 let thisVoteId = (contestVoteCounter + 1)
110116 let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
111117 let existingBetVoteId = getNumByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue))
112118 let existingBetAccount = getBetAccount(existingBetVoteId)
113119 if ((height > (contestFinishHeight - (2 * 1440))))
114120 then throw("You cannot bet anymore at this height.")
115121 else if ((contestCurrStatus != RUNNING))
116122 then throw("Invalid status: you cannot bet now.")
117123 else if (if ((pmt.assetId != WLT))
118124 then true
119125 else (pmt.amount != 500000))
120126 then throw("You must pay 5 WLT to bet.")
121127 else if (if (true)
122128 then true
123129 else if ((existingBetAccount != NONE))
124130 then (existingBetAccount != account)
125131 else false)
126132 then throw(((((("Another user: " + existingBetAccount) + " did bet already on rate: ") + currencyValue) + " betID:") + toString(existingBetVoteId)))
127133 else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue), thisVoteId), DataEntry((("contest_" + toString(contestCurrNumber)) + "_votecounter"), thisVoteId)])
128134 }
129135
130136
131137
132138 @Callable(i)
133139 func closecontest (currencyRate) = {
134140 let contestCurrNumber = getNumByKey("contest_currentnumber")
135141 let winningBetVoteId = getNumByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyRate))
136142 let winningBetAccount = getBetAccount(winningBetVoteId)
137143 let account = toBase58String(i.caller.bytes)
138144 let balance = wavesBalance(this)
139145 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
140146 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)])
141147 if ((account != DAPPOWNER))
142148 then throw("Only dAPP Owner can Close Contest.")
143149 else if ((contestCurrStatus != RUNNING))
144150 then throw(("Cannot close a contest in status: " + contestCurrStatus))
145151 else if ((winningBetAccount != NONE))
146152 then {
147- let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), (wavesBalance(this) - FEE), unit)])
153+ let WLTShareRevenue = ((assetBalance(this, WLT) * 5) / 100)
154+ let WLTShareBurn = ((assetBalance(this, WLT) * 90) / 100)
155+ 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)])
148156 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)
149157 }
150158 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)])
151159 }
152160
153161
154162 @Verifier(tx)
155163 func verify () = match tx {
156164 case _: SetScriptTransaction|DataTransaction =>
157165 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
158166 case _: InvokeScriptTransaction =>
159167 true
160168 case _ =>
161169 true
162170 }
163171

github/deemru/w8io/026f985 
48.89 ms