tx · 83CRM8gcbQV4SwTYJSDm8FqKM5crAQY5Pp3GSQRsQn4y 3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7: -0.01400000 Waves 2019.08.20 16:32 [639521] smart account 3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7 > SELF 0.00000000 Waves
{ "type": 13, "id": "83CRM8gcbQV4SwTYJSDm8FqKM5crAQY5Pp3GSQRsQn4y", "fee": 1400000, "feeAssetId": null, "timestamp": 1566308022154, "version": 1, "sender": "3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7", "senderPublicKey": "Gxi9GKByT2CYHqPr6ZTohMDmHRGAgE8uBM6R4QXfvtxK", "proofs": [ "4b3VPTuLy5pw38HbW9FmkJQDRYrL9FUWkM8hMLAgoxfj9SsYTjbnitkcC57hvKRu4LsbEJUou8AfwHetutof3ogG" ], "script": "base64:AAIDAAAAAAAAAAAAAAARAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAIQ0FOQ0VMRUQCAAAACENBTkNFTEVEAAAAAAlEQVBQT1dORVICAAAAIzNONW13dXFUNmRYcGJxd1Q1VktEWHpHSko2YzE0cktxeFM3AAAAAAxPUkFDTEVXQUxMRVQCAAAAIzNOQWNvZVdkVVRXbjhjc1hKUEc0N3YxRmp0amNmcXhiNXR1AAAAAA1XTFRCVVJOV0FMTEVUAgAAACMzTXBDYkREamtTcmZTMVhrUHBtNzFpWmo1RFExUnBCUlJodAAAAAAOV0FWRVNLSVRXQUxMRVQCAAAAIzNNcVBwYldQUnNaRm9UOVg3NHFXb2NVNEJweXBHRVBoaUNuAAAAABFEQVBQQVVUSE9STldBTExFVAIAAAAjM04xeFFlUWNzclk4VXJtNFJkcm1MMmRmb1pBUDRVTHBIMVMAAAAABVdBVkVTAgAAAAVXQVZFUwAAAAAETk9ORQIAAAAETk9ORQAAAAADRkVFAAAAAAAADbugAAAAAANXTFQBAAAAIF3NWDI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ACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYGZR+Xhw==", "chainId": 84, "height": 639521, "spentComplexity": 0 } View: original | compacted Prev: 6JCt3hYKrWfdvC5mqJxXUEawnA8WbHwzxpUnb5LYWKhd Next: 3XoVZ8MtkJErTNwkhHJuv77QgWTAsYo2sDNqZ8N5r75E Diff:
Old | New | Differences | |
---|---|---|---|
91 | 91 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
92 | 92 | let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
93 | 93 | let contestNewNumber = (contestCurrNumber + 1) | |
94 | - | let contestBetCost = (((wavesBalance(this) / 25) / 5000000) * 100000) | |
94 | + | let balance = wavesBalance(this) | |
95 | + | let contestBetCost = (((balance / 25) / 5000000) * 100000) | |
95 | 96 | if ((account != DAPPOWNER)) | |
96 | 97 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + account) + " dapp owner: ") + DAPPOWNER)) | |
97 | 98 | else if ((contestCurrStatus == RUNNING)) | |
98 | 99 | then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus)) | |
99 | - | else { | |
100 | - | let contestFinishHeight = (height + (6 * 1440)) | |
101 | - | 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)]) | |
102 | - | } | |
100 | + | else if ((100000000 > balance)) | |
101 | + | then throw("Balance too low, cannot start a contest.") | |
102 | + | else { | |
103 | + | let contestFinishHeight = (height + (6 * 1440)) | |
104 | + | 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)]) | |
105 | + | } | |
103 | 106 | } | |
104 | 107 | ||
105 | 108 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let RUNNING = "RUNNING" | |
5 | 5 | ||
6 | 6 | let CLOSED = "CLOSED" | |
7 | 7 | ||
8 | 8 | let CANCELED = "CANCELED" | |
9 | 9 | ||
10 | 10 | let DAPPOWNER = "3N5mwuqT6dXpbqwT5VKDXzGJJ6c14rKqxS7" | |
11 | 11 | ||
12 | 12 | let ORACLEWALLET = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu" | |
13 | 13 | ||
14 | 14 | let WLTBURNWALLET = "3MpCbDDjkSrfS1XkPpm71iZj5DQ1RpBRRht" | |
15 | 15 | ||
16 | 16 | let WAVESKITWALLET = "3MqPpbWPRsZFoT9X74qWocU4BpypGEPhiCn" | |
17 | 17 | ||
18 | 18 | let DAPPAUTHORNWALLET = "3N1xQeQcsrY8Urm4RdrmL2dfoZAP4ULpH1S" | |
19 | 19 | ||
20 | 20 | let WAVES = "WAVES" | |
21 | 21 | ||
22 | 22 | let NONE = "NONE" | |
23 | 23 | ||
24 | 24 | let FEE = 900000 | |
25 | 25 | ||
26 | 26 | let WLT = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7' | |
27 | 27 | ||
28 | 28 | func getNumByKey (key) = { | |
29 | 29 | let num = match getInteger(this, key) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | 35 | num | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func getStrByKey (key) = { | |
40 | 40 | let str = match getString(this, key) { | |
41 | 41 | case a: String => | |
42 | 42 | a | |
43 | 43 | case _ => | |
44 | 44 | NONE | |
45 | 45 | } | |
46 | 46 | str | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getContestStatus () = { | |
51 | 51 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
52 | 52 | getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getBetAccount (betId) = { | |
57 | 57 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
58 | 58 | getStrByKey((((("bet_" + toString(contestCurrNumber)) + "_") + toString(betId)) + "_owner")) | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getExtWAVESUSDCurrencyRate () = { | |
63 | 63 | let oracleAddress = extract(addressFromString(ORACLEWALLET)) | |
64 | 64 | let WAVESUSDCurrencyRate = match getInteger(oracleAddress, "waves_usd_2") { | |
65 | 65 | case a: Int => | |
66 | 66 | a | |
67 | 67 | case _ => | |
68 | 68 | 0 | |
69 | 69 | } | |
70 | 70 | WAVESUSDCurrencyRate | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | @Callable(i) | |
75 | 75 | func setContestStatus (contestNumber,contestStatus) = { | |
76 | 76 | let account = toBase58String(i.caller.bytes) | |
77 | 77 | if ((account != DAPPOWNER)) | |
78 | 78 | then throw("Only dAPP Owner can set Contest Status.") | |
79 | 79 | else if (if ((contestStatus != CANCELED)) | |
80 | 80 | then (contestStatus != CLOSED) | |
81 | 81 | else false) | |
82 | 82 | then throw(("Invalid status: " + contestStatus)) | |
83 | 83 | else WriteSet([DataEntry((("contest_" + toString(contestNumber)) + "_status"), contestStatus)]) | |
84 | 84 | } | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | ||
88 | 88 | @Callable(i) | |
89 | 89 | func setContestConfiguration () = { | |
90 | 90 | let account = toBase58String(i.caller.bytes) | |
91 | 91 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
92 | 92 | let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
93 | 93 | let contestNewNumber = (contestCurrNumber + 1) | |
94 | - | let contestBetCost = (((wavesBalance(this) / 25) / 5000000) * 100000) | |
94 | + | let balance = wavesBalance(this) | |
95 | + | let contestBetCost = (((balance / 25) / 5000000) * 100000) | |
95 | 96 | if ((account != DAPPOWNER)) | |
96 | 97 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + account) + " dapp owner: ") + DAPPOWNER)) | |
97 | 98 | else if ((contestCurrStatus == RUNNING)) | |
98 | 99 | then throw(("You cannot configure a new Contest while old Contest status is: " + contestCurrStatus)) | |
99 | - | else { | |
100 | - | let contestFinishHeight = (height + (6 * 1440)) | |
101 | - | 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)]) | |
102 | - | } | |
100 | + | else if ((100000000 > balance)) | |
101 | + | then throw("Balance too low, cannot start a contest.") | |
102 | + | else { | |
103 | + | let contestFinishHeight = (height + (6 * 1440)) | |
104 | + | 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)]) | |
105 | + | } | |
103 | 106 | } | |
104 | 107 | ||
105 | 108 | ||
106 | 109 | ||
107 | 110 | @Callable(i) | |
108 | 111 | func bet (currencyValue) = { | |
109 | 112 | let account = toBase58String(i.caller.bytes) | |
110 | 113 | let pmt = extract(i.payment) | |
111 | 114 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
112 | 115 | let contestStartHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_startheight")) | |
113 | 116 | let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight")) | |
114 | 117 | let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
115 | 118 | let contestCurrBetCost = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_betcost")) | |
116 | 119 | let contestStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
117 | 120 | let existingBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyValue))) | |
118 | 121 | if ((height > (contestFinishHeight - (2 * 1440)))) | |
119 | 122 | then throw("You cannot bet anymore at this height.") | |
120 | 123 | else if ((contestCurrStatus != RUNNING)) | |
121 | 124 | then throw(("Invalid status: you cannot bet now, contest status is: " + contestCurrStatus)) | |
122 | 125 | else if (if ((pmt.assetId != WLT)) | |
123 | 126 | then true | |
124 | 127 | else (pmt.amount != contestCurrBetCost)) | |
125 | 128 | then throw(((("You must pay at least: " + toString(contestCurrBetCost)) + " WLT to bet. You paid: ") + toString(pmt.amount))) | |
126 | 129 | else if (if ((existingBetAccount != NONE)) | |
127 | 130 | then (existingBetAccount != account) | |
128 | 131 | else false) | |
129 | 132 | then throw((("Another user: " + existingBetAccount) + " did bet already on this rate.")) | |
130 | 133 | else WriteSet([DataEntry(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyValue)), account)]) | |
131 | 134 | } | |
132 | 135 | ||
133 | 136 | ||
134 | 137 | ||
135 | 138 | @Callable(i) | |
136 | 139 | func closecontest () = { | |
137 | 140 | let currencyRate = getExtWAVESUSDCurrencyRate() | |
138 | 141 | let contestCurrNumber = getNumByKey("contest_currentnumber") | |
139 | 142 | let winningBetAccount = getStrByKey(((("bet_" + toString(contestCurrNumber)) + "_") + toString(currencyRate))) | |
140 | 143 | let contestFinishHeight = getNumByKey((("contest_" + toString(contestCurrNumber)) + "_finishheight")) | |
141 | 144 | let account = toBase58String(i.caller.bytes) | |
142 | 145 | let balance = wavesBalance(this) | |
143 | 146 | let contestCurrStatus = getStrByKey((("contest_" + toString(contestCurrNumber)) + "_status")) | |
144 | 147 | let WLTShareBurn = ((assetBalance(this, WLT) * 85) / 100) | |
145 | 148 | if ((account != DAPPOWNER)) | |
146 | 149 | then throw("Only dAPP Owner can Close Contest.") | |
147 | 150 | else if (if ((contestFinishHeight > height)) | |
148 | 151 | then (account != DAPPOWNER) | |
149 | 152 | else false) | |
150 | 153 | then throw(((("account: " + account) + ": Cannot close the contest before height:") + toString(contestFinishHeight))) | |
151 | 154 | else if ((contestCurrStatus != RUNNING)) | |
152 | 155 | then throw(("Cannot close a contest in status: " + contestCurrStatus)) | |
153 | 156 | else if ((winningBetAccount != NONE)) | |
154 | 157 | then { | |
155 | 158 | let WLTShareRevenue = ((assetBalance(this, WLT) * 5) / 100) | |
156 | 159 | let WAVESPrize = ((wavesBalance(this) * 99) / 100) | |
157 | 160 | let winTransfer = TransferSet([ScriptTransfer(extract(addressFromString(winningBetAccount)), WAVESPrize, unit), ScriptTransfer(extract(addressFromString(ORACLEWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WAVESKITWALLET)), WLTShareRevenue, WLT), ScriptTransfer(extract(addressFromString(WLTBURNWALLET)), WLTShareBurn, WLT), ScriptTransfer(extract(addressFromString(DAPPAUTHORNWALLET)), WLTShareBurn, WLT)]) | |
158 | 161 | ScriptResult(WriteSet([DataEntry((("contest_" + toString(contestCurrNumber)) + "_status"), CLOSED), DataEntry((("contest_" + toString(contestCurrNumber)) + "_winner"), winningBetAccount), DataEntry((("contest_" + toString(contestCurrNumber)) + "_currencyrate"), currencyRate), DataEntry((("contest_" + toString(contestCurrNumber)) + "_prize"), WAVESPrize), DataEntry((("contest_" + toString(contestCurrNumber)) + "_wltburned"), WLTShareBurn)]), winTransfer) | |
159 | 162 | } | |
160 | 163 | 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), DataEntry((("contest_" + toString(contestCurrNumber)) + "_wltburned"), WLTShareBurn)]) | |
161 | 164 | } | |
162 | 165 | ||
163 | 166 | ||
164 | 167 | @Verifier(tx) | |
165 | 168 | func verify () = match tx { | |
166 | 169 | case _: SetScriptTransaction|DataTransaction => | |
167 | 170 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
168 | 171 | case _: InvokeScriptTransaction => | |
169 | 172 | true | |
170 | 173 | case _ => | |
171 | 174 | true | |
172 | 175 | } | |
173 | 176 |
github/deemru/w8io/169f3d6 57.09 ms ◑