tx · 8YrXhqQjCq6apTNe8TSsfyANLxdaJ77CUmtPwrSF9VfX

3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo:  -0.01400000 Waves

2019.08.19 15:34 [638035] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves

{ "type": 13, "id": "8YrXhqQjCq6apTNe8TSsfyANLxdaJ77CUmtPwrSF9VfX", "fee": 1400000, "feeAssetId": null, "timestamp": 1566218066121, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "D1goU3YJ2MoyCkGixPmHj2D7JdzQzHTyrLbSneT6joZQu71oy6qzPCqQfQQH71gTbiXrAGbUvAutRvxBWPbEBBx" ], "script": "base64:AAIDAAAAAAAAAAAAAAAPAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAMT1JBQ0xFV0FMTEVUAgAAACMzTkFjb2VXZFVUV244Y3NYSlBHNDd2MUZqdGpjZnF4YjV0dQAAAAANV0xUQlVSTldBTExFVAIAAAAjM01wQ2JERGprU3JmUzFYa1BwbTcxaVpqNURRMVJwQlJSaHQAAAAADldBVkVTS0lUV0FMTEVUAgAAACMzTXFQcGJXUFJzWkZvVDlYNzRxV29jVTRCcHlwR0VQaGlDbgAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZX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WF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYGKWBAMw==", "chainId": 84, "height": 638035, "spentComplexity": 0 } View: original | compacted Prev: 8b7k9J2wLs7AmPTmKm39nj6JqqqKPWWACmtsA2SkPPb5 Next: SajmKTGnsFPfVJtPMkrQtMFRQgUGTwFp4H8VW3wXoX7 Diff:
OldNewDifferences
115115 if ((height > (contestFinishHeight - (2 * 1440))))
116116 then throw("You cannot bet anymore at this height.")
117117 else if ((contestCurrStatus != RUNNING))
118- then throw("Invalid status: you cannot bet now.")
118+ then throw(("Invalid status: you cannot bet now, contest status is: " + contestCurrStatus))
119119 else if (if ((pmt.assetId != WLT))
120120 then true
121121 else (pmt.amount != 500000))
150150 then {
151151 let WLTShareRevenue = ((assetBalance(this, WLT) * 5) / 100)
152152 let WLTShareBurn = ((assetBalance(this, WLT) * 90) / 100)
153- 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)])
153+ let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), (((wavesBalance(this) * 99) / 100) - FEE), unit), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WLTBURNWALLET)), WLTShareBurn, WLT)])
154154 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)
155155 }
156156 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"
99
1010 let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu"
1111
1212 let WLTBURNWALLET = "3MpCbDDjkSrfS1XkPpm71iZj5DQ1RpBRRht"
1313
1414 let WAVESKITWALLET = "3MqPpbWPRsZFoT9X74qWocU4BpypGEPhiCn"
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(ORACLEWALLET))
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 () = {
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 ((contestCurrStatus == RUNNING))
9393 then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus))
9494 else {
9595 let contestFinishHeight = (height + (7 * 1440))
9696 WriteSet([DataEntry("contest_currentnumber", contestNewNumber), DataEntry((("contest_" + toString(contestNewNumber)) + "_finishheight"), contestFinishHeight), DataEntry((("contest_" + toString(contestNewNumber)) + "_status"), RUNNING), DataEntry((("contest_" + toString(contestNewNumber)) + "_votecounter"), 0)])
9797 }
9898 }
9999
100100
101101
102102 @Callable(i)
103103 func bet (currencyValue) = {
104104 let account = toBase58String(i.caller.bytes)
105105 let pmt = extract(i.payment)
106106 let contestCurrNumber = getNumByKey("contest_currentnumber")
107107 let contestStartHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_startheight"))
108108 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
109109 let contestVoteCounter = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_votecounter"))
110110 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
111111 let thisVoteId = (contestVoteCounter + 1)
112112 let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
113113 let existingBetVoteId = getNumByKey(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue))
114114 let existingBetAccount = getBetAccount(existingBetVoteId)
115115 if ((height > (contestFinishHeight - (2 * 1440))))
116116 then throw("You cannot bet anymore at this height.")
117117 else if ((contestCurrStatus != RUNNING))
118- then throw("Invalid status: you cannot bet now.")
118+ then throw(("Invalid status: you cannot bet now, contest status is: " + contestCurrStatus))
119119 else if (if ((pmt.assetId != WLT))
120120 then true
121121 else (pmt.amount != 500000))
122122 then throw(("You must pay 5 WLT to bet. You paid: " + toString(pmt.amount)))
123123 else if (if ((existingBetAccount != NONE))
124124 then (existingBetAccount != account)
125125 else false)
126126 then throw(((((("Another user: " + existingBetAccount) + " did bet already on rate: ") + currencyValue) + " betID:") + toString(existingBetVoteId)))
127127 else WriteSet([DataEntry((((("bet_" + toString(contestCurrNumber)) + "_") + toString(thisVoteId)) + "_owner"), account), DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + currencyValue), thisVoteId), DataEntry((("contest_" + toString(contestCurrNumber)) + "_votecounter"), thisVoteId)])
128128 }
129129
130130
131131
132132 @Callable(i)
133133 func closecontest () = {
134134 let currencyRate = getExtWAVESUSDCurrencyRate()
135135 let contestCurrNumber = getNumByKey("contest_currentnumber")
136136 let winningBetVoteId = getNumByKey(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyRate)))
137137 let winningBetAccount = getBetAccount(winningBetVoteId)
138138 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
139139 let account = toBase58String(i.caller.bytes)
140140 let balance = wavesBalance(this)
141141 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
142142 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)])
143143 if (if ((contestFinishHeight > height))
144144 then (account != DAPPOWNER)
145145 else false)
146146 then throw(((("account: " + account) + ": Cannot close the contest before height:") + toString(contestFinishHeight)))
147147 else if ((contestCurrStatus != RUNNING))
148148 then throw(("Cannot close a contest in status: " + contestCurrStatus))
149149 else if ((winningBetAccount != NONE))
150150 then {
151151 let WLTShareRevenue = ((assetBalance(this, WLT) * 5) / 100)
152152 let WLTShareBurn = ((assetBalance(this, WLT) * 90) / 100)
153- 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)])
153+ let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), (((wavesBalance(this) * 99) / 100) - FEE), unit), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WLTBURNWALLET)), WLTShareBurn, WLT)])
154154 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)
155155 }
156156 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)])
157157 }
158158
159159
160160 @Verifier(tx)
161161 func verify () = match tx {
162162 case _: SetScriptTransaction|DataTransaction =>
163163 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
164164 case _: InvokeScriptTransaction =>
165165 true
166166 case _ =>
167167 true
168168 }
169169

github/deemru/w8io/026f985 
51.86 ms