tx · Hd4nsd56M7sSkqVUo4rZ7pTVBke6HA8HbbtPYT6ZWskz

3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7:  -0.01400000 Waves

2019.10.06 11:33 [707678] smart account 3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7 > SELF 0.00000000 Waves

{ "type": 13, "id": "Hd4nsd56M7sSkqVUo4rZ7pTVBke6HA8HbbtPYT6ZWskz", "fee": 1400000, "feeAssetId": null, "timestamp": 1570350796652, "version": 1, "sender": "3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7", "senderPublicKey": "Gxi9GKByT2CYHqPr6ZTohMDmHRGAgE8uBM6R4QXfvtxK", "proofs": [ "5BMoxHJWKeRwTSQE8NrJmtVwpeoNAG5zLGpQEeSgiWeEXRvpkoKUqXewdniDN39iRM6pn5LTwR9HPhoK1fk3SrFN" ], "script": "base64:AAIDAAAAAAAAABMIARIDCgEIEgMKAQESAwoBARIAAAAADQAAAAAHUlVOTklORwIAAAAHUlVOTklORwAAAAAGQ0xPU0VEAgAAAAZDTE9TRUQAAAAACENBTkNFTEVEAgAAAAhDQU5DRUxFRAAAAAAJREFQUE9XTkVSAgAAACMzTjVtd3VxVDZkWHBicXdUNVZLRFh6R0pKNmMxNHJLcXhTNwAAAAAMT1JBQ0xFV0FMTEVUAgAAACMzTkFjb2VXZFVUV244Y3NYSlBHNDd2MUZqdGpjZnF4YjV0dQAAAAAOV0FWRVNLSVRXQUxMRVQCAAAAIzNNcVBwYldQUnNaRm9UOVg3NHFXb2NVNEJweXBHRVBoaUNuAAAAAAVXQVZFUwIAAAAFV0FWRVMAAAAABE5PTkUCAAAABE5PTkUAAAAAA0ZFRQAAAAAAAA27oAAAAAADV0xUAQAAACBdzVgyIDG1TTrr2IC+hZgKEiTPyt49R9i8wN0ZNQ6rqgEAAAALZ2V0TnVtQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXM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AAABBQAAABFjb250ZXN0Q3Vyck51bWJlcgIAAAAGX3ByaXplAAAAAAAAAAAABQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYG8ZJZ4g==", "chainId": 84, "height": 707678, "spentComplexity": 0 } View: original | compacted Prev: Hb9tEdbbF85RGitmrNEmM9unQqdARE2gpmBQmGFgSm9x Next: 3ehJmDTy3GShMy9jZw425Su9sSXL9jcsC4PgizABTsSG Diff:
OldNewDifferences
1111
1212 let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu"
1313
14-let WLTBURNWALLET = "3MpCbDDjkSrfS1XkPpm71iZj5DQ1RpBRRht"
15-
1614 let WAVESKITWALLET = "3MqPpbWPRsZFoT9X74qWocU4BpypGEPhiCn"
17-
18-let DAPPAUTHORNWALLET = "3N1xQeQcsrY8Urm4RdrmL2dfoZAP4ULpH1S"
1915
2016 let WAVES = "WAVES"
2117
141137 then throw(("Cannot close a contest in status: " + contestCurrStatus))
142138 else if ((winningBetAccount != NONE))
143139 then {
144- let WLTShareRevenue = ((assetBalance(this, WLT) * 5) / 100)
145- let WLTPrize = ((assetBalance(this, WLT) * 80) / 100)
146- let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), WLTPrize, unit), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(DAPPAUTHORNWALLET)), WLTShareRevenue, WLT)])
140+ let WLTOracleShareRevenue = ((assetBalance(this, WLT) * 1) / 100)
141+ let WLTWavesKitShareRevenue = ((assetBalance(this, WLT) * 4) / 100)
142+ let WLTPrize = ((assetBalance(this, WLT) * 90) / 100)
143+ let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), WLTPrize, unit), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTOracleShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTWavesKitShareRevenue, WLT)])
147144 ScriptResult(WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winningBetAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_rateheight"), height), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_prize"), WLTPrize)]), winTransfer)
148145 }
149146 else WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winningBetAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_prize"), 0)])
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 CANCELED = "CANCELED"
99
1010 let DAPPOWNER = "3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7"
1111
1212 let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu"
1313
14-let WLTBURNWALLET = "3MpCbDDjkSrfS1XkPpm71iZj5DQ1RpBRRht"
15-
1614 let WAVESKITWALLET = "3MqPpbWPRsZFoT9X74qWocU4BpypGEPhiCn"
17-
18-let DAPPAUTHORNWALLET = "3N1xQeQcsrY8Urm4RdrmL2dfoZAP4ULpH1S"
1915
2016 let WAVES = "WAVES"
2117
2218 let NONE = "NONE"
2319
2420 let FEE = 900000
2521
2622 let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7'
2723
2824 func getNumByKey (key) = {
2925 let num = match getInteger(this, key) {
3026 case a: Int =>
3127 a
3228 case _ =>
3329 0
3430 }
3531 num
3632 }
3733
3834
3935 func getStrByKey (key) = {
4036 let str = match getString(this, key) {
4137 case a: String =>
4238 a
4339 case _ =>
4440 NONE
4541 }
4642 str
4743 }
4844
4945
5046 func getExtWAVESUSDCurrencyRate () = {
5147 let oracleAddress = extract(addressFromString(ORACLEWALLET))
5248 let WAVESUSDCurrencyRate = match getInteger(oracleAddress, "waves_usd_2") {
5349 case a: Int =>
5450 a
5551 case _ =>
5652 0
5753 }
5854 WAVESUSDCurrencyRate
5955 }
6056
6157
6258 @Callable(i)
6359 func setContestStatus (contestStatus) = {
6460 let account = toBase58String(i.caller.bytes)
6561 let contestCurrNumber = getNumByKey("contest_currentnumber")
6662 if ((account != DAPPOWNER))
6763 then throw("Only dAPP Owner can set Contest Status.")
6864 else if (if ((contestStatus != CANCELED))
6965 then (contestStatus != CLOSED)
7066 else false)
7167 then throw(("Invalid status: " + contestStatus))
7268 else WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), contestStatus)])
7369 }
7470
7571
7672
7773 @Callable(i)
7874 func setContestConfiguration (contestBetCost) = {
7975 let account = toBase58String(i.caller.bytes)
8076 let contestCurrNumber = getNumByKey("contest_currentnumber")
8177 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
8278 let contestNewNumber = (contestCurrNumber + 1)
8379 let balance = wavesBalance(this)
8480 if ((account != DAPPOWNER))
8581 then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + account) + " dapp owner: ") + DAPPOWNER))
8682 else if ((contestCurrStatus == RUNNING))
8783 then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus))
8884 else {
8985 let contestFinishHeight = (height + (6 * 1440))
9086 WriteSet([DataEntry("contest_currentnumber", contestNewNumber), DataEntry((("contest_" + toString(contestNewNumber)) + "_finishheight"), contestFinishHeight), DataEntry((("contest_" + toString(contestNewNumber)) + "_status"), RUNNING), DataEntry((("contest_" + toString(contestNewNumber)) + "_betcounter"), 0), DataEntry((("contest_" + toString(contestNewNumber)) + "_betcost"), contestBetCost)])
9187 }
9288 }
9389
9490
9591
9692 @Callable(i)
9793 func bet (currencyValue) = {
9894 let account = toBase58String(i.caller.bytes)
9995 let pmt = extract(i.payment)
10096 let contestCurrNumber = getNumByKey("contest_currentnumber")
10197 let contestStartHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_startheight"))
10298 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
10399 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
104100 let contestCurrBetCost = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_betcost"))
105101 let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
106102 let accountBetsNumber = getNumByKey((((("contest_" + toString(contestCurrNumber)) + "_") + account) + "_bets"))
107103 let existingBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyValue)))
108104 if ((height > (contestFinishHeight - (2 * 1440))))
109105 then throw("You cannot bet anymore at this height.")
110106 else if ((contestCurrStatus != RUNNING))
111107 then throw(("Invalid status: you cannot bet now, contest status is: " + contestCurrStatus))
112108 else if (if ((pmt.assetId != WLT))
113109 then true
114110 else (pmt.amount != contestCurrBetCost))
115111 then throw(((("You must pay at least: " + toString(contestCurrBetCost)) + " WLT to bet. You paid: ") + toString(pmt.amount)))
116112 else if (if ((existingBetAccount != NONE))
117113 then (existingBetAccount != account)
118114 else false)
119115 then throw((("Another user: " + existingBetAccount) + " did bet already on this rate."))
120116 else if ((accountBetsNumber >= 5))
121117 then throw("You can do at most 5 bets.")
122118 else WriteSet([DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyValue)), account), DataEntry((((("contest_" + toString(contestCurrNumber)) + "_") + account) + "_bets"), (accountBetsNumber + 1))])
123119 }
124120
125121
126122
127123 @Callable(i)
128124 func closecontest () = {
129125 let currencyRate = getExtWAVESUSDCurrencyRate()
130126 let contestCurrNumber = getNumByKey("contest_currentnumber")
131127 let winningBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyRate)))
132128 let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight"))
133129 let account = toBase58String(i.caller.bytes)
134130 let balance = wavesBalance(this)
135131 let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status"))
136132 if ((account != DAPPOWNER))
137133 then throw("Only dAPP Owner can Close Contest.")
138134 else if ((contestFinishHeight > height))
139135 then throw(((("account: " + account) + ": Cannot close the contest before height:") + toString(contestFinishHeight)))
140136 else if ((contestCurrStatus != RUNNING))
141137 then throw(("Cannot close a contest in status: " + contestCurrStatus))
142138 else if ((winningBetAccount != NONE))
143139 then {
144- let WLTShareRevenue = ((assetBalance(this, WLT) * 5) / 100)
145- let WLTPrize = ((assetBalance(this, WLT) * 80) / 100)
146- let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), WLTPrize, unit), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(DAPPAUTHORNWALLET)), WLTShareRevenue, WLT)])
140+ let WLTOracleShareRevenue = ((assetBalance(this, WLT) * 1) / 100)
141+ let WLTWavesKitShareRevenue = ((assetBalance(this, WLT) * 4) / 100)
142+ let WLTPrize = ((assetBalance(this, WLT) * 90) / 100)
143+ let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), WLTPrize, unit), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTOracleShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTWavesKitShareRevenue, WLT)])
147144 ScriptResult(WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winningBetAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_rateheight"), height), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_prize"), WLTPrize)]), winTransfer)
148145 }
149146 else WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winningBetAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_prize"), 0)])
150147 }
151148
152149
153150 @Verifier(tx)
154151 func verify () = match tx {
155152 case _: SetScriptTransaction|DataTransaction =>
156153 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
157154 case _: InvokeScriptTransaction =>
158155 true
159156 case _ =>
160157 true
161158 }
162159

github/deemru/w8io/026f985 
43.26 ms